utc_elm_mapbuf_xxxx: Merge TCs to reduce duplicate test operations 61/188961/1
authorApurv Khatri <apurv.khatri@samsung.com>
Wed, 12 Sep 2018 05:05:13 +0000 (10:35 +0530)
committerApurv Khatri <apurv.khatri@samsung.com>
Wed, 12 Sep 2018 05:05:13 +0000 (10:35 +0530)
Change-Id: Ia058da2886d59ecbda7abd7da31211e0ad27dcf7

14 files changed:
TC/elementary/mapbuf/tslist
TC/elementary/mapbuf/tslist_mobile
TC/elementary/mapbuf/tslist_tv
TC/elementary/mapbuf/tslist_wear
TC/elementary/mapbuf/utc_elm_mapbuf_add.c [deleted file]
TC/elementary/mapbuf/utc_elm_mapbuf_alpha_get.c [deleted file]
TC/elementary/mapbuf/utc_elm_mapbuf_alpha_get_set.c [new file with mode: 0644]
TC/elementary/mapbuf/utc_elm_mapbuf_alpha_set.c [deleted file]
TC/elementary/mapbuf/utc_elm_mapbuf_enabled_get.c [deleted file]
TC/elementary/mapbuf/utc_elm_mapbuf_enabled_get_set.c [new file with mode: 0644]
TC/elementary/mapbuf/utc_elm_mapbuf_enabled_set.c [deleted file]
TC/elementary/mapbuf/utc_elm_mapbuf_smooth_get.c [deleted file]
TC/elementary/mapbuf/utc_elm_mapbuf_smooth_get_set.c [new file with mode: 0644]
TC/elementary/mapbuf/utc_elm_mapbuf_smooth_set.c [deleted file]

index ce10f19450869ba0b369aa6a4eb7738064773921..e75ed28c6110e17d91b11e78997ad34884b9bfd7 100644 (file)
@@ -1,10 +1,6 @@
-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
 utc_elm_mapbuf_point_color_get.c
 utc_elm_mapbuf_point_color_set.c
 utc_elm_mapbuf_auto.c
\ No newline at end of file
index ce10f19450869ba0b369aa6a4eb7738064773921..e75ed28c6110e17d91b11e78997ad34884b9bfd7 100644 (file)
@@ -1,10 +1,6 @@
-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
 utc_elm_mapbuf_point_color_get.c
 utc_elm_mapbuf_point_color_set.c
 utc_elm_mapbuf_auto.c
\ No newline at end of file
index e4f62e55ff24e5092808939b49306cce8234f8f1..674148a89da542562150e30082ececd20772704e 100644 (file)
@@ -1,10 +1,6 @@
-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
 utc_elm_mapbuf_point_color_get.c
 utc_elm_mapbuf_point_color_set.c
 #utc_elm_mapbuf_auto.c
\ No newline at end of file
index e4f62e55ff24e5092808939b49306cce8234f8f1..674148a89da542562150e30082ececd20772704e 100644 (file)
@@ -1,10 +1,6 @@
-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
 utc_elm_mapbuf_point_color_get.c
 utc_elm_mapbuf_point_color_set.c
 #utc_elm_mapbuf_auto.c
\ No newline at end of file
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_add.c b/TC/elementary/mapbuf/utc_elm_mapbuf_add.c
deleted file mode 100644 (file)
index 1dd7417..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_add elm_mapbuf_add()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-     {
-        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-        if (main_win != NULL)
-          {
-             startup_status = EINA_TRUE;
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_add
- * @{
- * @objective Positive test case checks that the tested function successfully adds a new mapbuf widget to the given parent object.
- * @n Input Data: the parent object initialized in startup.
- *
- * @procedure
- * @step 1 Add a mapbuf widget to the main window.
- * @step 2 Check returned handle of widget.
- * @step 3 Delete mapbuf widget.
- *
- * @passcondition
- * Function must return nonnull mapbuf widget, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_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;
-     }
-
-   Evas_Object *mapbuf = NULL;
-
-   mapbuf = elm_mapbuf_add(main_win);
-
-   if (mapbuf == 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__);
-   evas_object_del(mapbuf);
-}
-END_TEST
-
-/**
- * @addtogroup elm_mapbuf_add
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: the parent object initialized in startup (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the parent window object.
- *
- * @passcondition
- * Tested function must return NULL, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_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;
-     }
-
-   if (UNITEST_FUNC_NEG_RET(NULL, elm_mapbuf_add, main_win) == 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_elm_mapbuf_add()
-{
-   TCase *tcase = tcase_create("utc_elm_mapbuf_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_mapbuf_add_p);
-   tcase_add_test(tcase, utc_elm_mapbuf_add_n);
-   return tcase;
-}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_alpha_get.c b/TC/elementary/mapbuf/utc_elm_mapbuf_alpha_get.c
deleted file mode 100644 (file)
index d9945af..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_alpha_get elm_mapbuf_alpha_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-     {
-        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-        if (main_win != NULL)
-          {
-             mapbuf = elm_mapbuf_add(main_win);
-             if (mapbuf != NULL)
-               {
-                  startup_status = EINA_TRUE;
-                  elm_win_resize_object_add(main_win, mapbuf);
-                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (mapbuf != NULL)
-     {
-        evas_object_del(mapbuf);
-        mapbuf = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_alpha_get
- * @{
- * @objective Positive test case checks that the tested function successfully retrieves a value of alpha blending.
- * @n Input Data: given mapbuf object.
- *
- * @procedure
- * @step 1 Turn on alpha blending for the given map.
- * @step 2 Get current value of alpha blending.
- * @step 3 Turn off alpha blending for the given map.
- * @step 4 Get current value of alpha blending.
- *
- * @passcondition
- * Tested function must return EINA_TRUE in first case (when alpha blending is turned on), and it must return EINA_FALSE in second case (when alpha blending is turned off). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_alpha_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;
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-
-   elm_mapbuf_alpha_set(mapbuf, EINA_TRUE);
-   if (elm_mapbuf_alpha_get(mapbuf) == EINA_TRUE)
-     {
-        elm_mapbuf_alpha_set(mapbuf, EINA_FALSE);
-        if (elm_mapbuf_alpha_get(mapbuf) == EINA_FALSE)
-          {
-             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 elm_mapbuf_alpha_get
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_alpha_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;
-     }
-
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_alpha_get, mapbuf) == 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_elm_mapbuf_alpha_get()
-{
-   TCase *tcase = tcase_create("utc_elm_mapbuf_alpha_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_mapbuf_alpha_get_p);
-   tcase_add_test(tcase, utc_elm_mapbuf_alpha_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_alpha_get_set.c b/TC/elementary/mapbuf/utc_elm_mapbuf_alpha_get_set.c
new file mode 100644 (file)
index 0000000..ba77b28
--- /dev/null
@@ -0,0 +1,205 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Evas_Object *main_win = NULL;
+static Evas_Object *mapbuf = NULL;
+
+/**
+ * @addtogroup elm_mapbuf
+ * @{
+ * @defgroup elm_mapbuf_alpha_set elm_mapbuf_alpha_set()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ * @step 3 Add a new mapbuf widget to the main window
+ * @step 4 Resize and set hints for mapbuf
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+     {
+        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+        if (main_win != NULL)
+          {
+             mapbuf = elm_mapbuf_add(main_win);
+             if (mapbuf != NULL)
+               {
+                  startup_status = EINA_TRUE;
+                  elm_win_resize_object_add(main_win, mapbuf);
+                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   if (mapbuf != NULL)
+     {
+        evas_object_del(mapbuf);
+        mapbuf = NULL;
+     }
+
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_mapbuf_alpha_set
+ * @{
+ * @objective Positive test case checks that the tested function successfully sets a value of alpha blending.
+ * @n Input Data:
+ * @li given mapbuf object;
+ * @li alpha blending (EINA_TRUE in first case, and EINA_FALSE in second case).
+ *
+ * @procedure
+ * @step 1 Set alpha flag for map rendering to EINA_TRUE
+ * @step 2 Get alpha flag for map rendering
+ * @step 3 Set alpha flag for map rendering to EINA_FALSE
+ * @step 4 Get alpha flag for map rendering
+ *
+ * @passcondition
+ * In first case the tested function must return EINA_TRUE, and in second case the tested function must return EINA_FALSE. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_elm_mapbuf_alpha_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 alpha1 = EINA_FALSE;
+   Eina_Bool alpha2 = EINA_TRUE;
+
+   elm_mapbuf_alpha_set(mapbuf, EINA_TRUE);
+   alpha1 = elm_mapbuf_alpha_get(mapbuf);
+
+   elm_mapbuf_alpha_set(mapbuf, EINA_FALSE);
+   alpha2 = elm_mapbuf_alpha_get(mapbuf);
+
+   if (alpha1 != EINA_TRUE || alpha2 != 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 elm_mapbuf_alpha_set
+ * @{
+ * @objective Negative test case checks situation if first argument is NULL
+ * @n Input Data:
+ * @li given mapbuf object (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_alpha_set_n)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(elm_mapbuf_alpha_set, mapbuf, EINA_TRUE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_mapbuf_alpha_get
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_alpha_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(EINA_FALSE, elm_mapbuf_alpha_get, mapbuf) == 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 elm_mapbuf_add
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: the parent object initialized in startup (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the parent window object.
+ *
+ * @passcondition
+ * Tested function must return NULL, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_add_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(NULL, elm_mapbuf_add, main_win) == 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_elm_mapbuf_alpha_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_mapbuf_alpha_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_p);
+   tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_n);
+   tcase_add_test(tcase, utc_elm_mapbuf_alpha_get_n);
+   tcase_add_test(tcase, utc_elm_mapbuf_add_n);
+   return tcase;
+}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_alpha_set.c b/TC/elementary/mapbuf/utc_elm_mapbuf_alpha_set.c
deleted file mode 100644 (file)
index 87f41fb..0000000
+++ /dev/null
@@ -1,150 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_alpha_set elm_mapbuf_alpha_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-     {
-        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-        if (main_win != NULL)
-          {
-             mapbuf = elm_mapbuf_add(main_win);
-             if (mapbuf != NULL)
-               {
-                  startup_status = EINA_TRUE;
-                  elm_win_resize_object_add(main_win, mapbuf);
-                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (mapbuf != NULL)
-     {
-        evas_object_del(mapbuf);
-        mapbuf = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_alpha_set
- * @{
- * @objective Positive test case checks that the tested function successfully sets a value of alpha blending.
- * @n Input Data:
- * @li given mapbuf object;
- * @li alpha blending (EINA_TRUE in first case, and EINA_FALSE in second case).
- *
- * @procedure
- * @step 1 Set alpha flag for map rendering to EINA_TRUE
- * @step 2 Get alpha flag for map rendering
- * @step 3 Set alpha flag for map rendering to EINA_FALSE
- * @step 4 Get alpha flag for map rendering
- *
- * @passcondition
- * In first case the tested function must return EINA_TRUE, and in second case the tested function must return EINA_FALSE. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_alpha_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;
-     }
-
-   Eina_Bool alpha1 = EINA_FALSE;
-   Eina_Bool alpha2 = EINA_TRUE;
-
-   elm_mapbuf_alpha_set(mapbuf, EINA_TRUE);
-   alpha1 = elm_mapbuf_alpha_get(mapbuf);
-
-   elm_mapbuf_alpha_set(mapbuf, EINA_FALSE);
-   alpha2 = elm_mapbuf_alpha_get(mapbuf);
-
-   if (alpha1 != EINA_TRUE || alpha2 != 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 elm_mapbuf_alpha_set
- * @{
- * @objective Negative test case checks situation if first argument is NULL
- * @n Input Data:
- * @li given mapbuf object (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_alpha_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;
-     }
-
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(elm_mapbuf_alpha_set, mapbuf, EINA_TRUE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_mapbuf_alpha_set()
-{
-   TCase *tcase = tcase_create("utc_elm_mapbuf_alpha_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_p);
-   tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_enabled_get.c b/TC/elementary/mapbuf/utc_elm_mapbuf_enabled_get.c
deleted file mode 100644 (file)
index 2a78fe5..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_enabled_get elm_mapbuf_enabled_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-     {
-        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-        if (main_win != NULL)
-          {
-             mapbuf = elm_mapbuf_add(main_win);
-             if (mapbuf != NULL)
-               {
-                  startup_status = EINA_TRUE;
-                  elm_win_resize_object_add(main_win, mapbuf);
-                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (mapbuf != NULL)
-     {
-        evas_object_del(mapbuf);
-        mapbuf = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_enabled_get
- * @{
- * @objective Positive test case checks that the tested function retrieves a value whether map is enabled or not.
- * @n Input Data: given mapbuf object.
- *
- * @procedure
- * @step 1 Enable the map.
- * @step 2 Get value whether map is enabled or not.
- * @step 3 Disable the map.
- * @step 4 Get value whether map is enabled or not.
- *
- * @passcondition
- * Tested function must return EINA_TRUE in first case (when map is enabled), and it must return EINA_FALSE in second case (when map is disabled). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_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;
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-
-   elm_mapbuf_enabled_set(mapbuf, EINA_TRUE);
-   if (elm_mapbuf_enabled_get(mapbuf) == EINA_TRUE)
-     {
-        elm_mapbuf_enabled_set(mapbuf, EINA_FALSE);
-        if (elm_mapbuf_enabled_get(mapbuf) == EINA_FALSE)
-          {
-             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 elm_mapbuf_enabled_get
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_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;
-     }
-
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_enabled_get, mapbuf) == 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_elm_mapbuf_enabled_get()
-{
-   TCase *tcase = tcase_create("utc_elm_mapbuf_enabled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_p);
-   tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_enabled_get_set.c b/TC/elementary/mapbuf/utc_elm_mapbuf_enabled_get_set.c
new file mode 100644 (file)
index 0000000..275dcb2
--- /dev/null
@@ -0,0 +1,178 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Evas_Object *main_win = NULL;
+static Evas_Object *mapbuf = NULL;
+
+/**
+ * @addtogroup elm_mapbuf
+ * @{
+ * @defgroup elm_mapbuf_enabled_get elm_mapbuf_enabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ * @step 3 Add a new mapbuf widget to the main window
+ * @step 4 Resize and set hints for mapbuf
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+     {
+        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+        if (main_win != NULL)
+          {
+             mapbuf = elm_mapbuf_add(main_win);
+             if (mapbuf != NULL)
+               {
+                  startup_status = EINA_TRUE;
+                  elm_win_resize_object_add(main_win, mapbuf);
+                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   if (mapbuf != NULL)
+     {
+        evas_object_del(mapbuf);
+        mapbuf = NULL;
+     }
+
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_mapbuf_enabled_get
+ * @{
+ * @objective Positive test case checks that the tested function retrieves a value whether map is enabled or not.
+ * @n Input Data: given mapbuf object.
+ *
+ * @procedure
+ * @step 1 Enable the map.
+ * @step 2 Get value whether map is enabled or not.
+ * @step 3 Disable the map.
+ * @step 4 Get value whether map is enabled or not.
+ *
+ * @passcondition
+ * Tested function must return EINA_TRUE in first case (when map is enabled), and it must return EINA_FALSE in second case (when map is disabled). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_elm_mapbuf_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__);
+     }
+
+   Eina_Bool ok = EINA_FALSE;
+
+   elm_mapbuf_enabled_set(mapbuf, EINA_TRUE);
+   if (elm_mapbuf_enabled_get(mapbuf) == EINA_TRUE)
+     {
+        elm_mapbuf_enabled_set(mapbuf, EINA_FALSE);
+        if (elm_mapbuf_enabled_get(mapbuf) == EINA_FALSE)
+          {
+             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 elm_mapbuf_enabled_get
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_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__);
+     }
+
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_enabled_get, mapbuf) == 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 elm_mapbuf_enabled_set
+ * @{
+ * @objective Negative test case checks situation if first argument of tested function is NULL.
+ * @n Input Data:
+ * @li given mapbuf object (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_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__);
+     }
+
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(elm_mapbuf_enabled_set, mapbuf, EINA_TRUE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_mapbuf_enabled_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_mapbuf_enabled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_p);
+   tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_n);
+   tcase_add_test(tcase, utc_elm_mapbuf_enabled_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_enabled_set.c b/TC/elementary/mapbuf/utc_elm_mapbuf_enabled_set.c
deleted file mode 100644 (file)
index 053aea4..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_enabled_set elm_mapbuf_enabled_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-     {
-        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-        if (main_win != NULL)
-          {
-             mapbuf = elm_mapbuf_add(main_win);
-             if (mapbuf != NULL)
-               {
-                  startup_status = EINA_TRUE;
-                  elm_win_resize_object_add(main_win, mapbuf);
-                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (mapbuf != NULL)
-     {
-        evas_object_del(mapbuf);
-        mapbuf = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_enabled_set
- * @{
- * @objective Positive test case checks that the tested function sets a value whether map is enabled or not.
- * @n Input Data:
- * @li given mapbuf object;
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Enable the map.
- * @step 2 Get value whether map is enabled or not.
- * @step 3 Disable the map.
- * @step 4 Get value whether map is enabled or not.
- *
- * @passcondition
- * Tested function must set EINA_TRUE in first case (consequently map becomes enabled), and it must set EINA_FALSE in second case (consequently map becomes disabled). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_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;
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-
-   elm_mapbuf_enabled_set(mapbuf, EINA_TRUE);
-   if (elm_mapbuf_enabled_get(mapbuf) == EINA_TRUE)
-     {
-        elm_mapbuf_enabled_set(mapbuf, EINA_FALSE);
-        if (elm_mapbuf_enabled_get(mapbuf) == EINA_FALSE)
-          {
-             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 elm_mapbuf_enabled_set
- * @{
- * @objective Negative test case checks situation if first argument of tested function is NULL.
- * @n Input Data:
- * @li given mapbuf object (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_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;
-     }
-
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(elm_mapbuf_enabled_set, mapbuf, EINA_TRUE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_mapbuf_enabled_set()
-{
-   TCase *tcase = tcase_create("utc_elm_mapbuf_enabled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_mapbuf_enabled_set_p);
-   tcase_add_test(tcase, utc_elm_mapbuf_enabled_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_smooth_get.c b/TC/elementary/mapbuf/utc_elm_mapbuf_smooth_get.c
deleted file mode 100644 (file)
index 17b113f..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_smooth_get elm_mapbuf_smooth_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-     {
-        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-        if (main_win != NULL)
-          {
-             mapbuf = elm_mapbuf_add(main_win);
-             if (mapbuf != NULL)
-               {
-                  startup_status = EINA_TRUE;
-                  elm_win_resize_object_add(main_win, mapbuf);
-                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (mapbuf != NULL)
-     {
-        evas_object_del(mapbuf);
-        mapbuf = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_smooth_get
- * @{
- * @objective Positive test case checks that the tested function retrieves a value whether map is smoothed or not.
- * @n Input Data: given mapbuf object.
- *
- * @procedure
- * @step 1 Turn on smoothing of the map.
- * @step 2 Get value whether map is smoothed or not.
- * @step 3 Turn off smoothing of the map.
- * @step 4 Get value whether map is smoothed or not.
- *
- * @passcondition
- * Tested function must return EINA_TRUE in first case (when map is smoothed), and it must return EINA_FALSE in second case (when map is not smoothed). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_smooth_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;
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-
-   elm_mapbuf_smooth_set(mapbuf, EINA_TRUE);
-   if (elm_mapbuf_smooth_get(mapbuf) == EINA_TRUE)
-     {
-        elm_mapbuf_smooth_set(mapbuf, EINA_FALSE);
-        if (elm_mapbuf_smooth_get(mapbuf) == EINA_FALSE)
-          {
-             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 elm_mapbuf_smooth_get
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: NULL instead of the mapbuf object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_smooth_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;
-     }
-
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_smooth_get, mapbuf) == 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_elm_mapbuf_smooth_get()
-{
-   TCase *tcase = tcase_create("utc_elm_mapbuf_smooth_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_p);
-   tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_smooth_get_set.c b/TC/elementary/mapbuf/utc_elm_mapbuf_smooth_get_set.c
new file mode 100644 (file)
index 0000000..79a4ba3
--- /dev/null
@@ -0,0 +1,178 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Evas_Object *main_win = NULL;
+static Evas_Object *mapbuf = NULL;
+
+/**
+ * @addtogroup elm_mapbuf
+ * @{
+ * @defgroup elm_mapbuf_smooth_get elm_mapbuf_smooth_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ * @step 3 Add a new mapbuf widget to the main window
+ * @step 4 Resize and set hints for mapbuf
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+     {
+        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+        if (main_win != NULL)
+          {
+             mapbuf = elm_mapbuf_add(main_win);
+             if (mapbuf != NULL)
+               {
+                  startup_status = EINA_TRUE;
+                  elm_win_resize_object_add(main_win, mapbuf);
+                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
+               }
+          }
+     }
+}
+
+static void
+teardown(void)
+{
+   if (mapbuf != NULL)
+     {
+        evas_object_del(mapbuf);
+        mapbuf = NULL;
+     }
+
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_mapbuf_smooth_get
+ * @{
+ * @objective Positive test case checks that the tested function retrieves a value whether map is smoothed or not.
+ * @n Input Data: given mapbuf object.
+ *
+ * @procedure
+ * @step 1 Turn on smoothing of the map.
+ * @step 2 Get value whether map is smoothed or not.
+ * @step 3 Turn off smoothing of the map.
+ * @step 4 Get value whether map is smoothed or not.
+ *
+ * @passcondition
+ * Tested function must return EINA_TRUE in first case (when map is smoothed), and it must return EINA_FALSE in second case (when map is not smoothed). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_elm_mapbuf_smooth_get_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;
+
+   elm_mapbuf_smooth_set(mapbuf, EINA_TRUE);
+   if (elm_mapbuf_smooth_get(mapbuf) == EINA_TRUE)
+     {
+        elm_mapbuf_smooth_set(mapbuf, EINA_FALSE);
+        if (elm_mapbuf_smooth_get(mapbuf) == EINA_FALSE)
+          {
+             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 elm_mapbuf_smooth_get
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: NULL instead of the mapbuf object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_smooth_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(EINA_FALSE, elm_mapbuf_smooth_get, mapbuf) == 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 elm_mapbuf_smooth_set
+ * @{
+ * @objective Negative test case checks situation if first argument of tested function is NULL.
+ * @n Input Data:
+ * @li given mapbuf object (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_smooth_set_n)
+{
+   if (startup_status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+     }
+
+   CREATE_CHECKED_ARGS_ARRAY(1,0);
+   UNITEST_FUNC_NEG_CA(elm_mapbuf_smooth_set, mapbuf, EINA_TRUE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_mapbuf_smooth_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_mapbuf_smooth_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_p);
+   tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_n);
+   tcase_add_test(tcase, utc_elm_mapbuf_smooth_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/mapbuf/utc_elm_mapbuf_smooth_set.c b/TC/elementary/mapbuf/utc_elm_mapbuf_smooth_set.c
deleted file mode 100644 (file)
index ebad8e9..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_smooth_set elm_mapbuf_smooth_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-     {
-        main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-        if (main_win != NULL)
-          {
-             mapbuf = elm_mapbuf_add(main_win);
-             if (mapbuf != NULL)
-               {
-                  startup_status = EINA_TRUE;
-                  elm_win_resize_object_add(main_win, mapbuf);
-                  evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-                  evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
-               }
-          }
-     }
-}
-
-static void
-teardown(void)
-{
-   if (mapbuf != NULL)
-     {
-        evas_object_del(mapbuf);
-        mapbuf = NULL;
-     }
-
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_smooth_set
- * @{
- * @objective Positive test case checks that the tested function sets a value whether map is smoothed or not.
- * @n Input Data:
- * @li given mapbuf object;
- * @li EINA_TRUE/EINA_FALSE.
- *
- * @procedure
- * @step 1 Turn on smoothing of the map.
- * @step 2 Get value whether map is smoothed or not.
- * @step 3 Turn off smoothing of the map.
- * @step 4 Get value whether map is smoothed or not.
- *
- * @passcondition
- * Tested function must set EINA_TRUE in first case (consequently map becomes smoothed), and it must set EINA_FALSE in second case (consequently map becomes no smoothed). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_smooth_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;
-     }
-
-   Eina_Bool ok = EINA_FALSE;
-
-   elm_mapbuf_smooth_set(mapbuf, EINA_TRUE);
-   if (elm_mapbuf_smooth_get(mapbuf) == EINA_TRUE)
-     {
-        elm_mapbuf_smooth_set(mapbuf, EINA_FALSE);
-        if (elm_mapbuf_smooth_get(mapbuf) == EINA_FALSE)
-          {
-             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 elm_mapbuf_smooth_set
- * @{
- * @objective Negative test case checks situation if first argument of tested function is NULL.
- * @n Input Data:
- * @li given mapbuf object (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_smooth_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;
-     }
-
-   CREATE_CHECKED_ARGS_ARRAY(1,0);
-   UNITEST_FUNC_NEG_CA(elm_mapbuf_smooth_set, mapbuf, EINA_TRUE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_mapbuf_smooth_set()
-{
-   TCase *tcase = tcase_create("utc_elm_mapbuf_smooth_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_mapbuf_smooth_set_p);
-   tcase_add_test(tcase, utc_elm_mapbuf_smooth_set_n);
-   return tcase;
-}