e_test_base: Added method of fake window initiation. 01/183101/1
authorJunSeok, Kim <juns.kim@samsung.com>
Mon, 2 Jul 2018 07:36:48 +0000 (16:36 +0900)
committerJunSeok, Kim <juns.kim@samsung.com>
Mon, 2 Jul 2018 07:36:48 +0000 (16:36 +0900)
Change-Id: I2f8a503863d72f78d557c30d7c755eb20795d8ca

src/e_test_base.cpp
src/e_test_base.h

index 05d1c5342a845c8565118fd60ce62598a285c93f..6e834e5e6ded952c4e33b4ff1a4ea2758f7f575a 100644 (file)
@@ -41,6 +41,19 @@ etTCBase::~etTCBase()
      etRunner::get().freeLastWinInfoList();
 }
 
+etWin *
+etTCBase::initFakeWin()
+{
+   etWin *tw = new etWin();
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(tw, NULL);
+
+   tw_list = eina_list_append(tw_list, tw);
+
+   return tw;
+}
+
+
 etWin *
 etTCBase::initNormalWin(const char *name, Eina_Bool show_win, Eina_Bool usr_geom)
 {
index 5572f4f56108171e2881087c998c3927f56c2e41..39bc6ab2171661cfc82faebbfc7033854f56dbf8 100644 (file)
@@ -12,6 +12,7 @@ class etTCBase : public ::testing::Test
    ~etTCBase();
 
  public:
+   etWin     *initFakeWin();
    etWin     *initNormalWin(const char *name, Eina_Bool show_win, Eina_Bool usr_geom);
    etWin     *initNotiWin(const char *name, Eina_Bool show_win, Eina_Bool usr_geom, Eina_Bool set_noti_level_normal);