Change-Id: I3d17d15ae4f1990bbb6357ccc973fdf8c25061e1
#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();
#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