suite_helpers: punsh some sanity into function names
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 20 Aug 2019 15:32:15 +0000 (17:32 +0200)
committerHosang Kim <hosang12.kim@samsung.com>
Wed, 28 Aug 2019 04:51:54 +0000 (13:51 +0900)
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9661

src/tests/elementary/efl_ui_test_popup.c
src/tests/elementary/elm_test_actionslider.c
src/tests/elementary/elm_test_bubble.c
src/tests/elementary/suite_helpers.c
src/tests/elementary/suite_helpers.h

index a1d6d4f..eea9967 100644 (file)
@@ -177,7 +177,7 @@ EFL_START_TEST(efl_ui_test_popup_events)
    popup = efl_add(EFL_UI_POPUP_CLASS, win);
 
    efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_BACKWALL_CLICKED,
-     (void*)event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
+     (void*)event_callback_single_call_int_data, &called);
    efl_event_callback_add(popup, EFL_UI_POPUP_EVENT_TIMEOUT, event_callback_that_quits_the_main_loop_when_called, NULL);
    efl_gfx_hint_size_min_set(popup, EINA_SIZE2D(POPUP_SIZE, POPUP_SIZE));
 
@@ -199,7 +199,7 @@ EFL_START_TEST(efl_ui_test_popup_events)
    efl_gfx_entity_size_set(repeat_test_btn, EINA_SIZE2D(100, 100));
    efl_text_set(repeat_test_btn, "Repeat Event Test");
    efl_event_callback_add(repeat_test_btn, EFL_INPUT_EVENT_CLICKED,
-     (void*)event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
+     (void*)event_callback_single_call_int_data, &called);
    efl_ui_popup_part_backwall_repeat_events_set(efl_part(popup, "backwall"), EINA_TRUE);
    click_object(repeat_test_btn);
 
index 4210ec6..4b89f13 100644 (file)
@@ -72,7 +72,7 @@ EFL_START_TEST(elm_actionslider_test_callbacks)
    elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT |
                                     ELM_ACTIONSLIDER_CENTER | ELM_ACTIONSLIDER_RIGHT);
    evas_object_smart_callback_add(as, "pos_changed",
-                                  event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
+                                  event_callback_single_call_int_data, &called);
    evas_object_smart_callback_add(as, "selected", test_selected_cb, &called);
 
    get_me_to_those_events(as);
index b91a402..57a383e 100644 (file)
@@ -58,7 +58,7 @@ EFL_START_TEST(elm_bubble_test_callbacks)
    elm_object_part_text_set(bb, "info", "Corner: bottom_right");
    elm_object_part_content_set(bb, "icon", ic);
    elm_bubble_pos_set(bb, ELM_BUBBLE_POS_BOTTOM_RIGHT);
-   evas_object_smart_callback_add(bb, "clicked", event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called, &called);
+   evas_object_smart_callback_add(bb, "clicked", event_callback_single_call_int_data, &called);
    evas_object_show(ic);
    evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
    evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
index 5c89446..81da381 100644 (file)
@@ -506,7 +506,7 @@ wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down)
 }
 
 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)
+event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
 {
    int *called = data;
 
index 26cadf1..d0ada37 100644 (file)
@@ -17,6 +17,6 @@ void click_object_at(Eo *obj, int x, int y);
 void wheel_object(Eo *obj, Eina_Bool horiz, Eina_Bool down);
 void wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down);
 void wheel_object_at(Eo *obj, int x, int y, Eina_Bool horiz, Eina_Bool down);
-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_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
 void event_callback_that_quits_the_main_loop_when_called();
 #endif