void FrameBufferAssignmentOperator();
void FrameBufferAttachAndGetColorTexture01();
void FrameBufferAttachAndGetColorTexture02();
+void FrameBufferNewWithColor01();
+void FrameBufferNewWithColor02();
+void FrameBufferNewWithColor03();
+void FrameBufferNewWithColor04();
+void FrameBufferNewWithColor05();
namespace
FRAMEBUFFER_ASSIGNMENT_OPERATOR,
FRAMEBUFFER_ATTACH_AND_GET_COLOR_TEXTURE_01,
FRAMEBUFFER_ATTACH_AND_GET_COLOR_TEXTURE_02,
+ FRAMEBUFFER_NEW_WITH_COLOR_01,
+ FRAMEBUFFER_NEW_WITH_COLOR_02,
+ FRAMEBUFFER_NEW_WITH_COLOR_03,
+ FRAMEBUFFER_NEW_WITH_COLOR_04,
+ FRAMEBUFFER_NEW_WITH_COLOR_05,
};
struct FrameBuffer_TestApp : public ConnectionTracker
case FRAMEBUFFER_ATTACH_AND_GET_COLOR_TEXTURE_02:
FrameBufferAttachAndGetColorTexture02();
break;
+ case FRAMEBUFFER_NEW_WITH_COLOR_01:
+ FrameBufferNewWithColor01();
+ break;
+ case FRAMEBUFFER_NEW_WITH_COLOR_02:
+ FrameBufferNewWithColor02();
+ break;
+ case FRAMEBUFFER_NEW_WITH_COLOR_03:
+ FrameBufferNewWithColor03();
+ break;
+ case FRAMEBUFFER_NEW_WITH_COLOR_04:
+ FrameBufferNewWithColor04();
+ break;
+ case FRAMEBUFFER_NEW_WITH_COLOR_05:
+ FrameBufferNewWithColor05();
+ break;
}
}
DaliLog::PrintPass();
}
+void FrameBufferNewWithColor01()
+{
+ uint32_t width = 64;
+ uint32_t height = 64;
+ FrameBuffer frameBuffer = FrameBuffer::New( width, height );
+
+ DALI_CHECK_FAIL( !frameBuffer, "FrameBuffer::New failed" );
+
+ DaliLog::PrintPass();
+}
+
+void FrameBufferNewWithColor02()
+{
+ uint32_t width = 64;
+ uint32_t height = 64;
+ FrameBuffer frameBuffer = FrameBuffer::New( width, height, FrameBuffer::Attachment::COLOR );
+
+ DALI_CHECK_FAIL( !frameBuffer, "FrameBuffer::New failed" );
+
+ DaliLog::PrintPass();
+}
+
+void FrameBufferNewWithColor03()
+{
+ uint32_t width = 64;
+ uint32_t height = 64;
+ FrameBuffer frameBuffer = FrameBuffer::New( width, height, FrameBuffer::Attachment::COLOR_DEPTH );
+
+ DALI_CHECK_FAIL( !frameBuffer, "FrameBuffer::New failed" );
+
+ DaliLog::PrintPass();
+}
+
+void FrameBufferNewWithColor04()
+{
+ uint32_t width = 64;
+ uint32_t height = 64;
+ FrameBuffer frameBuffer = FrameBuffer::New( width, height, FrameBuffer::Attachment::COLOR_STENCIL );
+
+ DALI_CHECK_FAIL( !frameBuffer, "FrameBuffer::New failed" );
+
+ DaliLog::PrintPass();
+}
+
+void FrameBufferNewWithColor05()
+{
+ uint32_t width = 64;
+ uint32_t height = 64;
+ FrameBuffer frameBuffer = FrameBuffer::New( width, height, FrameBuffer::Attachment::COLOR_DEPTH_STENCIL );
+
+ DALI_CHECK_FAIL( !frameBuffer, "FrameBuffer::New failed" );
+
+ DaliLog::PrintPass();
+}
+
+
/**
* End of TC Logic Implementation Area.
**/
}
/**
- * @testcase UtcFrameBufferDownCastN
+ * @testcase UtcFrameBufferDownCastN
* @since_tizen 3.0
* @description Check DownCast
*/
}
/**
- * @testcase UtcFrameBufferAssignmentOperator
+ * @testcase UtcFrameBufferAssignmentOperator
* @since_tizen 3.0
* @description Check assignment operator
*/
}
/**
- * @testcase UtcFrameBufferAttachAndGetColorTexture01
+ * @testcase UtcFrameBufferAttachAndGetColorTexture01
* @since_tizen 3.0
* @description Attach a texture and ensure the same one can be retrieved
*/
}
/**
- * @testcase UtcFrameBufferAttachAndGetColorTexture02
+ * @testcase UtcFrameBufferAttachAndGetColorTexture02
* @since_tizen 3.0
* @description Attach a texture and ensure the same one can be retrieved
*/
application.MainLoop();
return test_return_value;
}
+
+/**
+ * @testcase UtcFrameBufferNewWithColor01
+ * @since_tizen 5.5
+ * @description Check New method with FrameBuffer::Attachment parameter
+ */
+int UtcFrameBufferNewWithColor01(void)
+{
+ DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+ Application application = Application::New( &gArgc, &gArgv );
+ FrameBuffer_TestApp testApp( application, FRAMEBUFFER_NEW_WITH_COLOR_01 );
+ application.MainLoop();
+ return test_return_value;
+}
+
+/**
+ * @testcase UtcFrameBufferNewWithColor02
+ * @since_tizen 5.5
+ * @description Check New method with FrameBuffer::Attachment parameter
+ */
+int UtcFrameBufferNewWithColor02(void)
+{
+ DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+ Application application = Application::New( &gArgc, &gArgv );
+ FrameBuffer_TestApp testApp( application, FRAMEBUFFER_NEW_WITH_COLOR_02 );
+ application.MainLoop();
+ return test_return_value;
+}
+
+/**
+ * @testcase UtcFrameBufferNewWithColor03
+ * @since_tizen 5.5
+ * @description Check New method with FrameBuffer::Attachment parameter
+ */
+int UtcFrameBufferNewWithColor03(void)
+{
+ DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+ Application application = Application::New( &gArgc, &gArgv );
+ FrameBuffer_TestApp testApp( application, FRAMEBUFFER_NEW_WITH_COLOR_03 );
+ application.MainLoop();
+ return test_return_value;
+}
+
+/**
+ * @testcase UtcFrameBufferNewWithColor04
+ * @since_tizen 5.5
+ * @description Check New method with FrameBuffer::Attachment parameter
+ */
+int UtcFrameBufferNewWithColor04(void)
+{
+ DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+ Application application = Application::New( &gArgc, &gArgv );
+ FrameBuffer_TestApp testApp( application, FRAMEBUFFER_NEW_WITH_COLOR_04 );
+ application.MainLoop();
+ return test_return_value;
+}
+
+/**
+ * @testcase UtcFrameBufferNewWithColor02
+ * @since_tizen 5.5
+ * @description Check New method with FrameBuffer::Attachment parameter
+ */
+int UtcFrameBufferNewWithColor05(void)
+{
+ DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
+ Application application = Application::New( &gArgc, &gArgv );
+ FrameBuffer_TestApp testApp( application, FRAMEBUFFER_NEW_WITH_COLOR_05 );
+ application.MainLoop();
+ return test_return_value;
+}
extern int UtcFrameBufferAssignmentOperator(void);
extern int UtcFrameBufferAttachAndGetColorTexture01(void);
extern int UtcFrameBufferAttachAndGetColorTexture02(void);
+extern int UtcFrameBufferNewWithColor01(void);
+extern int UtcFrameBufferNewWithColor02(void);
+extern int UtcFrameBufferNewWithColor03(void);
+extern int UtcFrameBufferNewWithColor04(void);
+extern int UtcFrameBufferNewWithColor05(void);
extern int UtcGeometryConstructorAndNew(void);
extern int UtcGeometryDownCastP(void);
extern int UtcGeometryDownCastN(void);
{"UtcFrameBufferAssignmentOperator",UtcFrameBufferAssignmentOperator,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcFrameBufferAttachAndGetColorTexture01",UtcFrameBufferAttachAndGetColorTexture01,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcFrameBufferAttachAndGetColorTexture02",UtcFrameBufferAttachAndGetColorTexture02,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor01",UtcFrameBufferNewWithColor01,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor02",UtcFrameBufferNewWithColor02,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor03",UtcFrameBufferNewWithColor03,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor04",UtcFrameBufferNewWithColor04,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor05",UtcFrameBufferNewWithColor05,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcGeometryConstructorAndNew",UtcGeometryConstructorAndNew,utc_geometry_startup,utc_geometry_cleanup},
{"UtcGeometryDownCastP",UtcGeometryDownCastP,utc_geometry_startup,utc_geometry_cleanup},
{"UtcGeometryDownCastN",UtcGeometryDownCastN,utc_geometry_startup,utc_geometry_cleanup},
extern int UtcFrameBufferAssignmentOperator(void);
extern int UtcFrameBufferAttachAndGetColorTexture01(void);
extern int UtcFrameBufferAttachAndGetColorTexture02(void);
+extern int UtcFrameBufferNewWithColor01(void);
+extern int UtcFrameBufferNewWithColor02(void);
+extern int UtcFrameBufferNewWithColor03(void);
+extern int UtcFrameBufferNewWithColor04(void);
+extern int UtcFrameBufferNewWithColor05(void);
extern int UtcGeometryConstructorAndNew(void);
extern int UtcGeometryDownCastP(void);
extern int UtcGeometryDownCastN(void);
{"UtcFrameBufferAssignmentOperator",UtcFrameBufferAssignmentOperator,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcFrameBufferAttachAndGetColorTexture01",UtcFrameBufferAttachAndGetColorTexture01,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcFrameBufferAttachAndGetColorTexture02",UtcFrameBufferAttachAndGetColorTexture02,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor01",UtcFrameBufferNewWithColor01,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor02",UtcFrameBufferNewWithColor02,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor03",UtcFrameBufferNewWithColor03,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor04",UtcFrameBufferNewWithColor04,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor05",UtcFrameBufferNewWithColor05,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcGeometryConstructorAndNew",UtcGeometryConstructorAndNew,utc_geometry_startup,utc_geometry_cleanup},
{"UtcGeometryDownCastP",UtcGeometryDownCastP,utc_geometry_startup,utc_geometry_cleanup},
{"UtcGeometryDownCastN",UtcGeometryDownCastN,utc_geometry_startup,utc_geometry_cleanup},
extern int UtcFrameBufferAssignmentOperator(void);
extern int UtcFrameBufferAttachAndGetColorTexture01(void);
extern int UtcFrameBufferAttachAndGetColorTexture02(void);
+extern int UtcFrameBufferNewWithColor01(void);
+extern int UtcFrameBufferNewWithColor02(void);
+extern int UtcFrameBufferNewWithColor03(void);
+extern int UtcFrameBufferNewWithColor04(void);
+extern int UtcFrameBufferNewWithColor05(void);
extern int UtcGeometryConstructorAndNew(void);
extern int UtcGeometryDownCastP(void);
extern int UtcGeometryDownCastN(void);
{"UtcFrameBufferAssignmentOperator",UtcFrameBufferAssignmentOperator,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcFrameBufferAttachAndGetColorTexture01",UtcFrameBufferAttachAndGetColorTexture01,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcFrameBufferAttachAndGetColorTexture02",UtcFrameBufferAttachAndGetColorTexture02,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor01",UtcFrameBufferNewWithColor01,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor02",UtcFrameBufferNewWithColor02,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor03",UtcFrameBufferNewWithColor03,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor04",UtcFrameBufferNewWithColor04,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
+ {"UtcFrameBufferNewWithColor05",UtcFrameBufferNewWithColor05,utc_frame_buffer_startup,utc_frame_buffer_cleanup},
{"UtcGeometryConstructorAndNew",UtcGeometryConstructorAndNew,utc_geometry_startup,utc_geometry_cleanup},
{"UtcGeometryDownCastP",UtcGeometryDownCastP,utc_geometry_startup,utc_geometry_cleanup},
{"UtcGeometryDownCastN",UtcGeometryDownCastN,utc_geometry_startup,utc_geometry_cleanup},