ecore: Merged TCs(*_get and *_set) to reduce duplicate test operations 42/193642/1
authorAbhishek Shrivastava <a.shrivastav@samsung.com>
Thu, 22 Nov 2018 13:15:45 +0000 (18:45 +0530)
committerAbhishek Shrivastava <a.shrivastav@samsung.com>
Thu, 22 Nov 2018 13:15:45 +0000 (18:45 +0530)
Change-Id: Iaea8c2d6d9449d91b9f7da15518d3fc5b3be0a2d

172 files changed:
TC/ecore/ecore_anim/tslist
TC/ecore/ecore_anim/tslist_fhub
TC/ecore/ecore_anim/tslist_mobile
TC/ecore/ecore_anim/tslist_tv
TC/ecore/ecore_anim/tslist_wear
TC/ecore/ecore_anim/utc_ecore_animator_frametime_get.c [deleted file]
TC/ecore/ecore_anim/utc_ecore_animator_frametime_get_set.c [new file with mode: 0644]
TC/ecore/ecore_anim/utc_ecore_animator_frametime_set.c [deleted file]
TC/ecore/ecore_app/tslist
TC/ecore/ecore_app/tslist_fhub
TC/ecore/ecore_app/tslist_mobile
TC/ecore/ecore_app/tslist_tv
TC/ecore/ecore_app/tslist_wear
TC/ecore/ecore_app/utc_ecore_app_args_get.c [deleted file]
TC/ecore/ecore_app/utc_ecore_app_args_get_set.c [new file with mode: 0644]
TC/ecore/ecore_app/utc_ecore_app_args_set.c [deleted file]
TC/ecore/ecore_exe/tslist
TC/ecore/ecore_exe/tslist_fhub
TC/ecore/ecore_exe/tslist_mobile
TC/ecore/ecore_exe/tslist_tv
TC/ecore/ecore_exe/tslist_wear
TC/ecore/ecore_exe/utc_ecore_exe_run_priority_get.c [deleted file]
TC/ecore/ecore_exe/utc_ecore_exe_run_priority_get_set.c [new file with mode: 0644]
TC/ecore/ecore_exe/utc_ecore_exe_run_priority_set.c [deleted file]
TC/ecore/ecore_exe/utc_ecore_exe_tag_get.c [deleted file]
TC/ecore/ecore_exe/utc_ecore_exe_tag_get_set.c [new file with mode: 0644]
TC/ecore/ecore_exe/utc_ecore_exe_tag_set.c [deleted file]
TC/ecore/ecore_idle_enterer/tslist
TC/ecore/ecore_idle_enterer/tslist_fhub
TC/ecore/ecore_idle_enterer/tslist_mobile
TC/ecore/ecore_idle_enterer/tslist_tv
TC/ecore/ecore_idle_enterer/tslist_wear
TC/ecore/ecore_idle_enterer/utc_ecore_idle_enterer_add.c [deleted file]
TC/ecore/ecore_idle_enterer/utc_ecore_idle_enterer_before_add.c
TC/ecore/ecore_imf_context/tslist
TC/ecore/ecore_imf_context/tslist_fhub
TC/ecore/ecore_imf_context/tslist_mobile
TC/ecore/ecore_imf_context/tslist_tv
TC/ecore/ecore_imf_context/tslist_wear
TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_set.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_get.c [deleted file]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_get_set.c [new file with mode: 0644]
TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_set.c [deleted file]
TC/ecore/ecore_input/tslist
TC/ecore/ecore_input/tslist_fhub
TC/ecore/ecore_input/tslist_mobile
TC/ecore/ecore_input/tslist_tv
TC/ecore/ecore_input/tslist_wear
TC/ecore/ecore_input/utc_ecore_input_joystick_init.c [deleted file]
TC/ecore/ecore_input/utc_ecore_input_joystick_init_shutdown.c [new file with mode: 0644]
TC/ecore/ecore_input/utc_ecore_input_joystick_shutdown.c [deleted file]
TC/ecore/ecore_ipc/tslist
TC/ecore/ecore_ipc/tslist_fhub
TC/ecore/ecore_ipc/tslist_mobile
TC/ecore/ecore_ipc/tslist_tv
TC/ecore/ecore_ipc/tslist_wear
TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_get.c [deleted file]
TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_get_set.c [new file with mode: 0644]
TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_set.c [deleted file]
TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_get.c [deleted file]
TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_get_set.c [new file with mode: 0644]
TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_set.c [deleted file]
TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_get.c [deleted file]
TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_get_set.c [new file with mode: 0644]
TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_set.c [deleted file]
TC/ecore/ecore_main/tslist
TC/ecore/ecore_main/tslist_fhub
TC/ecore/ecore_main/tslist_mobile
TC/ecore/ecore_main/tslist_tv
TC/ecore/ecore_main/tslist_wear
TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_get.c [deleted file]
TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_get_set.c [new file with mode: 0644]
TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_set.c [deleted file]
TC/ecore/ecore_main/utc_ecore_main_loop_begin.c [deleted file]
TC/ecore/ecore_main/utc_ecore_main_loop_begin_quit.c [new file with mode: 0644]
TC/ecore/ecore_main/utc_ecore_main_loop_quit.c [deleted file]
TC/ecore/ecore_main/utc_ecore_main_loop_select_func_get.c [deleted file]
TC/ecore/ecore_main/utc_ecore_main_loop_select_func_get_set.c [new file with mode: 0644]
TC/ecore/ecore_main/utc_ecore_main_loop_select_func_set.c [deleted file]
TC/ecore/ecore_memory/tslist
TC/ecore/ecore_memory/tslist_fhub
TC/ecore/ecore_memory/tslist_mobile
TC/ecore/ecore_memory/tslist_tv
TC/ecore/ecore_memory/tslist_wear
TC/ecore/ecore_memory/utc_ecore_memory_state_get.c [deleted file]
TC/ecore/ecore_memory/utc_ecore_memory_state_get_set.c [new file with mode: 0644]
TC/ecore/ecore_memory/utc_ecore_memory_state_set.c [deleted file]
TC/ecore/ecore_poll/tslist
TC/ecore/ecore_poll/tslist_fhub
TC/ecore/ecore_poll/tslist_mobile
TC/ecore/ecore_poll/tslist_tv
TC/ecore/ecore_poll/tslist_wear
TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_get.c [deleted file]
TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_get_set.c [new file with mode: 0644]
TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_set.c [deleted file]
TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_get.c [deleted file]
TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_get_set.c [new file with mode: 0644]
TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_set.c [deleted file]
TC/ecore/ecore_power/tslist
TC/ecore/ecore_power/tslist_fhub
TC/ecore/ecore_power/tslist_mobile
TC/ecore/ecore_power/tslist_tv
TC/ecore/ecore_power/tslist_wear
TC/ecore/ecore_power/utc_ecore_power_state_get.c [deleted file]
TC/ecore/ecore_power/utc_ecore_power_state_get_set.c [new file with mode: 0644]
TC/ecore/ecore_power/utc_ecore_power_state_set.c [deleted file]
TC/ecore/ecore_thread/tslist
TC/ecore/ecore_thread/tslist_fhub
TC/ecore/ecore_thread/tslist_mobile
TC/ecore/ecore_thread/tslist_tv
TC/ecore/ecore_thread/tslist_wear
TC/ecore/ecore_thread/utc_ecore_thread_max_get.c [deleted file]
TC/ecore/ecore_thread/utc_ecore_thread_max_get_set.c [new file with mode: 0644]
TC/ecore/ecore_thread/utc_ecore_thread_max_set.c [deleted file]
TC/ecore/ecore_timer/tslist
TC/ecore/ecore_timer/tslist_fhub
TC/ecore/ecore_timer/tslist_mobile
TC/ecore/ecore_timer/tslist_tv
TC/ecore/ecore_timer/tslist_wear
TC/ecore/ecore_timer/utc_ecore_timer_interval_get.c [deleted file]
TC/ecore/ecore_timer/utc_ecore_timer_interval_get_set.c [new file with mode: 0644]
TC/ecore/ecore_timer/utc_ecore_timer_interval_set.c [deleted file]
TC/ecore/ecore_timer/utc_ecore_timer_precision_get.c [deleted file]
TC/ecore/ecore_timer/utc_ecore_timer_precision_get_set.c [new file with mode: 0644]
TC/ecore/ecore_timer/utc_ecore_timer_precision_set.c [deleted file]

index 86be4ae19c9550c52e37e705913f11150e11112e..4f89821ce3360dce982f7ffa1cee05933e0e5e0a 100644 (file)
@@ -1,8 +1,7 @@
 utc_ecore_animator_add.c
 utc_ecore_animator_del.c
 utc_ecore_animator_timeline_add.c
-utc_ecore_animator_frametime_set.c
-utc_ecore_animator_frametime_get.c
+utc_ecore_animator_frametime_get_set.c
 utc_ecore_animator_pos_map.c
 utc_ecore_animator_pos_map_n.c
 utc_ecore_animator_freeze.c
index 08fdf2ed2c19c843930ad289f620d6103f761e5a..6df5bb16003192de4423e3f8bee6be6be15dd718 100644 (file)
@@ -1,8 +1,7 @@
 utc_ecore_animator_add.c
 utc_ecore_animator_del.c
 utc_ecore_animator_timeline_add.c
-utc_ecore_animator_frametime_set.c
-utc_ecore_animator_frametime_get.c
+utc_ecore_animator_frametime_get_set.c
 utc_ecore_animator_pos_map.c
 utc_ecore_animator_pos_map_n.c
 utc_ecore_animator_freeze.c
index 08fdf2ed2c19c843930ad289f620d6103f761e5a..6df5bb16003192de4423e3f8bee6be6be15dd718 100644 (file)
@@ -1,8 +1,7 @@
 utc_ecore_animator_add.c
 utc_ecore_animator_del.c
 utc_ecore_animator_timeline_add.c
-utc_ecore_animator_frametime_set.c
-utc_ecore_animator_frametime_get.c
+utc_ecore_animator_frametime_get_set.c
 utc_ecore_animator_pos_map.c
 utc_ecore_animator_pos_map_n.c
 utc_ecore_animator_freeze.c
index 183fd618846a5bed16815f53ad5d5729276e1fee..a9f5841c132d787f588e1a80bc85e6eff0052445 100644 (file)
@@ -1,8 +1,7 @@
 utc_ecore_animator_add.c
 utc_ecore_animator_del.c
 utc_ecore_animator_timeline_add.c
-utc_ecore_animator_frametime_set.c
-utc_ecore_animator_frametime_get.c
+utc_ecore_animator_frametime_get_set.c
 utc_ecore_animator_pos_map.c
 #utc_ecore_animator_pos_map_n.c
 utc_ecore_animator_freeze.c
index 183fd618846a5bed16815f53ad5d5729276e1fee..a9f5841c132d787f588e1a80bc85e6eff0052445 100644 (file)
@@ -1,8 +1,7 @@
 utc_ecore_animator_add.c
 utc_ecore_animator_del.c
 utc_ecore_animator_timeline_add.c
-utc_ecore_animator_frametime_set.c
-utc_ecore_animator_frametime_get.c
+utc_ecore_animator_frametime_get_set.c
 utc_ecore_animator_pos_map.c
 #utc_ecore_animator_pos_map_n.c
 utc_ecore_animator_freeze.c
diff --git a/TC/ecore/ecore_anim/utc_ecore_animator_frametime_get.c b/TC/ecore/ecore_anim/utc_ecore_animator_frametime_get.c
deleted file mode 100644 (file)
index cf3e320..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Evas.h>
-#include <math.h>
-#include <float.h>
-
-#define ANIMATORS_FRAMETIME 0.5
-
-/**
- * @addtogroup ecore_anim
- * @{
- * @defgroup ecore_animator_frametime_get ecore_animator_frametime_get()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-/**
- * @addtogroup ecore_animator_frametime_get
- * @{
- * @objective Positive test case checks that the tested function really gets frametime of animator.
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Call ecore_animator_frametime_set() to set the given frametime.
- * @step 2 Call ecore_animator_frametime_get() to retrieve current frametime of animator.
- * @step 3 Compare set frametime at step 1 and retrieved frametime at step 2 (these frametimes must be same).
- *
- * @passcondition
- * Frametime which was set by tested function must be equal to frametime retrieved by ecore_animator_frametime_get(). Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_animator_frametime_get_p)
-{
-
-   double frametime;
-
-   ecore_animator_frametime_set(ANIMATORS_FRAMETIME);
-   frametime = ecore_animator_frametime_get();
-
-   if (fabs(frametime - ANIMATORS_FRAMETIME) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_animator_frametime_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_animator_frametime_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_animator_frametime_get_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_anim/utc_ecore_animator_frametime_get_set.c b/TC/ecore/ecore_anim/utc_ecore_animator_frametime_get_set.c
new file mode 100644 (file)
index 0000000..22f73be
--- /dev/null
@@ -0,0 +1,106 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_Evas.h>
+#include <math.h>
+#include <float.h>
+
+#define ANIMATORS_FRAMETIME 0.5
+
+/**
+ * @addtogroup ecore_anim
+ * @{
+ * @defgroup ecore_animator_frametime_set ecore_animator_frametime_set()
+ *
+ *
+ * @precondition
+ * @step 1 ecore initialized with ecore_init()
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+/**
+ * @addtogroup ecore_animator_frametime_set
+ * @{
+ * @objective Positive test case checks that the tested function really sets frametime of animator.
+ * @n Input Data: animator's frametime of double type (value of frametime is 0.5).
+ *
+ * @procedure
+ * @step 1 Call ecore_animator_frametime_set() to set the given frametime.
+ * @step 2 Call ecore_animator_frametime_get() to retrieve current frametime of animator.
+ * @step 3 Compare set frametime at step 1 and retrieved frametime at step 2 (these frametimes must be same).
+ *
+ * @passcondition
+ * Frametime which was set by tested function must be equal to frametime retrieved by ecore_animator_frametime_get(). Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_animator_frametime_set_p)
+{
+
+   double frametime;
+
+   ecore_animator_frametime_set(ANIMATORS_FRAMETIME);
+   frametime = ecore_animator_frametime_get();
+
+   if (fabs(frametime - ANIMATORS_FRAMETIME) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ * @addtogroup ecore_animator_frametime_set
+ * @{
+ * @objective Negative test case checks if animator's frametime is incorrect (less 0).
+ * @n Input Data: incorrect frame time which is equal to -1.
+ *
+ * @procedure
+ * @step 1 Call tested function with -1 as param.
+ * @step 2 Call ecore_animator_frametime_get() to retrieve current frametime of animator.
+ * @step 3 Compare set frametime at step 1 and retrieved frametime at step 2 (these frametimes must be 0.0).
+ *
+ * @passcondition
+ * There is no segmentation fault and return value should be equal to 0.0
+ * @}
+ */
+START_TEST(utc_ecore_animator_frametime_set_n)
+{
+   double frametime = 0.0;
+
+   ecore_animator_frametime_set(-1.0);
+   frametime = ecore_animator_frametime_get();
+
+   // DBL_EPSILON is using for relative accuracy of float.
+   if (fabs(frametime) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. %f", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_animator_frametime_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_animator_frametime_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_animator_frametime_set_p);
+   tcase_add_test(tcase, utc_ecore_animator_frametime_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_anim/utc_ecore_animator_frametime_set.c b/TC/ecore/ecore_anim/utc_ecore_animator_frametime_set.c
deleted file mode 100644 (file)
index 7af10d5..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Evas.h>
-#include <math.h>
-#include <float.h>
-
-#define ANIMATORS_FRAMETIME 0.5
-
-/**
- * @addtogroup ecore_anim
- * @{
- * @defgroup ecore_animator_frametime_set ecore_animator_frametime_set()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-/**
- * @addtogroup ecore_animator_frametime_set
- * @{
- * @objective Positive test case checks that the tested function really sets frametime of animator.
- * @n Input Data: animator's frametime of double type (value of frametime is 0.5).
- *
- * @procedure
- * @step 1 Call ecore_animator_frametime_set() to set the given frametime.
- * @step 2 Call ecore_animator_frametime_get() to retrieve current frametime of animator.
- * @step 3 Compare set frametime at step 1 and retrieved frametime at step 2 (these frametimes must be same).
- *
- * @passcondition
- * Frametime which was set by tested function must be equal to frametime retrieved by ecore_animator_frametime_get(). Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_animator_frametime_set_p)
-{
-
-   double frametime;
-
-   ecore_animator_frametime_set(ANIMATORS_FRAMETIME);
-   frametime = ecore_animator_frametime_get();
-
-   if (fabs(frametime - ANIMATORS_FRAMETIME) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @addtogroup ecore_animator_frametime_set
- * @{
- * @objective Negative test case checks if animator's frametime is incorrect (less 0).
- * @n Input Data: incorrect frame time which is equal to -1.
- *
- * @procedure
- * @step 1 Call tested function with -1 as param.
- * @step 2 Call ecore_animator_frametime_get() to retrieve current frametime of animator.
- * @step 3 Compare set frametime at step 1 and retrieved frametime at step 2 (these frametimes must be 0.0).
- *
- * @passcondition
- * There is no segmentation fault and return value should be equal to 0.0
- * @}
- */
-START_TEST(utc_ecore_animator_frametime_set_n)
-{
-   double frametime = 0.0;
-
-   ecore_animator_frametime_set(-1.0);
-   frametime = ecore_animator_frametime_get();
-
-   // DBL_EPSILON is using for relative accuracy of float.
-   if (fabs(frametime) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. %f", __FILE__, __LINE__);
-        return;
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_animator_frametime_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_animator_frametime_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_animator_frametime_set_p);
-   tcase_add_test(tcase, utc_ecore_animator_frametime_set_n);
-   return tcase;
-}
index a745b828996fc581674adb76c1a66a8d19209aa5..1e3ca0d39eddc3e0d58af29cc030ad1950d79e7e 100644 (file)
@@ -1,4 +1,3 @@
-utc_ecore_app_args_set.c
-utc_ecore_app_args_get.c
+utc_ecore_app_args_get_set.c
 utc_ecore_app_restart.c
 utc_ecore_app_no_system_modules.c
index a745b828996fc581674adb76c1a66a8d19209aa5..1e3ca0d39eddc3e0d58af29cc030ad1950d79e7e 100644 (file)
@@ -1,4 +1,3 @@
-utc_ecore_app_args_set.c
-utc_ecore_app_args_get.c
+utc_ecore_app_args_get_set.c
 utc_ecore_app_restart.c
 utc_ecore_app_no_system_modules.c
index a745b828996fc581674adb76c1a66a8d19209aa5..1e3ca0d39eddc3e0d58af29cc030ad1950d79e7e 100644 (file)
@@ -1,4 +1,3 @@
-utc_ecore_app_args_set.c
-utc_ecore_app_args_get.c
+utc_ecore_app_args_get_set.c
 utc_ecore_app_restart.c
 utc_ecore_app_no_system_modules.c
index 0df1780040fbfbce6f8049ec5be68e1a44d4b07e..837f67b81ea6f4895c57c28d3663098d6acfe11c 100644 (file)
@@ -1,4 +1,3 @@
-utc_ecore_app_args_set.c
-utc_ecore_app_args_get.c
+utc_ecore_app_args_get_set.c
 utc_ecore_app_restart.c
 #utc_ecore_app_no_system_modules.c
index 0df1780040fbfbce6f8049ec5be68e1a44d4b07e..837f67b81ea6f4895c57c28d3663098d6acfe11c 100644 (file)
@@ -1,4 +1,3 @@
-utc_ecore_app_args_set.c
-utc_ecore_app_args_get.c
+utc_ecore_app_args_get_set.c
 utc_ecore_app_restart.c
 #utc_ecore_app_no_system_modules.c
diff --git a/TC/ecore/ecore_app/utc_ecore_app_args_get.c b/TC/ecore/ecore_app/utc_ecore_app_args_get.c
deleted file mode 100644 (file)
index 83295c1..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_app
- * @{
- * @defgroup ecore_app_args_get ecore_app_args_get()
- *
- *
- * @precondition
- * @step 1 ecore initialized successfully through ecore_init().
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_app_args_get
- * @{
- * @objective Positive test case checks that the tested function gets correct command line arguments which were stored by ecore_app_args_set() function.
- * @n Input Data:
- * @li pointer to integer variable (arguments number which will be written to this variable);
- * @li pointer to strings array (arguments which will be written to this variable).
- *
- * @procedure
- * @step 1 Store some arguments by means of ecore_app_args_set() function.
- * @step 2 Call tested function and retrieve stored arguments.
- * @step 3 Compare stored arguments and retrieved arguments.
- *
- * @passcondition
- * Values retrieved by tested function must be equal to values stored by ecore_app_args_set() function. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_app_args_get_p)
-{
-
-   const char *argv[] = { "test1", "test2" };
-   int argc = 2, ret_argc;
-   char **ret_argv;
-   int res;
-
-   ecore_app_args_set(argc, argv);
-   ecore_app_args_get(&ret_argc, &ret_argv);
-   res = ((argc == ret_argc) ? TEST_PASS : TEST_FAIL);
-   if (res == TEST_PASS)
-     {
-        int i;
-        for (i = 0; i < argc; i++)
-          {
-             if (ret_argv[i] == NULL || strcmp(argv[i], ret_argv[i]) != 0)
-               {
-                  res = TEST_FAIL;
-                  break;
-               }
-          }
-     }
-
-   if (res == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_app_args_get
- * @{
- * @objective Negative test case checks situation if all argument of tested function are NULL in turn.
- * Input Data:
- * @li pointer to integer variable (arguments number which will be written to this variable); it will be replaced by NULL in the universal macro;
- * @li pointer to strings array (arguments which will be written to this variable); it will be replaced by NULL in the universal macro.
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for replacing arguments of function by NULL.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_app_args_get_n)
-{
-
-   const char *argv[] = { "test1", "test2" };
-   int argc = 2, ret_argc;
-   char **ret_argv;
-
-   ecore_app_args_set(argc, argv);
-   UNITEST_FUNC_NEG(ecore_app_args_get, &ret_argc, &ret_argv);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_ecore_app_args_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_app_args_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_app_args_get_p);
-   tcase_add_test(tcase, utc_ecore_app_args_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_app/utc_ecore_app_args_get_set.c b/TC/ecore/ecore_app/utc_ecore_app_args_get_set.c
new file mode 100644 (file)
index 0000000..164db53
--- /dev/null
@@ -0,0 +1,159 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup ecore_app
+ * @{
+ * @defgroup ecore_app_args_get ecore_app_args_get()
+ *
+ *
+ * @precondition
+ * @step 1 ecore initialized successfully through ecore_init().
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_app_args_get
+ * @{
+ * @objective Positive test case checks that the tested function gets correct command line arguments which were stored by ecore_app_args_set() function.
+ * @n Input Data:
+ * @li pointer to integer variable (arguments number which will be written to this variable);
+ * @li pointer to strings array (arguments which will be written to this variable).
+ *
+ * @procedure
+ * @step 1 Store some arguments by means of ecore_app_args_set() function.
+ * @step 2 Call tested function and retrieve stored arguments.
+ * @step 3 Compare stored arguments and retrieved arguments.
+ *
+ * @passcondition
+ * Values retrieved by tested function must be equal to values stored by ecore_app_args_set() function. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_app_args_get_p)
+{
+
+   const char *argv[] = { "test1", "test2" };
+   int argc = 2, ret_argc;
+   char **ret_argv;
+   int res;
+
+   ecore_app_args_set(argc, argv);
+   ecore_app_args_get(&ret_argc, &ret_argv);
+   res = ((argc == ret_argc) ? TEST_PASS : TEST_FAIL);
+   if (res == TEST_PASS)
+     {
+        int i;
+        for (i = 0; i < argc; i++)
+          {
+             if (ret_argv[i] == NULL || strcmp(argv[i], ret_argv[i]) != 0)
+               {
+                  res = TEST_FAIL;
+                  break;
+               }
+          }
+     }
+
+   if (res == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_app_args_get
+ * @{
+ * @objective Negative test case checks situation if all argument of tested function are NULL in turn.
+ * Input Data:
+ * @li pointer to integer variable (arguments number which will be written to this variable); it will be replaced by NULL in the universal macro;
+ * @li pointer to strings array (arguments which will be written to this variable); it will be replaced by NULL in the universal macro.
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for replacing arguments of function by NULL.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_app_args_get_n)
+{
+
+   const char *argv[] = { "test1", "test2" };
+   int argc = 2, ret_argc;
+   char **ret_argv;
+
+   ecore_app_args_set(argc, argv);
+   UNITEST_FUNC_NEG(ecore_app_args_get, &ret_argc, &ret_argv);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_app_args_set
+ * @{
+ * @objective Negative test case checks situation if all argument of tested function are NULL in turn.
+ * Input Data:
+ * @li integer/negative  variable (number of command line arguments); it will be replaced by zero in the universal macro;
+ * @li strings array (command line arguments); it will be replaced by NULL in the universal macro. Also one of element string array replased by NULL.
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for replacing argument target function by NULL.
+ * @step 2 Call function with negative value like first parameter.
+ * @step 3 Set first element equal NULL in second parameter.
+ * @step 4 Call function with "broken" second parameter.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_app_args_set_n)
+{
+
+   const char *argv[] = { "test1", "test2" };
+   int argc = 2;
+
+   UNITEST_FUNC_NEG(ecore_app_args_set, argc, argv)
+   ecore_app_args_set(-2, argv);
+   argv[0] = NULL;
+   ecore_app_args_set(argc, argv);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_ecore_app_args_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_app_args_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_app_args_get_p);
+   tcase_add_test(tcase, utc_ecore_app_args_get_n);
+   tcase_add_test(tcase, utc_ecore_app_args_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_app/utc_ecore_app_args_set.c b/TC/ecore/ecore_app/utc_ecore_app_args_set.c
deleted file mode 100644 (file)
index a2b7bb8..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_app
- * @{
- * @defgroup ecore_app_args_set ecore_app_args_set()
- *
- *
- * @precondition
- * @step 1 ecore initialized successfully through ecore_init().
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_app_args_set
- * @{
- * @objective Positive test case checks that the tested function sets command line arguments correctly.
- * @n Input Data:
- * @li integer variable (number of command line arguments);
- * @li strings array (command line arguments).
- *
- * @procedure
- * @step 1 Store some arguments by means of tested function.
- * @step 2 Call ecore_app_args_get() and retrieve stored arguments.
- * @step 3 Compare stored arguments and retrieved arguments.
- *
- * @passcondition
- * Values retrieved by ecore_app_args_get() function must be equal to values stored by tested function. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_app_args_set_p)
-{
-
-   const char *argv[] = { "test1", "test2" };
-   int argc = 2, ret_argc;
-   char **ret_argv;
-   int res;
-
-   ecore_app_args_set(argc, argv);
-   ecore_app_args_get(&ret_argc, &ret_argv);
-   res = ((argc == ret_argc) ? TEST_PASS : TEST_FAIL);
-   if (res == TEST_PASS)
-     {
-        int i;
-        for (i = 0; i < argc; i++)
-          {
-             if (ret_argv[i] == NULL || strcmp(argv[i], ret_argv[i]) != 0)
-               {
-                  res = TEST_FAIL;
-                  break;
-               }
-          }
-     }
-
-   if (res == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_app_args_set
- * @{
- * @objective Negative test case checks situation if all argument of tested function are NULL in turn.
- * Input Data:
- * @li integer/negative  variable (number of command line arguments); it will be replaced by zero in the universal macro;
- * @li strings array (command line arguments); it will be replaced by NULL in the universal macro. Also one of element string array replased by NULL.
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for replacing argument target function by NULL.
- * @step 2 Call function with negative value like first parameter.
- * @step 3 Set first element equal NULL in second parameter.
- * @step 4 Call function with "broken" second parameter.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_app_args_set_n)
-{
-
-   const char *argv[] = { "test1", "test2" };
-   int argc = 2;
-
-   UNITEST_FUNC_NEG(ecore_app_args_set, argc, argv)
-   ecore_app_args_set(-2, argv);
-   argv[0] = NULL;
-   ecore_app_args_set(argc, argv);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_ecore_app_args_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_app_args_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_app_args_set_p);
-   tcase_add_test(tcase, utc_ecore_app_args_set_n);
-   return tcase;
-}
index a5d747c5a00b13276bbead15e0865838919f16e1..3a17145b00df9394464be4e01eb669e61ed662c7 100644 (file)
@@ -3,13 +3,11 @@ utc_ecore_exe_free.c
 utc_ecore_exe_interrupt.c
 utc_ecore_exe_terminate.c
 utc_ecore_exe_pipe_run.c
-utc_ecore_exe_run_priority_set.c
-utc_ecore_exe_run_priority_get.c
+utc_ecore_exe_run_priority_get_set.c
 utc_ecore_exe_run.c
 utc_ecore_exe_cmd_get.c
 utc_ecore_exe_data_get.c
-utc_ecore_exe_tag_set.c
-utc_ecore_exe_tag_get.c
+utc_ecore_exe_tag_get_set.c
 utc_ecore_exe_callback_pre_free_set.c
 utc_ecore_exe_kill.c
 utc_ecore_exe_pause.c
index a5d747c5a00b13276bbead15e0865838919f16e1..3a17145b00df9394464be4e01eb669e61ed662c7 100644 (file)
@@ -3,13 +3,11 @@ utc_ecore_exe_free.c
 utc_ecore_exe_interrupt.c
 utc_ecore_exe_terminate.c
 utc_ecore_exe_pipe_run.c
-utc_ecore_exe_run_priority_set.c
-utc_ecore_exe_run_priority_get.c
+utc_ecore_exe_run_priority_get_set.c
 utc_ecore_exe_run.c
 utc_ecore_exe_cmd_get.c
 utc_ecore_exe_data_get.c
-utc_ecore_exe_tag_set.c
-utc_ecore_exe_tag_get.c
+utc_ecore_exe_tag_get_set.c
 utc_ecore_exe_callback_pre_free_set.c
 utc_ecore_exe_kill.c
 utc_ecore_exe_pause.c
index a5d747c5a00b13276bbead15e0865838919f16e1..3a17145b00df9394464be4e01eb669e61ed662c7 100644 (file)
@@ -3,13 +3,11 @@ utc_ecore_exe_free.c
 utc_ecore_exe_interrupt.c
 utc_ecore_exe_terminate.c
 utc_ecore_exe_pipe_run.c
-utc_ecore_exe_run_priority_set.c
-utc_ecore_exe_run_priority_get.c
+utc_ecore_exe_run_priority_get_set.c
 utc_ecore_exe_run.c
 utc_ecore_exe_cmd_get.c
 utc_ecore_exe_data_get.c
-utc_ecore_exe_tag_set.c
-utc_ecore_exe_tag_get.c
+utc_ecore_exe_tag_get_set.c
 utc_ecore_exe_callback_pre_free_set.c
 utc_ecore_exe_kill.c
 utc_ecore_exe_pause.c
index c97d137b2107618ce30adcb0f948c86aae8dfa27..63257dcef925a489cd50fd5cdcf7d61ff0cdb7c8 100644 (file)
@@ -3,13 +3,11 @@
 #utc_ecore_exe_interrupt.c
 #utc_ecore_exe_terminate.c
 #utc_ecore_exe_pipe_run.c
-#utc_ecore_exe_run_priority_set.c
-#utc_ecore_exe_run_priority_get.c
+#utc_ecore_exe_run_priority_get_set.c
 #utc_ecore_exe_run.c
 #utc_ecore_exe_cmd_get.c
 #utc_ecore_exe_data_get.c
-#utc_ecore_exe_tag_set.c
-#utc_ecore_exe_tag_get.c
+#utc_ecore_exe_tag_get_set.c
 #utc_ecore_exe_callback_pre_free_set.c
 #utc_ecore_exe_kill.c
 #utc_ecore_exe_pause.c
index c97d137b2107618ce30adcb0f948c86aae8dfa27..63257dcef925a489cd50fd5cdcf7d61ff0cdb7c8 100644 (file)
@@ -3,13 +3,11 @@
 #utc_ecore_exe_interrupt.c
 #utc_ecore_exe_terminate.c
 #utc_ecore_exe_pipe_run.c
-#utc_ecore_exe_run_priority_set.c
-#utc_ecore_exe_run_priority_get.c
+#utc_ecore_exe_run_priority_get_set.c
 #utc_ecore_exe_run.c
 #utc_ecore_exe_cmd_get.c
 #utc_ecore_exe_data_get.c
-#utc_ecore_exe_tag_set.c
-#utc_ecore_exe_tag_get.c
+#utc_ecore_exe_tag_get_set.c
 #utc_ecore_exe_callback_pre_free_set.c
 #utc_ecore_exe_kill.c
 #utc_ecore_exe_pause.c
diff --git a/TC/ecore/ecore_exe/utc_ecore_exe_run_priority_get.c b/TC/ecore/ecore_exe/utc_ecore_exe_run_priority_get.c
deleted file mode 100644 (file)
index 7b99035..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-/**
- * @addtogroup ecore_exe
- * @{
- * @defgroup ecore_exe_run_priority_get ecore_exe_run_priority_get()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_exe_run_priority_get
- * @{
- * @objective Positive test case checks if the function is invoked successfully
- *            and that setted and returned data is the same.
- *
- * @procedure
- * @step 1 Set priority for running of the process.
- * @step 2 Get priority for running of the process.
- * @step 3 Check if result priority equals to the source priority.
- *
- * @passcondition
- * Priority set and returned are the same. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_exe_run_priority_get_p)
-{
-   int source_priority = ECORE_EXE_PRIORITY_INHERIT;
-
-   ecore_exe_run_priority_set(source_priority);
-
-   int result_priority = ecore_exe_run_priority_get();
-
-   if (result_priority != source_priority)
-     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_exe_run_priority_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_exe_run_priority_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_exe_run_priority_get_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_exe/utc_ecore_exe_run_priority_get_set.c b/TC/ecore/ecore_exe/utc_ecore_exe_run_priority_get_set.c
new file mode 100644 (file)
index 0000000..debf975
--- /dev/null
@@ -0,0 +1,69 @@
+#include <check.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+/**
+ * @addtogroup ecore_exe
+ * @{
+ * @defgroup ecore_exe_run_priority_get ecore_exe_run_priority_get()
+ *
+ *
+ * @precondition
+ * @step 1 ecore initialized with ecore_init()
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_exe_run_priority_get
+ * @{
+ * @objective Positive test case checks if the function is invoked successfully
+ *            and that setted and returned data is the same.
+ *
+ * @procedure
+ * @step 1 Set priority for running of the process.
+ * @step 2 Get priority for running of the process.
+ * @step 3 Check if result priority equals to the source priority.
+ *
+ * @passcondition
+ * Priority set and returned are the same. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_exe_run_priority_get_p)
+{
+   int source_priority = ECORE_EXE_PRIORITY_INHERIT;
+
+   ecore_exe_run_priority_set(source_priority);
+
+   int result_priority = ecore_exe_run_priority_get();
+
+   if (result_priority != source_priority)
+     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_exe_run_priority_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_exe_run_priority_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_exe_run_priority_get_p);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_exe/utc_ecore_exe_run_priority_set.c b/TC/ecore/ecore_exe/utc_ecore_exe_run_priority_set.c
deleted file mode 100644 (file)
index 5d53264..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-/**
- * @addtogroup ecore_exe
- * @{
- * @defgroup ecore_exe_run_priority_set ecore_exe_run_priority_set()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_exe_run_priority_set
- * @{
- * @objective Positive test case checks if the function is invoked successfully
- * and that setted and returned data is the same.
- * @n Input Data:
- * @li run priority value (ECORE_EXE_PRIORITY_INHERIT)
- *
- * @procedure
- * @step 1 Set priority for running of the process.
- * @step 2 Get priority for running of the process.
- * @step 3 Check if result priority equals to the source priority.
- *
- * @passcondition
- * Priority set and returned are the same. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_exe_run_priority_set_p)
-{
-   int source_priority = ECORE_EXE_PRIORITY_INHERIT;
-
-   ecore_exe_run_priority_set(source_priority);
-
-   int result_priority = ecore_exe_run_priority_get();
-
-   if (result_priority != source_priority)
-     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_exe_run_priority_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_exe_run_priority_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_exe_run_priority_set_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_exe/utc_ecore_exe_tag_get.c b/TC/ecore/ecore_exe/utc_ecore_exe_tag_get.c
deleted file mode 100644 (file)
index 15beec8..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <string.h>
-
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_exe
- * @{
- * @defgroup ecore_exe_tag_get ecore_exe_tag_get()
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_exe_tag_get
- * @{
- * @objective
- * Positive test case checks if the function is invoked successfully
- * and returned data equals to the setted.
- *
- * @n Input Data:
- * @li Valid Ecore_Exe handle.
- * @li Tag string ("test_tag")
- *
- * @procedure
- * @step 1 Create child process with data.
- * @step 2 Check if the process is not NULL.
- * @step 3 Set tag to the Exore_Exe handle.
- * @step 4 Check if the tag returned by ecore_exe_tag_get is equals to source tag.
- *
- * @passcondition
- * Process created successfully, tag set and returned are the same.
- * Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_exe_tag_get_p)
-{
-   Ecore_Exe *exe         = NULL;
-   const int data         = 25;
-   const char *command    = "echo hello_utc";
-   const char *source_tag = "test_tag";
-   const char *error_msg  = NULL;
-
-   exe = ecore_exe_run(command, (void *)data);
-   if (exe)
-     {
-        ecore_exe_tag_set(exe, source_tag);
-        if (!strcmp(ecore_exe_tag_get(exe), source_tag))
-          {
-             ecore_exe_free(exe);
-             printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-             return;
-          }
-        else
-          error_msg = "Tags are different...";
-     }
-   else
-     error_msg = "Couldn't create child process...";
-
-   ecore_exe_free(exe);
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. %s", __FILE__, __LINE__, error_msg);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_exe_tag_get
- * @{
- * @objective
- * Negative test case checks if the function is invoked successfully
- * and returned data equals to NULL.
- *
- * @n Input Data:
- * @li Ecore_Exe handle (will be replaced by NULL in macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return NULL, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_exe_tag_get_n)
-{
-   Ecore_Exe *exe         = NULL;
-   const int data         = 25;
-   const char *command    = "echo hello_utc";
-   const char *source_tag = "test_tag";
-
-   exe = ecore_exe_run(command, (void *)data);
-   if (exe)
-     {
-        ecore_exe_tag_set(exe, source_tag);
-
-        if (UNITEST_FUNC_NEG_RET(NULL, ecore_exe_tag_get, exe))
-          {
-             ecore_exe_free(exe);
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
-          }
-        else
-          {
-             ecore_exe_free(exe);
-             printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-             return;
-          }
-     }
-   else
-     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. Couldn't create child process...", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_exe_tag_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_exe_tag_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_exe_tag_get_p);
-   tcase_add_test(tcase, utc_ecore_exe_tag_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_exe/utc_ecore_exe_tag_get_set.c b/TC/ecore/ecore_exe/utc_ecore_exe_tag_get_set.c
new file mode 100644 (file)
index 0000000..532441b
--- /dev/null
@@ -0,0 +1,180 @@
+#include <check.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <string.h>
+
+#include "../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup ecore_exe
+ * @{
+ * @defgroup ecore_exe_tag_get ecore_exe_tag_get()
+ *
+ * @precondition
+ * @step 1 ecore initialized with ecore_init()
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_exe_tag_get
+ * @{
+ * @objective
+ * Positive test case checks if the function is invoked successfully
+ * and returned data equals to the setted.
+ *
+ * @n Input Data:
+ * @li Valid Ecore_Exe handle.
+ * @li Tag string ("test_tag")
+ *
+ * @procedure
+ * @step 1 Create child process with data.
+ * @step 2 Check if the process is not NULL.
+ * @step 3 Set tag to the Exore_Exe handle.
+ * @step 4 Check if the tag returned by ecore_exe_tag_get is equals to source tag.
+ *
+ * @passcondition
+ * Process created successfully, tag set and returned are the same.
+ * Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_exe_tag_get_p)
+{
+   Ecore_Exe *exe         = NULL;
+   const int data         = 25;
+   const char *command    = "echo hello_utc";
+   const char *source_tag = "test_tag";
+   const char *error_msg  = NULL;
+
+   exe = ecore_exe_run(command, (void *)data);
+   if (exe)
+     {
+        ecore_exe_tag_set(exe, source_tag);
+        if (!strcmp(ecore_exe_tag_get(exe), source_tag))
+          {
+             ecore_exe_free(exe);
+             printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+             return;
+          }
+        else
+          error_msg = "Tags are different...";
+     }
+   else
+     error_msg = "Couldn't create child process...";
+
+   ecore_exe_free(exe);
+   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. %s", __FILE__, __LINE__, error_msg);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_exe_tag_get
+ * @{
+ * @objective
+ * Negative test case checks if the function is invoked successfully
+ * and returned data equals to NULL.
+ *
+ * @n Input Data:
+ * @li Ecore_Exe handle (will be replaced by NULL in macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return NULL, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_exe_tag_get_n)
+{
+   Ecore_Exe *exe         = NULL;
+   const int data         = 25;
+   const char *command    = "echo hello_utc";
+   const char *source_tag = "test_tag";
+
+   exe = ecore_exe_run(command, (void *)data);
+   if (exe)
+     {
+        ecore_exe_tag_set(exe, source_tag);
+
+        if (UNITEST_FUNC_NEG_RET(NULL, ecore_exe_tag_get, exe))
+          {
+             ecore_exe_free(exe);
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.", __FILE__, __LINE__);
+          }
+        else
+          {
+             ecore_exe_free(exe);
+             printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+             return;
+          }
+     }
+   else
+     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. Couldn't create child process...", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_exe_tag_set
+ * @{
+ * @objective
+ * Negative test case checks if the function is invoked successfully
+ * and returned data equals to NULL.
+ *
+ * @n Input Data:
+ * @li Ecore_Exe handle (will be replaced by NULL in macro).
+ * @li Tag string (will be replaced by NULL in macro)
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Process created successfully and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_exe_tag_set_n)
+{
+   Ecore_Exe *exe         = NULL;
+   const int data         = 25;
+   const char *command    = "echo hello_utc";
+   const char *source_tag = "test_tag";
+
+   exe = ecore_exe_run(command, (void *)data);
+   if (exe)
+     {
+        UNITEST_FUNC_NEG(ecore_exe_tag_set, exe, source_tag);
+
+        ecore_exe_free(exe);
+        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
+        return;
+     }
+   else
+     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. Couldn't create child process...", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_exe_tag_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_exe_tag_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_exe_tag_get_p);
+   tcase_add_test(tcase, utc_ecore_exe_tag_get_n);
+   tcase_add_test(tcase, utc_ecore_exe_tag_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_exe/utc_ecore_exe_tag_set.c b/TC/ecore/ecore_exe/utc_ecore_exe_tag_set.c
deleted file mode 100644 (file)
index a1535f0..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <string.h>
-
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_exe
- * @{
- * @defgroup ecore_exe_tag_set ecore_exe_tag_set()
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_exe_tag_set
- * @{
- * @objective
- * Positive test case checks if the function is invoked successfully
- * and returned tag equals to the setted.
- *
- * @n Input Data:
- * @li Valid Ecore_Exe handle.
- * @li Tag string ("test_tag")
- *
- * @procedure
- * @step 1 Create child process with data.
- * @step 2 Check if the process is not NULL.
- * @step 3 Set tag to the Exore_Exe handle using ecore_exe_tag_set.
- * @step 4 Check if the tag returned by ecore_exe_tag_get is equals to source tag.
- *
- * @passcondition
- * Process created successfully, tag set and returned are the same.
- * Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_exe_tag_set_p)
-{
-   Ecore_Exe *exe         = NULL;
-   const int data         = 25;
-   const char *command    = "echo hello_utc";
-   const char *source_tag = "test_tag";
-   const char *error_msg  = NULL;
-
-   exe = ecore_exe_run(command, (void *)data);
-   if (exe)
-     {
-        ecore_exe_tag_set(exe, source_tag);
-        if (!strcmp(ecore_exe_tag_get(exe), source_tag))
-          {
-             ecore_exe_free(exe);
-             printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-             return;
-          }
-        else
-          error_msg = "Tags are different...";
-     }
-   else
-     error_msg = "Couldn't create child process...";
-
-   ecore_exe_free(exe);
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. %s", __FILE__, __LINE__, error_msg);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_exe_tag_set
- * @{
- * @objective
- * Negative test case checks if the function is invoked successfully
- * and returned data equals to NULL.
- *
- * @n Input Data:
- * @li Ecore_Exe handle (will be replaced by NULL in macro).
- * @li Tag string (will be replaced by NULL in macro)
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Process created successfully and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_exe_tag_set_n)
-{
-   Ecore_Exe *exe         = NULL;
-   const int data         = 25;
-   const char *command    = "echo hello_utc";
-   const char *source_tag = "test_tag";
-
-   exe = ecore_exe_run(command, (void *)data);
-   if (exe)
-     {
-        UNITEST_FUNC_NEG(ecore_exe_tag_set, exe, source_tag);
-
-        ecore_exe_free(exe);
-        printf("[TEST_PASS]:: %s[%d] : Test has passed.\n", __FILE__, __LINE__);
-        return;
-     }
-   else
-     ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed. Couldn't create child process...", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_exe_tag_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_exe_tag_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_exe_tag_set_p);
-   tcase_add_test(tcase, utc_ecore_exe_tag_set_n);
-   return tcase;
-}
index 6875de8dc9f0fb5af20fbe4cca86cad32453aa02..c99e2bcd1c2849615c6ba912101073831ff4dfce 100644 (file)
@@ -1,3 +1,2 @@
-utc_ecore_idle_enterer_add.c
 utc_ecore_idle_enterer_before_add.c
 utc_ecore_idle_enterer_del.c
index 6875de8dc9f0fb5af20fbe4cca86cad32453aa02..c99e2bcd1c2849615c6ba912101073831ff4dfce 100644 (file)
@@ -1,3 +1,2 @@
-utc_ecore_idle_enterer_add.c
 utc_ecore_idle_enterer_before_add.c
 utc_ecore_idle_enterer_del.c
index 6875de8dc9f0fb5af20fbe4cca86cad32453aa02..c99e2bcd1c2849615c6ba912101073831ff4dfce 100644 (file)
@@ -1,3 +1,2 @@
-utc_ecore_idle_enterer_add.c
 utc_ecore_idle_enterer_before_add.c
 utc_ecore_idle_enterer_del.c
index 6875de8dc9f0fb5af20fbe4cca86cad32453aa02..c99e2bcd1c2849615c6ba912101073831ff4dfce 100644 (file)
@@ -1,3 +1,2 @@
-utc_ecore_idle_enterer_add.c
 utc_ecore_idle_enterer_before_add.c
 utc_ecore_idle_enterer_del.c
index 6875de8dc9f0fb5af20fbe4cca86cad32453aa02..c99e2bcd1c2849615c6ba912101073831ff4dfce 100644 (file)
@@ -1,3 +1,2 @@
-utc_ecore_idle_enterer_add.c
 utc_ecore_idle_enterer_before_add.c
 utc_ecore_idle_enterer_del.c
diff --git a/TC/ecore/ecore_idle_enterer/utc_ecore_idle_enterer_add.c b/TC/ecore/ecore_idle_enterer/utc_ecore_idle_enterer_add.c
deleted file mode 100644 (file)
index 978746e..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define WAIT_FOR(duration) \
-   do \
-     { \
-        if (ecore_timer_add(duration, _timer_cb, NULL) == NULL) \
-          { \
-             ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__); \
-             return; \
-          } \
-        ecore_main_loop_begin(); \
-     } while (0);
-
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Eina_Bool callback_called = EINA_FALSE;
-static int callback_data = 0;
-
-/**
- * @addtogroup ecore_idle_enterer
- * @{
- * @defgroup ecore_idle_enterer_add ecore_idle_enterer_add()
- *
- * @precondition
- * @step 1  Initialize Ecore
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        startup_status = EINA_TRUE;
-     }
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-static Eina_Bool _idle_enterer_cb(void* data)
-{
-   callback_called = EINA_TRUE;
-
-   callback_data = *((int *)data);
-
-   return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_idle_enterer_add
- * @{
- * @objective Positive test case checks that the tested fuction adds the given idle enterer handler.
- * @n Input Data:
- * @li the callback function;
- * @li data (777).
- *
- * @procedure
- * @step 1 Call tested function for adding the given idle enterer handler.
- * @step 2 Check returned handler. It must not be NULL.
- * @step 3 Wait for 0.5 seconds.
- * @step 4 Check variables named callback_called and callback_data.
- * If callback_called equals to EINA_TRUE and callback_data equals to 777,
- * then the callback function has been executed, and it's ok.
- *
- * @passcondition
- * Tested function must return nonnull handler, callback_called must be equal to EINA_TRUE
- * and callback_data must be equal to 777. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_idle_enterer_add_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-   Ecore_Idle_Enterer* eie = NULL;
-   int data = 777;
-
-   eie = ecore_idle_enterer_add(_idle_enterer_cb, &data);
-   if (eie != NULL)
-     {
-        WAIT_FOR(0.5);
-        if ((callback_called == EINA_TRUE) && (callback_data == data))
-          {
-             ok = EINA_TRUE;
-          }
-        ecore_idle_enterer_del(eie);
-     }
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_idle_enterer_add
- * @{
- * @objective Negative test case checks situation if first argument of tested function is NULL.
- * @n Input Data:
- * @li the callback function (it will be replaced by NULL in the universal macro);
- * @li NULL.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * Tested function must return NULL, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_idle_enterer_add_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA_RET(NULL, ecore_idle_enterer_add, _idle_enterer_cb, NULL);
-
-   if (result_of_testing != TEST_PASS)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_idle_enterer_add()
-{
-   TCase *tcase = tcase_create("utc_ecore_idle_enterer_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_idle_enterer_add_p);
-   tcase_add_test(tcase, utc_ecore_idle_enterer_add_n);
-   return tcase;
-}
index ea9acb11ef20b4035cc4043e8f34d0279929d6b9..c373bfae6e58c851949bf72a2cbdcacefcc0eb04 100644 (file)
@@ -89,7 +89,6 @@ START_TEST(utc_ecore_idle_enterer_before_add_p)
    if (startup_status != EINA_TRUE)
      {
         ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
      }
 
    Eina_Bool ok = EINA_FALSE;
@@ -110,7 +109,6 @@ START_TEST(utc_ecore_idle_enterer_before_add_p)
    if (ok != EINA_TRUE)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
@@ -135,19 +133,43 @@ END_TEST
 
 START_TEST(utc_ecore_idle_enterer_before_add_n)
 {
-   if (startup_status != EINA_TRUE)
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA_RET(NULL, ecore_idle_enterer_before_add, _idle_enterer_cb, NULL);
+
+   if (result_of_testing != TEST_PASS)
      {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
      }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_idle_enterer_add
+ * @{
+ * @objective Negative test case checks situation if first argument of tested function is NULL.
+ * @n Input Data:
+ * @li the callback function (it will be replaced by NULL in the universal macro);
+ * @li NULL.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * Tested function must return NULL, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_idle_enterer_add_n)
+{
 
    CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA_RET(NULL, ecore_idle_enterer_before_add, _idle_enterer_cb, NULL);
+   UNITEST_FUNC_NEG_CA_RET(NULL, ecore_idle_enterer_add, _idle_enterer_cb, NULL);
 
    if (result_of_testing != TEST_PASS)
      {
         ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
      }
    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
 }
@@ -163,5 +185,6 @@ TCase * _utc_ecore_idle_enterer_before_add()
    tcase_add_checked_fixture(tcase, setup, teardown);
    tcase_add_test(tcase, utc_ecore_idle_enterer_before_add_p);
    tcase_add_test(tcase, utc_ecore_idle_enterer_before_add_n);
+   tcase_add_test(tcase, utc_ecore_idle_enterer_add_n);
    return tcase;
 }
index 9ad15f6eec072adf697423924bda2e6b688c9d38..8f6be9e3e272e393a3019fcb88d91da6957a4193 100644 (file)
@@ -7,8 +7,7 @@ utc_ecore_imf_context_show.c
 utc_ecore_imf_context_hide.c
 utc_ecore_imf_context_info_get.c
 utc_ecore_imf_context_info_by_id_get.c
-utc_ecore_imf_context_data_set.c
-utc_ecore_imf_context_data_get.c
+utc_ecore_imf_context_data_get_set.c
 utc_ecore_imf_context_focus_in.c
 utc_ecore_imf_context_focus_out.c
 utc_ecore_imf_context_filter_event.c
@@ -16,8 +15,6 @@ utc_ecore_imf_context_available_ids_get.c
 utc_ecore_imf_context_available_ids_by_canvas_type_get.c
 utc_ecore_imf_context_default_id_get.c
 utc_ecore_imf_context_default_id_by_canvas_type_get.c
-utc_ecore_imf_context_retrieve_selection_callback_set.c
-utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_surrounding_get.c
 utc_ecore_imf_context_commit_event_add.c
 utc_ecore_imf_context_event_callback_add.c
@@ -25,54 +22,40 @@ utc_ecore_imf_context_event_callback_call.c
 utc_ecore_imf_context_event_callback_del.c
 utc_ecore_imf_context_cursor_location_set.c
 utc_ecore_imf_context_cursor_position_set.c
+utc_ecore_imf_context_retrieve_selection_callback_set.c
+utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_delete_surrounding_event_add.c
 utc_ecore_imf_context_preedit_changed_event_add.c
 utc_ecore_imf_context_preedit_end_event_add.c
 utc_ecore_imf_context_preedit_start_event_add.c
 utc_ecore_imf_context_preedit_string_with_attributes_get.c
 utc_ecore_imf_context_preedit_string_get.c
-utc_ecore_imf_context_prediction_allow_set.c
-utc_ecore_imf_context_prediction_allow_get.c
-utc_ecore_imf_context_autocapital_type_set.c
-utc_ecore_imf_context_autocapital_type_get.c
-utc_ecore_imf_context_client_window_get.c
-utc_ecore_imf_context_client_window_set.c
-utc_ecore_imf_context_client_canvas_get.c
-utc_ecore_imf_context_client_canvas_set.c
+utc_ecore_imf_context_prediction_allow_get_set.c
+utc_ecore_imf_context_autocapital_type_get_set.c
+utc_ecore_imf_context_client_window_get_set.c
+utc_ecore_imf_context_client_canvas_get_set.c
 utc_ecore_imf_context_use_preedit_set.c
 utc_ecore_imf_context_control_panel_show.c
 utc_ecore_imf_context_control_panel_hide.c
 utc_ecore_imf_context_candidate_panel_geometry_get.c
-utc_ecore_imf_context_input_panel_imdata_set.c
-utc_ecore_imf_context_input_panel_imdata_get.c
+utc_ecore_imf_context_input_panel_imdata_get_set.c
 utc_ecore_imf_context_input_panel_language_locale_get.c
-utc_ecore_imf_context_input_panel_language_get.c
-utc_ecore_imf_context_input_panel_language_set.c
-utc_ecore_imf_context_input_panel_layout_set.c
-utc_ecore_imf_context_input_panel_layout_get.c
-utc_ecore_imf_context_input_panel_layout_variation_set.c
-utc_ecore_imf_context_input_panel_layout_variation_get.c
+utc_ecore_imf_context_input_panel_language_get_set.c
+utc_ecore_imf_context_input_panel_layout_get_set.c
+utc_ecore_imf_context_input_panel_layout_variation_get_set.c
 utc_ecore_imf_context_input_panel_event_callback_add.c
 utc_ecore_imf_context_input_panel_event_callback_del.c
 utc_ecore_imf_context_input_panel_event_callback_call.c
 utc_ecore_imf_context_input_panel_event_callback_clear.c
 utc_ecore_imf_context_input_panel_state_get.c
-utc_ecore_imf_context_input_panel_enabled_get.c
-utc_ecore_imf_context_input_panel_enabled_set.c
+utc_ecore_imf_context_input_panel_enabled_get_set.c
 utc_ecore_imf_context_input_panel_geometry_get.c
 utc_ecore_imf_context_input_panel_show.c
 utc_ecore_imf_context_input_panel_hide.c
-utc_ecore_imf_context_input_panel_show_on_demand_set.c
-utc_ecore_imf_context_input_panel_show_on_demand_get.c
-utc_ecore_imf_context_input_panel_return_key_type_set.c
-utc_ecore_imf_context_input_panel_return_key_type_get.c
-utc_ecore_imf_context_input_panel_return_key_disabled_set.c
-utc_ecore_imf_context_input_panel_return_key_disabled_get.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_set.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_get.c
-utc_ecore_imf_context_input_mode_set.c
-utc_ecore_imf_context_input_mode_get.c
-utc_ecore_imf_context_input_hint_set.c
-utc_ecore_imf_context_input_hint_get.c
-utc_ecore_imf_context_bidi_direction_set.c
-utc_ecore_imf_context_bidi_direction_get.c
+utc_ecore_imf_context_input_panel_show_on_demand_get_set.c
+utc_ecore_imf_context_input_panel_return_key_type_get_set.c
+utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c
+utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c
+utc_ecore_imf_context_input_mode_get_set.c
+utc_ecore_imf_context_input_hint_get_set.c
+utc_ecore_imf_context_bidi_direction_get_set.c
index 9ad15f6eec072adf697423924bda2e6b688c9d38..8f6be9e3e272e393a3019fcb88d91da6957a4193 100644 (file)
@@ -7,8 +7,7 @@ utc_ecore_imf_context_show.c
 utc_ecore_imf_context_hide.c
 utc_ecore_imf_context_info_get.c
 utc_ecore_imf_context_info_by_id_get.c
-utc_ecore_imf_context_data_set.c
-utc_ecore_imf_context_data_get.c
+utc_ecore_imf_context_data_get_set.c
 utc_ecore_imf_context_focus_in.c
 utc_ecore_imf_context_focus_out.c
 utc_ecore_imf_context_filter_event.c
@@ -16,8 +15,6 @@ utc_ecore_imf_context_available_ids_get.c
 utc_ecore_imf_context_available_ids_by_canvas_type_get.c
 utc_ecore_imf_context_default_id_get.c
 utc_ecore_imf_context_default_id_by_canvas_type_get.c
-utc_ecore_imf_context_retrieve_selection_callback_set.c
-utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_surrounding_get.c
 utc_ecore_imf_context_commit_event_add.c
 utc_ecore_imf_context_event_callback_add.c
@@ -25,54 +22,40 @@ utc_ecore_imf_context_event_callback_call.c
 utc_ecore_imf_context_event_callback_del.c
 utc_ecore_imf_context_cursor_location_set.c
 utc_ecore_imf_context_cursor_position_set.c
+utc_ecore_imf_context_retrieve_selection_callback_set.c
+utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_delete_surrounding_event_add.c
 utc_ecore_imf_context_preedit_changed_event_add.c
 utc_ecore_imf_context_preedit_end_event_add.c
 utc_ecore_imf_context_preedit_start_event_add.c
 utc_ecore_imf_context_preedit_string_with_attributes_get.c
 utc_ecore_imf_context_preedit_string_get.c
-utc_ecore_imf_context_prediction_allow_set.c
-utc_ecore_imf_context_prediction_allow_get.c
-utc_ecore_imf_context_autocapital_type_set.c
-utc_ecore_imf_context_autocapital_type_get.c
-utc_ecore_imf_context_client_window_get.c
-utc_ecore_imf_context_client_window_set.c
-utc_ecore_imf_context_client_canvas_get.c
-utc_ecore_imf_context_client_canvas_set.c
+utc_ecore_imf_context_prediction_allow_get_set.c
+utc_ecore_imf_context_autocapital_type_get_set.c
+utc_ecore_imf_context_client_window_get_set.c
+utc_ecore_imf_context_client_canvas_get_set.c
 utc_ecore_imf_context_use_preedit_set.c
 utc_ecore_imf_context_control_panel_show.c
 utc_ecore_imf_context_control_panel_hide.c
 utc_ecore_imf_context_candidate_panel_geometry_get.c
-utc_ecore_imf_context_input_panel_imdata_set.c
-utc_ecore_imf_context_input_panel_imdata_get.c
+utc_ecore_imf_context_input_panel_imdata_get_set.c
 utc_ecore_imf_context_input_panel_language_locale_get.c
-utc_ecore_imf_context_input_panel_language_get.c
-utc_ecore_imf_context_input_panel_language_set.c
-utc_ecore_imf_context_input_panel_layout_set.c
-utc_ecore_imf_context_input_panel_layout_get.c
-utc_ecore_imf_context_input_panel_layout_variation_set.c
-utc_ecore_imf_context_input_panel_layout_variation_get.c
+utc_ecore_imf_context_input_panel_language_get_set.c
+utc_ecore_imf_context_input_panel_layout_get_set.c
+utc_ecore_imf_context_input_panel_layout_variation_get_set.c
 utc_ecore_imf_context_input_panel_event_callback_add.c
 utc_ecore_imf_context_input_panel_event_callback_del.c
 utc_ecore_imf_context_input_panel_event_callback_call.c
 utc_ecore_imf_context_input_panel_event_callback_clear.c
 utc_ecore_imf_context_input_panel_state_get.c
-utc_ecore_imf_context_input_panel_enabled_get.c
-utc_ecore_imf_context_input_panel_enabled_set.c
+utc_ecore_imf_context_input_panel_enabled_get_set.c
 utc_ecore_imf_context_input_panel_geometry_get.c
 utc_ecore_imf_context_input_panel_show.c
 utc_ecore_imf_context_input_panel_hide.c
-utc_ecore_imf_context_input_panel_show_on_demand_set.c
-utc_ecore_imf_context_input_panel_show_on_demand_get.c
-utc_ecore_imf_context_input_panel_return_key_type_set.c
-utc_ecore_imf_context_input_panel_return_key_type_get.c
-utc_ecore_imf_context_input_panel_return_key_disabled_set.c
-utc_ecore_imf_context_input_panel_return_key_disabled_get.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_set.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_get.c
-utc_ecore_imf_context_input_mode_set.c
-utc_ecore_imf_context_input_mode_get.c
-utc_ecore_imf_context_input_hint_set.c
-utc_ecore_imf_context_input_hint_get.c
-utc_ecore_imf_context_bidi_direction_set.c
-utc_ecore_imf_context_bidi_direction_get.c
+utc_ecore_imf_context_input_panel_show_on_demand_get_set.c
+utc_ecore_imf_context_input_panel_return_key_type_get_set.c
+utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c
+utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c
+utc_ecore_imf_context_input_mode_get_set.c
+utc_ecore_imf_context_input_hint_get_set.c
+utc_ecore_imf_context_bidi_direction_get_set.c
index 9ad15f6eec072adf697423924bda2e6b688c9d38..8f6be9e3e272e393a3019fcb88d91da6957a4193 100644 (file)
@@ -7,8 +7,7 @@ utc_ecore_imf_context_show.c
 utc_ecore_imf_context_hide.c
 utc_ecore_imf_context_info_get.c
 utc_ecore_imf_context_info_by_id_get.c
-utc_ecore_imf_context_data_set.c
-utc_ecore_imf_context_data_get.c
+utc_ecore_imf_context_data_get_set.c
 utc_ecore_imf_context_focus_in.c
 utc_ecore_imf_context_focus_out.c
 utc_ecore_imf_context_filter_event.c
@@ -16,8 +15,6 @@ utc_ecore_imf_context_available_ids_get.c
 utc_ecore_imf_context_available_ids_by_canvas_type_get.c
 utc_ecore_imf_context_default_id_get.c
 utc_ecore_imf_context_default_id_by_canvas_type_get.c
-utc_ecore_imf_context_retrieve_selection_callback_set.c
-utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_surrounding_get.c
 utc_ecore_imf_context_commit_event_add.c
 utc_ecore_imf_context_event_callback_add.c
@@ -25,54 +22,40 @@ utc_ecore_imf_context_event_callback_call.c
 utc_ecore_imf_context_event_callback_del.c
 utc_ecore_imf_context_cursor_location_set.c
 utc_ecore_imf_context_cursor_position_set.c
+utc_ecore_imf_context_retrieve_selection_callback_set.c
+utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_delete_surrounding_event_add.c
 utc_ecore_imf_context_preedit_changed_event_add.c
 utc_ecore_imf_context_preedit_end_event_add.c
 utc_ecore_imf_context_preedit_start_event_add.c
 utc_ecore_imf_context_preedit_string_with_attributes_get.c
 utc_ecore_imf_context_preedit_string_get.c
-utc_ecore_imf_context_prediction_allow_set.c
-utc_ecore_imf_context_prediction_allow_get.c
-utc_ecore_imf_context_autocapital_type_set.c
-utc_ecore_imf_context_autocapital_type_get.c
-utc_ecore_imf_context_client_window_get.c
-utc_ecore_imf_context_client_window_set.c
-utc_ecore_imf_context_client_canvas_get.c
-utc_ecore_imf_context_client_canvas_set.c
+utc_ecore_imf_context_prediction_allow_get_set.c
+utc_ecore_imf_context_autocapital_type_get_set.c
+utc_ecore_imf_context_client_window_get_set.c
+utc_ecore_imf_context_client_canvas_get_set.c
 utc_ecore_imf_context_use_preedit_set.c
 utc_ecore_imf_context_control_panel_show.c
 utc_ecore_imf_context_control_panel_hide.c
 utc_ecore_imf_context_candidate_panel_geometry_get.c
-utc_ecore_imf_context_input_panel_imdata_set.c
-utc_ecore_imf_context_input_panel_imdata_get.c
+utc_ecore_imf_context_input_panel_imdata_get_set.c
 utc_ecore_imf_context_input_panel_language_locale_get.c
-utc_ecore_imf_context_input_panel_language_get.c
-utc_ecore_imf_context_input_panel_language_set.c
-utc_ecore_imf_context_input_panel_layout_set.c
-utc_ecore_imf_context_input_panel_layout_get.c
-utc_ecore_imf_context_input_panel_layout_variation_set.c
-utc_ecore_imf_context_input_panel_layout_variation_get.c
+utc_ecore_imf_context_input_panel_language_get_set.c
+utc_ecore_imf_context_input_panel_layout_get_set.c
+utc_ecore_imf_context_input_panel_layout_variation_get_set.c
 utc_ecore_imf_context_input_panel_event_callback_add.c
 utc_ecore_imf_context_input_panel_event_callback_del.c
 utc_ecore_imf_context_input_panel_event_callback_call.c
 utc_ecore_imf_context_input_panel_event_callback_clear.c
 utc_ecore_imf_context_input_panel_state_get.c
-utc_ecore_imf_context_input_panel_enabled_get.c
-utc_ecore_imf_context_input_panel_enabled_set.c
+utc_ecore_imf_context_input_panel_enabled_get_set.c
 utc_ecore_imf_context_input_panel_geometry_get.c
 utc_ecore_imf_context_input_panel_show.c
 utc_ecore_imf_context_input_panel_hide.c
-utc_ecore_imf_context_input_panel_show_on_demand_set.c
-utc_ecore_imf_context_input_panel_show_on_demand_get.c
-utc_ecore_imf_context_input_panel_return_key_type_set.c
-utc_ecore_imf_context_input_panel_return_key_type_get.c
-utc_ecore_imf_context_input_panel_return_key_disabled_set.c
-utc_ecore_imf_context_input_panel_return_key_disabled_get.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_set.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_get.c
-utc_ecore_imf_context_input_mode_set.c
-utc_ecore_imf_context_input_mode_get.c
-utc_ecore_imf_context_input_hint_set.c
-utc_ecore_imf_context_input_hint_get.c
-utc_ecore_imf_context_bidi_direction_set.c
-utc_ecore_imf_context_bidi_direction_get.c
+utc_ecore_imf_context_input_panel_show_on_demand_get_set.c
+utc_ecore_imf_context_input_panel_return_key_type_get_set.c
+utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c
+utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c
+utc_ecore_imf_context_input_mode_get_set.c
+utc_ecore_imf_context_input_hint_get_set.c
+utc_ecore_imf_context_bidi_direction_get_set.c
index 9ad15f6eec072adf697423924bda2e6b688c9d38..8f6be9e3e272e393a3019fcb88d91da6957a4193 100644 (file)
@@ -7,8 +7,7 @@ utc_ecore_imf_context_show.c
 utc_ecore_imf_context_hide.c
 utc_ecore_imf_context_info_get.c
 utc_ecore_imf_context_info_by_id_get.c
-utc_ecore_imf_context_data_set.c
-utc_ecore_imf_context_data_get.c
+utc_ecore_imf_context_data_get_set.c
 utc_ecore_imf_context_focus_in.c
 utc_ecore_imf_context_focus_out.c
 utc_ecore_imf_context_filter_event.c
@@ -16,8 +15,6 @@ utc_ecore_imf_context_available_ids_get.c
 utc_ecore_imf_context_available_ids_by_canvas_type_get.c
 utc_ecore_imf_context_default_id_get.c
 utc_ecore_imf_context_default_id_by_canvas_type_get.c
-utc_ecore_imf_context_retrieve_selection_callback_set.c
-utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_surrounding_get.c
 utc_ecore_imf_context_commit_event_add.c
 utc_ecore_imf_context_event_callback_add.c
@@ -25,54 +22,40 @@ utc_ecore_imf_context_event_callback_call.c
 utc_ecore_imf_context_event_callback_del.c
 utc_ecore_imf_context_cursor_location_set.c
 utc_ecore_imf_context_cursor_position_set.c
+utc_ecore_imf_context_retrieve_selection_callback_set.c
+utc_ecore_imf_context_retrieve_surrounding_callback_set.c
 utc_ecore_imf_context_delete_surrounding_event_add.c
 utc_ecore_imf_context_preedit_changed_event_add.c
 utc_ecore_imf_context_preedit_end_event_add.c
 utc_ecore_imf_context_preedit_start_event_add.c
 utc_ecore_imf_context_preedit_string_with_attributes_get.c
 utc_ecore_imf_context_preedit_string_get.c
-utc_ecore_imf_context_prediction_allow_set.c
-utc_ecore_imf_context_prediction_allow_get.c
-utc_ecore_imf_context_autocapital_type_set.c
-utc_ecore_imf_context_autocapital_type_get.c
-utc_ecore_imf_context_client_window_get.c
-utc_ecore_imf_context_client_window_set.c
-utc_ecore_imf_context_client_canvas_get.c
-utc_ecore_imf_context_client_canvas_set.c
+utc_ecore_imf_context_prediction_allow_get_set.c
+utc_ecore_imf_context_autocapital_type_get_set.c
+utc_ecore_imf_context_client_window_get_set.c
+utc_ecore_imf_context_client_canvas_get_set.c
 utc_ecore_imf_context_use_preedit_set.c
 utc_ecore_imf_context_control_panel_show.c
 utc_ecore_imf_context_control_panel_hide.c
 utc_ecore_imf_context_candidate_panel_geometry_get.c
-utc_ecore_imf_context_input_panel_imdata_set.c
-utc_ecore_imf_context_input_panel_imdata_get.c
+utc_ecore_imf_context_input_panel_imdata_get_set.c
 utc_ecore_imf_context_input_panel_language_locale_get.c
-utc_ecore_imf_context_input_panel_language_get.c
-utc_ecore_imf_context_input_panel_language_set.c
-utc_ecore_imf_context_input_panel_layout_set.c
-utc_ecore_imf_context_input_panel_layout_get.c
-utc_ecore_imf_context_input_panel_layout_variation_set.c
-utc_ecore_imf_context_input_panel_layout_variation_get.c
+utc_ecore_imf_context_input_panel_language_get_set.c
+utc_ecore_imf_context_input_panel_layout_get_set.c
+utc_ecore_imf_context_input_panel_layout_variation_get_set.c
 utc_ecore_imf_context_input_panel_event_callback_add.c
 utc_ecore_imf_context_input_panel_event_callback_del.c
 utc_ecore_imf_context_input_panel_event_callback_call.c
 utc_ecore_imf_context_input_panel_event_callback_clear.c
 utc_ecore_imf_context_input_panel_state_get.c
-utc_ecore_imf_context_input_panel_enabled_get.c
-utc_ecore_imf_context_input_panel_enabled_set.c
+utc_ecore_imf_context_input_panel_enabled_get_set.c
 utc_ecore_imf_context_input_panel_geometry_get.c
 utc_ecore_imf_context_input_panel_show.c
 utc_ecore_imf_context_input_panel_hide.c
-utc_ecore_imf_context_input_panel_show_on_demand_set.c
-utc_ecore_imf_context_input_panel_show_on_demand_get.c
-utc_ecore_imf_context_input_panel_return_key_type_set.c
-utc_ecore_imf_context_input_panel_return_key_type_get.c
-utc_ecore_imf_context_input_panel_return_key_disabled_set.c
-utc_ecore_imf_context_input_panel_return_key_disabled_get.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_set.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_get.c
-utc_ecore_imf_context_input_mode_set.c
-utc_ecore_imf_context_input_mode_get.c
-utc_ecore_imf_context_input_hint_set.c
-utc_ecore_imf_context_input_hint_get.c
-utc_ecore_imf_context_bidi_direction_set.c
-utc_ecore_imf_context_bidi_direction_get.c
+utc_ecore_imf_context_input_panel_show_on_demand_get_set.c
+utc_ecore_imf_context_input_panel_return_key_type_get_set.c
+utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c
+utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c
+utc_ecore_imf_context_input_mode_get_set.c
+utc_ecore_imf_context_input_hint_get_set.c
+utc_ecore_imf_context_bidi_direction_get_set.c
index dc4a2aba5cf93efd05e878ebafe8fdb50c9f8321..8f6be9e3e272e393a3019fcb88d91da6957a4193 100644 (file)
@@ -7,8 +7,7 @@ utc_ecore_imf_context_show.c
 utc_ecore_imf_context_hide.c
 utc_ecore_imf_context_info_get.c
 utc_ecore_imf_context_info_by_id_get.c
-utc_ecore_imf_context_data_set.c
-utc_ecore_imf_context_data_get.c
+utc_ecore_imf_context_data_get_set.c
 utc_ecore_imf_context_focus_in.c
 utc_ecore_imf_context_focus_out.c
 utc_ecore_imf_context_filter_event.c
@@ -31,48 +30,32 @@ utc_ecore_imf_context_preedit_end_event_add.c
 utc_ecore_imf_context_preedit_start_event_add.c
 utc_ecore_imf_context_preedit_string_with_attributes_get.c
 utc_ecore_imf_context_preedit_string_get.c
-utc_ecore_imf_context_prediction_allow_set.c
-utc_ecore_imf_context_prediction_allow_get.c
-utc_ecore_imf_context_autocapital_type_set.c
-utc_ecore_imf_context_autocapital_type_get.c
-utc_ecore_imf_context_client_window_get.c
-utc_ecore_imf_context_client_window_set.c
-utc_ecore_imf_context_client_canvas_get.c
-utc_ecore_imf_context_client_canvas_set.c
+utc_ecore_imf_context_prediction_allow_get_set.c
+utc_ecore_imf_context_autocapital_type_get_set.c
+utc_ecore_imf_context_client_window_get_set.c
+utc_ecore_imf_context_client_canvas_get_set.c
 utc_ecore_imf_context_use_preedit_set.c
 utc_ecore_imf_context_control_panel_show.c
 utc_ecore_imf_context_control_panel_hide.c
 utc_ecore_imf_context_candidate_panel_geometry_get.c
-utc_ecore_imf_context_input_panel_imdata_set.c
-utc_ecore_imf_context_input_panel_imdata_get.c
+utc_ecore_imf_context_input_panel_imdata_get_set.c
 utc_ecore_imf_context_input_panel_language_locale_get.c
-utc_ecore_imf_context_input_panel_language_get.c
-utc_ecore_imf_context_input_panel_language_set.c
-utc_ecore_imf_context_input_panel_layout_set.c
-utc_ecore_imf_context_input_panel_layout_get.c
-utc_ecore_imf_context_input_panel_layout_variation_set.c
-utc_ecore_imf_context_input_panel_layout_variation_get.c
+utc_ecore_imf_context_input_panel_language_get_set.c
+utc_ecore_imf_context_input_panel_layout_get_set.c
+utc_ecore_imf_context_input_panel_layout_variation_get_set.c
 utc_ecore_imf_context_input_panel_event_callback_add.c
 utc_ecore_imf_context_input_panel_event_callback_del.c
 utc_ecore_imf_context_input_panel_event_callback_call.c
 utc_ecore_imf_context_input_panel_event_callback_clear.c
 utc_ecore_imf_context_input_panel_state_get.c
-utc_ecore_imf_context_input_panel_enabled_get.c
-utc_ecore_imf_context_input_panel_enabled_set.c
+utc_ecore_imf_context_input_panel_enabled_get_set.c
 utc_ecore_imf_context_input_panel_geometry_get.c
 utc_ecore_imf_context_input_panel_show.c
 utc_ecore_imf_context_input_panel_hide.c
-utc_ecore_imf_context_input_panel_show_on_demand_set.c
-utc_ecore_imf_context_input_panel_show_on_demand_get.c
-utc_ecore_imf_context_input_panel_return_key_type_set.c
-utc_ecore_imf_context_input_panel_return_key_type_get.c
-utc_ecore_imf_context_input_panel_return_key_disabled_set.c
-utc_ecore_imf_context_input_panel_return_key_disabled_get.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_set.c
-utc_ecore_imf_context_input_panel_caps_lock_mode_get.c
-utc_ecore_imf_context_input_mode_set.c
-utc_ecore_imf_context_input_mode_get.c
-utc_ecore_imf_context_input_hint_set.c
-utc_ecore_imf_context_input_hint_get.c
-utc_ecore_imf_context_bidi_direction_set.c
-utc_ecore_imf_context_bidi_direction_get.c
+utc_ecore_imf_context_input_panel_show_on_demand_get_set.c
+utc_ecore_imf_context_input_panel_return_key_type_get_set.c
+utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c
+utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c
+utc_ecore_imf_context_input_mode_get_set.c
+utc_ecore_imf_context_input_hint_get_set.c
+utc_ecore_imf_context_bidi_direction_get_set.c
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_get.c
deleted file mode 100644 (file)
index 483cf5d..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_autocapital_type_get ecore_imf_context_autocapital_type_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_autocapital_type_get
- * @{
- * @objective Positive test case checks that the tested function correctly gets autocapital type being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with ECORE_IMF_AUTOCAPITAL_TYPE_WORD.
- * @step 4 Get current autocapital type. It must be equal to ECORE_IMF_AUTOCAPITAL_TYPE_WORD.
- * @step 5 Call the tested function with ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE,.
- * @step 6 Get current autocapital type. It must be equal to ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE.
- *
- * @passcondition
- * In all cases the autocapital type's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_autocapital_type_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_Autocapital_Type type1, type2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_autocapital_type_set(ctx, ECORE_IMF_AUTOCAPITAL_TYPE_WORD);
-   type1 = ecore_imf_context_autocapital_type_get(ctx);
-   ecore_imf_context_autocapital_type_set(ctx, ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE);
-   type2 = ecore_imf_context_autocapital_type_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((type1 == ECORE_IMF_AUTOCAPITAL_TYPE_WORD) && (type2 == ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_autocapital_type_get
- * @{
- * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call tested function with NULL as first argument.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_autocapital_type_get_n)
-{
-   Ecore_IMF_Input_Mode mode;
-
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Autocapital_Type type1 = ecore_imf_context_autocapital_type_get(NULL);
-
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_autocapital_type_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_autocapital_type_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_autocapital_type_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_autocapital_type_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_get_set.c
new file mode 100644 (file)
index 0000000..691e34b
--- /dev/null
@@ -0,0 +1,211 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_autocapital_type_get ecore_imf_context_autocapital_type_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_autocapital_type_get
+ * @{
+ * @objective Positive test case checks that the tested function correctly gets autocapital type being used by the given Ecore_Input_Context object.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object;
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call the tested function with ECORE_IMF_AUTOCAPITAL_TYPE_WORD.
+ * @step 4 Get current autocapital type. It must be equal to ECORE_IMF_AUTOCAPITAL_TYPE_WORD.
+ * @step 5 Call the tested function with ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE,.
+ * @step 6 Get current autocapital type. It must be equal to ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE.
+ *
+ * @passcondition
+ * In all cases the autocapital type's value returned by getter must be equal to the value which was set by tested function.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_autocapital_type_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Ecore_IMF_Autocapital_Type type1, type2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_autocapital_type_set(ctx, ECORE_IMF_AUTOCAPITAL_TYPE_WORD);
+   type1 = ecore_imf_context_autocapital_type_get(ctx);
+   ecore_imf_context_autocapital_type_set(ctx, ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE);
+   type2 = ecore_imf_context_autocapital_type_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((type1 == ECORE_IMF_AUTOCAPITAL_TYPE_WORD) && (type2 == ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_autocapital_type_get
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call tested function with NULL as first argument.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_autocapital_type_get_n)
+{
+   Ecore_IMF_Input_Mode mode;
+
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Autocapital_Type type1 = ecore_imf_context_autocapital_type_get(NULL);
+
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_autocapital_type_set
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li autocapital type (it will be replaced by -100).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call tested function with NULL as first argument.
+ * @step 4 Call tested function with -100 as second argument.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_autocapital_type_set_n)
+{
+   Ecore_IMF_Input_Mode mode;
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+
+   ecore_imf_context_autocapital_type_set(NULL, ECORE_IMF_AUTOCAPITAL_TYPE_WORD);
+   ecore_imf_context_autocapital_type_set(ctx, -100);
+
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_autocapital_type_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_autocapital_type_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_autocapital_type_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_autocapital_type_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_autocapital_type_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_autocapital_type_set.c
deleted file mode 100644 (file)
index 1943aaa..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_autocapital_type_set ecore_imf_context_autocapital_type_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_autocapital_type_set
- * @{
- * @objective Positive test case checks that the tested function correctly sets autocapital type being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li autocapital_type (Ecore_IMF_Autocapital_Type).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with ECORE_IMF_AUTOCAPITAL_TYPE_WORD.
- * @step 4 Get current autocapital type. It must be equal to ECORE_IMF_AUTOCAPITAL_TYPE_WORD.
- * @step 5 Call the tested function with ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE,.
- * @step 6 Get current autocapital type. It must be equal to ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE.
- *
- * @passcondition
- * In all cases the autocapital type's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_autocapital_type_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_Autocapital_Type type1, type2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_autocapital_type_set(ctx, ECORE_IMF_AUTOCAPITAL_TYPE_WORD);
-   type1 = ecore_imf_context_autocapital_type_get(ctx);
-   ecore_imf_context_autocapital_type_set(ctx, ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE);
-   type2 = ecore_imf_context_autocapital_type_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((type1 == ECORE_IMF_AUTOCAPITAL_TYPE_WORD) && (type2 == ECORE_IMF_AUTOCAPITAL_TYPE_SENTENCE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_autocapital_type_set
- * @{
- * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li autocapital type (it will be replaced by -100).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call tested function with NULL as first argument.
- * @step 4 Call tested function with -100 as second argument.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_autocapital_type_set_n)
-{
-   Ecore_IMF_Input_Mode mode;
-
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-
-   ecore_imf_context_autocapital_type_set(NULL, ECORE_IMF_AUTOCAPITAL_TYPE_WORD);
-   ecore_imf_context_autocapital_type_set(ctx, -100);
-
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_autocapital_type_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_autocapital_type_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_autocapital_type_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_autocapital_type_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_get.c
deleted file mode 100644 (file)
index 360abe4..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_bidi_direction_get ecore_imf_context_bidi_direction_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_bidi_direction_get
- * @{
- * @objective Positive test case checks that the tested function correctly gets bidi direction being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with ECORE_IMF_BIDI_DIRECTION_LTR as input hint.
- * @step 4 Get current input hint. It must be equal to ECORE_IMF_BIDI_DIRECTION_LTR.
- * @step 5 Call the tested function with ECORE_IMF_BIDI_DIRECTION_RTL as input hint.
- * @step 6 Get current input hint. It must be equal to ECORE_IMF_BIDI_DIRECTION_RTL.
- *
- * @passcondition
- * In all cases the bidi direction's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_bidi_direction_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_BiDi_Direction direction1, direction2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_bidi_direction_set(ctx, ECORE_IMF_BIDI_DIRECTION_LTR);
-   direction1 = ecore_imf_context_bidi_direction_get(ctx);
-   ecore_imf_context_bidi_direction_set(ctx, ECORE_IMF_BIDI_DIRECTION_RTL);
-   direction2 = ecore_imf_context_bidi_direction_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((direction1 == ECORE_IMF_BIDI_DIRECTION_LTR) && (direction2 == ECORE_IMF_BIDI_DIRECTION_RTL));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_bidi_direction_get
- * @{
- * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call tested function with NULL as first argument.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_bidi_direction_get_n)
-{
-   Ecore_IMF_BiDi_Direction direction;
-
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-
-   direction = ecore_imf_context_bidi_direction_get(NULL);
-
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_bidi_direction_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_bidi_direction_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_bidi_direction_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_bidi_direction_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_get_set.c
new file mode 100644 (file)
index 0000000..06e97de
--- /dev/null
@@ -0,0 +1,170 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_bidi_direction_get ecore_imf_context_bidi_direction_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_bidi_direction_get
+ * @{
+ * @objective Positive test case checks that the tested function correctly gets bidi direction being used by the given Ecore_Input_Context object.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object;
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call the tested function with ECORE_IMF_BIDI_DIRECTION_LTR as input hint.
+ * @step 4 Get current input hint. It must be equal to ECORE_IMF_BIDI_DIRECTION_LTR.
+ * @step 5 Call the tested function with ECORE_IMF_BIDI_DIRECTION_RTL as input hint.
+ * @step 6 Get current input hint. It must be equal to ECORE_IMF_BIDI_DIRECTION_RTL.
+ *
+ * @passcondition
+ * In all cases the bidi direction's value returned by getter must be equal to the value which was set by tested function.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_bidi_direction_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Ecore_IMF_BiDi_Direction direction1, direction2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_bidi_direction_set(ctx, ECORE_IMF_BIDI_DIRECTION_LTR);
+   direction1 = ecore_imf_context_bidi_direction_get(ctx);
+   ecore_imf_context_bidi_direction_set(ctx, ECORE_IMF_BIDI_DIRECTION_RTL);
+   direction2 = ecore_imf_context_bidi_direction_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((direction1 == ECORE_IMF_BIDI_DIRECTION_LTR) && (direction2 == ECORE_IMF_BIDI_DIRECTION_RTL));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_bidi_direction_get
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call tested function with NULL as first argument.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_bidi_direction_get_n)
+{
+   Ecore_IMF_BiDi_Direction direction;
+
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+
+   direction = ecore_imf_context_bidi_direction_get(NULL);
+
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_bidi_direction_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_bidi_direction_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_bidi_direction_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_bidi_direction_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_bidi_direction_set.c
deleted file mode 100644 (file)
index 56bc0db..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_bidi_direction_set ecore_imf_context_bidi_direction_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_bidi_direction_set
- * @{
- * @objective Positive test case checks that the tested function correctly sets bidi direction being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li input hint (ECORE_IMF_INPUT_HINT_AUTO_COMPLETE or ECORE_IMF_INPUT_HINT_SENSITIVE_DATA).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with ECORE_IMF_BIDI_DIRECTION_LTR as input hint.
- * @step 4 Get current input hint. It must be equal to ECORE_IMF_BIDI_DIRECTION_LTR.
- * @step 5 Call the tested function with ECORE_IMF_BIDI_DIRECTION_RTL as input hint.
- * @step 6 Get current input hint. It must be equal to ECORE_IMF_BIDI_DIRECTION_RTL.
- *
- * @passcondition
- * In all cases the bidi direction's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_bidi_direction_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_BiDi_Direction direction1, direction2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_bidi_direction_set(ctx, ECORE_IMF_BIDI_DIRECTION_LTR);
-   direction1 = ecore_imf_context_bidi_direction_get(ctx);
-   ecore_imf_context_bidi_direction_set(ctx, ECORE_IMF_BIDI_DIRECTION_RTL);
-   direction2 = ecore_imf_context_bidi_direction_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((direction1 == ECORE_IMF_BIDI_DIRECTION_LTR) && (direction2 == ECORE_IMF_BIDI_DIRECTION_RTL));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_bidi_direction_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_bidi_direction_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_bidi_direction_set_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_get.c
deleted file mode 100644 (file)
index 021009f..0000000
+++ /dev/null
@@ -1,205 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define IMF_CONTEXT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Evas *ee = NULL;
-static Evas *canvas = NULL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_client_canvas_get ecore_imf_context_client_canvas_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_evas_init() for the Ecore_Evas library initialization.
- * @step 3 Call ecore_imf_init() for the Ecore_Imf library initialization.
- * @step 4 Create some Ecore_Evas object named ee.
- * @step 5 Get canvas (Evas object) of created Ecore_Evas object.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_evas_init() > 0)
-          {
-             if (ecore_imf_init() > 0)
-               {
-                  ee = ecore_evas_buffer_new(100, 45);
-                  if (ee != NULL)
-                    {
-                       canvas = ecore_evas_get(ee);
-                       if (canvas != NULL)
-                         {
-                            startup_status = EINA_TRUE;
-                         }
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (ee != NULL)
-     {
-        ecore_evas_free(ee);
-     }
-   ecore_imf_shutdown();
-   ecore_evas_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   IMF_CONTEXT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class cl = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&cl);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_client_canvas_get
- * @{
- * @objective Positive test case checks that the canvas of given Ecore_IMF_Context object is get correctly.
- * @n Input Data: given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set window canvas using the given Evas.
- * @step 4 Check that this canvas was set successfully.
- *
- * @passcondition
- * Canvas retrieved by ecore_imf_context_client_canvas_get() must be same to canvas which was set. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_canvas_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_client_canvas_set(ctx, canvas);
-   if (ecore_imf_context_client_canvas_get(ctx) == canvas)
-     {
-        ecore_imf_context_client_canvas_set(ctx, NULL);
-        if (ecore_imf_context_client_canvas_get(ctx) == NULL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_client_canvas_get
- * @{
- * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
- * @n Input Data; given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * NULL must be returned, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_canvas_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ok = (UNITEST_FUNC_NEG_RET(NULL, ecore_imf_context_client_canvas_get, ctx) == TEST_PASS ? EINA_TRUE : EINA_FALSE);
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_client_canvas_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_client_canvas_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_canvas_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_canvas_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_get_set.c
new file mode 100644 (file)
index 0000000..7aec862
--- /dev/null
@@ -0,0 +1,237 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define IMF_CONTEXT_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_Evas *ee = NULL;
+static Evas *canvas = NULL;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_client_canvas_set ecore_imf_context_client_canvas_set()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_evas_init() for the Ecore_Evas library initialization.
+ * @step 3 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ * @step 4 Create some Ecore_Evas object named ee.
+ * @step 5 Get canvas (Evas object) of created Ecore_Evas object.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_evas_init() > 0)
+          {
+             if (ecore_imf_init() > 0)
+               {
+                  ee = ecore_evas_buffer_new(100, 45);
+                  if (ee != NULL)
+                    {
+                       canvas = ecore_evas_get(ee);
+                       if (canvas != NULL)
+                         {
+                            startup_status = EINA_TRUE;
+                         }
+                    }
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   if (ee != NULL)
+     {
+        ecore_evas_free(ee);
+     }
+   ecore_imf_shutdown();
+   ecore_evas_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   IMF_CONTEXT_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+void client_canvas_set(Ecore_IMF_Context *ctx, void *canvas)
+{
+}
+static Ecore_IMF_Context_Class cl = { .add = add, .del = del, .client_canvas_set = client_canvas_set };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&cl);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_client_canvas_set
+ * @{
+ * @objective Positive test case checks that the canvas of given Ecore_IMF_Context object is set correctly.
+ * @n Input Data:
+ * @li given Ecore_IMF_Context object;
+ * @li given canvas.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set window canvas using the given Evas.
+ * @step 4 Check that this canvas was set successfully.
+ *
+ * @passcondition
+ * Canvas retrieved by ecore_imf_context_client_canvas_get() must be same to canvas which was set. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_client_canvas_set_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_client_canvas_set(ctx, canvas);
+   if (ecore_imf_context_client_canvas_get(ctx) == canvas)
+     {
+        ecore_imf_context_client_canvas_set(ctx, NULL);
+        if (ecore_imf_context_client_canvas_get(ctx) == NULL)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_client_canvas_set
+ * @{
+ * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
+ * @li given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
+ * @li given canvas.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 4 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_client_canvas_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(ecore_imf_context_client_canvas_set, ctx, canvas);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_client_canvas_get
+ * @{
+ * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
+ * @n Input Data; given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * NULL must be returned, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_client_canvas_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ok = (UNITEST_FUNC_NEG_RET(NULL, ecore_imf_context_client_canvas_get, ctx) == TEST_PASS ? EINA_TRUE : EINA_FALSE);
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_client_canvas_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_client_canvas_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_client_canvas_set_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_client_canvas_set_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_client_canvas_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_canvas_set.c
deleted file mode 100644 (file)
index fa072d5..0000000
+++ /dev/null
@@ -1,207 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define IMF_CONTEXT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Evas *ee = NULL;
-static Evas *canvas = NULL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_client_canvas_set ecore_imf_context_client_canvas_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_evas_init() for the Ecore_Evas library initialization.
- * @step 3 Call ecore_imf_init() for the Ecore_Imf library initialization.
- * @step 4 Create some Ecore_Evas object named ee.
- * @step 5 Get canvas (Evas object) of created Ecore_Evas object.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_evas_init() > 0)
-          {
-             if (ecore_imf_init() > 0)
-               {
-                  ee = ecore_evas_buffer_new(100, 45);
-                  if (ee != NULL)
-                    {
-                       canvas = ecore_evas_get(ee);
-                       if (canvas != NULL)
-                         {
-                            startup_status = EINA_TRUE;
-                         }
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (ee != NULL)
-     {
-        ecore_evas_free(ee);
-     }
-   ecore_imf_shutdown();
-   ecore_evas_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   IMF_CONTEXT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-void client_canvas_set(Ecore_IMF_Context *ctx, void *canvas)
-{
-}
-static Ecore_IMF_Context_Class cl = { .add = add, .del = del, .client_canvas_set = client_canvas_set };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&cl);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_client_canvas_set
- * @{
- * @objective Positive test case checks that the canvas of given Ecore_IMF_Context object is set correctly.
- * @n Input Data:
- * @li given Ecore_IMF_Context object;
- * @li given canvas.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set window canvas using the given Evas.
- * @step 4 Check that this canvas was set successfully.
- *
- * @passcondition
- * Canvas retrieved by ecore_imf_context_client_canvas_get() must be same to canvas which was set. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_canvas_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_client_canvas_set(ctx, canvas);
-   if (ecore_imf_context_client_canvas_get(ctx) == canvas)
-     {
-        ecore_imf_context_client_canvas_set(ctx, NULL);
-        if (ecore_imf_context_client_canvas_get(ctx) == NULL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_client_canvas_set
- * @{
- * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
- * @li given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
- * @li given canvas.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 4 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_canvas_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(ecore_imf_context_client_canvas_set, ctx, canvas);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_client_canvas_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_client_canvas_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_canvas_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_canvas_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_get.c
deleted file mode 100644 (file)
index 248652d..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Evas.h>
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define IMF_CONTEXT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_client_window_get ecore_imf_context_client_window_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_evas_init() for the Ecore_Evas library initialization.
- * @step 3 Call ecore_imf_init() for the Ecore_Imf library initialization.
- * @step 4 Create some Ecore_Evas object named ee.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_evas_init() > 0)
-          {
-             if (ecore_imf_init() > 0)
-               {
-                  ee = ecore_evas_buffer_new(100, 45);
-                  if (ee != NULL)
-                    {
-                       startup_status = EINA_TRUE;
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (ee != NULL)
-     {
-        ecore_evas_free(ee);
-     }
-   ecore_imf_shutdown();
-   ecore_evas_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   IMF_CONTEXT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void client_window_set(Ecore_IMF_Context *ctx, void *window)
-{
-}
-static Ecore_IMF_Context_Class cl = { .add = add, .del = del, .client_window_set = client_window_set };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&cl);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_client_window_get
- * @{
- * @objective Positive test case checks that the tested function gets the given Ecore_IMF_Context object for the given window (Ecore_Evas object).
- * @n Input Data:
- * @li given Ecore_IMF_Context object;
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context object using default ID.
- * @step 3 Set Ecore_Evas window for the created Ecore_IMF_Context object.
- * @step 4 Check that this window was set successfully.
- *
- * @passcondition
- * Window retrieved by ecore_imf_context_client_window_get() must be same to window which was set. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_window_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_client_window_set(ctx, ee);
-   if (ecore_imf_context_client_window_get(ctx) == ee)
-     {
-   ecore_imf_context_client_window_set(ctx, NULL);
-        if (ecore_imf_context_client_window_get(ctx) == NULL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_client_window_get
- * @{
- * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
- * @n Input Data: given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * NULL must be returned, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_window_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ok = (UNITEST_FUNC_NEG_RET(NULL, ecore_imf_context_client_window_get, ctx) == TEST_PASS ? EINA_TRUE : EINA_FALSE);
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_client_window_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_client_window_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_window_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_window_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_get_set.c
new file mode 100644 (file)
index 0000000..8ed228a
--- /dev/null
@@ -0,0 +1,230 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_Evas.h>
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define IMF_CONTEXT_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_Evas *ee = NULL;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_client_window_get ecore_imf_context_client_window_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_evas_init() for the Ecore_Evas library initialization.
+ * @step 3 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ * @step 4 Create some Ecore_Evas object named ee.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_evas_init() > 0)
+          {
+             if (ecore_imf_init() > 0)
+               {
+                  ee = ecore_evas_buffer_new(100, 45);
+                  if (ee != NULL)
+                    {
+                       startup_status = EINA_TRUE;
+                    }
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   if (ee != NULL)
+     {
+        ecore_evas_free(ee);
+     }
+   ecore_imf_shutdown();
+   ecore_evas_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   IMF_CONTEXT_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static void client_window_set(Ecore_IMF_Context *ctx, void *window)
+{
+}
+static Ecore_IMF_Context_Class cl = { .add = add, .del = del, .client_window_set = client_window_set };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&cl);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_client_window_get
+ * @{
+ * @objective Positive test case checks that the tested function gets the given Ecore_IMF_Context object for the given window (Ecore_Evas object).
+ * @n Input Data:
+ * @li given Ecore_IMF_Context object;
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context object using default ID.
+ * @step 3 Set Ecore_Evas window for the created Ecore_IMF_Context object.
+ * @step 4 Check that this window was set successfully.
+ *
+ * @passcondition
+ * Window retrieved by ecore_imf_context_client_window_get() must be same to window which was set. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_client_window_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_client_window_set(ctx, ee);
+   if (ecore_imf_context_client_window_get(ctx) == ee)
+     {
+   ecore_imf_context_client_window_set(ctx, NULL);
+        if (ecore_imf_context_client_window_get(ctx) == NULL)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_client_window_get
+ * @{
+ * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
+ * @n Input Data: given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * NULL must be returned, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_client_window_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ok = (UNITEST_FUNC_NEG_RET(NULL, ecore_imf_context_client_window_get, ctx) == TEST_PASS ? EINA_TRUE : EINA_FALSE);
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_client_window_set
+ * @{
+ * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
+ * @n Input Data:
+ * @li given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
+ * @li given canvas.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 4 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_client_window_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(ecore_imf_context_client_window_set, ctx, ee);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_client_window_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_client_window_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_client_window_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_client_window_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_client_window_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_client_window_set.c
deleted file mode 100644 (file)
index 222cde3..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Evas.h>
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define IMF_CONTEXT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_client_window_set ecore_imf_context_client_window_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_evas_init() for the Ecore_Evas library initialization.
- * @step 3 Call ecore_imf_init() for the Ecore_Imf library initialization.
- * @step 4 Create some Ecore_Evas object named ee.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_evas_init() > 0)
-          {
-             if (ecore_imf_init() > 0)
-               {
-                  ee = ecore_evas_buffer_new(100, 45);
-                  if (ee != NULL)
-                    {
-                       startup_status = EINA_TRUE;
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (ee != NULL)
-     {
-        ecore_evas_free(ee);
-     }
-   ecore_imf_shutdown();
-   ecore_evas_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   IMF_CONTEXT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void client_window_set(Ecore_IMF_Context *ctx, void *window)
-{
-}
-static Ecore_IMF_Context_Class cl = { .add = add, .del = del, .client_window_set = client_window_set };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&cl);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_client_window_set
- * @{
- * @objective Positive test case checks that the tested function sets the given Ecore_IMF_Context object for the given window (Ecore_Evas object).
- * @n Input Data:
- * @li given Ecore_IMF_Context object;
- * @li given Ecore_Evas object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context object using default ID.
- * @step 3 Set Ecore_Evas window for the created Ecore_IMF_Context object.
- * @step 4 Check that this window was set successfully.
- *
- * @passcondition
- * Window retrieved by ecore_imf_context_client_window_get() must be same to window which was set. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_window_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_client_window_set(ctx, ee);
-   if (ecore_imf_context_client_window_get(ctx) == ee)
-     {
-   ecore_imf_context_client_window_set(ctx, NULL);
-        if (ecore_imf_context_client_window_get(ctx) == NULL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_client_window_set
- * @{
- * @objective Negative test case checks situation if first argument (Ecore_IMF_Context object) is NULL.
- * @n Input Data:
- * @li given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
- * @li given canvas.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 4 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_client_window_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(IMF_CONTEXT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(ecore_imf_context_client_window_set, ctx, ee);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_client_window_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_client_window_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_window_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_client_window_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_get.c
deleted file mode 100644 (file)
index 50017ef..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_data_get ecore_imf_context_data_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup ecore_imf_context_data_get
- * @{
- * @objective Positive test case checks that the tested function retrieves data associated with the given Ecore_IMF_Context object.
- * @nInput Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object.
- * @step 3 Set context data.
- * @step 4 Get context data.
- * @step 5 Check if the set and returned data are the same.
- *
- * @passcondition
- * Set and returned data are the same, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_data_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context_Class imf_class;
-   int data = 123456;
-   int* ptr = NULL;
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   memset(&imf_class, 0, sizeof(imf_class));
-   ctx = ecore_imf_context_new(&imf_class);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_data_set(ctx, &data);
-   ptr = ecore_imf_context_data_get(ctx);
-   ecore_imf_context_del(ctx);
-   if (ptr != NULL)
-     {
-        if ((*ptr) == data)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_data_get
- * @{
- * @objective Negative test case checks situation if first argument is NULL.
- * @nInput Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object.
- * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return NULL, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_data_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context_Class imf_class;
-   Ecore_IMF_Context* ctx = NULL;
-   int data = 123456;
-
-   memset(&imf_class, 0, sizeof(imf_class));
-   ctx = ecore_imf_context_new (&imf_class);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_data_set(ctx, &data);
-   if (UNITEST_FUNC_NEG_RET(NULL, ecore_imf_context_data_get, ctx) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_data_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_data_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_data_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_data_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_get_set.c
new file mode 100644 (file)
index 0000000..ef7bb3a
--- /dev/null
@@ -0,0 +1,182 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_data_get ecore_imf_context_data_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup ecore_imf_context_data_get
+ * @{
+ * @objective Positive test case checks that the tested function retrieves data associated with the given Ecore_IMF_Context object.
+ * @nInput Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Add new Ecore_IMF_Context object.
+ * @step 3 Set context data.
+ * @step 4 Get context data.
+ * @step 5 Check if the set and returned data are the same.
+ *
+ * @passcondition
+ * Set and returned data are the same, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_data_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context_Class imf_class;
+   int data = 123456;
+   int* ptr = NULL;
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   memset(&imf_class, 0, sizeof(imf_class));
+   ctx = ecore_imf_context_new(&imf_class);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_data_set(ctx, &data);
+   ptr = ecore_imf_context_data_get(ctx);
+   ecore_imf_context_del(ctx);
+   if (ptr != NULL)
+     {
+        if ((*ptr) == data)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+
+   if (ok != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_data_get
+ * @{
+ * @objective Negative test case checks situation if first argument is NULL.
+ * @nInput Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Add new Ecore_IMF_Context object.
+ * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return NULL, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_data_get_n)
+{
+
+   Ecore_IMF_Context_Class imf_class;
+   Ecore_IMF_Context* ctx = NULL;
+   int data = 123456;
+
+   memset(&imf_class, 0, sizeof(imf_class));
+   ctx = ecore_imf_context_new (&imf_class);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_data_set(ctx, &data);
+   if (UNITEST_FUNC_NEG_RET(NULL, ecore_imf_context_data_get, ctx) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_data_set
+ * @{
+ * @objective Negative test case checks situation if all arguments became NULL in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li pointer to the data which must be associated with this Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Add new Ecore_IMF_Context object.
+ * @step 3 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_data_set_n)
+{
+
+   Ecore_IMF_Context_Class imf_class;
+   Ecore_IMF_Context* ctx = NULL;
+   int data = 123456;
+
+   memset(&imf_class, 0, sizeof(imf_class));
+   ctx = ecore_imf_context_new (&imf_class);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   UNITEST_FUNC_NEG(ecore_imf_context_data_set, ctx, &data);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_data_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_data_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_data_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_data_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_data_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_data_set.c
deleted file mode 100644 (file)
index ce51cb1..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_data_set ecore_imf_context_data_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup ecore_imf_context_data_set
- * @{
- * @objective Positive test case checks that the tested function correctly associates some data with the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li pointer to the data which must be associated with this Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object.
- * @step 3 Set context data.
- * @step 4 Get context data.
- * @step 5 Check if the set and returned data are the same.
- *
- * @passcondition
- * Set and returned data are the same, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_data_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context_Class imf_class;
-   int data = 123456;
-   int* ptr = NULL;
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   memset(&imf_class, 0, sizeof(imf_class));
-   ctx = ecore_imf_context_new(&imf_class);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_data_set(ctx, &data);
-   ptr = ecore_imf_context_data_get(ctx);
-   ecore_imf_context_del(ctx);
-   if (ptr != NULL)
-     {
-        if ((*ptr) == data)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_data_set
- * @{
- * @objective Negative test case checks situation if all arguments became NULL in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li pointer to the data which must be associated with this Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object.
- * @step 3 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_data_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context_Class imf_class;
-   Ecore_IMF_Context* ctx = NULL;
-   int data = 123456;
-
-   memset(&imf_class, 0, sizeof(imf_class));
-   ctx = ecore_imf_context_new (&imf_class);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   UNITEST_FUNC_NEG(ecore_imf_context_data_set, ctx, &data);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_data_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_data_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_data_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_data_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_get.c
deleted file mode 100644 (file)
index 467712f..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_hint_get ecore_imf_context_input_hint_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_hint_get
- * @{
- * @objective Positive test case checks that the tested function correctly gets input hint being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li input hint (ECORE_IMF_INPUT_HINT_AUTO_COMPLETE or ECORE_IMF_INPUT_HINT_SENSITIVE_DATA).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with ECORE_IMF_INPUT_HINT_AUTO_COMPLETE as input hint.
- * @step 4 Get current input hint. It must be equal to ECORE_IMF_INPUT_HINT_AUTO_COMPLETE.
- * @step 5 Call the tested function with ECORE_IMF_INPUT_HINT_SENSITIVE_DATA as input hint.
- * @step 6 Get current input hint. It must be equal to ECORE_IMF_INPUT_HINT_SENSITIVE_DATA.
- *
- * @passcondition
- * In all cases the input hint's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_hint_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_Input_Hints hint1, hint2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_hint_set(ctx, ECORE_IMF_INPUT_HINT_AUTO_COMPLETE);
-   hint1 = ecore_imf_context_input_hint_get(ctx);
-   ecore_imf_context_input_hint_set(ctx, ECORE_IMF_INPUT_HINT_SENSITIVE_DATA);
-   hint2 = ecore_imf_context_input_hint_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((hint1 == ECORE_IMF_INPUT_HINT_AUTO_COMPLETE) && (hint2 == ECORE_IMF_INPUT_HINT_SENSITIVE_DATA));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_hint_get
- * @{
- * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call tested function with NULL as first argument.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_hint_get_n)
-{
-   Ecore_IMF_Input_Hints hint;
-
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-
-   hint = ecore_imf_context_input_hint_get(NULL);
-
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_hint_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_hint_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_hint_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_hint_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_get_set.c
new file mode 100644 (file)
index 0000000..7ef655b
--- /dev/null
@@ -0,0 +1,175 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_hint_get ecore_imf_context_input_hint_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_hint_get
+ * @{
+ * @objective Positive test case checks that the tested function correctly gets input hint being used by the given Ecore_Input_Context object.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object;
+ * @li input hint (ECORE_IMF_INPUT_HINT_AUTO_COMPLETE or ECORE_IMF_INPUT_HINT_SENSITIVE_DATA).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call the tested function with ECORE_IMF_INPUT_HINT_AUTO_COMPLETE as input hint.
+ * @step 4 Get current input hint. It must be equal to ECORE_IMF_INPUT_HINT_AUTO_COMPLETE.
+ * @step 5 Call the tested function with ECORE_IMF_INPUT_HINT_SENSITIVE_DATA as input hint.
+ * @step 6 Get current input hint. It must be equal to ECORE_IMF_INPUT_HINT_SENSITIVE_DATA.
+ *
+ * @passcondition
+ * In all cases the input hint's value returned by getter must be equal to the value which was set by tested function.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_hint_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Ecore_IMF_Input_Hints hint1, hint2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_hint_set(ctx, ECORE_IMF_INPUT_HINT_AUTO_COMPLETE);
+   hint1 = ecore_imf_context_input_hint_get(ctx);
+   ecore_imf_context_input_hint_set(ctx, ECORE_IMF_INPUT_HINT_SENSITIVE_DATA);
+   hint2 = ecore_imf_context_input_hint_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((hint1 == ECORE_IMF_INPUT_HINT_AUTO_COMPLETE) && (hint2 == ECORE_IMF_INPUT_HINT_SENSITIVE_DATA));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_hint_get
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call tested function with NULL as first argument.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_hint_get_n)
+{
+   Ecore_IMF_Input_Hints hint;
+
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+
+   hint = ecore_imf_context_input_hint_get(NULL);
+
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_hint_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_hint_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_hint_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_hint_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_hint_set.c
deleted file mode 100644 (file)
index 2064484..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_hint_set ecore_imf_context_input_hint_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_hint_set
- * @{
- * @objective Positive test case checks that the tested function correctly sets input hint being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li input hint (ECORE_IMF_INPUT_HINT_AUTO_COMPLETE or ECORE_IMF_INPUT_HINT_SENSITIVE_DATA).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with ECORE_IMF_INPUT_HINT_AUTO_COMPLETE as input hint.
- * @step 4 Get current input hint. It must be equal to ECORE_IMF_INPUT_HINT_AUTO_COMPLETE.
- * @step 5 Call the tested function with ECORE_IMF_INPUT_HINT_SENSITIVE_DATA as input hint.
- * @step 6 Get current input hint. It must be equal to ECORE_IMF_INPUT_HINT_SENSITIVE_DATA.
- *
- * @passcondition
- * In all cases the input hint's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_hint_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_Input_Hints hint1, hint2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_hint_set(ctx, ECORE_IMF_INPUT_HINT_AUTO_COMPLETE);
-   hint1 = ecore_imf_context_input_hint_get(ctx);
-   ecore_imf_context_input_hint_set(ctx, ECORE_IMF_INPUT_HINT_SENSITIVE_DATA);
-   hint2 = ecore_imf_context_input_hint_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((hint1 == ECORE_IMF_INPUT_HINT_AUTO_COMPLETE) && (hint2 == ECORE_IMF_INPUT_HINT_SENSITIVE_DATA));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_hint_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_hint_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_hint_set_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_get.c
deleted file mode 100644 (file)
index 801c681..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_mode_get ecore_imf_context_input_mode_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_mode_get
- * @{
- * @objective Positive test case checks that the tested function correctly retrieves input mode being used by the given Ecore_Input_Context object.
- * @n Input Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set new input mode. It must be equal to ECORE_IMF_INPUT_MODE_SPECIAL.
- * @step 4 Call the tested function for getting current input mode. It must be equal to ECORE_IMF_INPUT_MODE_SPECIAL.
- * @step 5 Set new input mode. It must be equal to ECORE_IMF_INPUT_MODE_FULL.
- * @step 6 Call the tested function for getting current input mode. It must be equal to ECORE_IMF_INPUT_MODE_FULL.
- *
- * @passcondition
- * In all cases the input mode's value returned by tested function must be equal to the value which was set.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_mode_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_Input_Mode mode1, mode2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_mode_set(ctx, ECORE_IMF_INPUT_MODE_SPECIAL);
-   mode1 = ecore_imf_context_input_mode_get(ctx);
-   ecore_imf_context_input_mode_set(ctx, ECORE_IMF_INPUT_MODE_FULL);
-   mode2 = ecore_imf_context_input_mode_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((mode1 == ECORE_IMF_INPUT_MODE_SPECIAL) && (mode2 == ECORE_IMF_INPUT_MODE_FULL));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_mode_get
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return 0, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_mode_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   if (UNITEST_FUNC_NEG_RET(0, ecore_imf_context_input_mode_get, ctx) == TEST_PASS)
-     {
-        ok = EINA_TRUE;
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_mode_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_mode_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_mode_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_mode_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_get_set.c
new file mode 100644 (file)
index 0000000..dd8274c
--- /dev/null
@@ -0,0 +1,173 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_mode_get ecore_imf_context_input_mode_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_mode_get
+ * @{
+ * @objective Positive test case checks that the tested function correctly retrieves input mode being used by the given Ecore_Input_Context object.
+ * @n Input Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set new input mode. It must be equal to ECORE_IMF_INPUT_MODE_SPECIAL.
+ * @step 4 Call the tested function for getting current input mode. It must be equal to ECORE_IMF_INPUT_MODE_SPECIAL.
+ * @step 5 Set new input mode. It must be equal to ECORE_IMF_INPUT_MODE_FULL.
+ * @step 6 Call the tested function for getting current input mode. It must be equal to ECORE_IMF_INPUT_MODE_FULL.
+ *
+ * @passcondition
+ * In all cases the input mode's value returned by tested function must be equal to the value which was set.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_mode_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Ecore_IMF_Input_Mode mode1, mode2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_mode_set(ctx, ECORE_IMF_INPUT_MODE_SPECIAL);
+   mode1 = ecore_imf_context_input_mode_get(ctx);
+   ecore_imf_context_input_mode_set(ctx, ECORE_IMF_INPUT_MODE_FULL);
+   mode2 = ecore_imf_context_input_mode_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((mode1 == ECORE_IMF_INPUT_MODE_SPECIAL) && (mode2 == ECORE_IMF_INPUT_MODE_FULL));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_mode_get
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return 0, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_mode_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   if (UNITEST_FUNC_NEG_RET(0, ecore_imf_context_input_mode_get, ctx) == TEST_PASS)
+     {
+        ok = EINA_TRUE;
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_mode_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_mode_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_mode_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_mode_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_mode_set.c
deleted file mode 100644 (file)
index e5286d0..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_mode_set ecore_imf_context_input_mode_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_mode_set
- * @{
- * @objective Positive test case checks that the tested function correctly sets input mode being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li input mode (ECORE_IMF_INPUT_MODE_SPECIAL or ECORE_IMF_INPUT_MODE_FULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with ECORE_IMF_INPUT_MODE_SPECIAL as input mode.
- * @step 4 Get current input mode. It must be equal to ECORE_IMF_INPUT_MODE_SPECIAL.
- * @step 5 Call the tested function with ECORE_IMF_INPUT_MODE_FULL as input mode.
- * @step 6 Get current input mode. It must be equal to ECORE_IMF_INPUT_MODE_FULL.
- *
- * @passcondition
- * In all cases the input mode's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_mode_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_Input_Mode mode1, mode2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_mode_set(ctx, ECORE_IMF_INPUT_MODE_SPECIAL);
-   mode1 = ecore_imf_context_input_mode_get(ctx);
-   ecore_imf_context_input_mode_set(ctx, ECORE_IMF_INPUT_MODE_FULL);
-   mode2 = ecore_imf_context_input_mode_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((mode1 == ECORE_IMF_INPUT_MODE_SPECIAL) && (mode2 == ECORE_IMF_INPUT_MODE_FULL));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_mode_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_mode_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_mode_set_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_get.c
deleted file mode 100644 (file)
index 00fcadb..0000000
+++ /dev/null
@@ -1,184 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_caps_lock_mode_get ecore_imf_context_input_panel_caps_lock_mode_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_caps_lock_mode_get
- * @{
- * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to enable caps lock automatically when the widget has focus.
- * @n Input Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call ecore_imf_context_input_panel_caps_lock_mode_set() with EINA_TRUE.
- * @step 4 Call the tested function for retrieving of current caps_lock_mode status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call ecore_imf_context_input_panel_caps_lock_mode_set() with EINA_FALSE.
- * @step 6 Call the tested function for retrieving of current caps_lock_mode status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the caps_lock_mode's value returned by tested function must be equal to the value which was set by setter.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_caps_lock_mode_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool caps_lock_mode_1, caps_lock_mode_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_caps_lock_mode_set(ctx, EINA_TRUE);
-   caps_lock_mode_1 = ecore_imf_context_input_panel_caps_lock_mode_get(ctx);
-   ecore_imf_context_input_panel_caps_lock_mode_set(ctx, EINA_FALSE);
-   caps_lock_mode_2 = ecore_imf_context_input_panel_caps_lock_mode_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((caps_lock_mode_1 == EINA_TRUE) && (caps_lock_mode_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_caps_lock_mode_get
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_caps_lock_mode_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_caps_lock_mode_get, ctx) == TEST_PASS)
-     {
-        ok = EINA_TRUE;
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_caps_lock_mode_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_caps_lock_mode_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_caps_lock_mode_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_caps_lock_mode_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_get_set.c
new file mode 100644 (file)
index 0000000..3d9d3b2
--- /dev/null
@@ -0,0 +1,214 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_caps_lock_mode_get ecore_imf_context_input_panel_caps_lock_mode_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_caps_lock_mode_get
+ * @{
+ * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to enable caps lock automatically when the widget has focus.
+ * @n Input Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call ecore_imf_context_input_panel_caps_lock_mode_set() with EINA_TRUE.
+ * @step 4 Call the tested function for retrieving of current caps_lock_mode status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
+ * @step 5 Call ecore_imf_context_input_panel_caps_lock_mode_set() with EINA_FALSE.
+ * @step 6 Call the tested function for retrieving of current caps_lock_mode status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
+ *
+ * @passcondition
+ * In all cases the caps_lock_mode's value returned by tested function must be equal to the value which was set by setter.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_caps_lock_mode_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool caps_lock_mode_1, caps_lock_mode_2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_caps_lock_mode_set(ctx, EINA_TRUE);
+   caps_lock_mode_1 = ecore_imf_context_input_panel_caps_lock_mode_get(ctx);
+   ecore_imf_context_input_panel_caps_lock_mode_set(ctx, EINA_FALSE);
+   caps_lock_mode_2 = ecore_imf_context_input_panel_caps_lock_mode_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((caps_lock_mode_1 == EINA_TRUE) && (caps_lock_mode_2 == EINA_FALSE));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_caps_lock_mode_get
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_caps_lock_mode_get_n)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_caps_lock_mode_get, ctx) == TEST_PASS)
+     {
+        ok = EINA_TRUE;
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_caps_lock_mode_set
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li EINA_FALSE.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_caps_lock_mode_set_n)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_caps_lock_mode_set, ctx, EINA_FALSE);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_caps_lock_mode_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_caps_lock_mode_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_caps_lock_mode_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_caps_lock_mode_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_caps_lock_mode_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_caps_lock_mode_set.c
deleted file mode 100644 (file)
index 8ef3b15..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_caps_lock_mode_set ecore_imf_context_input_panel_caps_lock_mode_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_caps_lock_mode_set
- * @{
- * @objective Positive test case checks that the tested funcion correctly sets whether the Input_Method_Context object should request to enable caps lock automatically when the widget has focus.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li EINA_TRUE or EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with EINA_TRUE.
- * @step 4 Get current caps_lock_mode status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call the tested function with EINA_FALSE.
- * @step 6 Get current caps_lock_mode status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the caps_lock_mode's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_caps_lock_mode_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool caps_lock_mode_1, caps_lock_mode_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_caps_lock_mode_set(ctx, EINA_TRUE);
-   caps_lock_mode_1 = ecore_imf_context_input_panel_caps_lock_mode_get(ctx);
-   ecore_imf_context_input_panel_caps_lock_mode_set(ctx, EINA_FALSE);
-   caps_lock_mode_2 = ecore_imf_context_input_panel_caps_lock_mode_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((caps_lock_mode_1 == EINA_TRUE) && (caps_lock_mode_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_caps_lock_mode_set
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_caps_lock_mode_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_caps_lock_mode_set, ctx, EINA_FALSE);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_caps_lock_mode_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_caps_lock_mode_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_caps_lock_mode_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_caps_lock_mode_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_get.c
deleted file mode 100644 (file)
index 933e517..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_enabled_get ecore_imf_context_input_panel_enabled_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_enabled_get
- * @{
- * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to show the input panel automatically when the widget has focus.
- * @n Input Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call ecore_imf_context_input_panel_enabled_set() with EINA_TRUE.
- * @step 4 Call the tested function for retrieving of current enabled status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call ecore_imf_context_input_panel_enabled_set() with EINA_FALSE.
- * @step 6 Call the tested function for retrieving of current enabled status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the enabled mode's value returned by tested function must be equal to the value which was set by setter.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_enabled_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool panel_enabled_1, panel_enabled_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_enabled_set(ctx, EINA_TRUE);
-   panel_enabled_1 = ecore_imf_context_input_panel_enabled_get(ctx);
-   ecore_imf_context_input_panel_enabled_set(ctx, EINA_FALSE);
-   panel_enabled_2 = ecore_imf_context_input_panel_enabled_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((panel_enabled_1 == EINA_TRUE) && (panel_enabled_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_enabled_get
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_enabled_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_enabled_get, ctx) == TEST_PASS)
-     {
-        ok = EINA_TRUE;
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_enabled_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_enabled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_enabled_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_enabled_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_get_set.c
new file mode 100644 (file)
index 0000000..0baa648
--- /dev/null
@@ -0,0 +1,210 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_enabled_get ecore_imf_context_input_panel_enabled_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_enabled_get
+ * @{
+ * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to show the input panel automatically when the widget has focus.
+ * @n Input Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call ecore_imf_context_input_panel_enabled_set() with EINA_TRUE.
+ * @step 4 Call the tested function for retrieving of current enabled status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
+ * @step 5 Call ecore_imf_context_input_panel_enabled_set() with EINA_FALSE.
+ * @step 6 Call the tested function for retrieving of current enabled status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
+ *
+ * @passcondition
+ * In all cases the enabled mode's value returned by tested function must be equal to the value which was set by setter.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_enabled_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool panel_enabled_1, panel_enabled_2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_enabled_set(ctx, EINA_TRUE);
+   panel_enabled_1 = ecore_imf_context_input_panel_enabled_get(ctx);
+   ecore_imf_context_input_panel_enabled_set(ctx, EINA_FALSE);
+   panel_enabled_2 = ecore_imf_context_input_panel_enabled_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((panel_enabled_1 == EINA_TRUE) && (panel_enabled_2 == EINA_FALSE));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_enabled_get
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_enabled_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_enabled_get, ctx) == TEST_PASS)
+     {
+        ok = EINA_TRUE;
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_enabled_set
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li EINA_FALSE.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_enabled_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_enabled_set, ctx, EINA_FALSE);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_enabled_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_enabled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_enabled_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_enabled_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_enabled_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_enabled_set.c
deleted file mode 100644 (file)
index 7b3cc5a..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_enabled_set ecore_imf_context_input_panel_enabled_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_enabled_set
- * @{
- * @objective Positive test case checks that the tested funcion correctly sets whether the Input_Method_Context object should request to show the input panel automatically when the widget has focus.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li EINA_TRUE or EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with EINA_TRUE.
- * @step 4 Get current enabled status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call the tested function with EINA_FALSE.
- * @step 6 Get current enabled status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the enabled mode's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_enabled_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool panel_enabled_1, panel_enabled_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_enabled_set(ctx, EINA_TRUE);
-   panel_enabled_1 = ecore_imf_context_input_panel_enabled_get(ctx);
-   ecore_imf_context_input_panel_enabled_set(ctx, EINA_FALSE);
-   panel_enabled_2 = ecore_imf_context_input_panel_enabled_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((panel_enabled_1 == EINA_TRUE) && (panel_enabled_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_enabled_set
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_enabled_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_enabled_set, ctx, EINA_FALSE);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_enabled_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_enabled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_enabled_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_enabled_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_get.c
deleted file mode 100644 (file)
index c085f47..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static void *_imdata = NULL;
-static int   _imdata_len = 0;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_imdata_get ecore_imf_context_input_panel_imdata_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-
-static void input_panel_imdata_set(Ecore_IMF_Context *ctx, const void* data, int len)
-{
-   if (data && len > 0)
-     {
-   if (_imdata)
-        free (_imdata);
-
-        _imdata = calloc (1, len);
-        memcpy (_imdata, data, len);
-        _imdata_len = len;
-     }
-}
-
-static void input_panel_imdata_get(Ecore_IMF_Context *ctx, void* data, int *len)
-{
-   if (data && _imdata)
-     {
-        memcpy (data, _imdata, _imdata_len);
-        *len = _imdata_len;
-     }
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_imdata_set = input_panel_imdata_set, .input_panel_imdata_get = input_panel_imdata_get };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL ;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_imdata_get
- * @{
- * @objective Positive test case checks that the tested function retrieves the imdata and length for the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li pointer to store the retrieved imdata;
- * @li pointer to store imdata length.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object using default ID ("test").
- * @step 3 Call tested function for getting imdata and length.
- * @step 4 Compare retrieved values with target values.
- *
- * @passcondition
- * Retrieved values must be equal to target values, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_imdata_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   const char *imdata = "LANG:en_US";
-   int len = 0;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   char buf[100] = {0};
-   ecore_imf_context_input_panel_imdata_set(ctx, imdata, strlen (imdata));
-   ecore_imf_context_input_panel_imdata_get(ctx, buf, &len);
-   ecore_imf_context_del(ctx);
-
-   if (len == strlen (imdata))
-     {
-        if (strcmp(buf, imdata) == 0)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_imdata_get
- * @{
- * @objective Negative test case checks situation if all arguments became NULL in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
- * @li pointer to store the retrieved imdata (it will be replaced by NULL in the universal macro);
- * @li pointer to store imdata length (it will be replaced by 0 in the universal macro).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object using default ID ("test").
- * @step 3 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_imdata_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   char* str = NULL;
-   int len = 0;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   UNITEST_FUNC_NEG(ecore_imf_context_input_panel_imdata_get, ctx, str, &len);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_imdata_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_imdata_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_imdata_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_imdata_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_get_set.c
new file mode 100644 (file)
index 0000000..6dd875c
--- /dev/null
@@ -0,0 +1,242 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define DEFAULT_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static void *_imdata = NULL;
+static int   _imdata_len = 0;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_imdata_get ecore_imf_context_input_panel_imdata_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   DEFAULT_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+
+static void input_panel_imdata_set(Ecore_IMF_Context *ctx, const void* data, int len)
+{
+   if (data && len > 0)
+     {
+   if (_imdata)
+        free (_imdata);
+
+        _imdata = calloc (1, len);
+        memcpy (_imdata, data, len);
+        _imdata_len = len;
+     }
+}
+
+static void input_panel_imdata_get(Ecore_IMF_Context *ctx, void* data, int *len)
+{
+   if (data && _imdata)
+     {
+        memcpy (data, _imdata, _imdata_len);
+        *len = _imdata_len;
+     }
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_imdata_set = input_panel_imdata_set, .input_panel_imdata_get = input_panel_imdata_get };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL ;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_imdata_get
+ * @{
+ * @objective Positive test case checks that the tested function retrieves the imdata and length for the given Ecore_IMF_Context object.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object;
+ * @li pointer to store the retrieved imdata;
+ * @li pointer to store imdata length.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Add new Ecore_IMF_Context object using default ID ("test").
+ * @step 3 Call tested function for getting imdata and length.
+ * @step 4 Compare retrieved values with target values.
+ *
+ * @passcondition
+ * Retrieved values must be equal to target values, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_imdata_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   const char *imdata = "LANG:en_US";
+   int len = 0;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   char buf[100] = {0};
+   ecore_imf_context_input_panel_imdata_set(ctx, imdata, strlen (imdata));
+   ecore_imf_context_input_panel_imdata_get(ctx, buf, &len);
+   ecore_imf_context_del(ctx);
+
+   if (len == strlen (imdata))
+     {
+        if (strcmp(buf, imdata) == 0)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_imdata_get
+ * @{
+ * @objective Negative test case checks situation if all arguments became NULL in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
+ * @li pointer to store the retrieved imdata (it will be replaced by NULL in the universal macro);
+ * @li pointer to store imdata length (it will be replaced by 0 in the universal macro).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Add new Ecore_IMF_Context object using default ID ("test").
+ * @step 3 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_imdata_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   char* str = NULL;
+   int len = 0;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   UNITEST_FUNC_NEG(ecore_imf_context_input_panel_imdata_get, ctx, str, &len);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_imdata_set
+ * @{
+ * @objective Negative test case checks situation if all arguments became NULL in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
+ * @li pointer to set the retrieved imdata (it will be replaced by NULL in the universal macro);
+ * @li pointer to set imdata length (it will be replaced by 0 in the universal macro).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Add new Ecore_IMF_Context object using default ID ("test").
+ * @step 3 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_imdata_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   char* str = NULL;
+   int len = 0;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   UNITEST_FUNC_NEG(ecore_imf_context_input_panel_imdata_set, ctx, str, len);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_imdata_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_imdata_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_imdata_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_imdata_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_imdata_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_imdata_set.c
deleted file mode 100644 (file)
index 38ebe2d..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static void *_imdata = NULL;
-static int   _imdata_len = 0;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_imdata_set ecore_imf_context_input_panel_imdata_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-
-static void input_panel_imdata_set(Ecore_IMF_Context *ctx, const void* data, int len)
-{
-   if (data && len > 0)
-     {
-   if (_imdata)
-        free (_imdata);
-
-        _imdata = calloc (1, len);
-        memcpy (_imdata, data, len);
-        _imdata_len = len;
-     }
-}
-
-static void input_panel_imdata_get(Ecore_IMF_Context *ctx, void* data, int *len)
-{
-   if (data && _imdata)
-     {
-        memcpy (data, _imdata, _imdata_len);
-        *len = _imdata_len;
-     }
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_imdata_set = input_panel_imdata_set, .input_panel_imdata_get = input_panel_imdata_get };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL ;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_imdata_set
- * @{
- * @objective Positive test case checks that the tested function retrieves the imdata and length for the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li pointer to set the retrieved imdata;
- * @li pointer to set imdata length.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object using default ID ("test").
- * @step 3 Call tested function for getting imdata and length.
- * @step 4 Compare retrieved values with target values.
- *
- * @passcondition
- * Retrieved values must be equal to target values, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_imdata_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   const char *imdata = "LANG:en_US";
-   int len = 0;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   char buf[100] = {0};
-   ecore_imf_context_input_panel_imdata_set(ctx, imdata, strlen (imdata));
-   ecore_imf_context_input_panel_imdata_get(ctx, buf, &len);
-   ecore_imf_context_del(ctx);
-
-   if (len == strlen (imdata))
-     {
-        if (strcmp(buf, imdata) == 0)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_imdata_set
- * @{
- * @objective Negative test case checks situation if all arguments became NULL in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL in the universal macro);
- * @li pointer to set the retrieved imdata (it will be replaced by NULL in the universal macro);
- * @li pointer to set imdata length (it will be replaced by 0 in the universal macro).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Add new Ecore_IMF_Context object using default ID ("test").
- * @step 3 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_imdata_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   char* str = NULL;
-   int len = 0;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   UNITEST_FUNC_NEG(ecore_imf_context_input_panel_imdata_set, ctx, str, len);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_imdata_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_imdata_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_imdata_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_imdata_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_get.c
deleted file mode 100644 (file)
index fc8241f..0000000
+++ /dev/null
@@ -1,184 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_language_get ecore_imf_context_input_panel_language_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-void input_panel_language_get(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_language_get = input_panel_language_get, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_language_get
- * @{
- * @objective Positive test case checks that the tested function really gets the language of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel language as ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC.
- * @step 4 Get input panel language and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC).
- * @step 5 Set input panel language as ECORE_IMF_INPUT_PANEL_LANG_ALPHABET.
- * @step 6 Get input panel language and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_ALPHABET).
- *
- * @passcondition
- * Returned values of language must correspond to values which were set. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_language_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_language_set(ctx, ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC);
-   if (ecore_imf_context_input_panel_language_get(ctx) == ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC)
-     {
-        ecore_imf_context_input_panel_language_set(ctx, ECORE_IMF_INPUT_PANEL_LANG_ALPHABET);
-        if (ecore_imf_context_input_panel_language_get(ctx) == ECORE_IMF_INPUT_PANEL_LANG_ALPHABET)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_language_get
- * @{
- * @objective Negative test case checks situation if the argument of tested function is NULL.
- * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is returned default value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC).
- * Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_language_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   if (UNITEST_FUNC_NEG_RET(ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC, ecore_imf_context_input_panel_language_get, ctx) == TEST_PASS)
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-        return;
-     }
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_language_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_language_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_language_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_language_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_get_set.c
new file mode 100644 (file)
index 0000000..f9ee9ec
--- /dev/null
@@ -0,0 +1,212 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define DEFAULT_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_language_get ecore_imf_context_input_panel_language_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   DEFAULT_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+void input_panel_language_get(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_language_get = input_panel_language_get, };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_language_get
+ * @{
+ * @objective Positive test case checks that the tested function really gets the language of input panel defined by the given Ecore_IMF_Context object.
+ * @n Input Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set input panel language as ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC.
+ * @step 4 Get input panel language and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC).
+ * @step 5 Set input panel language as ECORE_IMF_INPUT_PANEL_LANG_ALPHABET.
+ * @step 6 Get input panel language and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_ALPHABET).
+ *
+ * @passcondition
+ * Returned values of language must correspond to values which were set. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_language_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_language_set(ctx, ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC);
+   if (ecore_imf_context_input_panel_language_get(ctx) == ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC)
+     {
+        ecore_imf_context_input_panel_language_set(ctx, ECORE_IMF_INPUT_PANEL_LANG_ALPHABET);
+        if (ecore_imf_context_input_panel_language_get(ctx) == ECORE_IMF_INPUT_PANEL_LANG_ALPHABET)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_language_get
+ * @{
+ * @objective Negative test case checks situation if the argument of tested function is NULL.
+ * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is returned default value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC).
+ * Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_language_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   if (UNITEST_FUNC_NEG_RET(ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC, ecore_imf_context_input_panel_language_get, ctx) == TEST_PASS)
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+        return;
+     }
+   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_language_set
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC (it will be replaced by -100).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set language as ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC for null input panel.
+ * @step 4 Set input panel language as -100 (it is incorrect value).
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_language_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_language_set(NULL, ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC);
+   ecore_imf_context_input_panel_language_set(ctx, -100);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_language_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_language_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_language_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_language_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_language_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_language_set.c
deleted file mode 100644 (file)
index 1661beb..0000000
+++ /dev/null
@@ -1,184 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_language_set ecore_imf_context_input_panel_language_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-void input_panel_language_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_language_set = input_panel_language_set, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_language_set
- * @{
- * @objective Positive test case checks that the tested function really sets the language of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC and ECORE_IMF_INPUT_PANEL_LANG_ALPHABET in turn.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel language as ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC.
- * @step 4 Get input panel language and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC).
- * @step 5 Set input panel language as ECORE_IMF_INPUT_PANEL_LANG_ALPHABET.
- * @step 6 Get input panel language and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LANG_ALPHABET).
- *
- * @passcondition
- * Returned values of language must correspond to values which were set by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_language_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_language_set(ctx, ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC);
-   if (ecore_imf_context_input_panel_language_get(ctx) == ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC)
-     {
-        ecore_imf_context_input_panel_language_set(ctx, ECORE_IMF_INPUT_PANEL_LANG_ALPHABET);
-        if (ecore_imf_context_input_panel_language_get(ctx) == ECORE_IMF_INPUT_PANEL_LANG_ALPHABET)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_language_set
- * @{
- * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC (it will be replaced by -100).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set language as ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC for null input panel.
- * @step 4 Set input panel language as -100 (it is incorrect value).
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_language_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_language_set(NULL, ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC);
-   ecore_imf_context_input_panel_language_set(ctx, -100);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_language_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_language_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_language_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_language_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_get.c
deleted file mode 100644 (file)
index 6a9d7fc..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_IMF_Input_Panel_Layout cur_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_layout_get ecore_imf_context_input_panel_layout_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void input_panel_layout_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
-{
-   cur_layout = layout;
-}
-
-static Ecore_IMF_Input_Panel_Layout input_panel_layout_get(Ecore_IMF_Context *ctx)
-{
-   return cur_layout;
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_layout_set = input_panel_layout_set, .input_panel_layout_get = input_panel_layout_get, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_get
- * @{
- * @objective Positive test case checks that the tested function really gets the layout of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER and ECORE_IMF_INPUT_PANEL_LAYOUR_NORMAL in turn.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER.
- * @step 4 Get input panel layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER).
- * @step 5 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL.
- * @step 6 Get input panel layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL).
- *
- * @passcondition
- * Returned values of layout must correspond to values which were get by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   Ecore_IMF_Input_Panel_Layout cur_layout;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER);
-   cur_layout = ecore_imf_context_input_panel_layout_get(ctx);
-   if (cur_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER)
-     {
-        ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL);
-        cur_layout = ecore_imf_context_input_panel_layout_get(ctx);
-        if (cur_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_get
- * @{
- * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Get layout for null input panel.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   Ecore_IMF_Input_Panel_Layout cur_layout = ecore_imf_context_input_panel_layout_get(NULL);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_layout_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_layout_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_get_set.c
new file mode 100644 (file)
index 0000000..d59e720
--- /dev/null
@@ -0,0 +1,219 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#define DEFAULT_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_IMF_Input_Panel_Layout cur_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_layout_get ecore_imf_context_input_panel_layout_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   DEFAULT_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static void input_panel_layout_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
+{
+   cur_layout = layout;
+}
+
+static Ecore_IMF_Input_Panel_Layout input_panel_layout_get(Ecore_IMF_Context *ctx)
+{
+   return cur_layout;
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_layout_set = input_panel_layout_set, .input_panel_layout_get = input_panel_layout_get, };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_layout_get
+ * @{
+ * @objective Positive test case checks that the tested function really gets the layout of input panel defined by the given Ecore_IMF_Context object.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object;
+ * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER and ECORE_IMF_INPUT_PANEL_LAYOUR_NORMAL in turn.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER.
+ * @step 4 Get input panel layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER).
+ * @step 5 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL.
+ * @step 6 Get input panel layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL).
+ *
+ * @passcondition
+ * Returned values of layout must correspond to values which were get by tested function. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_layout_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+   Ecore_IMF_Input_Panel_Layout cur_layout;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER);
+   cur_layout = ecore_imf_context_input_panel_layout_get(ctx);
+   if (cur_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER)
+     {
+        ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL);
+        cur_layout = ecore_imf_context_input_panel_layout_get(ctx);
+        if (cur_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_layout_get
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Get layout for null input panel.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_layout_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   Ecore_IMF_Input_Panel_Layout cur_layout = ecore_imf_context_input_panel_layout_get(NULL);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_layout_set
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL (it will be replaced by -100).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL for null input panel.
+ * @step 4 Set input panel layout as -100 (it is incorrect value).
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_layout_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_layout_set(NULL, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL);
+   ecore_imf_context_input_panel_layout_set(ctx, -100);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_layout_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_layout_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_set.c
deleted file mode 100644 (file)
index fca4bec..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_IMF_Input_Panel_Layout cur_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_layout_set ecore_imf_context_input_panel_layout_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void input_panel_layout_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
-{
-   cur_layout = layout;
-}
-
-static Ecore_IMF_Input_Panel_Layout input_panel_layout_get(Ecore_IMF_Context *ctx)
-{
-   return cur_layout;
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_layout_set = input_panel_layout_set, .input_panel_layout_get = input_panel_layout_get, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_set
- * @{
- * @objective Positive test case checks that the tested function really sets the layout of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER and ECORE_IMF_INPUT_PANEL_LAYOUR_NORMAL in turn.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER.
- * @step 4 Get input panel layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER).
- * @step 5 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL.
- * @step 6 Get input panel layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL).
- *
- * @passcondition
- * Returned values of layout must correspond to values which were set by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   Ecore_IMF_Input_Panel_Layout cur_layout;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER);
-   cur_layout = ecore_imf_context_input_panel_layout_get(ctx);
-   if (cur_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER)
-     {
-        ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL);
-        cur_layout = ecore_imf_context_input_panel_layout_get(ctx);
-        if (cur_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_set
- * @{
- * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL (it will be replaced by -100).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL for null input panel.
- * @step 4 Set input panel layout as -100 (it is incorrect value).
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_layout_set(NULL, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL);
-   ecore_imf_context_input_panel_layout_set(ctx, -100);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_layout_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_layout_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_get.c
deleted file mode 100644 (file)
index 964eff9..0000000
+++ /dev/null
@@ -1,196 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_IMF_Input_Panel_Layout cur_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
-static int variation_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_layout_variation_get ecore_imf_context_input_panel_layout_variation_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void input_panel_layout_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
-{
-   cur_layout = layout;
-}
-
-static Ecore_IMF_Input_Panel_Layout input_panel_layout_get(Ecore_IMF_Context *ctx)
-{
-   return cur_layout;
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_layout_set = input_panel_layout_set, .input_panel_layout_get = input_panel_layout_get, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_variation_get
- * @{
- * @objective Positive test case checks that the tested function really gets the variation layout of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL and ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL in turn.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY.
- * @step 4 Set input panel variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL.
- * @step 5 Get input panel variation layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL).
- * @step 6 Set input panel variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL.
- * @step 7 Get input panel variation layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL).
- *
- * @passcondition
- * Returned values of layout must correspond to values which were get by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_variation_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   Ecore_IMF_Input_Panel_Layout cur_layout;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER);
-   ecore_imf_context_input_panel_layout_variation_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL);
-   variation_layout = ecore_imf_context_input_panel_layout_variation_get(ctx);
-   if (variation_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL)
-     {
-        ecore_imf_context_input_panel_layout_variation_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL);
-        variation_layout = ecore_imf_context_input_panel_layout_variation_get(ctx);
-        if (variation_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_variation_get
- * @{
- * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY.
- * @step 4 Set variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL for null input panel.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_variation_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY);
-   variation_layout = ecore_imf_context_input_panel_layout_variation_get(NULL);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_layout_variation_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_layout_variation_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_variation_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_variation_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_get_set.c
new file mode 100644 (file)
index 0000000..0800a2b
--- /dev/null
@@ -0,0 +1,226 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#define DEFAULT_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_IMF_Input_Panel_Layout cur_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
+static int variation_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_layout_variation_get ecore_imf_context_input_panel_layout_variation_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   DEFAULT_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static void input_panel_layout_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
+{
+   cur_layout = layout;
+}
+
+static Ecore_IMF_Input_Panel_Layout input_panel_layout_get(Ecore_IMF_Context *ctx)
+{
+   return cur_layout;
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_layout_set = input_panel_layout_set, .input_panel_layout_get = input_panel_layout_get, };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_layout_variation_get
+ * @{
+ * @objective Positive test case checks that the tested function really gets the variation layout of input panel defined by the given Ecore_IMF_Context object.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object;
+ * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL and ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL in turn.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY.
+ * @step 4 Set input panel variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL.
+ * @step 5 Get input panel variation layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL).
+ * @step 6 Set input panel variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL.
+ * @step 7 Get input panel variation layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL).
+ *
+ * @passcondition
+ * Returned values of layout must correspond to values which were get by tested function. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_layout_variation_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+   Ecore_IMF_Input_Panel_Layout cur_layout;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER);
+   ecore_imf_context_input_panel_layout_variation_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL);
+   variation_layout = ecore_imf_context_input_panel_layout_variation_get(ctx);
+   if (variation_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL)
+     {
+        ecore_imf_context_input_panel_layout_variation_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL);
+        variation_layout = ecore_imf_context_input_panel_layout_variation_get(ctx);
+        if (variation_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_layout_variation_get
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY.
+ * @step 4 Set variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL for null input panel.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_layout_variation_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY);
+   variation_layout = ecore_imf_context_input_panel_layout_variation_get(NULL);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_layout_variation_set
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL (it will be replaced by -100).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY.
+ * @step 4 Set variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL for null input panel.
+ * @step 5 Set input panel variation layout as -100 (it is incorrect value).
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_layout_variation_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY);
+   ecore_imf_context_input_panel_layout_variation_set(NULL, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL);
+   ecore_imf_context_input_panel_layout_variation_set(ctx, -100);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_layout_variation_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_layout_variation_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_variation_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_variation_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_variation_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_layout_variation_set.c
deleted file mode 100644 (file)
index a86eedf..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_IMF_Input_Panel_Layout cur_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
-static int variation_layout = ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_layout_variation_set ecore_imf_context_input_panel_layout_variation_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void input_panel_layout_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Layout layout)
-{
-   cur_layout = layout;
-}
-
-static Ecore_IMF_Input_Panel_Layout input_panel_layout_get(Ecore_IMF_Context *ctx)
-{
-   return cur_layout;
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_layout_set = input_panel_layout_set, .input_panel_layout_get = input_panel_layout_get, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_variation_set
- * @{
- * @objective Positive test case checks that the tested function really sets the variation layout of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL and ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL in turn.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY.
- * @step 4 Set input panel variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL.
- * @step 5 Get input panel variation layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL).
- * @step 6 Set input panel variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL.
- * @step 7 Get input panel variation layout and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL).
- *
- * @passcondition
- * Returned values of layout must correspond to values which were set by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_variation_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   Ecore_IMF_Input_Panel_Layout cur_layout;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBER);
-   ecore_imf_context_input_panel_layout_variation_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL);
-   variation_layout = ecore_imf_context_input_panel_layout_variation_get(ctx);
-   if (variation_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL)
-     {
-        ecore_imf_context_input_panel_layout_variation_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL);
-        variation_layout = ecore_imf_context_input_panel_layout_variation_get(ctx);
-        if (variation_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_DECIMAL)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_layout_variation_set
- * @{
- * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL (it will be replaced by -100).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY.
- * @step 4 Set variation layout as ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL for null input panel.
- * @step 5 Set input panel variation layout as -100 (it is incorrect value).
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_layout_variation_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_layout_set(ctx, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY);
-   ecore_imf_context_input_panel_layout_variation_set(NULL, ECORE_IMF_INPUT_PANEL_LAYOUT_NUMBERONLY_VARIATION_NORMAL);
-   ecore_imf_context_input_panel_layout_variation_set(ctx, -100);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_layout_variation_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_layout_variation_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_variation_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_layout_variation_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_get.c
deleted file mode 100644 (file)
index ecfe63b..0000000
+++ /dev/null
@@ -1,184 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_return_key_disabled_get ecore_imf_context_input_panel_return_key_disabled_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_disabled_get
- * @{
- * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to enable return key automatically when the widget has focus.
- * @n Input Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call ecore_imf_context_input_panel_return_key_disabled_set() with EINA_TRUE.
- * @step 4 Call the tested function for retrieving of current return_key_disabled status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call ecore_imf_context_input_panel_return_key_disabled_set() with EINA_FALSE.
- * @step 6 Call the tested function for retrieving of current return_key_disabled status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the return_key_disabled's value returned by tested function must be equal to the value which was set by setter.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_disabled_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool return_key_disabled_1, return_key_disabled_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_return_key_disabled_set(ctx, EINA_TRUE);
-   return_key_disabled_1 = ecore_imf_context_input_panel_return_key_disabled_get(ctx);
-   ecore_imf_context_input_panel_return_key_disabled_set(ctx, EINA_FALSE);
-   return_key_disabled_2 = ecore_imf_context_input_panel_return_key_disabled_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((return_key_disabled_1 == EINA_TRUE) && (return_key_disabled_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_disabled_get
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_disabled_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_return_key_disabled_get, ctx) == TEST_PASS)
-     {
-        ok = EINA_TRUE;
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_return_key_disabled_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_return_key_disabled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_disabled_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_disabled_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_get_set.c
new file mode 100644 (file)
index 0000000..7b7f5fc
--- /dev/null
@@ -0,0 +1,215 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_return_key_disabled_get ecore_imf_context_input_panel_return_key_disabled_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_return_key_disabled_get
+ * @{
+ * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to enable return key automatically when the widget has focus.
+ * @n Input Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call ecore_imf_context_input_panel_return_key_disabled_set() with EINA_TRUE.
+ * @step 4 Call the tested function for retrieving of current return_key_disabled status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
+ * @step 5 Call ecore_imf_context_input_panel_return_key_disabled_set() with EINA_FALSE.
+ * @step 6 Call the tested function for retrieving of current return_key_disabled status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
+ *
+ * @passcondition
+ * In all cases the return_key_disabled's value returned by tested function must be equal to the value which was set by setter.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_return_key_disabled_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool return_key_disabled_1, return_key_disabled_2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_return_key_disabled_set(ctx, EINA_TRUE);
+   return_key_disabled_1 = ecore_imf_context_input_panel_return_key_disabled_get(ctx);
+   ecore_imf_context_input_panel_return_key_disabled_set(ctx, EINA_FALSE);
+   return_key_disabled_2 = ecore_imf_context_input_panel_return_key_disabled_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((return_key_disabled_1 == EINA_TRUE) && (return_key_disabled_2 == EINA_FALSE));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_return_key_disabled_get
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_return_key_disabled_get_n)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_return_key_disabled_get, ctx) == TEST_PASS)
+     {
+        ok = EINA_TRUE;
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_return_key_disabled_set
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li EINA_FALSE.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_return_key_disabled_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_return_key_disabled_set, ctx, EINA_FALSE);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_return_key_disabled_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_return_key_disabled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_disabled_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_disabled_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_disabled_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_disabled_set.c
deleted file mode 100644 (file)
index 263e14f..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_return_key_disabled_set ecore_imf_context_input_panel_return_key_disabled_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_disabled_set
- * @{
- * @objective Positive test case checks that the tested funcion correctly sets whether the Input_Method_Context object should request to enable return key automatically when the widget has focus.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li EINA_TRUE or EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with EINA_TRUE.
- * @step 4 Get current return_key_disabled status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call the tested function with EINA_FALSE.
- * @step 6 Get current return_key_disabled status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the return_key_disabled's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_disabled_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool return_key_disabled_1, return_key_disabled_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_return_key_disabled_set(ctx, EINA_TRUE);
-   return_key_disabled_1 = ecore_imf_context_input_panel_return_key_disabled_get(ctx);
-   ecore_imf_context_input_panel_return_key_disabled_set(ctx, EINA_FALSE);
-   return_key_disabled_2 = ecore_imf_context_input_panel_return_key_disabled_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((return_key_disabled_1 == EINA_TRUE) && (return_key_disabled_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_disabled_set
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_disabled_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_return_key_disabled_set, ctx, EINA_FALSE);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_return_key_disabled_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_return_key_disabled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_disabled_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_disabled_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_get.c
deleted file mode 100644 (file)
index 7e64f7c..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_return_key_type_get ecore_imf_context_input_panel_return_key_type_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void input_panel_return_key_type_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Return_Key_Type return_key_type)
-{
-   cur_return_key_type = return_key_type;
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_return_key_type_set = input_panel_return_key_type_set, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_type_get
- * @{
- * @objective Positive test case checks that the tested function really gets the return key type of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO and ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN in turn.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel return key type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO.
- * @step 4 Get input panel return key type and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO).
- * @step 5 Set input panel return key type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN.
- * @step 6 Get input panel return key type and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN).
- *
- * @passcondition
- * Returned values of return_key_type must correspond to values which were set by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_type_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_return_key_type_set(ctx, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO);
-   cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(ctx);
-   if (cur_return_key_type == ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO)
-     {
-        ecore_imf_context_input_panel_return_key_type_set(ctx, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN);
-        cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(ctx);
-        if (cur_return_key_type == ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_type_get
- * @{
- * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Get return_key_type for null input panel.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_type_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(NULL);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_return_key_type_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_return_key_type_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_type_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_type_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_get_set.c
new file mode 100644 (file)
index 0000000..d272242
--- /dev/null
@@ -0,0 +1,218 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#define DEFAULT_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_return_key_type_get ecore_imf_context_input_panel_return_key_type_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   DEFAULT_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static void input_panel_return_key_type_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Return_Key_Type return_key_type)
+{
+   cur_return_key_type = return_key_type;
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_return_key_type_set = input_panel_return_key_type_set, };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_return_key_type_get
+ * @{
+ * @objective Positive test case checks that the tested function really gets the return key type of input panel defined by the given Ecore_IMF_Context object.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object;
+ * @li ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO and ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN in turn.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set input panel return key type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO.
+ * @step 4 Get input panel return key type and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO).
+ * @step 5 Set input panel return key type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN.
+ * @step 6 Get input panel return key type and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN).
+ *
+ * @passcondition
+ * Returned values of return_key_type must correspond to values which were set by tested function. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_return_key_type_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+   Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_return_key_type_set(ctx, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO);
+   cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(ctx);
+   if (cur_return_key_type == ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO)
+     {
+        ecore_imf_context_input_panel_return_key_type_set(ctx, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN);
+        cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(ctx);
+        if (cur_return_key_type == ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_return_key_type_get
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Get return_key_type for null input panel.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_return_key_type_get_n)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(NULL);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_return_key_type_set
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO (it will be replaced by -100).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Set return_key_type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO for null input panel.
+ * @step 4 Set input panel return_key_type as -100 (it is incorrect value).
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_return_key_type_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(DEFAULT_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_return_key_type_set(NULL, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO);
+   ecore_imf_context_input_panel_return_key_type_set(ctx, -100);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_return_key_type_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_return_key_type_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_type_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_type_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_type_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_return_key_type_set.c
deleted file mode 100644 (file)
index c239d21..0000000
+++ /dev/null
@@ -1,189 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define DEFAULT_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type = ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_return_key_type_set ecore_imf_context_input_panel_return_key_type_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   DEFAULT_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static void input_panel_return_key_type_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Return_Key_Type return_key_type)
-{
-   cur_return_key_type = return_key_type;
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del, .input_panel_return_key_type_set = input_panel_return_key_type_set, };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_type_set
- * @{
- * @objective Positive test case checks that the tested function really sets the return key type of input panel defined by the given Ecore_IMF_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO and ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN in turn.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set input panel return key type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO.
- * @step 4 Get input panel return key type and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO).
- * @step 5 Set input panel return key type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN.
- * @step 6 Get input panel return key type and check returned value (it must be equal to ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN).
- *
- * @passcondition
- * Returned values of return_key_type must correspond to values which were set by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_type_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   Ecore_IMF_Input_Panel_Return_Key_Type cur_return_key_type;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_return_key_type_set(ctx, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO);
-   cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(ctx);
-   if (cur_return_key_type == ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO)
-     {
-        ecore_imf_context_input_panel_return_key_type_set(ctx, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN);
-        cur_return_key_type = ecore_imf_context_input_panel_return_key_type_get(ctx);
-        if (cur_return_key_type == ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_JOIN)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_return_key_type_set
- * @{
- * @objective Negative test case checks situation if arguments of tested function became incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO (it will be replaced by -100).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Set return_key_type as ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO for null input panel.
- * @step 4 Set input panel return_key_type as -100 (it is incorrect value).
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_return_key_type_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(DEFAULT_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_return_key_type_set(NULL, ECORE_IMF_INPUT_PANEL_RETURN_KEY_TYPE_GO);
-   ecore_imf_context_input_panel_return_key_type_set(ctx, -100);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_return_key_type_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_return_key_type_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_type_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_return_key_type_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_get.c
deleted file mode 100644 (file)
index 76a66cb..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_show_on_demand_get ecore_imf_context_input_panel_show_on_demand_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_show_on_demand_get
- * @{
- * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to show the input panel automatically when the widget has focus.
- * @n Input Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call ecore_imf_context_input_panel_show_on_demand_set() with EINA_TRUE.
- * @step 4 Call the tested function for retrieving of current show_on_demand status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call ecore_imf_context_input_panel_show_on_demand_set() with EINA_FALSE.
- * @step 6 Call the tested function for retrieving of current show_on_demand status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the show_on_demand's value returned by tested function must be equal to the value which was set by setter.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_show_on_demand_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool show_on_demand_1, show_on_demand_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_show_on_demand_set(ctx, EINA_TRUE);
-   show_on_demand_1 = ecore_imf_context_input_panel_show_on_demand_get(ctx);
-   ecore_imf_context_input_panel_show_on_demand_set(ctx, EINA_FALSE);
-   show_on_demand_2 = ecore_imf_context_input_panel_show_on_demand_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((show_on_demand_1 == EINA_TRUE) && (show_on_demand_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_show_on_demand_get
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_show_on_demand_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_show_on_demand_get, ctx) == TEST_PASS)
-     {
-        ok = EINA_TRUE;
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_show_on_demand_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_show_on_demand_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_show_on_demand_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_show_on_demand_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_get_set.c
new file mode 100644 (file)
index 0000000..32fcb0e
--- /dev/null
@@ -0,0 +1,210 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_input_panel_show_on_demand_get ecore_imf_context_input_panel_show_on_demand_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_show_on_demand_get
+ * @{
+ * @objective Positive test case checks that the tested funcion correctly retrieves whether the Input_Method_Context object should request to show the input panel automatically when the widget has focus.
+ * @n Input Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call ecore_imf_context_input_panel_show_on_demand_set() with EINA_TRUE.
+ * @step 4 Call the tested function for retrieving of current show_on_demand status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
+ * @step 5 Call ecore_imf_context_input_panel_show_on_demand_set() with EINA_FALSE.
+ * @step 6 Call the tested function for retrieving of current show_on_demand status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
+ *
+ * @passcondition
+ * In all cases the show_on_demand's value returned by tested function must be equal to the value which was set by setter.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_show_on_demand_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool show_on_demand_1, show_on_demand_2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_input_panel_show_on_demand_set(ctx, EINA_TRUE);
+   show_on_demand_1 = ecore_imf_context_input_panel_show_on_demand_get(ctx);
+   ecore_imf_context_input_panel_show_on_demand_set(ctx, EINA_FALSE);
+   show_on_demand_2 = ecore_imf_context_input_panel_show_on_demand_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((show_on_demand_1 == EINA_TRUE) && (show_on_demand_2 == EINA_FALSE));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_show_on_demand_get
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 3 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_show_on_demand_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_imf_context_input_panel_show_on_demand_get, ctx) == TEST_PASS)
+     {
+        ok = EINA_TRUE;
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_input_panel_show_on_demand_set
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ * @li EINA_FALSE.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_input_panel_show_on_demand_set_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_show_on_demand_set, ctx, EINA_FALSE);
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_input_panel_show_on_demand_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_show_on_demand_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_show_on_demand_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_show_on_demand_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_show_on_demand_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_input_panel_show_on_demand_set.c
deleted file mode 100644 (file)
index bef5068..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_input_panel_show_on_demand_set ecore_imf_context_input_panel_show_on_demand_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_input_panel_show_on_demand_set
- * @{
- * @objective Positive test case checks that the tested funcion correctly sets whether the Input_Method_Context object should request to show the input panel automatically when the widget has focus.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li EINA_TRUE or EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with EINA_TRUE.
- * @step 4 Get current show_on_demand status of Ecore_IMF_Context object. It must be equal to EINA_TRUE.
- * @step 5 Call the tested function with EINA_FALSE.
- * @step 6 Get current show_on_demand status of Ecore_IMF_Context object. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the show_on_demand's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_show_on_demand_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool show_on_demand_1, show_on_demand_2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_input_panel_show_on_demand_set(ctx, EINA_TRUE);
-   show_on_demand_1 = ecore_imf_context_input_panel_show_on_demand_get(ctx);
-   ecore_imf_context_input_panel_show_on_demand_set(ctx, EINA_FALSE);
-   show_on_demand_2 = ecore_imf_context_input_panel_show_on_demand_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((show_on_demand_1 == EINA_TRUE) && (show_on_demand_2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_input_panel_show_on_demand_set
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- * @li EINA_FALSE.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 3 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_input_panel_show_on_demand_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(ecore_imf_context_input_panel_show_on_demand_set, ctx, EINA_FALSE);
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_input_panel_show_on_demand_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_input_panel_show_on_demand_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_show_on_demand_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_input_panel_show_on_demand_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_get.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_get.c
deleted file mode 100644 (file)
index c82c1f5..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_prediction_allow_get ecore_imf_context_prediction_allow_get()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_prediction_allow_get
- * @{
- * @objective Positive test case checks that the tested function correctly retrieves prediction allow being used by the given Ecore_Input_Context object.
- * @n Input Data: the given Ecore_IMF_Context object.
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with EINA_TRUE.
- * @step 4 Get current prediction allow. It must be equal to EINA_TRUE.
- * @step 5 Call the tested function with EINA_FALSE.
- * @step 6 Get current prediction allow. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the prediction allow's value returned by tested function must be equal to the value which was set.
- * @}
- */
-START_TEST(utc_ecore_imf_context_prediction_allow_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Ecore_IMF_Input_Mode allow1, allow2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_prediction_allow_set(ctx, EINA_TRUE);
-   allow1 = ecore_imf_context_prediction_allow_get(ctx);
-   ecore_imf_context_prediction_allow_set(ctx, EINA_FALSE);
-   allow2 = ecore_imf_context_prediction_allow_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((allow1 == EINA_TRUE) && (allow2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_prediction_allow_get
- * @{
- * @objective Negative test case checks situation if argument is NULL.
- * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return 0, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_prediction_allow_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   if (UNITEST_FUNC_NEG_RET(0, ecore_imf_context_prediction_allow_get, ctx) == TEST_PASS)
-     {
-        ok = EINA_TRUE;
-     }
-   ecore_imf_context_del(ctx);
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_prediction_allow_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_prediction_allow_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_prediction_allow_get_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_prediction_allow_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_get_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_get_set.c
new file mode 100644 (file)
index 0000000..3955585
--- /dev/null
@@ -0,0 +1,211 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_IMF.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define VALID_ID "test"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_imf_context
+ * @{
+ * @defgroup ecore_imf_context_prediction_allow_get ecore_imf_context_prediction_allow_get()
+ *
+ *
+ * @precondition
+ * @step 1 Call ecore_init() for the Ecore library initialization.
+ * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_imf_init() > 0)
+          {
+             startup_status = EINA_TRUE;
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_imf_shutdown();
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+static const Ecore_IMF_Context_Info isf_imf_info =
+{
+   VALID_ID,
+   "test Ecore",
+   "*",
+   NULL,
+   0
+};
+
+static void add(Ecore_IMF_Context *ctx)
+{
+}
+static void del(Ecore_IMF_Context *ctx)
+{
+}
+static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
+
+static Ecore_IMF_Context *imf_module_create(void)
+{
+   Ecore_IMF_Context* ctx = NULL;
+   ctx = ecore_imf_context_new(&ctx_class);
+   return ctx;
+}
+
+static Ecore_IMF_Context *imf_module_exit(void)
+{
+   return NULL;
+}
+
+/**
+ * @addtogroup ecore_imf_context_prediction_allow_get
+ * @{
+ * @objective Positive test case checks that the tested function correctly retrieves prediction allow being used by the given Ecore_Input_Context object.
+ * @n Input Data: the given Ecore_IMF_Context object.
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call the tested function with EINA_TRUE.
+ * @step 4 Get current prediction allow. It must be equal to EINA_TRUE.
+ * @step 5 Call the tested function with EINA_FALSE.
+ * @step 6 Get current prediction allow. It must be equal to EINA_FALSE.
+ *
+ * @passcondition
+ * In all cases the prediction allow's value returned by tested function must be equal to the value which was set.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_prediction_allow_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_IMF_Context* ctx = NULL;
+   Ecore_IMF_Input_Mode allow1, allow2;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   ecore_imf_context_prediction_allow_set(ctx, EINA_TRUE);
+   allow1 = ecore_imf_context_prediction_allow_get(ctx);
+   ecore_imf_context_prediction_allow_set(ctx, EINA_FALSE);
+   allow2 = ecore_imf_context_prediction_allow_get(ctx);
+   ecore_imf_context_del(ctx);
+   ok = ((allow1 == EINA_TRUE) && (allow2 == EINA_FALSE));
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_prediction_allow_get
+ * @{
+ * @objective Negative test case checks situation if argument is NULL.
+ * @n Input Data: the given Ecore_IMF_Context object (it will be replaced by NULL).
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return 0, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_prediction_allow_get_n)
+{
+
+   Ecore_IMF_Context* ctx = NULL;
+   Eina_Bool ok = EINA_FALSE;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+   if (UNITEST_FUNC_NEG_RET(0, ecore_imf_context_prediction_allow_get, ctx) == TEST_PASS)
+     {
+        ok = EINA_TRUE;
+     }
+   ecore_imf_context_del(ctx);
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_imf_context_prediction_allow_set
+ * @{
+ * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
+ * @n Input Data:
+ * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
+ *
+ * @procedure
+ * @step 1 Register imf_module.
+ * @step 2 Create new Ecore_IMF_Context using default ID.
+ * @step 3 Call tested function with NULL as first argument.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_imf_context_prediction_allow_set_n)
+{
+   Ecore_IMF_Input_Mode mode;
+
+   Ecore_IMF_Context* ctx = NULL;
+
+   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
+   ctx = ecore_imf_context_add(VALID_ID);
+   if (ctx == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
+     }
+
+   ecore_imf_context_prediction_allow_set(NULL, EINA_TRUE);
+
+   ecore_imf_context_del(ctx);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_imf_context_prediction_allow_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_imf_context_prediction_allow_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_imf_context_prediction_allow_get_p);
+   tcase_add_test(tcase, utc_ecore_imf_context_prediction_allow_get_n);
+   tcase_add_test(tcase, utc_ecore_imf_context_prediction_allow_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_set.c b/TC/ecore/ecore_imf_context/utc_ecore_imf_context_prediction_allow_set.c
deleted file mode 100644 (file)
index 0068fec..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_IMF.h>
-
-#define VALID_ID "test"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_imf_context
- * @{
- * @defgroup ecore_imf_context_prediction_allow_set ecore_imf_context_prediction_allow_set()
- *
- *
- * @precondition
- * @step 1 Call ecore_init() for the Ecore library initialization.
- * @step 2 Call ecore_imf_init() for the Ecore_Imf library initialization.
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_imf_init() > 0)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_imf_shutdown();
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-static const Ecore_IMF_Context_Info isf_imf_info =
-{
-   VALID_ID,
-   "test Ecore",
-   "*",
-   NULL,
-   0
-};
-
-static void add(Ecore_IMF_Context *ctx)
-{
-}
-static void del(Ecore_IMF_Context *ctx)
-{
-}
-static Ecore_IMF_Context_Class ctx_class = { .add = add, .del = del };
-
-static Ecore_IMF_Context *imf_module_create(void)
-{
-   Ecore_IMF_Context* ctx = NULL;
-   ctx = ecore_imf_context_new(&ctx_class);
-   return ctx;
-}
-
-static Ecore_IMF_Context *imf_module_exit(void)
-{
-   return NULL;
-}
-
-/**
- * @addtogroup ecore_imf_context_prediction_allow_set
- * @{
- * @objective Positive test case checks that the tested function correctly sets input mode being used by the given Ecore_Input_Context object.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object;
- * @li prediction (EINA_TRUE or EINA_FALSE).
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call the tested function with EINA_TRUE.
- * @step 4 Get current prediction allow. It must be equal to EINA_TRUE.
- * @step 5 Call the tested function with EINA_FALSE.
- * @step 6 Get current prediction allow. It must be equal to EINA_FALSE.
- *
- * @passcondition
- * In all cases the prediction allow's value returned by getter must be equal to the value which was set by tested function.
- * @}
- */
-START_TEST(utc_ecore_imf_context_prediction_allow_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-   Eina_Bool allow1, allow2;
-   Eina_Bool ok = EINA_FALSE;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_imf_context_prediction_allow_set(ctx, EINA_TRUE);
-   allow1 = ecore_imf_context_prediction_allow_get(ctx);
-   ecore_imf_context_prediction_allow_set(ctx, EINA_FALSE);
-   allow2 = ecore_imf_context_prediction_allow_get(ctx);
-   ecore_imf_context_del(ctx);
-   ok = ((allow1 == EINA_TRUE) && (allow2 == EINA_FALSE));
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_imf_context_prediction_allow_set
- * @{
- * @objective Negative test case checks situation if arguments of tested function become incorrect in turn.
- * @n Input Data:
- * @li the given Ecore_IMF_Context object (it will be replaced by NULL);
- *
- * @procedure
- * @step 1 Register imf_module.
- * @step 2 Create new Ecore_IMF_Context using default ID.
- * @step 3 Call tested function with NULL as first argument.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_imf_context_prediction_allow_set_n)
-{
-   Ecore_IMF_Input_Mode mode;
-
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Ecore_IMF_Context* ctx = NULL;
-
-   ecore_imf_module_register(&isf_imf_info, imf_module_create, imf_module_exit);
-   ctx = ecore_imf_context_add(VALID_ID);
-   if (ctx == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (new Input Method Context cannot be created)..", __FILE__, __LINE__);
-        return;
-     }
-
-   ecore_imf_context_prediction_allow_set(NULL, EINA_TRUE);
-
-   ecore_imf_context_del(ctx);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_imf_context_prediction_allow_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_imf_context_prediction_allow_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_imf_context_prediction_allow_set_p);
-   tcase_add_test(tcase, utc_ecore_imf_context_prediction_allow_set_n);
-   return tcase;
-}
index 260daeef65a5e08abc76a4e67b5480af47d2bde0..3102e97aa66fb2b90ff6c4a230d2b0c690b1350d 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_input_joystick_init.c
-utc_ecore_input_joystick_shutdown.c
+utc_ecore_input_joystick_init_shutdown.c
index 260daeef65a5e08abc76a4e67b5480af47d2bde0..3102e97aa66fb2b90ff6c4a230d2b0c690b1350d 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_input_joystick_init.c
-utc_ecore_input_joystick_shutdown.c
+utc_ecore_input_joystick_init_shutdown.c
index 260daeef65a5e08abc76a4e67b5480af47d2bde0..3102e97aa66fb2b90ff6c4a230d2b0c690b1350d 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_input_joystick_init.c
-utc_ecore_input_joystick_shutdown.c
+utc_ecore_input_joystick_init_shutdown.c
index 260daeef65a5e08abc76a4e67b5480af47d2bde0..3102e97aa66fb2b90ff6c4a230d2b0c690b1350d 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_input_joystick_init.c
-utc_ecore_input_joystick_shutdown.c
+utc_ecore_input_joystick_init_shutdown.c
index 260daeef65a5e08abc76a4e67b5480af47d2bde0..3102e97aa66fb2b90ff6c4a230d2b0c690b1350d 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_input_joystick_init.c
-utc_ecore_input_joystick_shutdown.c
+utc_ecore_input_joystick_init_shutdown.c
diff --git a/TC/ecore/ecore_input/utc_ecore_input_joystick_init.c b/TC/ecore/ecore_input/utc_ecore_input_joystick_init.c
deleted file mode 100644 (file)
index 01b67a2..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-#include <check.h>
-
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Input.h>
-
-#define MAX_ITER 10
-
-/**
- * @addtogroup ecore_input
- * @{
- * @defgroup ecore_input_joystick_init ecore_input_joystick_init()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_input_joystick_init
- * @{
- * @objective Positive test case checks that the tested function inits
- *            an event to the event queue.
- *
- * @procedure
- * @step 1 Calling ecore_input_joystick_init() function.
- * @step 2 Checking return value.
- * @step 3 Calling ecore_input_joystick_shutdown() function.
- * @step 4 Checking return value.
- *
- * @passcondition
- * Function ecore_input_joystick_init must return count of init iteration,
- * and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_input_joystick_init_p)
-{
-
-   int ret, i, j;
-
-   for (i = 1; i <= MAX_ITER; i++)
-     {
-        ret = ecore_input_joystick_init();
-
-        if (ret != i)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-          }
-     }
-
-   for (j = MAX_ITER - 1; j >= 0; j--)
-     {
-   ret = ecore_input_joystick_shutdown();
-
-        if (ret != j)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-          }
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_input_joystick_init()
-{
-   TCase *tcase = tcase_create("utc_ecore_input_joystick_init");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_input_joystick_init_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_input/utc_ecore_input_joystick_init_shutdown.c b/TC/ecore/ecore_input/utc_ecore_input_joystick_init_shutdown.c
new file mode 100644 (file)
index 0000000..daca317
--- /dev/null
@@ -0,0 +1,91 @@
+#include <check.h>
+
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_Input.h>
+
+#define MAX_ITER 10
+
+/**
+ * @addtogroup ecore_input
+ * @{
+ * @defgroup ecore_input_joystick_init ecore_input_joystick_init()
+ *
+ *
+ * @precondition
+ * @step 1 ecore initialized with ecore_init()
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_input_joystick_init
+ * @{
+ * @objective Positive test case checks that the tested function inits
+ *            an event to the event queue.
+ *
+ * @procedure
+ * @step 1 Calling ecore_input_joystick_init() function.
+ * @step 2 Checking return value.
+ * @step 3 Calling ecore_input_joystick_shutdown() function.
+ * @step 4 Checking return value.
+ *
+ * @passcondition
+ * Function ecore_input_joystick_init must return count of init iteration,
+ * and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_input_joystick_init_p)
+{
+
+   int ret, i, j;
+
+   for (i = 1; i <= MAX_ITER; i++)
+     {
+        ret = ecore_input_joystick_init();
+
+        if (ret != i)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+          }
+     }
+
+   for (j = MAX_ITER - 1; j >= 0; j--)
+     {
+   ret = ecore_input_joystick_shutdown();
+
+        if (ret != j)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+          }
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_input_joystick_init_shutdown()
+{
+   TCase *tcase = tcase_create("utc_ecore_input_joystick_init_shutdown");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_input_joystick_init_p);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_input/utc_ecore_input_joystick_shutdown.c b/TC/ecore/ecore_input/utc_ecore_input_joystick_shutdown.c
deleted file mode 100644 (file)
index 055fce5..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-#include <check.h>
-
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Input.h>
-
-#define MAX_ITER 10
-
-/**
- * @addtogroup ecore_input
- * @{
- * @defgroup ecore_input_joystick_shutdown ecore_input_joystick_shutdown()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_input_joystick_shutdown
- * @{
- * @objective Positive test case checks that the tested function inits
- *            an event to the event queue.
- *
- * @procedure
- * @step 1 Calling ecore_input_joystick_init() function.
- * @step 2 Checking return value.
- * @step 3 Calling ecore_input_joystick_shutdown() function.
- * @step 4 Checking return value.
- *
- * @passcondition
- * Function ecore_input_joystick_shutdown must return count of shutdown
- * iteration, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_input_joystick_shutdown_p)
-{
-
-   int ret, i, j;
-
-   for (i = 1; i <= MAX_ITER; i++)
-     {
-        ret = ecore_input_joystick_init();
-
-        if (ret != i)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-          }
-     }
-
-   for (j = MAX_ITER - 1; j >= 0; j--)
-     {
-   ret = ecore_input_joystick_shutdown();
-
-        if (ret != j)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-          }
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_input_joystick_shutdown()
-{
-   TCase *tcase = tcase_create("utc_ecore_input_joystick_shutdown");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_input_joystick_shutdown_p);
-   return tcase;
-}
index 6920781a4349acff896e567fcd440ce9232048dd..d2475d1b0f4e42b3777d2e21d833c24bbf68392b 100644 (file)
@@ -13,12 +13,9 @@ utc_ecore_ipc_server_data_get.c
 utc_ecore_ipc_client_server_get.c
 utc_ecore_ipc_client_send.c
 utc_ecore_ipc_client_del.c
-utc_ecore_ipc_client_data_get.c
-utc_ecore_ipc_client_data_set.c
-utc_ecore_ipc_client_data_size_max_set.c
-utc_ecore_ipc_client_data_size_max_get.c
-utc_ecore_ipc_server_data_size_max_set.c
-utc_ecore_ipc_server_data_size_max_get.c
+utc_ecore_ipc_client_data_get_set.c
+utc_ecore_ipc_client_data_size_max_get_set.c
+utc_ecore_ipc_server_data_size_max_get_set.c
 utc_ecore_ipc_client_ip_get.c
 utc_ecore_ipc_client_flush.c
 utc_ecore_ipc_ssl_available_get.c
index 6920781a4349acff896e567fcd440ce9232048dd..d2475d1b0f4e42b3777d2e21d833c24bbf68392b 100644 (file)
@@ -13,12 +13,9 @@ utc_ecore_ipc_server_data_get.c
 utc_ecore_ipc_client_server_get.c
 utc_ecore_ipc_client_send.c
 utc_ecore_ipc_client_del.c
-utc_ecore_ipc_client_data_get.c
-utc_ecore_ipc_client_data_set.c
-utc_ecore_ipc_client_data_size_max_set.c
-utc_ecore_ipc_client_data_size_max_get.c
-utc_ecore_ipc_server_data_size_max_set.c
-utc_ecore_ipc_server_data_size_max_get.c
+utc_ecore_ipc_client_data_get_set.c
+utc_ecore_ipc_client_data_size_max_get_set.c
+utc_ecore_ipc_server_data_size_max_get_set.c
 utc_ecore_ipc_client_ip_get.c
 utc_ecore_ipc_client_flush.c
 utc_ecore_ipc_ssl_available_get.c
index 6920781a4349acff896e567fcd440ce9232048dd..d2475d1b0f4e42b3777d2e21d833c24bbf68392b 100644 (file)
@@ -13,12 +13,9 @@ utc_ecore_ipc_server_data_get.c
 utc_ecore_ipc_client_server_get.c
 utc_ecore_ipc_client_send.c
 utc_ecore_ipc_client_del.c
-utc_ecore_ipc_client_data_get.c
-utc_ecore_ipc_client_data_set.c
-utc_ecore_ipc_client_data_size_max_set.c
-utc_ecore_ipc_client_data_size_max_get.c
-utc_ecore_ipc_server_data_size_max_set.c
-utc_ecore_ipc_server_data_size_max_get.c
+utc_ecore_ipc_client_data_get_set.c
+utc_ecore_ipc_client_data_size_max_get_set.c
+utc_ecore_ipc_server_data_size_max_get_set.c
 utc_ecore_ipc_client_ip_get.c
 utc_ecore_ipc_client_flush.c
 utc_ecore_ipc_ssl_available_get.c
index 6920781a4349acff896e567fcd440ce9232048dd..d2475d1b0f4e42b3777d2e21d833c24bbf68392b 100644 (file)
@@ -13,12 +13,9 @@ utc_ecore_ipc_server_data_get.c
 utc_ecore_ipc_client_server_get.c
 utc_ecore_ipc_client_send.c
 utc_ecore_ipc_client_del.c
-utc_ecore_ipc_client_data_get.c
-utc_ecore_ipc_client_data_set.c
-utc_ecore_ipc_client_data_size_max_set.c
-utc_ecore_ipc_client_data_size_max_get.c
-utc_ecore_ipc_server_data_size_max_set.c
-utc_ecore_ipc_server_data_size_max_get.c
+utc_ecore_ipc_client_data_get_set.c
+utc_ecore_ipc_client_data_size_max_get_set.c
+utc_ecore_ipc_server_data_size_max_get_set.c
 utc_ecore_ipc_client_ip_get.c
 utc_ecore_ipc_client_flush.c
 utc_ecore_ipc_ssl_available_get.c
index 6920781a4349acff896e567fcd440ce9232048dd..d2475d1b0f4e42b3777d2e21d833c24bbf68392b 100644 (file)
@@ -13,12 +13,9 @@ utc_ecore_ipc_server_data_get.c
 utc_ecore_ipc_client_server_get.c
 utc_ecore_ipc_client_send.c
 utc_ecore_ipc_client_del.c
-utc_ecore_ipc_client_data_get.c
-utc_ecore_ipc_client_data_set.c
-utc_ecore_ipc_client_data_size_max_set.c
-utc_ecore_ipc_client_data_size_max_get.c
-utc_ecore_ipc_server_data_size_max_set.c
-utc_ecore_ipc_server_data_size_max_get.c
+utc_ecore_ipc_client_data_get_set.c
+utc_ecore_ipc_client_data_size_max_get_set.c
+utc_ecore_ipc_server_data_size_max_get_set.c
 utc_ecore_ipc_client_ip_get.c
 utc_ecore_ipc_client_flush.c
 utc_ecore_ipc_ssl_available_get.c
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_get.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_get.c
deleted file mode 100644 (file)
index 255c874..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Ipc.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define DATA_VALUE 10
-#define WAIT_FOR(duration) \
-   do \
-     { \
-        if (ecore_timer_add(duration, _timer_cb, NULL) == NULL) \
-          { \
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__); \
-          } \
-        ecore_main_loop_begin(); \
-     } while (0);
-
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Ipc_Server *server = NULL;
-
-static Eina_Bool _timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Ecore_Ipc_Client* get_client_of_server(Ecore_Ipc_Server *given_server)
-{
-   Ecore_Ipc_Client* client = NULL;
-   Eina_List *clients_list = ecore_ipc_server_clients_get(server);
-   if (clients_list != NULL)
-     {
-        if (eina_list_count(clients_list) > 0)
-          {
-             client = eina_list_data_get(clients_list);
-          }
-     }
-   return client;
-}
-
-/**
- * @addtogroup ecore_ipc
- * @{
- * @defgroup ecore_ipc_client_data_get ecore_ipc_client_data_get()
- *
- *
- * @precondition
- * @step 1 Initialize Ecore library including Ecore_Ipc.
- * @step 2 Initialize Eina library.
- * @step 3 Create local server.
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_ipc_init() > 0)
-          {
-             if (eina_init() > 0)
-               {
-                  server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
-                  if (server != NULL)
-                    {
-                       startup_status = EINA_TRUE;
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   eina_shutdown();
-   ecore_ipc_shutdown();
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_ipc_client_data_get
- * @{
- * @objective Positive test case checks that tested function really retrieves data associated with the given Ecore_Ipc_Client object.
- * @n Input Data: nonempty client handle.
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 4 Call ecore_ipc_client_data_set() for associating the given data with this client.
- * @step 5 Call tested function for retrieving current data associated with client.
- * @step 6 Compare retrieved data with the data which was associated with client earlier.
- *
- * @passcondition
- * Returned value must be address of data associated with given client. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-   int data = DATA_VALUE;
-   int *data_ptr;
-   Eina_Bool ok = EINA_FALSE;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-   ecore_ipc_client_data_set(client, &data);
-   data_ptr = (int*)ecore_ipc_client_data_get(client);
-   if (data_ptr != NULL)
-     {
-        if (data == (*data_ptr))
-          {
-             ok = EINA_TRUE;
-          }
-     }
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_ipc_client_data_get
- * @{
- * @objective Negative test case checks situation if argument of the tested function is NULL.
- * @n Input Data: nonempty client handle (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 4 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Returned value must be equal to NULL, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-
-   if (UNITEST_FUNC_NEG_RET(NULL, ecore_ipc_client_data_get, client) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_ipc_client_data_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_ipc_client_data_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_get_p);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_get_set.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_get_set.c
new file mode 100644 (file)
index 0000000..1741bea
--- /dev/null
@@ -0,0 +1,239 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_Ipc.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define DATA_VALUE 10
+#define WAIT_FOR(duration) \
+   do \
+     { \
+        if (ecore_timer_add(duration, _timer_cb, NULL) == NULL) \
+          { \
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__); \
+          } \
+        ecore_main_loop_begin(); \
+     } while (0);
+
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_Ipc_Server *server = NULL;
+
+static Eina_Bool _timer_cb(void *data)
+{
+   ecore_main_loop_quit();
+   return EINA_FALSE;
+}
+
+static Ecore_Ipc_Client* get_client_of_server(Ecore_Ipc_Server *given_server)
+{
+   Ecore_Ipc_Client* client = NULL;
+   Eina_List *clients_list = ecore_ipc_server_clients_get(server);
+   if (clients_list != NULL)
+     {
+        if (eina_list_count(clients_list) > 0)
+          {
+             client = eina_list_data_get(clients_list);
+          }
+     }
+   return client;
+}
+
+/**
+ * @addtogroup ecore_ipc
+ * @{
+ * @defgroup ecore_ipc_client_data_get ecore_ipc_client_data_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize Ecore library including Ecore_Ipc.
+ * @step 2 Initialize Eina library.
+ * @step 3 Create local server.
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_ipc_init() > 0)
+          {
+             if (eina_init() > 0)
+               {
+                  server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
+                  if (server != NULL)
+                    {
+                       startup_status = EINA_TRUE;
+                    }
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   eina_shutdown();
+   ecore_ipc_shutdown();
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_ipc_client_data_get
+ * @{
+ * @objective Positive test case checks that tested function really retrieves data associated with the given Ecore_Ipc_Client object.
+ * @n Input Data: nonempty client handle.
+ *
+ * @procedure
+ * @step 1 Connect to the given local server, thereby creating new client of this server.
+ * @step 2 Wait for 0.25 seconds.
+ * @step 3 Get client handle.
+ * @step 4 Call ecore_ipc_client_data_set() for associating the given data with this client.
+ * @step 5 Call tested function for retrieving current data associated with client.
+ * @step 6 Compare retrieved data with the data which was associated with client earlier.
+ *
+ * @passcondition
+ * Returned value must be address of data associated with given client. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_client_data_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_Ipc_Client *client;
+   int data = DATA_VALUE;
+   int *data_ptr;
+   Eina_Bool ok = EINA_FALSE;
+
+   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
+     }
+   WAIT_FOR(0.25);
+   client = get_client_of_server(server);
+   if (client == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
+     }
+   ecore_ipc_client_data_set(client, &data);
+   data_ptr = (int*)ecore_ipc_client_data_get(client);
+   if (data_ptr != NULL)
+     {
+        if (data == (*data_ptr))
+          {
+             ok = EINA_TRUE;
+          }
+     }
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_ipc_client_data_get
+ * @{
+ * @objective Negative test case checks situation if argument of the tested function is NULL.
+ * @n Input Data: nonempty client handle (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Connect to the given local server, thereby creating new client of this server.
+ * @step 2 Wait for 0.25 seconds.
+ * @step 3 Get client handle.
+ * @step 4 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Returned value must be equal to NULL, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_client_data_get_n)
+{
+
+   Ecore_Ipc_Client *client;
+
+   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
+     }
+   WAIT_FOR(0.25);
+   client = get_client_of_server(server);
+   if (client == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
+     }
+
+   if (UNITEST_FUNC_NEG_RET(NULL, ecore_ipc_client_data_get, client) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_ipc_client_data_set
+ * @{
+ * @objective Negative test case checks situation if arguments of the tested function became NULL in turn.
+ * @n Input Data:
+ * @li nonempty client handle (it will be replaced by NULL in the universal macro);
+ * @li data which must be associated with client (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Connect to the given local server, thereby creating new client of this server.
+ * @step 2 Wait for 0.25 seconds.
+ * @step 3 Get client handle.
+ * @step 4 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_client_data_set_n)
+{
+
+   Ecore_Ipc_Client *client;
+   int data = DATA_VALUE;
+
+   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
+     }
+   WAIT_FOR(0.25);
+   client = get_client_of_server(server);
+   if (client == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
+     }
+   UNITEST_FUNC_NEG(ecore_ipc_client_data_set, client, &data);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_ipc_client_data_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_ipc_client_data_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_ipc_client_data_get_p);
+   tcase_add_test(tcase, utc_ecore_ipc_client_data_get_n);
+   tcase_add_test(tcase, utc_ecore_ipc_client_data_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_set.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_set.c
deleted file mode 100644 (file)
index 5215775..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Ipc.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define DATA_VALUE 10
-#define WAIT_FOR(duration) \
-   do \
-     { \
-        if (ecore_timer_add(duration, _timer_cb, NULL) == NULL) \
-          { \
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__); \
-          } \
-        ecore_main_loop_begin(); \
-     } while (0);
-
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Ipc_Server *server = NULL;
-
-static Eina_Bool _timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Ecore_Ipc_Client* get_client_of_server(Ecore_Ipc_Server *given_server)
-{
-   Ecore_Ipc_Client* client = NULL;
-   Eina_List *clients_list = ecore_ipc_server_clients_get(server);
-   if (clients_list != NULL)
-     {
-        if (eina_list_count(clients_list) > 0)
-          {
-             client = eina_list_data_get(clients_list);
-          }
-     }
-   return client;
-}
-
-/**
- * @addtogroup ecore_ipc
- * @{
- * @defgroup ecore_ipc_client_data_set ecore_ipc_client_data_set()
- *
- *
- * @precondition
- * @step 1 Initialize Ecore library including Ecore_Ipc.
- * @step 2 Initialize Eina library.
- * @step 3 Create local server.
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_ipc_init() > 0)
-          {
-             if (eina_init() > 0)
-               {
-                  server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
-                  if (server != NULL)
-                    {
-                       startup_status = EINA_TRUE;
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   eina_shutdown();
-   ecore_ipc_shutdown();
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_ipc_client_data_set
- * @{
- * @objective Positive test case checks that tested function really associates some data with the given Ecore_Ipc_Client object.
- * @n Input Data:
- * @li nonempty client handle;
- * @li data which must be associated with client.
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 4 Call tested function for associating the given data with this client.
- * @step 5 Call ecore_ipc_client_data_get() for retrieving current data associated with client.
- * @step 6 Compare retrieved data with the data which was associated with client earlier.
- *
- * @passcondition
- * Returned value must be address of data associated with given client. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-   int data = DATA_VALUE;
-   int *data_ptr;
-   Eina_Bool ok = EINA_FALSE;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-   ecore_ipc_client_data_set(client, &data);
-   data_ptr = (int*)ecore_ipc_client_data_get(client);
-   if (data_ptr != NULL)
-     {
-        if (data == (*data_ptr))
-          {
-             ok = EINA_TRUE;
-          }
-     }
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_ipc_client_data_set
- * @{
- * @objective Negative test case checks situation if arguments of the tested function became NULL in turn.
- * @n Input Data:
- * @li nonempty client handle (it will be replaced by NULL in the universal macro);
- * @li data which must be associated with client (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 4 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-   int data = DATA_VALUE;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-   UNITEST_FUNC_NEG(ecore_ipc_client_data_set, client, &data);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_ipc_client_data_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_ipc_client_data_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_set_p);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_get.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_get.c
deleted file mode 100644 (file)
index f1696ee..0000000
+++ /dev/null
@@ -1,192 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Ipc.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define MAX_DATA_SIZE 16
-#define WAIT_FOR(duration) \
-   do \
-     { \
-        if (ecore_timer_add(duration, _timer_cb, NULL) == NULL) \
-          { \
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__); \
-          } \
-        ecore_main_loop_begin(); \
-     } while (0);
-
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Ipc_Server *server = NULL;
-
-static Eina_Bool _timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Ecore_Ipc_Client* get_client_of_server(Ecore_Ipc_Server *given_server)
-{
-   Ecore_Ipc_Client* client = NULL;
-   Eina_List *clients_list = ecore_ipc_server_clients_get(server);
-   if (clients_list != NULL)
-     {
-        if (eina_list_count(clients_list) > 0)
-          {
-             client = eina_list_data_get(clients_list);
-          }
-     }
-   return client;
-}
-
-/**
- * @addtogroup ecore_ipc
- * @{
- * @defgroup ecore_ipc_client_data_size_max_get ecore_ipc_client_data_size_max_get()
- *
- *
- * @precondition
- * @step 1 Initialize Ecore library including Ecore_Ipc.
- * @step 2 Initialize Eina library.
- * @step 3 Create local server.
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_ipc_init() > 0)
-          {
-             if (eina_init() > 0)
-               {
-                  server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
-                  if (server != NULL)
-                    {
-                       startup_status = EINA_TRUE;
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   eina_shutdown();
-   ecore_ipc_shutdown();
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_ipc_client_data_size_max_get
- * @{
- * @objective Positive test case checks that tested function really retrieves maximal data size of client IPC message.
- * @n Input Data: nonempty client handle.
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 4 Call ecore_ipc_client_data_size_max_set() for setting the given data size of IPC message for this client.
- * @step 5 Call tested function for retrieving current IPC message size of client.
- * @step 6 Compare retrieved data size with the data size which was set for client earlier.
- *
- * @passcondition
- * Returned value must be equal to value which was set. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_size_max_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-   int data_size;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-   ecore_ipc_client_data_size_max_set(client, MAX_DATA_SIZE);
-   data_size = ecore_ipc_client_data_size_max_get(client);
-
-   if (data_size != MAX_DATA_SIZE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_ipc_client_data_size_max_get
- * @{
- * @objective Negative test case checks situation if argument of the tested function is NULL.
- * @n Input Data: nonempty client handle (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 4 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Returned value must be equal to -1, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_size_max_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-
-   if (UNITEST_FUNC_NEG_RET(-1, ecore_ipc_client_data_size_max_get, client) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_ipc_client_data_size_max_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_ipc_client_data_size_max_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_size_max_get_p);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_size_max_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_get_set.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_get_set.c
new file mode 100644 (file)
index 0000000..b883eed
--- /dev/null
@@ -0,0 +1,229 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_Ipc.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define MAX_DATA_SIZE 16
+#define WAIT_FOR(duration) \
+   do \
+     { \
+        if (ecore_timer_add(duration, _timer_cb, NULL) == NULL) \
+          { \
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__); \
+          } \
+        ecore_main_loop_begin(); \
+     } while (0);
+
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_Ipc_Server *server = NULL;
+
+static Eina_Bool _timer_cb(void *data)
+{
+   ecore_main_loop_quit();
+   return EINA_FALSE;
+}
+
+static Ecore_Ipc_Client* get_client_of_server(Ecore_Ipc_Server *given_server)
+{
+   Ecore_Ipc_Client* client = NULL;
+   Eina_List *clients_list = ecore_ipc_server_clients_get(server);
+   if (clients_list != NULL)
+     {
+        if (eina_list_count(clients_list) > 0)
+          {
+             client = eina_list_data_get(clients_list);
+          }
+     }
+   return client;
+}
+
+/**
+ * @addtogroup ecore_ipc
+ * @{
+ * @defgroup ecore_ipc_client_data_size_max_get ecore_ipc_client_data_size_max_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize Ecore library including Ecore_Ipc.
+ * @step 2 Initialize Eina library.
+ * @step 3 Create local server.
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_ipc_init() > 0)
+          {
+             if (eina_init() > 0)
+               {
+                  server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
+                  if (server != NULL)
+                    {
+                       startup_status = EINA_TRUE;
+                    }
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   eina_shutdown();
+   ecore_ipc_shutdown();
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_ipc_client_data_size_max_get
+ * @{
+ * @objective Positive test case checks that tested function really retrieves maximal data size of client IPC message.
+ * @n Input Data: nonempty client handle.
+ *
+ * @procedure
+ * @step 1 Connect to the given local server, thereby creating new client of this server.
+ * @step 2 Wait for 0.25 seconds.
+ * @step 3 Get client handle.
+ * @step 4 Call ecore_ipc_client_data_size_max_set() for setting the given data size of IPC message for this client.
+ * @step 5 Call tested function for retrieving current IPC message size of client.
+ * @step 6 Compare retrieved data size with the data size which was set for client earlier.
+ *
+ * @passcondition
+ * Returned value must be equal to value which was set. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_client_data_size_max_get_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_Ipc_Client *client;
+   int data_size;
+
+   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
+     }
+   WAIT_FOR(0.25);
+   client = get_client_of_server(server);
+   if (client == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
+     }
+   ecore_ipc_client_data_size_max_set(client, MAX_DATA_SIZE);
+   data_size = ecore_ipc_client_data_size_max_get(client);
+
+   if (data_size != MAX_DATA_SIZE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_ipc_client_data_size_max_get
+ * @{
+ * @objective Negative test case checks situation if argument of the tested function is NULL.
+ * @n Input Data: nonempty client handle (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Connect to the given local server, thereby creating new client of this server.
+ * @step 2 Wait for 0.25 seconds.
+ * @step 3 Get client handle.
+ * @step 4 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Returned value must be equal to -1, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_client_data_size_max_get_n)
+{
+
+   Ecore_Ipc_Client *client;
+
+   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
+     }
+   WAIT_FOR(0.25);
+   client = get_client_of_server(server);
+   if (client == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
+     }
+
+   if (UNITEST_FUNC_NEG_RET(-1, ecore_ipc_client_data_size_max_get, client) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_ipc_client_data_size_max_set
+ * @{
+ * @objective Negative test case checks situation if arguments of the tested function became NULL in turn.
+ * @n Input Data:
+ * @li nonempty client handle (it will be replaced by NULL in the universal macro);
+ * @li maximal data size (optional).
+ *
+ * @procedure
+ * @step 1 Connect to the given local server, thereby creating new client of this server.
+ * @step 2 Wait for 0.25 seconds.
+ * @step 3 Get client handle.
+ * @step 5 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_client_data_size_max_set_n)
+{
+
+   Ecore_Ipc_Client *client;
+
+   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
+     }
+   WAIT_FOR(0.25);
+   client = get_client_of_server(server);
+   if (client == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
+     }
+   UNITEST_FUNC_NEG(ecore_ipc_client_data_size_max_set, client, MAX_DATA_SIZE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_ipc_client_data_size_max_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_ipc_client_data_size_max_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_ipc_client_data_size_max_get_p);
+   tcase_add_test(tcase, utc_ecore_ipc_client_data_size_max_get_n);
+   tcase_add_test(tcase, utc_ecore_ipc_client_data_size_max_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_set.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_client_data_size_max_set.c
deleted file mode 100644 (file)
index 23641fe..0000000
+++ /dev/null
@@ -1,193 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Ipc.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define MAX_DATA_SIZE 16
-#define WAIT_FOR(duration) \
-   do \
-     { \
-        if (ecore_timer_add(duration, _timer_cb, NULL) == NULL) \
-          { \
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__); \
-          } \
-        ecore_main_loop_begin(); \
-     } while (0);
-
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Ipc_Server *server = NULL;
-
-static Eina_Bool _timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Ecore_Ipc_Client* get_client_of_server(Ecore_Ipc_Server *given_server)
-{
-   Ecore_Ipc_Client* client = NULL;
-   Eina_List *clients_list = ecore_ipc_server_clients_get(server);
-   if (clients_list != NULL)
-     {
-        if (eina_list_count(clients_list) > 0)
-          {
-             client = eina_list_data_get(clients_list);
-          }
-     }
-   return client;
-}
-
-/**
- * @addtogroup ecore_ipc
- * @{
- * @defgroup ecore_ipc_client_data_size_max_set ecore_ipc_client_data_size_max_set()
- *
- *
- * @precondition
- * @step 1 Initialize Ecore library including Ecore_Ipc.
- * @step 2 Initialize Eina library.
- * @step 3 Create local server.
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_ipc_init() > 0)
-          {
-             if (eina_init() > 0)
-               {
-                  server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
-                  if (server != NULL)
-                    {
-                       startup_status = EINA_TRUE;
-                    }
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   eina_shutdown();
-   ecore_ipc_shutdown();
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_ipc_client_data_size_max_set
- * @{
- * @objective Positive test case checks that tested function really sets maximal data size of client IPC message.
- * @n Input Data:
- * @li nonempty client handle;
- * @li maximal data size.
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 4 Call tested function for setting the given data size of IPC message for this client.
- * @step 5 Call ecore_ipc_client_data_size_max_get() for retrieving current IPC message size of client.
- * @step 6 Compare retrieved data size with the data size which was set for client earlier.
- *
- * @passcondition
- * Returned value must be equal to value which was set. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_size_max_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-   int data_size;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-   ecore_ipc_client_data_size_max_set(client, MAX_DATA_SIZE);
-   data_size = ecore_ipc_client_data_size_max_get(client);
-
-   if (data_size != MAX_DATA_SIZE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_ipc_client_data_size_max_set
- * @{
- * @objective Negative test case checks situation if arguments of the tested function became NULL in turn.
- * @n Input Data:
- * @li nonempty client handle (it will be replaced by NULL in the universal macro);
- * @li maximal data size (optional).
- *
- * @procedure
- * @step 1 Connect to the given local server, thereby creating new client of this server.
- * @step 2 Wait for 0.25 seconds.
- * @step 3 Get client handle.
- * @step 5 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_client_data_size_max_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Ipc_Client *client;
-
-   if (ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL) == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (we cannot connect to the given server)..", __FILE__, __LINE__);
-     }
-   WAIT_FOR(0.25);
-   client = get_client_of_server(server);
-   if (client == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (there are no clients connected to the given server)..", __FILE__, __LINE__);
-     }
-   UNITEST_FUNC_NEG(ecore_ipc_client_data_size_max_set, client, MAX_DATA_SIZE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_ipc_client_data_size_max_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_ipc_client_data_size_max_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_size_max_set_p);
-   tcase_add_test(tcase, utc_ecore_ipc_client_data_size_max_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_get.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_get.c
deleted file mode 100644 (file)
index b862899..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Ipc.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define MAX_DATA_SIZE 16
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Ipc_Server *server = NULL;
-
-/**
- * @addtogroup ecore_ipc
- * @{
- * @defgroup ecore_ipc_server_data_size_max_get ecore_ipc_server_data_size_max_get()
- *
- *
- * @precondition
- * @step 1 Initialize Ecore library.
- * @step 2 Initialize ipc.
- * @step 3 Create local server.
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_ipc_init() > 0)
-          {
-             server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
-             if (server != NULL)
-               {
-                  startup_status = EINA_TRUE;
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_ipc_shutdown();
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_ipc_server_data_size_max_get
- * @{
- * @objective Positive test case checks that tested function really retrieves maximal data size of server IPC message.
- * @n Input Data: nonempty server handle.
- *
- * @procedure
- * @step 4 Call ecore_ipc_server_data_size_max_set() for setting the given data size of IPC message for this server.
- * @step 5 Call tested function for retrieving current IPC message size of server.
- * @step 6 Compare retrieved data size with the data size which was set for server earlier.
- *
- * @passcondition
- * Returned value must be equal to value which was set. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_server_data_size_max_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   int data_size;
-
-   ecore_ipc_server_data_size_max_set(server, MAX_DATA_SIZE);
-   data_size = ecore_ipc_server_data_size_max_get(server);
-
-   if (data_size != MAX_DATA_SIZE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_ipc_server_data_size_max_get
- * @{
- * @objective Negative test case checks situation if argument of the tested function is NULL.
- * @n Input Data: nonempty server handle (it will be replaced by NULL in the universal macro).
- *
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Returned value must be equal to -1, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_server_data_size_max_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   if (UNITEST_FUNC_NEG_RET(-1, ecore_ipc_server_data_size_max_get, server) == TEST_FAIL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_ipc_server_data_size_max_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_ipc_server_data_size_max_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_get_p);
-   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_get_set.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_get_set.c
new file mode 100644 (file)
index 0000000..929fa54
--- /dev/null
@@ -0,0 +1,176 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_Ipc.h>
+
+#include "../../utc_negative_unitest.h"
+
+#define MAX_DATA_SIZE 16
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_Ipc_Server *server = NULL;
+
+/**
+ * @addtogroup ecore_ipc
+ * @{
+ * @defgroup ecore_ipc_server_data_size_max_set ecore_ipc_server_data_size_max_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize Ecore library.
+ * @step 2 Initialize ipc.
+ * @step 3 Create local server.
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        if (ecore_ipc_init() > 0)
+          {
+             server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
+             if (server != NULL)
+               {
+                  startup_status = EINA_TRUE;
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_ipc_shutdown();
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_ipc_server_data_size_max_set
+ * @{
+ * @objective Positive test case checks that tested function really sets maximal data size of server IPC message.
+ * @n Input Data:
+ * @li nonempty server handle;
+ * @li maximal data size = 16.
+ *
+ * @procedure
+ * @step 1 Call tested function for setting the given data size of IPC message for this server.
+ * @step 2 Call ecore_ipc_server_data_size_max_get() for retrieving current IPC message size of server.
+ * @step 3 Compare retrieved data size with the data size which was set for server earlier.
+ *
+ * @passcondition
+ * Returned value must be equal to value which was set. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_server_data_size_max_set_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   int data_size;
+
+   ecore_ipc_server_data_size_max_set(server, MAX_DATA_SIZE);
+   data_size = ecore_ipc_server_data_size_max_get(server);
+
+   if (data_size != MAX_DATA_SIZE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_ipc_server_data_size_max_set
+ * @{
+ * @objective Negative test case checks situation if arguments of the tested function became NULL in turn.
+ * @n Input Data:
+ * @li nonempty server handle (it will be replaced by NULL in the universal macro);
+ * @li maximal data size (optional).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_server_data_size_max_set_n1)
+{
+
+   UNITEST_FUNC_NEG(ecore_ipc_server_data_size_max_set, server, MAX_DATA_SIZE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_ipc_server_data_size_max_set
+ * @{
+ * @objective Negative test case checks situation if max data size argument of the testet function become negative value
+ * @n Input Data:
+ * @li server handle.
+ * @li maximal data size = -1.
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_server_data_size_max_set_n2)
+{
+
+   ecore_ipc_server_data_size_max_set(server, -1);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_ipc_server_data_size_max_get
+ * @{
+ * @objective Negative test case checks situation if argument of the tested function is NULL.
+ * @n Input Data: nonempty server handle (it will be replaced by NULL in the universal macro).
+ *
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Returned value must be equal to -1, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_ipc_server_data_size_max_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(-1, ecore_ipc_server_data_size_max_get, server) == TEST_FAIL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_ipc_server_data_size_max_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_ipc_server_data_size_max_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_set_p);
+   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_set_n1);
+   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_set_n2);
+   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_set.c b/TC/ecore/ecore_ipc/utc_ecore_ipc_server_data_size_max_set.c
deleted file mode 100644 (file)
index 5f5044c..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Ipc.h>
-
-#include "../../utc_negative_unitest.h"
-
-#define MAX_DATA_SIZE 16
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Ipc_Server *server = NULL;
-
-/**
- * @addtogroup ecore_ipc
- * @{
- * @defgroup ecore_ipc_server_data_size_max_set ecore_ipc_server_data_size_max_set()
- *
- *
- * @precondition
- * @step 1 Initialize Ecore library.
- * @step 2 Initialize ipc.
- * @step 3 Create local server.
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        if (ecore_ipc_init() > 0)
-          {
-             server = ecore_ipc_server_add(ECORE_IPC_LOCAL_USER, "localhost", 8080, NULL);
-             if (server != NULL)
-               {
-                  startup_status = EINA_TRUE;
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_ipc_shutdown();
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_ipc_server_data_size_max_set
- * @{
- * @objective Positive test case checks that tested function really sets maximal data size of server IPC message.
- * @n Input Data:
- * @li nonempty server handle;
- * @li maximal data size = 16.
- *
- * @procedure
- * @step 1 Call tested function for setting the given data size of IPC message for this server.
- * @step 2 Call ecore_ipc_server_data_size_max_get() for retrieving current IPC message size of server.
- * @step 3 Compare retrieved data size with the data size which was set for server earlier.
- *
- * @passcondition
- * Returned value must be equal to value which was set. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_server_data_size_max_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   int data_size;
-
-   ecore_ipc_server_data_size_max_set(server, MAX_DATA_SIZE);
-   data_size = ecore_ipc_server_data_size_max_get(server);
-
-   if (data_size != MAX_DATA_SIZE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_ipc_server_data_size_max_set
- * @{
- * @objective Negative test case checks situation if arguments of the tested function became NULL in turn.
- * @n Input Data:
- * @li nonempty server handle (it will be replaced by NULL in the universal macro);
- * @li maximal data size (optional).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_server_data_size_max_set_n1)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   UNITEST_FUNC_NEG(ecore_ipc_server_data_size_max_set, server, MAX_DATA_SIZE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_ipc_server_data_size_max_set
- * @{
- * @objective Negative test case checks situation if max data size argument of the testet function become negative value
- * @n Input Data:
- * @li server handle.
- * @li maximal data size = -1.
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_ipc_server_data_size_max_set_n2)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   ecore_ipc_server_data_size_max_set(server, -1);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_ipc_server_data_size_max_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_ipc_server_data_size_max_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_set_p);
-   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_set_n1);
-   tcase_add_test(tcase, utc_ecore_ipc_server_data_size_max_set_n2);
-   return tcase;
-}
index 3d31454ccc0e8c45d50461518fadee38108468f4..bbea0ab71f829031e0b3f9d9ceef95c968527e29 100644 (file)
@@ -1,12 +1,9 @@
-utc_ecore_main_fd_handler_active_set.c
-utc_ecore_main_fd_handler_active_get.c
+utc_ecore_main_fd_handler_active_get_set.c
 utc_ecore_main_fd_handler_add.c
 utc_ecore_main_fd_handler_del.c
 utc_ecore_main_fd_handler_fd_get.c
 utc_ecore_main_fd_handler_file_add.c
 utc_ecore_main_fd_handler_prepare_callback_set.c
-utc_ecore_main_loop_begin.c
-utc_ecore_main_loop_quit.c
-utc_ecore_main_loop_select_func_set.c
-utc_ecore_main_loop_select_func_get.c
+utc_ecore_main_loop_begin_quit.c
+utc_ecore_main_loop_select_func_get_set.c
 utc_ecore_main_loop_iterate.c
index 3d31454ccc0e8c45d50461518fadee38108468f4..bbea0ab71f829031e0b3f9d9ceef95c968527e29 100644 (file)
@@ -1,12 +1,9 @@
-utc_ecore_main_fd_handler_active_set.c
-utc_ecore_main_fd_handler_active_get.c
+utc_ecore_main_fd_handler_active_get_set.c
 utc_ecore_main_fd_handler_add.c
 utc_ecore_main_fd_handler_del.c
 utc_ecore_main_fd_handler_fd_get.c
 utc_ecore_main_fd_handler_file_add.c
 utc_ecore_main_fd_handler_prepare_callback_set.c
-utc_ecore_main_loop_begin.c
-utc_ecore_main_loop_quit.c
-utc_ecore_main_loop_select_func_set.c
-utc_ecore_main_loop_select_func_get.c
+utc_ecore_main_loop_begin_quit.c
+utc_ecore_main_loop_select_func_get_set.c
 utc_ecore_main_loop_iterate.c
index 3d31454ccc0e8c45d50461518fadee38108468f4..bbea0ab71f829031e0b3f9d9ceef95c968527e29 100644 (file)
@@ -1,12 +1,9 @@
-utc_ecore_main_fd_handler_active_set.c
-utc_ecore_main_fd_handler_active_get.c
+utc_ecore_main_fd_handler_active_get_set.c
 utc_ecore_main_fd_handler_add.c
 utc_ecore_main_fd_handler_del.c
 utc_ecore_main_fd_handler_fd_get.c
 utc_ecore_main_fd_handler_file_add.c
 utc_ecore_main_fd_handler_prepare_callback_set.c
-utc_ecore_main_loop_begin.c
-utc_ecore_main_loop_quit.c
-utc_ecore_main_loop_select_func_set.c
-utc_ecore_main_loop_select_func_get.c
+utc_ecore_main_loop_begin_quit.c
+utc_ecore_main_loop_select_func_get_set.c
 utc_ecore_main_loop_iterate.c
index 3d31454ccc0e8c45d50461518fadee38108468f4..bbea0ab71f829031e0b3f9d9ceef95c968527e29 100644 (file)
@@ -1,12 +1,9 @@
-utc_ecore_main_fd_handler_active_set.c
-utc_ecore_main_fd_handler_active_get.c
+utc_ecore_main_fd_handler_active_get_set.c
 utc_ecore_main_fd_handler_add.c
 utc_ecore_main_fd_handler_del.c
 utc_ecore_main_fd_handler_fd_get.c
 utc_ecore_main_fd_handler_file_add.c
 utc_ecore_main_fd_handler_prepare_callback_set.c
-utc_ecore_main_loop_begin.c
-utc_ecore_main_loop_quit.c
-utc_ecore_main_loop_select_func_set.c
-utc_ecore_main_loop_select_func_get.c
+utc_ecore_main_loop_begin_quit.c
+utc_ecore_main_loop_select_func_get_set.c
 utc_ecore_main_loop_iterate.c
index 3d31454ccc0e8c45d50461518fadee38108468f4..bbea0ab71f829031e0b3f9d9ceef95c968527e29 100644 (file)
@@ -1,12 +1,9 @@
-utc_ecore_main_fd_handler_active_set.c
-utc_ecore_main_fd_handler_active_get.c
+utc_ecore_main_fd_handler_active_get_set.c
 utc_ecore_main_fd_handler_add.c
 utc_ecore_main_fd_handler_del.c
 utc_ecore_main_fd_handler_fd_get.c
 utc_ecore_main_fd_handler_file_add.c
 utc_ecore_main_fd_handler_prepare_callback_set.c
-utc_ecore_main_loop_begin.c
-utc_ecore_main_loop_quit.c
-utc_ecore_main_loop_select_func_set.c
-utc_ecore_main_loop_select_func_get.c
+utc_ecore_main_loop_begin_quit.c
+utc_ecore_main_loop_select_func_get_set.c
 utc_ecore_main_loop_iterate.c
diff --git a/TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_get.c b/TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_get.c
deleted file mode 100644 (file)
index 1dfe4d2..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <unistd.h>
-
-/**
- * @addtogroup ecore_main
- * @{
- * @defgroup ecore_main_fd_handler_active_get ecore_main_fd_handler_active_get()
- *
- *
- * @precondition
- * @step 1 Init the Ecore library
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-static Eina_Bool _fd_handler_cb(void *data, Ecore_Fd_Handler *handler)
-{
-   ecore_main_fd_handler_active_set(handler, ECORE_FD_READ);
-
-   if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ) == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        ecore_main_loop_quit();
-        return ECORE_CALLBACK_CANCEL;
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-        ecore_main_loop_quit();
-        return ECORE_CALLBACK_DONE;
-     }
-}
-
-static Eina_Bool _fd_handler_with_wrong_flags_cb(void *data, Ecore_Fd_Handler *handler)
-{
-   ecore_main_fd_handler_active_set(handler, -165);
-   if (ecore_main_fd_handler_active_get(handler, -165) == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        ecore_main_loop_quit();
-        return ECORE_CALLBACK_CANCEL;
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-        ecore_main_loop_quit();
-        return ECORE_CALLBACK_DONE;
-     }
-}
-
-/**
- * @addtogroup ecore_main_fd_handler_active_get
- * @{
- * @objective Positive test case check whether flags which are active on an FD handler were properly get (tested function is called in callback '_fd_handler_cb')
- * @n Input Data:
- * @li handler as FD handler
- * @li ECORE_FD_READ as flag to be watched
- *
- * @procedure
- * @step 1 Call 'ecore_main_fd_handler_add' function - add a callback for call tested function
- * @step 2 Set what active streams should be monitoring
- * @step 3 Get which flags are active
- *
- * @passcondition Function return right flags which are active on an FD handler
- * @}
- */
-START_TEST(utc_ecore_main_fd_handler_active_get_p)
-{
-   int comm[2];
-   pipe(comm);
-   ecore_main_fd_handler_add(comm[0], ECORE_FD_READ, _fd_handler_cb, NULL, NULL, NULL);
-   write(comm[1], "Test\n", 6);
-   ecore_main_loop_begin();
-   close(comm[0]);
-   close(comm[1]);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_main_fd_handler_active_get
- * @{
- * @objective Negative test 1 case check whether flags which are active on an FD handler were properly get (tested function is called in callback '_fd_handler_cb')
- * @n Input Data:
- * @li handler as FD handler
- * @li -156 as wrong flag
- *
- * @procedure
- * @step 1 Call 'ecore_main_fd_handler_add' function - add a callback for call tested function
- * @step 2 Set what active streams should be monitoring
- * @step 3 Get which flags are active
- *
- * @passcondition Function return right flags which are active on an FD handler
- * @}
- */
-START_TEST(utc_ecore_main_fd_handler_active_get_n)
-{
-   int comm[2];
-   pipe(comm);
-   ecore_main_fd_handler_add(comm[0], ECORE_FD_READ, _fd_handler_with_wrong_flags_cb, NULL, NULL, NULL);
-   write(comm[1], "Test\n", 6);
-   ecore_main_loop_begin();
-   close(comm[0]);
-   close(comm[1]);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_main_fd_handler_active_get
- * @{
- * @objective Negative test 2 case checks whether calling function with NULL as a FD handler return EINA_FALSE
- * @n Input Data:
- * @li NULL as FD handler
- * @li ECORE_FD_READ as flag to be monitored
- *
- * @procedure
- * @step 1 Register SEGFAULT handler
- * @step 2 Call the function with NULL as a FD handler
- *
- * @passcondition Function return EINA_FALSE
- * @}
- */
-START_TEST(utc_ecore_main_fd_handler_active_get_n2)
-{
-
-   Eina_Bool ret = EINA_FALSE;
-   ret = ecore_main_fd_handler_active_get(NULL, ECORE_FD_READ);
-   if (ret == EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_main_fd_handler_active_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_main_fd_handler_active_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_get_p);
-   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_get_n);
-   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_get_n2);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_get_set.c b/TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_get_set.c
new file mode 100644 (file)
index 0000000..39455bc
--- /dev/null
@@ -0,0 +1,187 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <unistd.h>
+#include <stdio.h>
+
+/**
+ * @addtogroup ecore_main
+ * @{
+ * @defgroup ecore_main_fd_handler_active_get ecore_main_fd_handler_active_get()
+ *
+ *
+ * @precondition
+ * @step 1 Init the Ecore library
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+static Eina_Bool _fd_handler_cb(void *data, Ecore_Fd_Handler *handler)
+{
+   ecore_main_fd_handler_active_set(handler, ECORE_FD_READ);
+
+   if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ) == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        ecore_main_loop_quit();
+        return ECORE_CALLBACK_CANCEL;
+     }
+   else
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+        ecore_main_loop_quit();
+        return ECORE_CALLBACK_DONE;
+     }
+}
+
+static Eina_Bool _fd_handler_with_wrong_flags_cb(void *data, Ecore_Fd_Handler *handler)
+{
+   ecore_main_fd_handler_active_set(handler, -165);
+   if (ecore_main_fd_handler_active_get(handler, -165) == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        ecore_main_loop_quit();
+        return ECORE_CALLBACK_CANCEL;
+     }
+   else
+     {
+        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+        ecore_main_loop_quit();
+        return ECORE_CALLBACK_DONE;
+     }
+}
+
+/**
+ * @addtogroup ecore_main_fd_handler_active_get
+ * @{
+ * @objective Positive test case check whether flags which are active on an FD handler were properly get (tested function is called in callback '_fd_handler_cb')
+ * @n Input Data:
+ * @li handler as FD handler
+ * @li ECORE_FD_READ as flag to be watched
+ *
+ * @procedure
+ * @step 1 Call 'ecore_main_fd_handler_add' function - add a callback for call tested function
+ * @step 2 Set what active streams should be monitoring
+ * @step 3 Get which flags are active
+ *
+ * @passcondition Function return right flags which are active on an FD handler
+ * @}
+ */
+START_TEST(utc_ecore_main_fd_handler_active_get_p)
+{
+   int comm[2];
+   pipe(comm);
+   ecore_main_fd_handler_add(comm[0], ECORE_FD_READ, _fd_handler_cb, NULL, NULL, NULL);
+   write(comm[1], "Test\n", 6);
+   ecore_main_loop_begin();
+   close(comm[0]);
+   close(comm[1]);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_main_fd_handler_active_get
+ * @{
+ * @objective Negative test 1 case check whether flags which are active on an FD handler were properly get (tested function is called in callback '_fd_handler_cb')
+ * @n Input Data:
+ * @li handler as FD handler
+ * @li -156 as wrong flag
+ *
+ * @procedure
+ * @step 1 Call 'ecore_main_fd_handler_add' function - add a callback for call tested function
+ * @step 2 Set what active streams should be monitoring
+ * @step 3 Get which flags are active
+ *
+ * @passcondition Function return right flags which are active on an FD handler
+ * @}
+ */
+START_TEST(utc_ecore_main_fd_handler_active_get_n)
+{
+   int comm[2];
+   pipe(comm);
+   ecore_main_fd_handler_add(comm[0], ECORE_FD_READ, _fd_handler_with_wrong_flags_cb, NULL, NULL, NULL);
+   write(comm[1], "Test\n", 6);
+   ecore_main_loop_begin();
+   close(comm[0]);
+   close(comm[1]);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_main_fd_handler_active_get
+ * @{
+ * @objective Negative test 2 case checks whether calling function with NULL as a FD handler return EINA_FALSE
+ * @n Input Data:
+ * @li NULL as FD handler
+ * @li ECORE_FD_READ as flag to be monitored
+ *
+ * @procedure
+ * @step 1 Register SEGFAULT handler
+ * @step 2 Call the function with NULL as a FD handler
+ *
+ * @passcondition Function return EINA_FALSE
+ * @}
+ */
+START_TEST(utc_ecore_main_fd_handler_active_get_n2)
+{
+
+   Eina_Bool ret = EINA_FALSE;
+   ret = ecore_main_fd_handler_active_get(NULL, ECORE_FD_READ);
+   if (ret == EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_main_fd_handler_active_set
+ * @{
+ * @objective Negative test 2 case checks whether calling function with improper arguments won't cause occurrence of SIGSEGV
+ * @n Input Data:
+ * @li NULL as FD handler
+ * @li ECORE_FD_READ as flag to be watched
+ *
+ * @procedure
+ * @step 1 SIGSEGV handling implementation
+ * @step 2 Call the function with NULL as a FD handler
+ *
+ * @passcondition Function executed successfully
+ * @}
+ */
+START_TEST(utc_ecore_main_fd_handler_active_set_n2)
+{
+
+   ecore_main_fd_handler_active_set(NULL, ECORE_FD_READ);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_main_fd_handler_active_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_main_fd_handler_active_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_get_p);
+   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_get_n);
+   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_get_n2);
+   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_set_n2);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_set.c b/TC/ecore/ecore_main/utc_ecore_main_fd_handler_active_set.c
deleted file mode 100644 (file)
index 86a9992..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <unistd.h>
-#include <stdio.h>
-
-/**
- * @addtogroup ecore_main
- * @{
- * @defgroup ecore_main_fd_handler_active_set ecore_main_fd_handler_active_set()
- *
- *
- * @precondition
- * @step 1 Init the Ecore library
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-static Eina_Bool _fd_handler_cb(void *data, Ecore_Fd_Handler *handler)
-{
-   ecore_main_fd_handler_active_set(handler, ECORE_FD_READ);
-   if (ecore_main_fd_handler_active_get(handler, ECORE_FD_READ) == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-     }
-
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_DONE;
-}
-
-static Eina_Bool _fd_handler_with_wrong_flags_cb(void *data, Ecore_Fd_Handler *handler)
-{
-   ecore_main_fd_handler_active_set(handler, -165);
-   if (ecore_main_fd_handler_active_get(handler, -165) == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        ecore_main_loop_quit();
-        return ECORE_CALLBACK_CANCEL;
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-        ecore_main_loop_quit();
-        return ECORE_CALLBACK_DONE;
-     }
-}
-
-/**
- * @addtogroup ecore_main_fd_handler_active_set
- * @{
- * @objective Positive test case checks whether the flags to be watching were properly set (tested function is called in callback '_fd_handler_cb')
- * @n Input Data:
- * @li handler as FD handler
- * @li ECORE_FD_READ as flag to be watched
- *
- * @procedure
- * @step 1 Call 'ecore_main_fd_handler_add' function - add a callback for call tested function
- * @step 2 Set what active streams should be monitoring
- * @step 3 Get which flags are active
- *
- * @passcondition Function sets flags to be watching were properly set
- * @}
- */
-START_TEST(utc_ecore_main_fd_handler_active_set_p)
-{
-   int comm[2];
-   pipe(comm);
-
-   ecore_main_fd_handler_add(comm[0], ECORE_FD_READ, _fd_handler_cb, NULL, NULL, NULL);
-   write(comm[1], "Test\n", 6);
-   ecore_main_loop_begin();
-   close(comm[0]);
-   close(comm[1]);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_main_fd_handler_active_set
- * @{
- * @objective Negative test 1 cases checks whether the flags to be watching were properly set (tested function is called in callback '_fd_handler_cb')
- * @n Input Data:
- * @li handler as FD handler
- * @li ECORE_FD_READ as wrong flag (-156)
- *
- * @procedure
- * @step 1 Call 'ecore_main_fd_handler_add' function - add a callback for call tested function
- * @step 2 Set what active streams should be monitoring
- * @step 3 Get which flags are active
- *
- * @passcondition Function sets flags to be watching wasn't set
- * @}
- */
-START_TEST(utc_ecore_main_fd_handler_active_set_n)
-{
-   int comm[2];
-   pipe(comm);
-
-   ecore_main_fd_handler_add(comm[0], ECORE_FD_READ, _fd_handler_with_wrong_flags_cb, NULL, NULL, NULL);
-   write(comm[1], "Test\n", 6);
-   ecore_main_loop_begin();
-   close(comm[0]);
-   close(comm[1]);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_main_fd_handler_active_set
- * @{
- * @objective Negative test 2 case checks whether calling function with improper arguments won't cause occurrence of SIGSEGV
- * @n Input Data:
- * @li NULL as FD handler
- * @li ECORE_FD_READ as flag to be watched
- *
- * @procedure
- * @step 1 SIGSEGV handling implementation
- * @step 2 Call the function with NULL as a FD handler
- *
- * @passcondition Function executed successfully
- * @}
- */
-START_TEST(utc_ecore_main_fd_handler_active_set_n2)
-{
-
-   ecore_main_fd_handler_active_set(NULL, ECORE_FD_READ);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_main_fd_handler_active_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_main_fd_handler_active_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_set_p);
-   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_set_n);
-   tcase_add_test(tcase, utc_ecore_main_fd_handler_active_set_n2);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_loop_begin.c b/TC/ecore/ecore_main/utc_ecore_main_loop_begin.c
deleted file mode 100644 (file)
index 058b6cc..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-static Eina_Bool did = EINA_FALSE;
-
-/**
- * @addtogroup ecore_main
- * @{
- * @defgroup ecore_main_loop_begin ecore_main_loop_begin()
- *
- *
- * @precondition
- * @step 1 Init the Ecore library
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-static Eina_Bool _timer_cb(void *data)
-{
-   did = EINA_TRUE;
-
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_main_loop_begin
- * @{
- * @objective Positive test case check whether function will start loop and quit properly
- *
- * @n Input Data:
- * @li NONE
- *
- * @procedure
- * @step 1 Create a timer to call 'ecore_main_loop_quit' function which quit the main loop (otherwise function will not return)
- * @step 2 Call function
- *
- * @passcondition 'did' variable was set to EINA_TRUE (in _timer_cb function)
- * @}
- */
-
-START_TEST(utc_ecore_main_loop_begin_p)
-{
-   Ecore_Timer *timer = ecore_timer_add(0.1, _timer_cb, NULL);
-   if (timer == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_main_loop_begin();
-
-   if (did != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_main_loop_begin()
-{
-   TCase *tcase = tcase_create("utc_ecore_main_loop_begin");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_main_loop_begin_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_loop_begin_quit.c b/TC/ecore/ecore_main/utc_ecore_main_loop_begin_quit.c
new file mode 100644 (file)
index 0000000..df7a6af
--- /dev/null
@@ -0,0 +1,85 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+static Eina_Bool did = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_main
+ * @{
+ * @defgroup ecore_main_loop_begin ecore_main_loop_begin()
+ *
+ *
+ * @precondition
+ * @step 1 Init the Ecore library
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+static Eina_Bool _timer_cb(void *data)
+{
+   did = EINA_TRUE;
+
+   ecore_main_loop_quit();
+   return EINA_FALSE;
+}
+
+/**
+ * @addtogroup ecore_main_loop_begin
+ * @{
+ * @objective Positive test case check whether function will start loop and quit properly
+ *
+ * @n Input Data:
+ * @li NONE
+ *
+ * @procedure
+ * @step 1 Create a timer to call 'ecore_main_loop_quit' function which quit the main loop (otherwise function will not return)
+ * @step 2 Call function
+ *
+ * @passcondition 'did' variable was set to EINA_TRUE (in _timer_cb function)
+ * @}
+ */
+
+START_TEST(utc_ecore_main_loop_begin_p)
+{
+   Ecore_Timer *timer = ecore_timer_add(0.1, _timer_cb, NULL);
+   if (timer == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        return;
+     }
+   ecore_main_loop_begin();
+
+   if (did != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+        return;
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_main_loop_begin_quit()
+{
+   TCase *tcase = tcase_create("utc_ecore_main_loop_begin_quit");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_main_loop_begin_p);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_loop_quit.c b/TC/ecore/ecore_main/utc_ecore_main_loop_quit.c
deleted file mode 100644 (file)
index b08f8cc..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-static Eina_Bool did = EINA_FALSE;
-
-/**
- * @addtogroup ecore_main
- * @{
- * @defgroup ecore_main_loop_quit ecore_main_loop_quit()
- *
- *
- * @precondition
- * @step 1 Init the Ecore library
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-static Eina_Bool _timer_cb(void *data)
-{
-   did = EINA_TRUE;
-
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_main_loop_quit
- * @{
- * @objective Positive test case check whether function will quit the main loop
- *
- * @n Input Data:
- * @li NONE
- *
- * @procedure
- * @step 1 Create a timer to call 'ecore_main_loop_quit' function which quit the main loop (otherwise function will not return)
- * @step 2 Call function
- *
- * @passcondition 'did' variable was set to EINA_TRUE (in _timer_cb function)
- * @}
- */
-
-START_TEST(utc_ecore_main_loop_quit_p)
-{
-   Ecore_Timer *timer = ecore_timer_add(0.1, _timer_cb, NULL);
-   if (timer == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   ecore_main_loop_begin();
-   if (did != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_main_loop_quit()
-{
-   TCase *tcase = tcase_create("utc_ecore_main_loop_quit");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_main_loop_quit_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_loop_select_func_get.c b/TC/ecore/ecore_main/utc_ecore_main_loop_select_func_get.c
deleted file mode 100644 (file)
index e130fc8..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <sys/select.h>
-
-/**
- * @addtogroup ecore_main
- * @{
- * @defgroup ecore_main_loop_select_func_get ecore_main_loop_select_func_get()
- *
- *
- * @precondition
- * @step 1 Init the Ecore library
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-static int select_func(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
-{
-   return 0;
-}
-
-/**
- * @addtogroup ecore_main_loop_select_func_get
- * @{
- * @objective Positive test 1 case check whether selected function was get properly
- *
- * @n Input Data:
- * @li NONE
- *
- * @procedure
- * @step 1 Set the function
- * @step 2 Get the selected function
- *
- * @passcondition selected function was get properly
- * @}
- */
-
-START_TEST(utc_ecore_main_loop_select_func_get_p)
-{
-   Ecore_Select_Function main_loop_select = select_func;
-   ecore_main_loop_select_func_set(main_loop_select);
-   if (main_loop_select != ecore_main_loop_select_func_get())
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_main_loop_select_func_get
- * @{
- * @objective Positive test 2 case check whether the native select function was get properly (none other function was set)
- *
- * @procedure
- * @step 1 Get the function
- *
- * @n Input Data:
- * @li NONE
- *
- * @passcondition Function doesn't return NULL
- * @}
- */
-
-START_TEST(utc_ecore_main_loop_select_func_get_p2)
-{
-   if (NULL == ecore_main_loop_select_func_get())
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_main_loop_select_func_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_main_loop_select_func_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_main_loop_select_func_get_p);
-   tcase_add_test(tcase, utc_ecore_main_loop_select_func_get_p2);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_loop_select_func_get_set.c b/TC/ecore/ecore_main/utc_ecore_main_loop_select_func_get_set.c
new file mode 100644 (file)
index 0000000..41f0059
--- /dev/null
@@ -0,0 +1,136 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <sys/select.h>
+#include "../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup ecore_main
+ * @{
+ * @defgroup ecore_main_loop_select_func_set ecore_main_loop_select_func_set()
+ *
+ *
+ * @precondition
+ * @step 1 Init the Ecore library
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+static int select_func(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
+{
+   return 0;
+}
+
+/**
+ * @addtogroup ecore_main_loop_select_func_set
+ * @{
+ * @objective Positive test case check whether function was select properly
+ * @n Input Data
+ * @li main_loop_select as Ecore_Select_Function
+ *
+ * @procedure
+ * @step 1 Set the function
+ * @step 2 Init the Ecore library
+ * @step 3 Get the select function
+ * @step 4 Close Ecore library
+ *
+ * @passcondition  Function was set properly
+ * @}
+ */
+
+START_TEST(utc_ecore_main_loop_select_func_set_p)
+{
+   Ecore_Select_Function main_loop_select = select_func;
+   ecore_main_loop_select_func_set(main_loop_select);
+   if (main_loop_select != ecore_main_loop_select_func_get())
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_main_loop_select_func_set
+ * @{
+ * @objective Negative test case check whether calling function with NULL as a select function won't cause occurrence of SIGSEGV
+ * @n Input Data
+ * @li NULL as Ecore_Select_Function, so there is no functions
+ *
+ * @procedure
+ * @step 1 Call function with NULL as a select function
+ *
+ * @passcondition Function executed successfully
+ * @}
+ */
+#ifdef NOT_APPROVED_FOR_BUILD
+
+START_TEST(utc_ecore_main_loop_select_func_set_n)
+{
+   Ecore_Select_Function main_loop_select = NULL;
+   UNITEST_FUNC_NEG(ecore_main_loop_select_func_set, main_loop_select);
+   if (ecore_main_loop_select_func_get() != NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+#endif
+
+/**
+ * @addtogroup ecore_main_loop_select_func_get
+ * @{
+ * @objective Positive test 2 case check whether the native select function was get properly (none other function was set)
+ *
+ * @procedure
+ * @step 1 Get the function
+ *
+ * @n Input Data:
+ * @li NONE
+ *
+ * @passcondition Function doesn't return NULL
+ * @}
+ */
+
+START_TEST(utc_ecore_main_loop_select_func_get_p2)
+{
+   if (NULL == ecore_main_loop_select_func_get())
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_main_loop_select_func_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_main_loop_select_func_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+#ifdef NOT_APPROVED_FOR_BUILD
+#endif
+   tcase_add_test(tcase, utc_ecore_main_loop_select_func_set_p);
+#ifdef NOT_APPROVED_FOR_BUILD
+   tcase_add_test(tcase, utc_ecore_main_loop_select_func_set_n);
+#endif
+   tcase_add_test(tcase, utc_ecore_main_loop_select_func_get_p2);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_main/utc_ecore_main_loop_select_func_set.c b/TC/ecore/ecore_main/utc_ecore_main_loop_select_func_set.c
deleted file mode 100644 (file)
index c06ae6d..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <sys/select.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_main
- * @{
- * @defgroup ecore_main_loop_select_func_set ecore_main_loop_select_func_set()
- *
- *
- * @precondition
- * @step 1 Init the Ecore library
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-static int select_func(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
-{
-   return 0;
-}
-
-/**
- * @addtogroup ecore_main_loop_select_func_set
- * @{
- * @objective Positive test case check whether function was select properly
- * @n Input Data
- * @li main_loop_select as Ecore_Select_Function
- *
- * @procedure
- * @step 1 Set the function
- * @step 2 Init the Ecore library
- * @step 3 Get the select function
- * @step 4 Close Ecore library
- *
- * @passcondition  Function was set properly
- * @}
- */
-
-START_TEST(utc_ecore_main_loop_select_func_set_p)
-{
-   Ecore_Select_Function main_loop_select = select_func;
-   ecore_main_loop_select_func_set(main_loop_select);
-   if (main_loop_select != ecore_main_loop_select_func_get())
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_main_loop_select_func_set
- * @{
- * @objective Negative test case check whether calling function with NULL as a select function won't cause occurrence of SIGSEGV
- * @n Input Data
- * @li NULL as Ecore_Select_Function, so there is no functions
- *
- * @procedure
- * @step 1 Call function with NULL as a select function
- *
- * @passcondition Function executed successfully
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-
-START_TEST(utc_ecore_main_loop_select_func_set_n)
-{
-   Ecore_Select_Function main_loop_select = NULL;
-   UNITEST_FUNC_NEG(ecore_main_loop_select_func_set, main_loop_select);
-   if (ecore_main_loop_select_func_get() != NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-#endif
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_main_loop_select_func_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_main_loop_select_func_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-#ifdef NOT_APPROVED_FOR_BUILD
-#endif
-   tcase_add_test(tcase, utc_ecore_main_loop_select_func_set_p);
-#ifdef NOT_APPROVED_FOR_BUILD
-   tcase_add_test(tcase, utc_ecore_main_loop_select_func_set_n);
-#endif
-   return tcase;
-}
index d7525e5a3efd34ea6366179337f11e655ec22f80..1921cc93a4139fa87ba8101d31b7b87541b94a47 100644 (file)
@@ -1,3 +1,2 @@
-utc_ecore_memory_state_get.c
-utc_ecore_memory_state_set.c
+utc_ecore_memory_state_get_set.c
 
index ce660a0a8f5627b2241361535dd9a22a20c01e20..abb9ca9c670a523d69ec421d9f965126e7b84480 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_memory_state_get.c
-utc_ecore_memory_state_set.c
\ No newline at end of file
+utc_ecore_memory_state_get_set.c
\ No newline at end of file
index ce660a0a8f5627b2241361535dd9a22a20c01e20..abb9ca9c670a523d69ec421d9f965126e7b84480 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_memory_state_get.c
-utc_ecore_memory_state_set.c
\ No newline at end of file
+utc_ecore_memory_state_get_set.c
\ No newline at end of file
index 2a8be554f92a280a1a038de9e1136679cea6057a..b85d6564009f8c4bf3b92115158fc85e41773584 100644 (file)
@@ -1,2 +1 @@
-#utc_ecore_memory_state_get.c
-#utc_ecore_memory_state_set.c
\ No newline at end of file
+#utc_ecore_memory_state_get_set.c
\ No newline at end of file
index 2a8be554f92a280a1a038de9e1136679cea6057a..b85d6564009f8c4bf3b92115158fc85e41773584 100644 (file)
@@ -1,2 +1 @@
-#utc_ecore_memory_state_get.c
-#utc_ecore_memory_state_set.c
\ No newline at end of file
+#utc_ecore_memory_state_get_set.c
\ No newline at end of file
diff --git a/TC/ecore/ecore_memory/utc_ecore_memory_state_get.c b/TC/ecore/ecore_memory/utc_ecore_memory_state_get.c
deleted file mode 100644 (file)
index 2a215a9..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-/**
- * @addtogroup ecore_memory
- * @{
- * @defgroup ecore_memory_state_get ecore_memory_state_get()
- *
- * @precondition
- * @step 1 Initialize with ecore_init().
- */
-static void
-setup(void)
-{
-    printf(" ============ Startup ============ \n");
-    UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-    printf(" ============ Cleanup ============ \n");
-    ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_memory_state_get
- * @{
- * @objective Positive test case 1 checks if ecore_memory_state_get succeeds.
- * @n Input Data: none.
- *
- * @procedure
- * @step 1 Set test value with ecore_memory_state_set
- * @step 2 Invoke ecore_memory_state_get
- * @step 3 Compare value from ecore_memory_state_get with test value
- *
- * @passcondition
- * Values must be equals.
- * @}
- */
-START_TEST(utc_ecore_memory_state_get_p)
-{
-    ecore_memory_state_set(ECORE_MEMORY_STATE_NORMAL);
-    Ecore_Memory_State memory_state = ecore_memory_state_get();
-    if (memory_state != ECORE_MEMORY_STATE_NORMAL)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_memory_state_get
- * @{
- * @objective Positive test case 2 checks if ecore_memory_state_get succeeds.
- * @n Input Data: none.
- *
- * @procedure
- * @step 1 Set test value with ecore_memory_state_set
- * @step 2 Invoke ecore_memory_state_get
- * @step 3 Compare value from ecore_memory_state_get with test value
- *
- * @passcondition
- * Values must be equals.
- * @}
- */
-START_TEST(utc_ecore_memory_state_get_p2)
-{
-    ecore_memory_state_set(ECORE_MEMORY_STATE_LOW);
-    Ecore_Memory_State memory_state = ecore_memory_state_get();
-    if (memory_state != ECORE_MEMORY_STATE_LOW)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_memory_state_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_memory_state_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_memory_state_get_p);
-   tcase_add_test(tcase, utc_ecore_memory_state_get_p2);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_memory/utc_ecore_memory_state_get_set.c b/TC/ecore/ecore_memory/utc_ecore_memory_state_get_set.c
new file mode 100644 (file)
index 0000000..ad0b66e
--- /dev/null
@@ -0,0 +1,136 @@
+#include <check.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+static Eina_Bool event_emited = EINA_FALSE;
+/**
+ * @addtogroup ecore_memory
+ * @{
+ * @defgroup ecore_memory_state_set ecore_memory_state_set()
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_init().
+ */
+static void
+setup(void)
+{
+    printf(" ============ Startup ============ \n");
+    UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+    printf(" ============ Cleanup ============ \n");
+    ecore_shutdown();
+}
+
+static Eina_Bool
+_timer_cb(void *data)
+{
+   ecore_main_loop_quit();
+   return EINA_FALSE;
+}
+
+static Eina_Bool
+_handler_cb(void *data,
+            int type,
+            void *event)
+{
+    event_emited = EINA_TRUE;
+    ecore_main_loop_quit();
+    return ECORE_CALLBACK_PASS_ON;
+}
+
+/**
+ * @addtogroup ecore_memory_state_set
+ * @{
+ * @objective Positive test case 1 checks if ecore_memory_state_set succeeds.
+ * @n Input Data:
+ * @li value from Ecore_Memory_State
+ *
+ * @procedure
+ * @step 1 Set value via ecore_memory_state_set from Ecore_Memory_State enum.
+ * @step 2 Get value via ecore_memory_state_get
+ * @step 3 Compare this two values
+ * @step 4 Repeat steps 1-3 for each value in Ecore_Memory_State enum
+ *
+ * @passcondition
+ * All values must be set correctly .
+ * @}
+ */
+START_TEST(utc_ecore_memory_state_set_p)
+{
+    Ecore_Memory_State memory_state = ECORE_MEMORY_STATE_NORMAL;
+
+    ecore_memory_state_set(ECORE_MEMORY_STATE_LOW);
+    memory_state = ecore_memory_state_get();
+    if (memory_state != ECORE_MEMORY_STATE_LOW)
+    {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+    }
+
+    ecore_memory_state_set(ECORE_MEMORY_STATE_NORMAL);
+    memory_state = ecore_memory_state_get();
+    if (memory_state != ECORE_MEMORY_STATE_NORMAL)
+    {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+    }
+
+    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_memory_state_set
+ * @{
+ * @objective Positive test case 2 checks if ecore_memory_state_set emits ECORE_EVENT_MEMORY_STATE event.
+ * @n Input Data:
+ * @li value from Ecore_Memory_State
+ *
+ * @procedure
+ * @step 1 Add a timer with  _timer_cb callback
+ * @step 2 Add a event handler with _handler_cb callback
+ * @step 3 Invoke ecore_memory_state_set with some value
+ * @step 4 Start main loop
+ * @step 5 In _handler_cb, set event_emited and invoke ecore_main_loop_quit
+ * @step 6 Check event_emited
+ *
+ * @passcondition
+ * Variable event_emited must be equal to EINA_TRUE, and there is no timeout.
+ * @}
+ */
+START_TEST(utc_ecore_memory_state_set_p2)
+{
+    Ecore_Event_Handler *eh = NULL;
+
+    ecore_timer_add(3, _timer_cb, NULL);
+    eh = ecore_event_handler_add(ECORE_EVENT_MEMORY_STATE, _handler_cb, NULL);
+    ecore_memory_state_set(ECORE_MEMORY_STATE_LOW);
+    ecore_main_loop_begin();
+
+    if (eh != NULL)
+    {
+        ecore_event_handler_del(eh);
+    }
+    if (event_emited == EINA_FALSE)
+    {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+    }
+    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_memory_state_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_memory_state_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_memory_state_set_p);
+   tcase_add_test(tcase, utc_ecore_memory_state_set_p2);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_memory/utc_ecore_memory_state_set.c b/TC/ecore/ecore_memory/utc_ecore_memory_state_set.c
deleted file mode 100644 (file)
index 74016b2..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-static Eina_Bool event_emited = EINA_FALSE;
-/**
- * @addtogroup ecore_memory
- * @{
- * @defgroup ecore_memory_state_set ecore_memory_state_set()
- *
- * @precondition
- * @step 1 Initialize with ecore_init().
- */
-static void
-setup(void)
-{
-    printf(" ============ Startup ============ \n");
-    UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-    printf(" ============ Cleanup ============ \n");
-    ecore_shutdown();
-}
-
-static Eina_Bool
-_timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Eina_Bool
-_handler_cb(void *data,
-            int type,
-            void *event)
-{
-    event_emited = EINA_TRUE;
-    ecore_main_loop_quit();
-    return ECORE_CALLBACK_PASS_ON;
-}
-
-/**
- * @addtogroup ecore_memory_state_set
- * @{
- * @objective Positive test case 1 checks if ecore_memory_state_set succeeds.
- * @n Input Data:
- * @li value from Ecore_Memory_State
- *
- * @procedure
- * @step 1 Set value via ecore_memory_state_set from Ecore_Memory_State enum.
- * @step 2 Get value via ecore_memory_state_get
- * @step 3 Compare this two values
- * @step 4 Repeat steps 1-3 for each value in Ecore_Memory_State enum
- *
- * @passcondition
- * All values must be set correctly .
- * @}
- */
-START_TEST(utc_ecore_memory_state_set_p)
-{
-    Ecore_Memory_State memory_state = ECORE_MEMORY_STATE_NORMAL;
-
-    ecore_memory_state_set(ECORE_MEMORY_STATE_LOW);
-    memory_state = ecore_memory_state_get();
-    if (memory_state != ECORE_MEMORY_STATE_LOW)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-
-    ecore_memory_state_set(ECORE_MEMORY_STATE_NORMAL);
-    memory_state = ecore_memory_state_get();
-    if (memory_state != ECORE_MEMORY_STATE_NORMAL)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_memory_state_set
- * @{
- * @objective Positive test case 2 checks if ecore_memory_state_set emits ECORE_EVENT_MEMORY_STATE event.
- * @n Input Data:
- * @li value from Ecore_Memory_State
- *
- * @procedure
- * @step 1 Add a timer with  _timer_cb callback
- * @step 2 Add a event handler with _handler_cb callback
- * @step 3 Invoke ecore_memory_state_set with some value
- * @step 4 Start main loop
- * @step 5 In _handler_cb, set event_emited and invoke ecore_main_loop_quit
- * @step 6 Check event_emited
- *
- * @passcondition
- * Variable event_emited must be equal to EINA_TRUE, and there is no timeout.
- * @}
- */
-START_TEST(utc_ecore_memory_state_set_p2)
-{
-    Ecore_Event_Handler *eh = NULL;
-
-    ecore_timer_add(3, _timer_cb, NULL);
-    eh = ecore_event_handler_add(ECORE_EVENT_MEMORY_STATE, _handler_cb, NULL);
-    ecore_memory_state_set(ECORE_MEMORY_STATE_LOW);
-    ecore_main_loop_begin();
-
-    if (eh != NULL)
-    {
-        ecore_event_handler_del(eh);
-    }
-    if (event_emited == EINA_FALSE)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_memory_state_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_memory_state_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_memory_state_set_p);
-   tcase_add_test(tcase, utc_ecore_memory_state_set_p2);
-   return tcase;
-}
index 0e5d4496a37a6adeb50db7b335e5cc5b819aa65b..70de66c4c5687bd8009166ec2c2612819b2cd73b 100644 (file)
@@ -1,6 +1,4 @@
 utc_ecore_poller_add.c
-utc_ecore_poller_poll_interval_set.c
-utc_ecore_poller_poll_interval_get.c
-utc_ecore_poller_poller_interval_set.c
-utc_ecore_poller_poller_interval_get.c
+utc_ecore_poller_poll_interval_get_set.c
+utc_ecore_poller_poller_interval_get_set.c
 utc_ecore_poller_del.c
index 0e5d4496a37a6adeb50db7b335e5cc5b819aa65b..70de66c4c5687bd8009166ec2c2612819b2cd73b 100644 (file)
@@ -1,6 +1,4 @@
 utc_ecore_poller_add.c
-utc_ecore_poller_poll_interval_set.c
-utc_ecore_poller_poll_interval_get.c
-utc_ecore_poller_poller_interval_set.c
-utc_ecore_poller_poller_interval_get.c
+utc_ecore_poller_poll_interval_get_set.c
+utc_ecore_poller_poller_interval_get_set.c
 utc_ecore_poller_del.c
index 0e5d4496a37a6adeb50db7b335e5cc5b819aa65b..70de66c4c5687bd8009166ec2c2612819b2cd73b 100644 (file)
@@ -1,6 +1,4 @@
 utc_ecore_poller_add.c
-utc_ecore_poller_poll_interval_set.c
-utc_ecore_poller_poll_interval_get.c
-utc_ecore_poller_poller_interval_set.c
-utc_ecore_poller_poller_interval_get.c
+utc_ecore_poller_poll_interval_get_set.c
+utc_ecore_poller_poller_interval_get_set.c
 utc_ecore_poller_del.c
index 0e5d4496a37a6adeb50db7b335e5cc5b819aa65b..70de66c4c5687bd8009166ec2c2612819b2cd73b 100644 (file)
@@ -1,6 +1,4 @@
 utc_ecore_poller_add.c
-utc_ecore_poller_poll_interval_set.c
-utc_ecore_poller_poll_interval_get.c
-utc_ecore_poller_poller_interval_set.c
-utc_ecore_poller_poller_interval_get.c
+utc_ecore_poller_poll_interval_get_set.c
+utc_ecore_poller_poller_interval_get_set.c
 utc_ecore_poller_del.c
index 0e5d4496a37a6adeb50db7b335e5cc5b819aa65b..70de66c4c5687bd8009166ec2c2612819b2cd73b 100644 (file)
@@ -1,6 +1,4 @@
 utc_ecore_poller_add.c
-utc_ecore_poller_poll_interval_set.c
-utc_ecore_poller_poll_interval_get.c
-utc_ecore_poller_poller_interval_set.c
-utc_ecore_poller_poller_interval_get.c
+utc_ecore_poller_poll_interval_get_set.c
+utc_ecore_poller_poller_interval_get_set.c
 utc_ecore_poller_del.c
diff --git a/TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_get.c b/TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_get.c
deleted file mode 100644 (file)
index 9e9397d..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <math.h>
-#include <float.h>
-static double interval = 2.0;
-
-/**
- * @addtogroup ecore_poll
- * @{
- * @defgroup ecore_poller_poll_interval_get ecore_poller_poll_interval_get()
- *
- * @precondition
- * @step 1 Initialize ecore library
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_poller_poll_interval_get
- * @{
- * @objective Positive test case: getting previously set interval value from
- * ECORE_POLLER_CORE
- * @n Input Data:
- * li the ECORE_POLLER_CORE as type of Ecore_Poller
- *
- * @procedure
- * @step 1 Set desired interval value for ECORE_POLLER_CORE. The new value differs from the default one (2.0)
- * @step 2 Get interval value and compare with the one previously set
- *
- * @passcondition: returned value is the same (with the accurracy of DBL_EPSILON)
- * as the one previously set
- * @}
- */
-START_TEST(utc_ecore_poller_poll_interval_get_p)
-{
-   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, interval);
-
-   if (fabs(ecore_poller_poll_interval_get(ECORE_POLLER_CORE) - interval) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_poller_poll_interval_get
- * @{
- * @objective Negative test case: check if passing negative value to ecore_poller_poll_interval_get() works correctly.
- * @n Input Data:
- * li the int -1 as invalid type of Ecore_Poller
- *
- * @procedure
- * @step 1 Set desired interval value for ECORE_POLLER_CORE. The new value differs from the default one (2.0)
- * @step 2 Call ecore_poller_poll_interval_get() with wrong parameter (-1).
- *
- * @passcondition: passing the negative value to the ecore_poller_poll_interval_get() should not cause segfault and
- * return value should be equal to interval
- * @}
- */
-START_TEST(utc_ecore_poller_poll_interval_get_n)
-{
-
-   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, interval);
-
-   if (fabs(ecore_poller_poll_interval_get(-1) - interval) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_poller_poll_interval_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_poller_poll_interval_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_poller_poll_interval_get_p);
-   tcase_add_test(tcase, utc_ecore_poller_poll_interval_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_get_set.c b/TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_get_set.c
new file mode 100644 (file)
index 0000000..a9f476e
--- /dev/null
@@ -0,0 +1,128 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <math.h>
+#include <float.h>
+#include "../../utc_negative_unitest.h"
+static double interval = 2.0;
+
+/**
+ * @addtogroup ecore_poll
+ * @{
+ * @defgroup ecore_poller_poll_interval_set ecore_poller_poll_interval_set()
+ *
+ * @precondition
+ * @step 1 Initialize ecore library
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+/**
+ * @addtogroup ecore_poller_poll_interval_set
+ * @{
+ * @objective Positive test case: setting interval value on proper Ecore_Poller
+ * @n Input Data:
+ * li the ECORE_POLLER_CORE as type of Ecore_Poller
+ * li the int 2 as poll interval
+ *
+ * @procedure
+ * @step 1 Set desired interval for ECORE_POLLER_CORE
+ * @step 2 Get interval from ECORE_POLLER_CORE and compare with previously set
+ * value
+ *
+ * @passcondition: value retrieved using function ecore_poller_poll_interval_get()
+ * and the one previously are equal.
+ * @}
+ */
+START_TEST(utc_ecore_poller_poll_interval_set_p)
+{
+
+   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, interval);
+
+   if (fabs(ecore_poller_poll_interval_get(ECORE_POLLER_CORE) - 2.0) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_poller_poll_interval_set
+ * @{
+ * @objective Negative test case: trying to set negative interval
+ * @n Input Data:
+ * li the int -2 as invalid poll interval
+ * li the (ECORE_POLLER_CORE - 1) as invalid type of Ecore_Poller
+ *
+ * @procedure
+ * @step 1 Try to set negative interval value for ECORE_POLLER_CORE
+ * @step 2 Try to set negative valid value for invalid type of Ecore_Poller
+ *
+ * @passcondition: Function ecore_poller_poll_interval_set() doesn't cause
+ * segmentation fault
+ * @}
+ */
+START_TEST(utc_ecore_poller_poll_interval_set_n)
+{
+
+   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, -2.0);
+   ecore_poller_poll_interval_set((ECORE_POLLER_CORE - 1), 2.0);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_poller_poll_interval_get
+ * @{
+ * @objective Negative test case: check if passing negative value to ecore_poller_poll_interval_get() works correctly.
+ * @n Input Data:
+ * li the int -1 as invalid type of Ecore_Poller
+ *
+ * @procedure
+ * @step 1 Set desired interval value for ECORE_POLLER_CORE. The new value differs from the default one (2.0)
+ * @step 2 Call ecore_poller_poll_interval_get() with wrong parameter (-1).
+ *
+ * @passcondition: passing the negative value to the ecore_poller_poll_interval_get() should not cause segfault and
+ * return value should be equal to interval
+ * @}
+ */
+START_TEST(utc_ecore_poller_poll_interval_get_n)
+{
+
+   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, interval);
+
+   if (fabs(ecore_poller_poll_interval_get(-1) - interval) > DBL_EPSILON)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_poller_poll_interval_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_poller_poll_interval_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_poller_poll_interval_set_p);
+   tcase_add_test(tcase, utc_ecore_poller_poll_interval_set_n);
+   tcase_add_test(tcase, utc_ecore_poller_poll_interval_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_set.c b/TC/ecore/ecore_poll/utc_ecore_poller_poll_interval_set.c
deleted file mode 100644 (file)
index 837e5b8..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <math.h>
-#include <float.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_poll
- * @{
- * @defgroup ecore_poller_poll_interval_set ecore_poller_poll_interval_set()
- *
- * @precondition
- * @step 1 Initialize ecore library
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_poller_poll_interval_set
- * @{
- * @objective Positive test case: setting interval value on proper Ecore_Poller
- * @n Input Data:
- * li the ECORE_POLLER_CORE as type of Ecore_Poller
- * li the int 2 as poll interval
- *
- * @procedure
- * @step 1 Set desired interval for ECORE_POLLER_CORE
- * @step 2 Get interval from ECORE_POLLER_CORE and compare with previously set
- * value
- *
- * @passcondition: value retrieved using function ecore_poller_poll_interval_get()
- * and the one previously are equal.
- * @}
- */
-START_TEST(utc_ecore_poller_poll_interval_set_p)
-{
-
-   double interval = 2.0;
-   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, interval);
-
-   if (fabs(ecore_poller_poll_interval_get(ECORE_POLLER_CORE) - 2.0) > DBL_EPSILON)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_poller_poll_interval_set
- * @{
- * @objective Negative test case: trying to set negative interval
- * @n Input Data:
- * li the int -2 as invalid poll interval
- * li the (ECORE_POLLER_CORE - 1) as invalid type of Ecore_Poller
- *
- * @procedure
- * @step 1 Try to set negative interval value for ECORE_POLLER_CORE
- * @step 2 Try to set negative valid value for invalid type of Ecore_Poller
- *
- * @passcondition: Function ecore_poller_poll_interval_set() doesn't cause
- * segmentation fault
- * @}
- */
-START_TEST(utc_ecore_poller_poll_interval_set_n)
-{
-
-   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, -2.0);
-   ecore_poller_poll_interval_set((ECORE_POLLER_CORE - 1), 2.0);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_poller_poll_interval_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_poller_poll_interval_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_poller_poll_interval_set_p);
-   tcase_add_test(tcase, utc_ecore_poller_poll_interval_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_get.c b/TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_get.c
deleted file mode 100644 (file)
index 5f6eaa2..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_poll
- * @{
- * @defgroup ecore_poller_poller_interval_get ecore_poller_poller_interval_get()
- *
- * @precondition
- * @step 1 Write callback function compatible Ecore_Task_Cb type
- * @step 2 Initialize ecore library
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-static Eina_Bool _poller_cb(void *data)
-{
-   return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_poller_poller_interval_get
- * @{
- * @objective Positive test case: getting previously set interval value
- * @n Input Data:
- * li the Ecore_Poller object
- *
- * @procedure
- * @step 1 Create proper Ecore_Poller with callback and pointer to data
- * @step 2 Set desired interval value for created Ecore_Poller
- * @step 3 Get interval from Ecore_Poller object
- *
- * @passcondition: returned value is the same as the one previously set
- * @}
- */
-START_TEST(utc_ecore_poller_poller_interval_get_p)
-{
-
-   int interval = 2;
-   Ecore_Poller *poller;
-   char *str = "poller";
-
-   poller = ecore_poller_add(ECORE_POLLER_CORE, 4, _poller_cb, (void*)str);
-   if (!poller)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_poller_poller_interval_set(poller, interval);
-
-   if (ecore_poller_poller_interval_get(poller) != interval)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        ecore_poller_del(poller);
-        return;
-     }
-   ecore_poller_del(poller);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_poller_poller_interval_get
- * @{
- * @objective Negative test case: trying to get interval from NULL pointer
- * @n Input Data:
- * li the NULL Ecore_Poller object
- *
- * @procedure
- * @step 1 Call ecore_poller_poller_interval_get() function with NULL given as parameter
- *
- * @passcondition: function returns without crash
- * @}
- */
-START_TEST(utc_ecore_poller_poller_interval_get_n)
-{
-   int interval;
-
-   interval = ecore_poller_poller_interval_get(NULL);
-   printf("[TEST_MSG]:: %s[%d] : poller intervall = %f\n", __FILE__, __LINE__, interval);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_poller_poller_interval_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_poller_poller_interval_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_poller_poller_interval_get_p);
-   tcase_add_test(tcase, utc_ecore_poller_poller_interval_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_get_set.c b/TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_get_set.c
new file mode 100644 (file)
index 0000000..6f86ad4
--- /dev/null
@@ -0,0 +1,167 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <math.h>
+#include "../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup ecore_poll
+ * @{
+ * @defgroup ecore_poller_poller_interval_set ecore_poller_poller_interval_set()
+ *
+ * @precondition
+ * @step 1 Initialize ecore library
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+}
+
+/*
+ * Callback for ecore_poller. Compatible with with Ecore_Task_Cb type.
+ */
+static Eina_Bool _poller_cb(void *data)
+{
+   return EINA_FALSE;
+}
+
+/**
+ * @addtogroup ecore_poller_poller_interval_set
+ * @{
+ * @objective Positive test case sets interval value on proper Ecore_Poller
+ * @n Input Data:
+ * li the Ecore_Poller object
+ * li the int 4 as poller interval
+ *
+ * @procedure
+ * @step 1 Set desired interval value for created Ecore_Poller.
+ * @step 2 Use ecore_poller_poller_interval_get() to verify interval of created
+ * Ecore_Poller
+ *
+ * @passcondition: function ecore_poller_poller_interval_set() returns EINA_TRUE
+ * and value retrieved by get is the same as previously set.
+ * @}
+ */
+START_TEST(utc_ecore_poller_poller_interval_set_p)
+{
+   int interval = 4;
+   Eina_Bool ret = EINA_FALSE;
+   Ecore_Poller *poller;
+   char *str = "poller";
+
+   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, 2);
+   poller = ecore_poller_add(ECORE_POLLER_CORE, 2, _poller_cb, (void*)str);
+   if (!poller)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   ret = ecore_poller_poller_interval_set(poller, interval);
+
+   if (ret != EINA_TRUE || ecore_poller_poller_interval_get(poller) != interval)
+     {
+        ecore_poller_del(poller);
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   ecore_poller_del(poller);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_poller_poller_interval_set
+ * @{
+ * @objective Negative test case checks if function din't set negative value like as interval
+ * and doen't case segfault on NULL instead of poller object.
+ * @n Input Data:
+ * li the NULL Ecore_Poller object
+ * li the int -4 as invalid poller interval
+ *
+ * @procedure
+ * @step 1 Create poller object and set interval 4
+ * @step 2 Set interval for poller object -4 and and call ecore_poller_poller_interval_get
+ * for comparison.
+ * @step 2 Call function with NULL instead of poller object
+ *
+ * @passcondition: Function doesn't set negative interval and doesn't cause segmentation fault.
+ * @}
+ */
+#ifdef NOT_APPROVED_FOR_BUILD
+START_TEST(utc_ecore_poller_poller_interval_set_n)
+{
+
+   Eina_Bool res = EINA_FALSE;
+   int interval = 4;
+   Ecore_Poller *poller;
+   poller = ecore_poller_add(ECORE_POLLER_CORE, 2, _poller_cb, NULL);
+   if (!poller)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Poller wasn't created.", __FILE__, __LINE__);
+        return;
+     }
+   res = ecore_poller_poller_interval_set(poller, interval);
+
+   if (res)
+     {
+        ecore_poller_poller_interval_set(poller, -4);
+        if (ecore_poller_poller_interval_get(poller) == -4)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d]: Test has failed.. interval is ", __FILE__, __LINE__);
+             return;
+          }
+        ecore_poller_poller_interval_set(NULL, 4);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+#endif
+
+/**
+ * @addtogroup ecore_poller_poller_interval_get
+ * @{
+ * @objective Negative test case: trying to get interval from NULL pointer
+ * @n Input Data:
+ * li the NULL Ecore_Poller object
+ *
+ * @procedure
+ * @step 1 Call ecore_poller_poller_interval_get() function with NULL given as parameter
+ *
+ * @passcondition: function returns without crash
+ * @}
+ */
+START_TEST(utc_ecore_poller_poller_interval_get_n)
+{
+   int interval;
+
+   interval = ecore_poller_poller_interval_get(NULL);
+   printf("[TEST_MSG]:: %s[%d] : poller intervall = %f\n", __FILE__, __LINE__, interval);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_poller_poller_interval_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_poller_poller_interval_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_poller_poller_interval_set_p);
+#ifdef NOT_APPROVED_FOR_BUILD
+   tcase_add_test(tcase, utc_ecore_poller_poller_interval_set_n);
+#endif
+    tcase_add_test(tcase, utc_ecore_poller_poller_interval_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_set.c b/TC/ecore/ecore_poll/utc_ecore_poller_poller_interval_set.c
deleted file mode 100644 (file)
index f09b9cd..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include "../../utc_negative_unitest.h"
-
-/**
- * @addtogroup ecore_poll
- * @{
- * @defgroup ecore_poller_poller_interval_set ecore_poller_poller_interval_set()
- *
- * @precondition
- * @step 1 Initialize ecore library
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/*
- * Callback for ecore_poller. Compatible with with Ecore_Task_Cb type.
- */
-static Eina_Bool _poller_cb(void *data)
-{
-   return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_poller_poller_interval_set
- * @{
- * @objective Positive test case sets interval value on proper Ecore_Poller
- * @n Input Data:
- * li the Ecore_Poller object
- * li the int 4 as poller interval
- *
- * @procedure
- * @step 1 Set desired interval value for created Ecore_Poller.
- * @step 2 Use ecore_poller_poller_interval_get() to verify interval of created
- * Ecore_Poller
- *
- * @passcondition: function ecore_poller_poller_interval_set() returns EINA_TRUE
- * and value retrieved by get is the same as previously set.
- * @}
- */
-START_TEST(utc_ecore_poller_poller_interval_set_p)
-{
-   int interval = 4;
-   Eina_Bool ret = EINA_FALSE;
-   Ecore_Poller *poller;
-   char *str = "poller";
-
-   ecore_poller_poll_interval_set(ECORE_POLLER_CORE, 2);
-   poller = ecore_poller_add(ECORE_POLLER_CORE, 2, _poller_cb, (void*)str);
-   if (!poller)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   ret = ecore_poller_poller_interval_set(poller, interval);
-
-   if (ret != EINA_TRUE || ecore_poller_poller_interval_get(poller) != interval)
-     {
-        ecore_poller_del(poller);
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   ecore_poller_del(poller);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_poller_poller_interval_set
- * @{
- * @objective Negative test case checks if function din't set negative value like as interval
- * and doen't case segfault on NULL instead of poller object.
- * @n Input Data:
- * li the NULL Ecore_Poller object
- * li the int -4 as invalid poller interval
- *
- * @procedure
- * @step 1 Create poller object and set interval 4
- * @step 2 Set interval for poller object -4 and and call ecore_poller_poller_interval_get
- * for comparison.
- * @step 2 Call function with NULL instead of poller object
- *
- * @passcondition: Function doesn't set negative interval and doesn't cause segmentation fault.
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-START_TEST(utc_ecore_poller_poller_interval_set_n)
-{
-
-   Eina_Bool res = EINA_FALSE;
-   int interval = 4;
-   Ecore_Poller *poller;
-   poller = ecore_poller_add(ECORE_POLLER_CORE, 2, _poller_cb, NULL);
-   if (!poller)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Poller wasn't created.", __FILE__, __LINE__);
-        return;
-     }
-   res = ecore_poller_poller_interval_set(poller, interval);
-
-   if (res)
-     {
-        ecore_poller_poller_interval_set(poller, -4);
-        if (ecore_poller_poller_interval_get(poller) == -4)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d]: Test has failed.. interval is ", __FILE__, __LINE__);
-             return;
-          }
-        ecore_poller_poller_interval_set(NULL, 4);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-#endif
-/**
- *@}
- */
-
-TCase * _utc_ecore_poller_poller_interval_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_poller_poller_interval_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-#ifdef NOT_APPROVED_FOR_BUILD
-#endif
-   tcase_add_test(tcase, utc_ecore_poller_poller_interval_set_p);
-#ifdef NOT_APPROVED_FOR_BUILD
-   tcase_add_test(tcase, utc_ecore_poller_poller_interval_set_n);
-#endif
-   return tcase;
-}
index ed07f62784655e8f2b7d50b0fe6e122032b1dd1c..c92ee5975a7ffe131a19bb4c6e81894743e0825e 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_power_state_get.c
-utc_ecore_power_state_set.c
+utc_ecore_power_state_get_set.c
index af90a6f35c299fe125c03c06b10dd21a9f250eb9..bb8119ac7b7da5485cf444399b9b5e28d0ea9ad7 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_power_state_get.c
-utc_ecore_power_state_set.c
\ No newline at end of file
+utc_ecore_power_state_get_set.c
\ No newline at end of file
index af90a6f35c299fe125c03c06b10dd21a9f250eb9..bb8119ac7b7da5485cf444399b9b5e28d0ea9ad7 100644 (file)
@@ -1,2 +1 @@
-utc_ecore_power_state_get.c
-utc_ecore_power_state_set.c
\ No newline at end of file
+utc_ecore_power_state_get_set.c
\ No newline at end of file
index 90fc51849672ce3781278b3e2b01ababff2248e8..e385ec8687477fcb08c5d1d7f6eeb1acd6f075f9 100644 (file)
@@ -1,2 +1 @@
-#utc_ecore_power_state_get.c
-#utc_ecore_power_state_set.c
\ No newline at end of file
+#utc_ecore_power_state_gets_set.c
\ No newline at end of file
index 90fc51849672ce3781278b3e2b01ababff2248e8..69c57b78fd839af322062c224ddace3006877a2d 100644 (file)
@@ -1,2 +1 @@
-#utc_ecore_power_state_get.c
-#utc_ecore_power_state_set.c
\ No newline at end of file
+#utc_ecore_power_state_get_set.c
\ No newline at end of file
diff --git a/TC/ecore/ecore_power/utc_ecore_power_state_get.c b/TC/ecore/ecore_power/utc_ecore_power_state_get.c
deleted file mode 100644 (file)
index e39bc20..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-/**
- * @addtogroup ecore_power
- * @{
- * @defgroup ecore_power_state_get ecore_power_state_get()
- *
- * @precondition
- * @step 1 Initialize with ecore_init().
- */
-static void
-setup(void)
-{
-    printf(" ============ Startup ============ \n");
-    UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-    printf(" ============ Cleanup ============ \n");
-    ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_power_state_get
- * @{
- * @objective Positive test case 1 checks if ecore_power_state_get succeeds.
- * @n Input Data: none.
- *
- * @procedure
- * @step 1 Set test value with ecore_power_state_set
- * @step 2 Invoke ecore_power_state_get
- * @step 3 Compare value from ecore_power_state_get with test value
- * @step 4 Set test value with ecore_power_state_set
- * @step 5 Invoke ecore_power_state_get
- * @step 6 Compare value from ecore_power_state_get with test value
- *
- * @passcondition
- * Values must be equals.
- * @}
- */
-START_TEST(utc_ecore_power_state_get_p)
-{
-    ecore_power_state_set(ECORE_POWER_STATE_MAINS);
-    Ecore_Power_State power_state = ecore_power_state_get();
-    if (power_state != ECORE_POWER_STATE_MAINS)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-
-    ecore_power_state_set(ECORE_POWER_STATE_LOW);
-    power_state = ecore_power_state_get();
-    if (power_state != ECORE_POWER_STATE_LOW)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_power_state_get
- * @{
- * @objective Positive test case 2 checks if ecore_power_state_get succeeds.
- * @n Input Data: none.
- *
- * @procedure
- * @step 1 Set test value with ecore_power_state_set
- * @step 2 Invoke ecore_power_state_get
- * @step 3 Compare value from ecore_power_state_get with test value
- *
- * @passcondition
- * Values must be equals.
- * @}
- */
-START_TEST(utc_ecore_power_state_get_p2)
-{
-    ecore_power_state_set(ECORE_POWER_STATE_BATTERY);
-    Ecore_Power_State power_state = ecore_power_state_get();
-    if (power_state != ECORE_POWER_STATE_BATTERY)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_ecore_power_state_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_power_state_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_power_state_get_p);
-   tcase_add_test(tcase, utc_ecore_power_state_get_p2);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_power/utc_ecore_power_state_get_set.c b/TC/ecore/ecore_power/utc_ecore_power_state_get_set.c
new file mode 100644 (file)
index 0000000..5553f54
--- /dev/null
@@ -0,0 +1,142 @@
+#include <check.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+static Eina_Bool event_emited = EINA_FALSE;
+/**
+ * @addtogroup ecore_power
+ * @{
+ * @defgroup ecore_power_state_set ecore_power_state_set()
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_init().
+ */
+static void
+setup(void)
+{
+    printf(" ============ Startup ============ \n");
+    UTC_ECORE_INIT();
+}
+
+static void
+teardown(void)
+{
+    printf(" ============ Cleanup ============ \n");
+    ecore_shutdown();
+}
+
+static Eina_Bool
+_timer_cb(void *data)
+{
+   ecore_main_loop_quit();
+   return EINA_FALSE;
+}
+
+static Eina_Bool
+_handler_cb(void *data,
+            int type,
+            void *event)
+{
+    event_emited = EINA_TRUE;
+    ecore_main_loop_quit();
+    return ECORE_CALLBACK_PASS_ON;
+}
+
+/**
+ * @addtogroup ecore_power_state_set
+ * @{
+ * @objective Positive test case 1 checks if ecore_power_state_set succeeds.
+ * @n Input Data:
+ * @li value from Ecore_Power_State enum
+ *
+ * @procedure
+ * @step 1 Set value via ecore_power_state_set from Ecore_Power_State enum.
+ * @step 2 Get value via ecore_power_state_get
+ * @step 3 Compare this two values
+ * @step 4 Repeat steps 1-3 for each value in Ecore_Power_State enum
+ *
+ * @passcondition
+ * All values must be set correctly .
+ * @}
+ */
+START_TEST(utc_ecore_power_state_set_p)
+{
+    Ecore_Power_State power_state = ECORE_POWER_STATE_MAINS;
+
+    ecore_power_state_set(ECORE_POWER_STATE_LOW);
+    power_state = ecore_power_state_get();
+    if (power_state != ECORE_POWER_STATE_LOW)
+    {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+    }
+
+    ecore_power_state_set(ECORE_POWER_STATE_BATTERY);
+    power_state = ecore_power_state_get();
+    if (power_state != ECORE_POWER_STATE_BATTERY)
+    {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+    }
+
+    ecore_power_state_set(ECORE_POWER_STATE_MAINS);
+    power_state = ecore_power_state_get();
+    if (power_state != ECORE_POWER_STATE_MAINS)
+    {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+    }
+    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_power_state_set
+ * @{
+ * @objective Positive test case 2 checks if ecore_power_state_set emits ECORE_EVENT_POWER_STATE event.
+ * @n Input Data:
+ * @li value from Ecore_Power_State enum
+ *
+ * @procedure
+ * @step 1 Add a timer with _timer_cb callback
+ * @step 2 Add a event handler with _handler_cb callback
+ * @step 3 Invoke ecore_power_state_set with some value
+ * @step 4 Start main loop
+ * @step 5 In _handler_cb, set event_emited and invoke ecore_main_loop_quit
+ * @step 6 Check event_emited
+ *
+ * @passcondition
+ * Variable event_emited must be equal to EINA_TRUE, and there is no timeout.
+ * @}
+ */
+START_TEST(utc_ecore_power_state_set_p2)
+{
+    Ecore_Event_Handler *eh = NULL;
+
+    ecore_timer_add(3, _timer_cb, NULL);
+    eh = ecore_event_handler_add(ECORE_EVENT_POWER_STATE, _handler_cb, NULL);
+    ecore_power_state_set(ECORE_POWER_STATE_BATTERY);
+    ecore_main_loop_begin();
+
+    if (eh != NULL)
+    {
+        ecore_event_handler_del(eh);
+    }
+    if (event_emited == EINA_FALSE)
+    {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+    }
+    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_power_state_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_power_state_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_power_state_set_p);
+   tcase_add_test(tcase, utc_ecore_power_state_set_p2);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_power/utc_ecore_power_state_set.c b/TC/ecore/ecore_power/utc_ecore_power_state_set.c
deleted file mode 100644 (file)
index 9b19f07..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-static Eina_Bool event_emited = EINA_FALSE;
-/**
- * @addtogroup ecore_power
- * @{
- * @defgroup ecore_power_state_set ecore_power_state_set()
- *
- * @precondition
- * @step 1 Initialize with ecore_init().
- */
-static void
-setup(void)
-{
-    printf(" ============ Startup ============ \n");
-    UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-    printf(" ============ Cleanup ============ \n");
-    ecore_shutdown();
-}
-
-static Eina_Bool
-_timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return EINA_FALSE;
-}
-
-static Eina_Bool
-_handler_cb(void *data,
-            int type,
-            void *event)
-{
-    event_emited = EINA_TRUE;
-    ecore_main_loop_quit();
-    return ECORE_CALLBACK_PASS_ON;
-}
-
-/**
- * @addtogroup ecore_power_state_set
- * @{
- * @objective Positive test case 1 checks if ecore_power_state_set succeeds.
- * @n Input Data:
- * @li value from Ecore_Power_State enum
- *
- * @procedure
- * @step 1 Set value via ecore_power_state_set from Ecore_Power_State enum.
- * @step 2 Get value via ecore_power_state_get
- * @step 3 Compare this two values
- * @step 4 Repeat steps 1-3 for each value in Ecore_Power_State enum
- *
- * @passcondition
- * All values must be set correctly .
- * @}
- */
-START_TEST(utc_ecore_power_state_set_p)
-{
-    Ecore_Power_State power_state = ECORE_POWER_STATE_MAINS;
-
-    ecore_power_state_set(ECORE_POWER_STATE_LOW);
-    power_state = ecore_power_state_get();
-    if (power_state != ECORE_POWER_STATE_LOW)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-
-    ecore_power_state_set(ECORE_POWER_STATE_BATTERY);
-    power_state = ecore_power_state_get();
-    if (power_state != ECORE_POWER_STATE_BATTERY)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-
-    ecore_power_state_set(ECORE_POWER_STATE_MAINS);
-    power_state = ecore_power_state_get();
-    if (power_state != ECORE_POWER_STATE_MAINS)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_power_state_set
- * @{
- * @objective Positive test case 2 checks if ecore_power_state_set emits ECORE_EVENT_POWER_STATE event.
- * @n Input Data:
- * @li value from Ecore_Power_State enum
- *
- * @procedure
- * @step 1 Add a timer with _timer_cb callback
- * @step 2 Add a event handler with _handler_cb callback
- * @step 3 Invoke ecore_power_state_set with some value
- * @step 4 Start main loop
- * @step 5 In _handler_cb, set event_emited and invoke ecore_main_loop_quit
- * @step 6 Check event_emited
- *
- * @passcondition
- * Variable event_emited must be equal to EINA_TRUE, and there is no timeout.
- * @}
- */
-START_TEST(utc_ecore_power_state_set_p2)
-{
-    Ecore_Event_Handler *eh = NULL;
-
-    ecore_timer_add(3, _timer_cb, NULL);
-    eh = ecore_event_handler_add(ECORE_EVENT_POWER_STATE, _handler_cb, NULL);
-    ecore_power_state_set(ECORE_POWER_STATE_BATTERY);
-    ecore_main_loop_begin();
-
-    if (eh != NULL)
-    {
-        ecore_event_handler_del(eh);
-    }
-    if (event_emited == EINA_FALSE)
-    {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-    }
-    printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_power_state_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_power_state_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_power_state_set_p);
-   tcase_add_test(tcase, utc_ecore_power_state_set_p2);
-   return tcase;
-}
index b4541ab23ea1950c24d64231b5f413ce1068f7ba..b0a2f506208e3112878753122f32e87ebbeb7f60 100644 (file)
@@ -5,8 +5,7 @@ utc_ecore_thread_check.c
 utc_ecore_thread_global_data_add.c
 utc_ecore_thread_global_data_del.c
 utc_ecore_thread_global_data_find.c
-utc_ecore_thread_max_set.c
-utc_ecore_thread_max_get.c
+utc_ecore_thread_max_get_set.c
 utc_ecore_thread_active_get.c
 utc_ecore_thread_available_get.c
 utc_ecore_thread_pending_get.c
index b4541ab23ea1950c24d64231b5f413ce1068f7ba..b0a2f506208e3112878753122f32e87ebbeb7f60 100644 (file)
@@ -5,8 +5,7 @@ utc_ecore_thread_check.c
 utc_ecore_thread_global_data_add.c
 utc_ecore_thread_global_data_del.c
 utc_ecore_thread_global_data_find.c
-utc_ecore_thread_max_set.c
-utc_ecore_thread_max_get.c
+utc_ecore_thread_max_get_set.c
 utc_ecore_thread_active_get.c
 utc_ecore_thread_available_get.c
 utc_ecore_thread_pending_get.c
index b4541ab23ea1950c24d64231b5f413ce1068f7ba..b0a2f506208e3112878753122f32e87ebbeb7f60 100644 (file)
@@ -5,8 +5,7 @@ utc_ecore_thread_check.c
 utc_ecore_thread_global_data_add.c
 utc_ecore_thread_global_data_del.c
 utc_ecore_thread_global_data_find.c
-utc_ecore_thread_max_set.c
-utc_ecore_thread_max_get.c
+utc_ecore_thread_max_get_set.c
 utc_ecore_thread_active_get.c
 utc_ecore_thread_available_get.c
 utc_ecore_thread_pending_get.c
index 5fc96b0ddd1411cd7cdf93600fd46d7de4e36361..4d405657b8f94e726965523160ac2c86cd775546 100644 (file)
@@ -5,8 +5,7 @@ utc_ecore_thread_check.c
 utc_ecore_thread_global_data_add.c
 utc_ecore_thread_global_data_del.c
 utc_ecore_thread_global_data_find.c
-utc_ecore_thread_max_set.c
-utc_ecore_thread_max_get.c
+utc_ecore_thread_max_get_set.c
 utc_ecore_thread_active_get.c
 utc_ecore_thread_available_get.c
 utc_ecore_thread_pending_get.c
index 5fc96b0ddd1411cd7cdf93600fd46d7de4e36361..4d405657b8f94e726965523160ac2c86cd775546 100644 (file)
@@ -5,8 +5,7 @@ utc_ecore_thread_check.c
 utc_ecore_thread_global_data_add.c
 utc_ecore_thread_global_data_del.c
 utc_ecore_thread_global_data_find.c
-utc_ecore_thread_max_set.c
-utc_ecore_thread_max_get.c
+utc_ecore_thread_max_get_set.c
 utc_ecore_thread_active_get.c
 utc_ecore_thread_available_get.c
 utc_ecore_thread_pending_get.c
diff --git a/TC/ecore/ecore_thread/utc_ecore_thread_max_get.c b/TC/ecore/ecore_thread/utc_ecore_thread_max_get.c
deleted file mode 100644 (file)
index 7a8815b..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_thread
- * @{
- * @defgroup ecore_thread_max_get ecore_thread_max_get()
- *
- *
- * @precondition
- * @step 1 Initialization ecore
- * @step 2 Initialization eina
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-
-   eina_init();
-   UTC_ECORE_INIT();
-   startup_status = EINA_TRUE;
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-   eina_shutdown();
-}
-/**
- * @addtogroup ecore_thread_max_get
- * @{
- * @objective Positive test case checks that the tested function correctly retrieves maximal number of threads.
- * @n Input Data: none.
- *
- * @procedure
- * @step 1 Calculate maximal number of threads as doubled number of CPU cores.
- * @step 2 Call ecore_thread_max_set() for set the calculated maximal number of threads.
- * @step 3 Call tested function for retrieving current value of maximal threads number.
- * @step 4 Compare retrieved value with calculated value. They must be same.
- *
- * @passcondition : Function must return value which was set earlier.
- * @}
- */
-START_TEST(utc_ecore_thread_max_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   int val = 0, max = 0;
-
-   max = 2 * eina_cpu_count();
-   ecore_thread_max_set(max);
-   val = ecore_thread_max_get();
-   /* TODO Create a way of ecore_thread_max_reset() testing. */
-   ecore_thread_max_reset();
-
-   if (val != max)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_thread_max_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_thread_max_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_thread_max_get_p);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_thread/utc_ecore_thread_max_get_set.c b/TC/ecore/ecore_thread/utc_ecore_thread_max_get_set.c
new file mode 100644 (file)
index 0000000..24c6b7c
--- /dev/null
@@ -0,0 +1,141 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_thread
+ * @{
+ * @defgroup ecore_thread_max_set ecore_thread_max_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialization ecore and eina
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   eina_init();
+
+   UTC_ECORE_INIT();
+   startup_status = EINA_TRUE;
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   ecore_shutdown();
+   eina_shutdown();
+}
+
+/**
+ * @addtogroup ecore_thread_max_set
+ * @{
+ * @objective Positive test case checks that tested function correctly sets the admissible maximal number of threads.
+ * @n Input Data:
+ * @li maximal number of threads.
+ *
+ * @procedure
+ * @step 1 Calculate maximal number of threads as doubled number of CPU cores.
+ * @step 2 Call tested function for setting the calculated maximal number of threads.
+ * @step 3 Call ecore_thread_max_get() for retrieving current value of maximal threads number.
+ * @step 4 Compare retrieved value with calculated value. They must be same.
+ *
+ * @passcondition : The retrieved maximal number of threads must be equal to calculated maximal number of threads which was set earlier.
+ * @}
+ */
+START_TEST(utc_ecore_thread_max_set_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   int val = 0, max = 0;
+
+   max = 2 * eina_cpu_count();
+
+   ecore_thread_max_set(max);
+   val = ecore_thread_max_get();
+
+   if (val != max)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_thread_max_set
+ * @{
+ * @objective Negative test case checks that tested function correctly sets the admissible maximal number of threads.
+ * @n Input Data:
+ * @li maximal number of threads.
+ *
+ * @procedure
+ * @step 1 Calculate maximal number of threads as doubled number of CPU cores.
+ * @step 2 Call tested function for setting the calculated maximal number of threads.
+ * @step 3 Call ecore_thread_max_get() for retrieving current value of maximal threads number.
+ * @step 4 Compare retrieved value with calculated value. They must be same.
+ * @step 5 Call tested function for setting the too small maximal number of threads (it is zero).
+ * @step 6 Check that the too small maximal number has not been set (maximal number cannot be more then 16 * CPUs according to documentation).
+ * @step 7 Call tested function for setting the too large maximal number of threads (it is zero).
+ * @step 8 Check that the too large maximal number has not been set.
+ *
+ * @passcondition : Too small number and too large value must not be set as maximal number of thread.
+ * @}
+ */
+START_TEST(utc_ecore_thread_max_set_n)
+{
+
+   Eina_Bool ok = EINA_FALSE;
+   int val = 0, max = 0, cpu_cores = eina_cpu_count();
+
+   max = 2 * cpu_cores;
+   ecore_thread_max_set(max);
+   val = ecore_thread_max_get();
+   printf("[TEST_MSG]:: %s[%d] : thread_max = %d\n", __FILE__, __LINE__, val);
+   if (val == max)
+     {
+        ecore_thread_max_set(0);
+        val = ecore_thread_max_get();
+        printf("[TEST_MSG]:: %s[%d] : thread_max = %d\n", __FILE__, __LINE__, val);
+        if (val == max)
+          {
+             ecore_thread_max_set(INT_MAX);
+             val = ecore_thread_max_get();
+             printf("[TEST_MSG]:: %s[%d] : thread_max = %d\n",  __FILE__, __LINE__, val);
+             if (val != INT_MAX)
+               {
+                  ok = EINA_TRUE;
+               }
+          }
+     }
+
+   if (ok == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_thread_max_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_thread_max_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_thread_max_set_p);
+   tcase_add_test(tcase, utc_ecore_thread_max_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_thread/utc_ecore_thread_max_set.c b/TC/ecore/ecore_thread/utc_ecore_thread_max_set.c
deleted file mode 100644 (file)
index 4b54389..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_thread
- * @{
- * @defgroup ecore_thread_max_set ecore_thread_max_set()
- *
- *
- * @precondition
- * @step 1 Initialization ecore and eina
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   eina_init();
-
-   UTC_ECORE_INIT();
-   startup_status = EINA_TRUE;
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-   eina_shutdown();
-}
-
-/**
- * @addtogroup ecore_thread_max_set
- * @{
- * @objective Positive test case checks that tested function correctly sets the admissible maximal number of threads.
- * @n Input Data:
- * @li maximal number of threads.
- *
- * @procedure
- * @step 1 Calculate maximal number of threads as doubled number of CPU cores.
- * @step 2 Call tested function for setting the calculated maximal number of threads.
- * @step 3 Call ecore_thread_max_get() for retrieving current value of maximal threads number.
- * @step 4 Compare retrieved value with calculated value. They must be same.
- *
- * @passcondition : The retrieved maximal number of threads must be equal to calculated maximal number of threads which was set earlier.
- * @}
- */
-START_TEST(utc_ecore_thread_max_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   int val = 0, max = 0;
-
-   max = 2 * eina_cpu_count();
-
-   ecore_thread_max_set(max);
-   val = ecore_thread_max_get();
-
-   if (val != max)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_thread_max_set
- * @{
- * @objective Negative test case checks that tested function correctly sets the admissible maximal number of threads.
- * @n Input Data:
- * @li maximal number of threads.
- *
- * @procedure
- * @step 1 Calculate maximal number of threads as doubled number of CPU cores.
- * @step 2 Call tested function for setting the calculated maximal number of threads.
- * @step 3 Call ecore_thread_max_get() for retrieving current value of maximal threads number.
- * @step 4 Compare retrieved value with calculated value. They must be same.
- * @step 5 Call tested function for setting the too small maximal number of threads (it is zero).
- * @step 6 Check that the too small maximal number has not been set (maximal number cannot be more then 16 * CPUs according to documentation).
- * @step 7 Call tested function for setting the too large maximal number of threads (it is zero).
- * @step 8 Check that the too large maximal number has not been set.
- *
- * @passcondition : Too small number and too large value must not be set as maximal number of thread.
- * @}
- */
-START_TEST(utc_ecore_thread_max_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-        return;
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-   int val = 0, max = 0, cpu_cores = eina_cpu_count();
-
-   max = 2 * cpu_cores;
-   ecore_thread_max_set(max);
-   val = ecore_thread_max_get();
-   printf("[TEST_MSG]:: %s[%d] : thread_max = %d\n", __FILE__, __LINE__, val);
-   if (val == max)
-     {
-        ecore_thread_max_set(0);
-        val = ecore_thread_max_get();
-        printf("[TEST_MSG]:: %s[%d] : thread_max = %d\n", __FILE__, __LINE__, val);
-        if (val == max)
-          {
-             ecore_thread_max_set(INT_MAX);
-             val = ecore_thread_max_get();
-             printf("[TEST_MSG]:: %s[%d] : thread_max = %d\n",  __FILE__, __LINE__, val);
-             if (val != INT_MAX)
-               {
-                  ok = EINA_TRUE;
-               }
-          }
-     }
-
-   if (ok == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_thread_max_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_thread_max_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_thread_max_set_p);
-   tcase_add_test(tcase, utc_ecore_thread_max_set_n);
-   return tcase;
-}
index b5c7f363d6ab4c51b5acbc1989f6bbd999d657d0..d28dcff604d0a1339146853afdb2789483a207cf 100644 (file)
@@ -2,13 +2,11 @@ utc_ecore_timer_add.c
 utc_ecore_timer_del.c
 utc_ecore_timer_freeze.c
 utc_ecore_timer_thaw.c
-utc_ecore_timer_interval_get.c
-utc_ecore_timer_interval_set.c
+utc_ecore_timer_interval_get_set.c
 utc_ecore_timer_pending_get.c
 utc_ecore_timer_delay.c
-utc_ecore_timer_precision_set.c
+utc_ecore_timer_precision_get_set.c
 utc_ecore_timer_reset.c
 #!! 20161104 -- main build doesn't use flag "want_ecore_timer_dump", so removed - utc_ecore_timer_dump.c
 utc_ecore_timer_loop_add.c
-utc_ecore_timer_precision_get.c
 utc_ecore_timer_freeze_get.c
index b5c7f363d6ab4c51b5acbc1989f6bbd999d657d0..d28dcff604d0a1339146853afdb2789483a207cf 100644 (file)
@@ -2,13 +2,11 @@ utc_ecore_timer_add.c
 utc_ecore_timer_del.c
 utc_ecore_timer_freeze.c
 utc_ecore_timer_thaw.c
-utc_ecore_timer_interval_get.c
-utc_ecore_timer_interval_set.c
+utc_ecore_timer_interval_get_set.c
 utc_ecore_timer_pending_get.c
 utc_ecore_timer_delay.c
-utc_ecore_timer_precision_set.c
+utc_ecore_timer_precision_get_set.c
 utc_ecore_timer_reset.c
 #!! 20161104 -- main build doesn't use flag "want_ecore_timer_dump", so removed - utc_ecore_timer_dump.c
 utc_ecore_timer_loop_add.c
-utc_ecore_timer_precision_get.c
 utc_ecore_timer_freeze_get.c
index b5c7f363d6ab4c51b5acbc1989f6bbd999d657d0..d28dcff604d0a1339146853afdb2789483a207cf 100644 (file)
@@ -2,13 +2,11 @@ utc_ecore_timer_add.c
 utc_ecore_timer_del.c
 utc_ecore_timer_freeze.c
 utc_ecore_timer_thaw.c
-utc_ecore_timer_interval_get.c
-utc_ecore_timer_interval_set.c
+utc_ecore_timer_interval_get_set.c
 utc_ecore_timer_pending_get.c
 utc_ecore_timer_delay.c
-utc_ecore_timer_precision_set.c
+utc_ecore_timer_precision_get_set.c
 utc_ecore_timer_reset.c
 #!! 20161104 -- main build doesn't use flag "want_ecore_timer_dump", so removed - utc_ecore_timer_dump.c
 utc_ecore_timer_loop_add.c
-utc_ecore_timer_precision_get.c
 utc_ecore_timer_freeze_get.c
index 1ebf40d9cb7f0e13a8027cde68d1b12e77b949b6..22f894063a7d72570c0abb1cfe8aa6908a4deda1 100644 (file)
@@ -2,13 +2,11 @@ utc_ecore_timer_add.c
 utc_ecore_timer_del.c
 utc_ecore_timer_freeze.c
 utc_ecore_timer_thaw.c
-utc_ecore_timer_interval_get.c
-utc_ecore_timer_interval_set.c
+utc_ecore_timer_interval_get_set.c
 utc_ecore_timer_pending_get.c
 utc_ecore_timer_delay.c
-utc_ecore_timer_precision_set.c
+utc_ecore_timer_precision_get_set.c
 utc_ecore_timer_reset.c
 #utc_ecore_timer_dump.c
 utc_ecore_timer_loop_add.c
-utc_ecore_timer_precision_get.c
 #utc_ecore_timer_freeze_get.c
index 1ebf40d9cb7f0e13a8027cde68d1b12e77b949b6..22f894063a7d72570c0abb1cfe8aa6908a4deda1 100644 (file)
@@ -2,13 +2,11 @@ utc_ecore_timer_add.c
 utc_ecore_timer_del.c
 utc_ecore_timer_freeze.c
 utc_ecore_timer_thaw.c
-utc_ecore_timer_interval_get.c
-utc_ecore_timer_interval_set.c
+utc_ecore_timer_interval_get_set.c
 utc_ecore_timer_pending_get.c
 utc_ecore_timer_delay.c
-utc_ecore_timer_precision_set.c
+utc_ecore_timer_precision_get_set.c
 utc_ecore_timer_reset.c
 #utc_ecore_timer_dump.c
 utc_ecore_timer_loop_add.c
-utc_ecore_timer_precision_get.c
 #utc_ecore_timer_freeze_get.c
diff --git a/TC/ecore/ecore_timer/utc_ecore_timer_interval_get.c b/TC/ecore/ecore_timer/utc_ecore_timer_interval_get.c
deleted file mode 100644 (file)
index 4e7547b..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <float.h>
-#include <math.h>
-
-#define TIMER_DELAY 0.5
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_timer
- * @{
- * @defgroup ecore_timer_interval_get ecore_timer_interval_get()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- *
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        startup_status = EINA_TRUE;
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_timer_interval_get
- * @{
- * @objective Positive test case checks that the tested function really retrieves ticks interval of the given timer.
- * @n Input Data: the given Ecore_Timer object.
- *
- * @procedure
- * @step 1 Create new timer with the given ticks interval.
- * @step 2 Call tested function for retrieving current interval of the created timer.
- * @step 3 Compare returned value with ticks interval which was set at the timer creation.
- * @step 4 Delete timer.
- *
- * @passcondition
- * Function must return value equal to ticks interval which was set at the timer creation. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_timer_interval_get_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Timer *tested_timer = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   double current_interval_of_timer = 0.0;
-
-   tested_timer = ecore_timer_add(TIMER_DELAY, _timer_cb, NULL);
-   if (tested_timer == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
-     }
-   current_interval_of_timer = ecore_timer_interval_get(tested_timer);
-   ecore_timer_del(tested_timer);
-   if (fabs(current_interval_of_timer - TIMER_DELAY) <= DBL_EPSILON)
-     {
-        ok = EINA_TRUE;
-     }
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_timer_interval_get
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: NULL.
- *
- * @procedure
- * @step 1 Call tested function with NULL as argument.
- * @step 2 Check returned value. It must be equal to -1.0.
- *
- * @passcondition
- * Tested function must return -1.0, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_timer_interval_get_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-
-   if (fabs(ecore_timer_interval_get(NULL) + 1.0) <= DBL_EPSILON)
-     {
-        ok = EINA_TRUE;
-     }
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_timer_interval_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_timer_interval_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_timer_interval_get_p);
-   tcase_add_test(tcase, utc_ecore_timer_interval_get_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_timer/utc_ecore_timer_interval_get_set.c b/TC/ecore/ecore_timer/utc_ecore_timer_interval_get_set.c
new file mode 100644 (file)
index 0000000..a5b2665
--- /dev/null
@@ -0,0 +1,181 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <float.h>
+#include <math.h>
+
+#define OLD_TIMER_DELAY 0.5
+#define NEW_TIMER_DELAY 0.7
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_timer
+ * @{
+ * @defgroup ecore_timer_interval_set ecore_timer_interval_set()
+ *
+ * @precondition
+ * @step 1 Ecore initialized with ecore_init()
+ *
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        startup_status = EINA_TRUE;
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+static Eina_Bool _timer_cb(void *data)
+{
+   ecore_main_loop_quit();
+   return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_timer_interval_set
+ * @{
+ * @objective Positive test case checks that the tested function really sets ticks interval of the given timer.
+ * @n Input Data:
+ * @li the given Ecore_Timer object;
+ * @li interval of timer ticks.
+ *
+ * @procedure
+ * @step 1 Create new timer with the given ticks interval.
+ * @step 2 Call ecore_timer_interval_get() for retrieving current interval of the created timer.
+ * @step 3 Compare returned value with ticks interval which was set at the timer creation.
+ * @step 4 Call tested function for changing the ticks interval of given timer.
+ * @step 5 Call ecore_timer_interval_get() for retrieving current interval of the given timer.
+ * @step 6 Compare returned value with ticks interval which was set by tested function.
+ * @step 7 Delete timer.
+ *
+ * @passcondition
+ * In first case ecore_timer_interval_get() must return value equal to ticks interval which was set at the timer creation. In second case ecore_timer_interval_get() must return value equal to ticks interval which was set by the tested function. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_timer_interval_set_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Ecore_Timer *tested_timer = NULL;
+   Eina_Bool ok = EINA_FALSE;
+   double current_interval_of_timer = 0.0;
+
+   tested_timer = ecore_timer_add(OLD_TIMER_DELAY, _timer_cb, NULL);
+   if (tested_timer == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+     }
+   current_interval_of_timer = ecore_timer_interval_get(tested_timer);
+   if (fabs(current_interval_of_timer - OLD_TIMER_DELAY) <= DBL_EPSILON)
+     {
+        ecore_timer_interval_set(tested_timer, NEW_TIMER_DELAY);
+        current_interval_of_timer = ecore_timer_interval_get(tested_timer);
+        if (fabs(current_interval_of_timer - NEW_TIMER_DELAY) <= DBL_EPSILON)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   ecore_timer_del(tested_timer);
+
+   if (ok != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_timer_interval_set
+ * @{
+ * @objective Negative test case checks situation if first argument of tested function is NULL.
+ * @n Input Data:
+ * @li the timer object;
+ * @li 0.7/-0.7 seconds for the first/second function call.
+ *
+ * @procedure
+ * @step 1 Create new timer with the given ticks interval.
+ * @step 2 Call tested function with NULL instead of the timer object.
+ * @step 3 Call tested function with negative value as the interval to set.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_timer_interval_set_n)
+{
+   Ecore_Timer *tested_timer  = ecore_timer_add(OLD_TIMER_DELAY, _timer_cb, NULL);
+   if (tested_timer == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+     }
+
+   ecore_timer_interval_set(NULL, NEW_TIMER_DELAY);
+   ecore_timer_interval_set(tested_timer, -NEW_TIMER_DELAY);
+
+   ecore_timer_del(tested_timer);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_timer_interval_get
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: NULL.
+ *
+ * @procedure
+ * @step 1 Call tested function with NULL as argument.
+ * @step 2 Check returned value. It must be equal to -1.0.
+ *
+ * @passcondition
+ * Tested function must return -1.0, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_timer_interval_get_n)
+{
+
+   Eina_Bool ok = EINA_FALSE;
+
+   if (fabs(ecore_timer_interval_get(NULL) + 1.0) <= DBL_EPSILON)
+     {
+        ok = EINA_TRUE;
+     }
+
+   if (ok != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_timer_interval_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_timer_interval_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_timer_interval_set_p);
+   tcase_add_test(tcase, utc_ecore_timer_interval_set_n);
+   tcase_add_test(tcase, utc_ecore_timer_interval_get_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_timer/utc_ecore_timer_interval_set.c b/TC/ecore/ecore_timer/utc_ecore_timer_interval_set.c
deleted file mode 100644 (file)
index a75f4a6..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <float.h>
-#include <math.h>
-
-#define OLD_TIMER_DELAY 0.5
-#define NEW_TIMER_DELAY 0.7
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_timer
- * @{
- * @defgroup ecore_timer_interval_set ecore_timer_interval_set()
- *
- * @precondition
- * @step 1 Ecore initialized with ecore_init()
- *
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        startup_status = EINA_TRUE;
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _timer_cb(void *data)
-{
-   ecore_main_loop_quit();
-   return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_timer_interval_set
- * @{
- * @objective Positive test case checks that the tested function really sets ticks interval of the given timer.
- * @n Input Data:
- * @li the given Ecore_Timer object;
- * @li interval of timer ticks.
- *
- * @procedure
- * @step 1 Create new timer with the given ticks interval.
- * @step 2 Call ecore_timer_interval_get() for retrieving current interval of the created timer.
- * @step 3 Compare returned value with ticks interval which was set at the timer creation.
- * @step 4 Call tested function for changing the ticks interval of given timer.
- * @step 5 Call ecore_timer_interval_get() for retrieving current interval of the given timer.
- * @step 6 Compare returned value with ticks interval which was set by tested function.
- * @step 7 Delete timer.
- *
- * @passcondition
- * In first case ecore_timer_interval_get() must return value equal to ticks interval which was set at the timer creation. In second case ecore_timer_interval_get() must return value equal to ticks interval which was set by the tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_timer_interval_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Ecore_Timer *tested_timer = NULL;
-   Eina_Bool ok = EINA_FALSE;
-   double current_interval_of_timer = 0.0;
-
-   tested_timer = ecore_timer_add(OLD_TIMER_DELAY, _timer_cb, NULL);
-   if (tested_timer == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
-     }
-   current_interval_of_timer = ecore_timer_interval_get(tested_timer);
-   if (fabs(current_interval_of_timer - OLD_TIMER_DELAY) <= DBL_EPSILON)
-     {
-        ecore_timer_interval_set(tested_timer, NEW_TIMER_DELAY);
-        current_interval_of_timer = ecore_timer_interval_get(tested_timer);
-        if (fabs(current_interval_of_timer - NEW_TIMER_DELAY) <= DBL_EPSILON)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   ecore_timer_del(tested_timer);
-
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_timer_interval_set
- * @{
- * @objective Negative test case checks situation if first argument of tested function is NULL.
- * @n Input Data:
- * @li the timer object;
- * @li 0.7/-0.7 seconds for the first/second function call.
- *
- * @procedure
- * @step 1 Create new timer with the given ticks interval.
- * @step 2 Call tested function with NULL instead of the timer object.
- * @step 3 Call tested function with negative value as the interval to set.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_timer_interval_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-   Ecore_Timer *tested_timer  = ecore_timer_add(OLD_TIMER_DELAY, _timer_cb, NULL);
-   if (tested_timer == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
-     }
-
-   ecore_timer_interval_set(NULL, NEW_TIMER_DELAY);
-   ecore_timer_interval_set(tested_timer, -NEW_TIMER_DELAY);
-
-   ecore_timer_del(tested_timer);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_timer_interval_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_timer_interval_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_timer_interval_set_p);
-   tcase_add_test(tcase, utc_ecore_timer_interval_set_n);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_timer/utc_ecore_timer_precision_get.c b/TC/ecore/ecore_timer/utc_ecore_timer_precision_get.c
deleted file mode 100644 (file)
index d8cff54..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <math.h>
-
-/**
- * @addtogroup ecore_timer
- * @{
- * @defgroup ecore_timer_precision_get ecore_timer_precision_get()
- *
- *
- * @precondition
- * @step 1 ecore initialized with ecore_init()
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   ecore_shutdown();
-}
-
-/**
- * @addtogroup ecore_timer_precision_get
- * @{
- * @objective Positive test case 1: Set and get precision
- *
- * @n Input Data: function has no arguments.
- *
- * @procedure
- * @step 1  Call set precision function
- * @step 2  Call get precision function
- *
- * @passcondition: Value set in step 1 is equal value returned in step 2
- * @}
- */
-START_TEST(utc_ecore_timer_precision_get_p_01)
-{
-   const double EPS = 0.0001;
-   const double precision = 0.2;
-   ecore_timer_precision_set(precision);
-   if (fabs(ecore_timer_precision_get() - precision) > EPS)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   else
-     {
-        printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-     }
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_timer_precision_get()
-{
-   TCase *tcase = tcase_create("utc_ecore_timer_precision_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_timer_precision_get_p_01);
-   return tcase;
-}
diff --git a/TC/ecore/ecore_timer/utc_ecore_timer_precision_get_set.c b/TC/ecore/ecore_timer/utc_ecore_timer_precision_get_set.c
new file mode 100644 (file)
index 0000000..0a2125d
--- /dev/null
@@ -0,0 +1,122 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <float.h>
+#include <math.h>
+
+#define TIMER_DELAY 1.0
+#define OLD_PRECISION 0.1
+#define NEW_PRECISION 0.2
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_timer
+ * @{
+ * @defgroup ecore_timer_precision_set ecore_timer_precision_set()
+ *
+ * @precondition
+ * @step 1 Ecore initialized with ecore_init()
+ *
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ECORE_INIT();
+     {
+        startup_status = EINA_TRUE;
+     }
+}
+
+static void
+teardown(void)
+{
+   ecore_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup ecore_timer_precision_set
+ * @{
+ * @objective Positive test case checks that the tested function really sets precision of all timers.
+ * @n Input Data: the timer precision (0.1, 0.2).
+ *
+ * @procedure
+ * @step 2 Call tested function for setting the timers precision.
+ * @step 2 Call ecore_time_precision_get() for retrieving current precision.
+ * @step 3 Compare returned value with precision which was set by the tested function.
+ * @step 4 Call tested function for changing the precision.
+ * @step 2 Call ecore_time_precision_get() for retrieving current precision.
+ * @step 6 Compare returned value with precision which was set by the tested function.
+ * @step 7 Delete timer.
+ *
+ * @passcondition
+ * In all cases ecore_time_precision_get() must return value equal to timer precision which was set by tested function. Also, there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_timer_precision_set_p)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   Eina_Bool ok = EINA_FALSE;
+   double current_precision = -1.0;
+
+   ecore_timer_precision_set(OLD_PRECISION);
+   current_precision = ecore_timer_precision_get();
+   if (fabs(current_precision - OLD_PRECISION) <= DBL_EPSILON)
+     {
+        ecore_timer_precision_set(NEW_PRECISION);
+        current_precision = ecore_timer_precision_get();
+        if (fabs(current_precision - NEW_PRECISION) <= DBL_EPSILON)
+          {
+             ok = EINA_TRUE;
+          }
+     }
+   if (ok != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_timer_precision_set
+ * @{
+ * @objective Negative test case checks situation if first argument of tested function is incorfrect.
+ * @n Input Data: -1.0.
+ *
+ * @procedure
+ * @step 1 Call tested function with -1.0 as timer precision.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_ecore_timer_precision_set_n)
+{
+
+   ecore_timer_precision_set(-1.0);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_timer_precision_get_set()
+{
+   TCase *tcase = tcase_create("utc_ecore_timer_precision_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_ecore_timer_precision_set_p);
+   tcase_add_test(tcase, utc_ecore_timer_precision_set_n);
+   return tcase;
+}
diff --git a/TC/ecore/ecore_timer/utc_ecore_timer_precision_set.c b/TC/ecore/ecore_timer/utc_ecore_timer_precision_set.c
deleted file mode 100644 (file)
index fa4c77d..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <float.h>
-#include <math.h>
-
-#define TIMER_DELAY 1.0
-#define OLD_PRECISION 0.1
-#define NEW_PRECISION 0.2
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_timer
- * @{
- * @defgroup ecore_timer_precision_set ecore_timer_precision_set()
- *
- * @precondition
- * @step 1 Ecore initialized with ecore_init()
- *
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ECORE_INIT();
-     {
-        startup_status = EINA_TRUE;
-     }
-}
-
-static void
-teardown(void)
-{
-   ecore_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup ecore_timer_precision_set
- * @{
- * @objective Positive test case checks that the tested function really sets precision of all timers.
- * @n Input Data: the timer precision (0.1, 0.2).
- *
- * @procedure
- * @step 2 Call tested function for setting the timers precision.
- * @step 2 Call ecore_time_precision_get() for retrieving current precision.
- * @step 3 Compare returned value with precision which was set by the tested function.
- * @step 4 Call tested function for changing the precision.
- * @step 2 Call ecore_time_precision_get() for retrieving current precision.
- * @step 6 Compare returned value with precision which was set by the tested function.
- * @step 7 Delete timer.
- *
- * @passcondition
- * In all cases ecore_time_precision_get() must return value equal to timer precision which was set by tested function. Also, there is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_timer_precision_set_p)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-   double current_precision = -1.0;
-
-   ecore_timer_precision_set(OLD_PRECISION);
-   current_precision = ecore_timer_precision_get();
-   if (fabs(current_precision - OLD_PRECISION) <= DBL_EPSILON)
-     {
-        ecore_timer_precision_set(NEW_PRECISION);
-        current_precision = ecore_timer_precision_get();
-        if (fabs(current_precision - NEW_PRECISION) <= DBL_EPSILON)
-          {
-             ok = EINA_TRUE;
-          }
-     }
-   if (ok != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_timer_precision_set
- * @{
- * @objective Negative test case checks situation if first argument of tested function is incorfrect.
- * @n Input Data: -1.0.
- *
- * @procedure
- * @step 1 Call tested function with -1.0 as timer precision.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_ecore_timer_precision_set_n)
-{
-   if (startup_status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
-     }
-
-   ecore_timer_precision_set(-1.0);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_timer_precision_set()
-{
-   TCase *tcase = tcase_create("utc_ecore_timer_precision_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_ecore_timer_precision_set_p);
-   tcase_add_test(tcase, utc_ecore_timer_precision_set_n);
-   return tcase;
-}