e-tizen-testcase: add ResetRegisterWindow request method 97/172397/2
authorJunSeok, Kim <juns.kim@samsung.com>
Tue, 13 Mar 2018 12:39:45 +0000 (21:39 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 14 Mar 2018 01:57:32 +0000 (01:57 +0000)
Change-Id: I8092c40ee17a8a8aa3061be00b375a30ad35f26b

src/e_test_event.cpp
src/e_test_event.h
src/testcase/0001_easy.cpp

index 56639f9490a38409e2d1d46d8a8d66f685a88d85..78b4ddb737b761414b605d2ce6084225a07a463d 100644 (file)
@@ -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)
index 7972382b84248a85eaea6ae621d5a248690f8def..f5ff66197f715e9b043ea886b4a93144d849879d 100644 (file)
@@ -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);
index d94415bc7312edbd9c40d16b70e4ddf02ebe6deb..cb2875409a5cd4233ee6a327095061b6c191179b 100644 (file)
@@ -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\""           )) ||