summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-15 10:47:36 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-15 11:01:39 -0400
commit539775b1cd1ae6d49f6a2b54a0ec5a1f1a1f6b0d (patch)
tree385f20960aa6ae784cf2c95cda670e2614647264
parent9ef1ab7876c2baa4e447f299b528cd2f5436f2f3 (diff)
tests/ecore_wl2: Add test for ecore_wl2_display_globals_get function
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_display.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_display.c b/src/tests/ecore_wl2/ecore_wl2_test_display.c
index 5327347c08..ece3078b52 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -101,6 +101,29 @@ EFL_START_TEST(wl2_display_dmabuf_get)
101} 101}
102EFL_END_TEST 102EFL_END_TEST
103 103
104EFL_START_TEST(wl2_display_globals_get)
105{
106 Ecore_Wl2_Display *disp;
107 Ecore_Wl2_Global *global;
108 Eina_Iterator *itr;
109 void *data;
110
111 disp = ECORE_WL2_TEST_DISPLAY_CONNECT();
112 ck_assert(disp != NULL);
113
114 itr = ecore_wl2_display_globals_get(disp);
115 ck_assert(itr != NULL);
116
117 EINA_ITERATOR_FOREACH(itr, data)
118 {
119 global = (Ecore_Wl2_Global *)data;
120 printf("Interface: <%s>\n", global->interface);
121 }
122
123 eina_iterator_free(itr);
124}
125EFL_END_TEST
126
104void 127void
105ecore_wl2_test_display(TCase *tc) 128ecore_wl2_test_display(TCase *tc)
106{ 129{
@@ -122,5 +145,6 @@ ecore_wl2_test_display(TCase *tc)
122 tcase_add_test(tc, wl2_display_disconnect); 145 tcase_add_test(tc, wl2_display_disconnect);
123 tcase_add_test(tc, wl2_display_shm_get); 146 tcase_add_test(tc, wl2_display_shm_get);
124 tcase_add_test(tc, wl2_display_dmabuf_get); 147 tcase_add_test(tc, wl2_display_dmabuf_get);
148 tcase_add_test(tc, wl2_display_globals_get);
125 } 149 }
126} 150}