utest: remove UtInit testcase 02/170602/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 20 Feb 2018 11:31:53 +0000 (20:31 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 20 Feb 2018 11:34:25 +0000 (20:34 +0900)
Change-Id: I3d17d15ae4f1990bbb6357ccc973fdf8c25061e1

utests/ut.cpp
utests/ut.h

index 0707975..2c3ce8a 100644 (file)
@@ -1,24 +1,5 @@
 #include "ut.h"
 
-void UtInit::UtBufmgrInit()
-{
-       ut_set_default_tbm_env();
-
-       bufmgr = tbm_bufmgr_init(-1);
-       ASSERT_TRUE(bufmgr != NULL);
-}
-
-void UtInit::SetUp()
-{
-       bufmgr = NULL;
-}
-
-void UtInit::TearDown()
-{
-       if (bufmgr)
-               tbm_bufmgr_deinit(bufmgr);
-}
-
 void BufmgrTest::SetUp()
 {
        ut_set_default_tbm_env();
index ac2fce6..24d9eb9 100644 (file)
@@ -7,19 +7,6 @@
 #include <tbm_surface_internal.h>
 #include <tbm_surface_queue.h>
 
-/* 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 UtInit : public ::testing::Test
-{
-protected:
-       void SetUp();
-       void TearDown();
-public:
-       void UtBufmgrInit();
-       tbm_bufmgr bufmgr;
-};
-
 /* The test fixture class, which initializes the bufmgr before and deinitializes
  * after the tests which use the test fixture with this class */
 class BufmgrTest : public ::testing::Test