bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e9e8078cec9100993f8124f9ad7bf1158c8e0cea

commit e9e8078cec9100993f8124f9ad7bf1158c8e0cea
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Mon Aug 5 13:57:48 2019 -0400

    tests/elm: add helper callback for automatically quitting main loop when 
triggered
    
    Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de>
    Differential Revision: https://phab.enlightenment.org/D9506
---
 src/tests/elementary/suite_helpers.c | 6 ++++++
 src/tests/elementary/suite_helpers.h | 1 +
 2 files changed, 7 insertions(+)

diff --git a/src/tests/elementary/suite_helpers.c 
b/src/tests/elementary/suite_helpers.c
index ff5530a93f..44c34e58ae 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -466,6 +466,12 @@ 
event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointe
    *called = 1;
 }
 
+void
+event_callback_that_quits_the_main_loop_when_called()
+{
+   ecore_main_loop_quit();
+}
+
 void
 click_object_at(Eo *obj, int x, int y)
 {
diff --git a/src/tests/elementary/suite_helpers.h 
b/src/tests/elementary/suite_helpers.h
index 0dc3944173..a063869f2b 100644
--- a/src/tests/elementary/suite_helpers.h
+++ b/src/tests/elementary/suite_helpers.h
@@ -15,4 +15,5 @@ void click_object(Eo *obj);
 void click_part(Eo *obj, const char *part);
 void click_object_at(Eo *obj, int x, int y);
 void 
event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called(void
 *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
+void event_callback_that_quits_the_main_loop_when_called();
 #endif

-- 


Reply via email to