Change-Id: I193b7a89f37a0897268ffe43220d3b37c7e84015
tbm_surface_destroy(surface);
}
+void SurfaceQueryFormatsTest::SetUp()
+{}
+
+void SurfaceQueryFormatsTest::TearDown()
+{}
int SurfaceQueueTest::width = 720;
int SurfaceQueueTest::height = 1024;
tbm_surface_h surface;
};
+/* The test fixture class, which deinitializes bufmgr after the test is finished.
+To init bufmgr you need to call UtBufmgrInit() func. Do not call tbm_bufmgr_init()
+directly because deinitialization won't be called if test is failed */
+class SurfaceQueryFormatsTest : public ::testing::Test
+{
+protected:
+ void SetUp();
+ void TearDown();
+public:
+};
+
typedef SurfaceTest SurfaceInternalTest;
#define QUEUE_SIZE 3
#include <tbm_surface.h>
#include "ut.h"
-TEST_F(UtInit, SurfaceQueryFormatsFailNull)
+TEST_F(SurfaceQueryFormatsTest, SurfaceQueryFormatsFailNull)
{
uint32_t num = 0;
tbm_format *formats = NULL;
ASSERT_NE(TBM_SURFACE_ERROR_NONE, result);
}
-TEST_F(UtInit, SurfaceQueryFormatSuccess)
+TEST_F(SurfaceQueryFormatsTest, SurfaceQueryFormatSuccess)
{
uint32_t num = 0;
tbm_format *formats = NULL;