summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-15 10:08:32 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-15 10:08:32 -0400
commitb9f89fabb6f90b5bbd8a0198d2c626f3cbda101a (patch)
tree8506f8aeb3f819f489bdf655c43ba00116ded628
parent73acf72cc4333ac9b69765214d54b78db6c72715 (diff)
tests: Add tests for ecore_wl2_display_get and
ecore_wl2_display_name_get ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_display.c26
1 files changed, 26 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 e566ab8901..5806d002f8 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -31,9 +31,35 @@ EFL_START_TEST(wl2_display_destroy)
31} 31}
32EFL_END_TEST 32EFL_END_TEST
33 33
34EFL_START_TEST(wl2_display_get)
35{
36 Ecore_Wl2_Display *disp;
37 struct wl_display *wdisp;
38
39 disp = ECORE_WL2_TEST_DISPLAY_SETUP();
40 ck_assert(disp != NULL);
41
42 wdisp = ecore_wl2_display_get(disp);
43 ck_assert(wdisp != NULL);
44}
45EFL_END_TEST
46
47EFL_START_TEST(wl2_display_name_get)
48{
49 Ecore_Wl2_Display *disp;
50
51 disp = ECORE_WL2_TEST_DISPLAY_SETUP();
52 ck_assert(disp != NULL);
53
54 ck_assert(ecore_wl2_display_name_get(disp) != NULL);
55}
56EFL_END_TEST
57
34void 58void
35ecore_wl2_test_display(TCase *tc) 59ecore_wl2_test_display(TCase *tc)
36{ 60{
37 tcase_add_test(tc, wl2_display_create); 61 tcase_add_test(tc, wl2_display_create);
38 tcase_add_test(tc, wl2_display_destroy); 62 tcase_add_test(tc, wl2_display_destroy);
63 tcase_add_test(tc, wl2_display_get);
64 tcase_add_test(tc, wl2_display_name_get);
39} 65}