From e26c34d3ac7e223dfc7e6c6332db85cc4b61178a Mon Sep 17 00:00:00 2001 From: "JunSeok, Kim" Date: Mon, 2 Jul 2018 16:36:48 +0900 Subject: [PATCH] e_test_base: Added method of fake window initiation. Change-Id: I2f8a503863d72f78d557c30d7c755eb20795d8ca --- src/e_test_base.cpp | 13 +++++++++++++ src/e_test_base.h | 1 + 2 files changed, 14 insertions(+) diff --git a/src/e_test_base.cpp b/src/e_test_base.cpp index 05d1c53..6e834e5 100644 --- a/src/e_test_base.cpp +++ b/src/e_test_base.cpp @@ -42,6 +42,19 @@ etTCBase::~etTCBase() } 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) { Eina_Bool res = EINA_FALSE; diff --git a/src/e_test_base.h b/src/e_test_base.h index 5572f4f..39bc6ab 100644 --- a/src/e_test_base.h +++ b/src/e_test_base.h @@ -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); -- 2.7.4