From: Roman Peresipkyn Date: Wed, 12 Oct 2016 13:25:23 +0000 (+0300) Subject: remove old files X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170104.142708~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72b1e49a8af4ee0399913e5b3db99728e1142d31;p=platform%2Fcore%2Fuifw%2Flibeom.git remove old files Change-Id: Ib1aee63ec52d5ac055002310978853f6a3148cb1 Signed-off-by: Roman Peresipkyn --- diff --git a/configure.ac b/configure.ac index 71c95ec..69650db 100755 --- a/configure.ac +++ b/configure.ac @@ -141,7 +141,6 @@ AC_OUTPUT([Makefile src/Makefile include/Makefile include/eom.pc - tests/Makefile ut/Makefile]) echo "CFLAGS : $CFLAGS" diff --git a/tests/Makefile.am b/tests/Makefile.am deleted file mode 100644 index 1829456..0000000 --- a/tests/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -AM_CFLAGS = \ - $(LIBEOM_CFLAGS) \ - -I$(top_srcdir)/include - -AM_LDFLAGS = \ - $(LIBEOM_LIBS) \ - $(top_builddir)/src/libeom.la - -noinst_PROGRAMS = \ - eom-test-output - -eom_test_output_SOURCES = eom-test-output.c diff --git a/tests/eom-test-output.c b/tests/eom-test-output.c deleted file mode 100755 index 3cdd3e0..0000000 --- a/tests/eom-test-output.c +++ /dev/null @@ -1,87 +0,0 @@ -#include -#include -#include -#include - -/* This test application consider only one output */ - -static void -test_eom_output_notify_cb_output_add(eom_output_notify_s *notify, void *user_data) -{ - eom_output_notify_add_s *add_notify = (eom_output_notify_add_s*)notify; - printf("output(%d) connected\n", add_notify->output_id); - - /* already has one connected output */ - if (output) - return; - - output = eom_output_create(add_notify->output_id); - if (!output) - printf("fail: creating output\n"); -} - -static void -test_eom_output_notify_cb_output_remove(eom_output_notify_s *notify, void *user_data) -{ - eom_output_notify_remove_s *rm_notify = (eom_output_notify_remove_s*)notify; - printf("output(%d) disconnected\n", rm_notify->output_id); - - /* no connected output */ - if (!output) - return; - - if (eom_output_get_output_id(output) != rm_notify->output_id) { - printf("I'm not interested in this output(%d,%d)\n", eom_output_get_output_id(output), rm_notify->output_id); - return; - } - - eom_output_destroy(output); - output = NULL; -} - -static void -test_eom_check_connected_output(void) -{ - int output_cnt; - eom_output_id *output_ids; - - output_ids = eom_get_eom_output_ids(&output_cnt); - if (!output_ids) - goto done; - - printf("output(%d) connected\n", output_ids[0]); - -done: - if (output_ids) - free(output_ids); -} - -int -main(int argc, char *argv[]) -{ - GMainLoop *event_loop; - - g_type_init(); - - if (eom_init()) - return 0; - - eom_output_add_notify_cb(EOM_OUTPUT_NOTIFY_ADD, test_eom_output_notify_cb_output_add, NULL); - eom_output_add_notify_cb(EOM_OUTPUT_NOTIFY_REMOVE, test_eom_output_notify_cb_output_remove, NULL); - - test_eom_check_connected_output(); - - /* run event loop */ - event_loop = g_main_loop_new(NULL, FALSE); - g_main_loop_run(event_loop); - - if (output) - eom_output_destroy(output); - - eom_output_remove_notify_cb(test_eom_output_notify_cb_output_add); - eom_output_remove_notify_cb(test_eom_output_notify_cb_output_remove); - - eom_deinit(); - - return 0; -}