From: JunSeok, Kim Date: Tue, 13 Mar 2018 12:39:45 +0000 (+0900) Subject: e-tizen-testcase: add ResetRegisterWindow request method X-Git-Tag: submit/tizen/20180319.053649~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12501ec11f526d1fff1b572948c26bd4d2ab6b83;p=platform%2Fcore%2Fuifw%2Fe-tizen-testcase.git e-tizen-testcase: add ResetRegisterWindow request method Change-Id: I8092c40ee17a8a8aa3061be00b375a30ad35f26b --- diff --git a/src/e_test_event.cpp b/src/e_test_event.cpp index 56639f9..78b4ddb 100644 --- a/src/e_test_event.cpp +++ b/src/e_test_event.cpp @@ -126,6 +126,10 @@ Eina_Bool EtEventLoop::Init() "org.enlightenment.wm.Test"); EINA_SAFETY_ON_NULL_RETURN_VAL(this->Dbus.proxy, EINA_FALSE); + // reset registered window of e_test_helper + result = this->ResetRegisterWin(); + EINA_SAFETY_ON_FALSE_RETURN_VAL(result, EINA_FALSE); + return EINA_TRUE; } @@ -204,6 +208,24 @@ Eina_Bool EtEventLoop::DeregisterWin(EtWin *tw) return accepted; } +Eina_Bool EtEventLoop::ResetRegisterWin() +{ + Eldbus_Pending *p = NULL; + Eina_Bool accepted = EINA_FALSE; + + p = eldbus_proxy_call(this->Dbus.proxy, + "ResetRegisterWindow", + _cb_method_window_register, + &accepted, + -1, + ""); + EINA_SAFETY_ON_NULL_RETURN_VAL(p, EINA_FALSE); + + elm_run(); + + return accepted; +} + Eina_Bool EtEventLoop::SetWinStack(EtWin *tw, EtWin *sibiling, Eina_Bool above) diff --git a/src/e_test_event.h b/src/e_test_event.h index 7972382..f5ff661 100644 --- a/src/e_test_event.h +++ b/src/e_test_event.h @@ -47,6 +47,7 @@ class EtEventLoop /* requests */ Eina_Bool RegisterWin(EtWin *tw); Eina_Bool DeregisterWin(EtWin *tw); + Eina_Bool ResetRegisterWin(); Eina_Bool SetWinStack(EtWin *tw, EtWin *sibiling, Eina_Bool above); diff --git a/src/testcase/0001_easy.cpp b/src/testcase/0001_easy.cpp index d94415b..cb28754 100644 --- a/src/testcase/0001_easy.cpp +++ b/src/testcase/0001_easy.cpp @@ -41,6 +41,7 @@ _cb_introspect(void *data, if ((!strstr(arg, "method name=\"RegisterWindow\"" )) || (!strstr(arg, "method name=\"DeregisterWindow\"" )) || + (!strstr(arg, "method name=\"ResetRegisterWindow\"" )) || (!strstr(arg, "method name=\"SetWindowStack\"" )) || (!strstr(arg, "method name=\"GetWinInfo\"" )) || (!strstr(arg, "method name=\"GetWinsInfo\"" )) ||