utc_evas_map_xxxx: Merge TCs to reduce duplicate test operations 17/190517/2
authorApurv Khatri <apurv.khatri@samsung.com>
Wed, 3 Oct 2018 08:49:39 +0000 (14:19 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 12 Oct 2018 07:28:09 +0000 (07:28 +0000)
Change-Id: I6635062dad5a9257ec804b8ea9db59e21fcb3fd6

22 files changed:
TC/evas/canvas/evas_map/tslist
TC/evas/canvas/evas_map/tslist_mobile
TC/evas/canvas/evas_map/tslist_tv
TC/evas/canvas/evas_map/tslist_wear
TC/evas/canvas/evas_map/utc_evas_map_alpha_get.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_map_alpha_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_map/utc_evas_map_alpha_set.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_map_point_color_get.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_map_point_color_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_map/utc_evas_map_point_color_set.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_get.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_set.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_map_smooth_get.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_map_smooth_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_map/utc_evas_map_smooth_set.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_object_map_enable_get.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_object_map_enable_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_map/utc_evas_object_map_enable_set.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_object_map_get.c [deleted file]
TC/evas/canvas/evas_map/utc_evas_object_map_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_map/utc_evas_object_map_set.c [deleted file]

index b3af555cef958b589237752acba5b4aa052a3dca..efbf2fb549413d1754509833b8e19a5afc6e8212 100644 (file)
@@ -1,19 +1,13 @@
 utc_evas_map_new.c
 utc_evas_map_free.c
-utc_evas_object_map_enable_set.c
-utc_evas_object_map_enable_get.c
-utc_evas_object_map_set.c
-utc_evas_object_map_get.c
-utc_evas_map_smooth_set.c
-utc_evas_map_smooth_get.c
-utc_evas_map_alpha_set.c
-utc_evas_map_alpha_get.c
+utc_evas_object_map_enable_get_set.c
+utc_evas_object_map_get_set.c
+utc_evas_map_smooth_get_set.c
+utc_evas_map_alpha_get_set.c
 utc_evas_map_point_coord_set.c
 utc_evas_map_point_coord_get.c
-utc_evas_map_point_image_uv_set.c
-utc_evas_map_point_image_uv_get.c
-utc_evas_map_point_color_set.c
-utc_evas_map_point_color_get.c
+utc_evas_map_point_image_uv_get_set.c
+utc_evas_map_point_color_get_set.c
 utc_evas_map_util_points_populate_from_object_full.c
 utc_evas_map_util_points_populate_from_object.c
 utc_evas_map_util_points_populate_from_geometry.c
index b3af555cef958b589237752acba5b4aa052a3dca..efbf2fb549413d1754509833b8e19a5afc6e8212 100644 (file)
@@ -1,19 +1,13 @@
 utc_evas_map_new.c
 utc_evas_map_free.c
-utc_evas_object_map_enable_set.c
-utc_evas_object_map_enable_get.c
-utc_evas_object_map_set.c
-utc_evas_object_map_get.c
-utc_evas_map_smooth_set.c
-utc_evas_map_smooth_get.c
-utc_evas_map_alpha_set.c
-utc_evas_map_alpha_get.c
+utc_evas_object_map_enable_get_set.c
+utc_evas_object_map_get_set.c
+utc_evas_map_smooth_get_set.c
+utc_evas_map_alpha_get_set.c
 utc_evas_map_point_coord_set.c
 utc_evas_map_point_coord_get.c
-utc_evas_map_point_image_uv_set.c
-utc_evas_map_point_image_uv_get.c
-utc_evas_map_point_color_set.c
-utc_evas_map_point_color_get.c
+utc_evas_map_point_image_uv_get_set.c
+utc_evas_map_point_color_get_set.c
 utc_evas_map_util_points_populate_from_object_full.c
 utc_evas_map_util_points_populate_from_object.c
 utc_evas_map_util_points_populate_from_geometry.c
index 398b99848628cd1d9def06606fd3da3f9ecc776f..270eca3c4c59b58e8225958f77a89f1f0781c2a1 100644 (file)
@@ -1,19 +1,13 @@
 utc_evas_map_new.c
 utc_evas_map_free.c
-utc_evas_object_map_enable_set.c
-utc_evas_object_map_enable_get.c
-utc_evas_object_map_set.c
-utc_evas_object_map_get.c
-utc_evas_map_smooth_set.c
-utc_evas_map_smooth_get.c
-utc_evas_map_alpha_set.c
-utc_evas_map_alpha_get.c
+utc_evas_object_map_enable_get_set.c
+utc_evas_object_map_get_set.c
+utc_evas_map_smooth_get_set.c
+utc_evas_map_alpha_get_set.c
 utc_evas_map_point_coord_set.c
 utc_evas_map_point_coord_get.c
-utc_evas_map_point_image_uv_set.c
-utc_evas_map_point_image_uv_get.c
-utc_evas_map_point_color_set.c
-utc_evas_map_point_color_get.c
+utc_evas_map_point_image_uv_get_set.c
+utc_evas_map_point_color_get_set.c
 utc_evas_map_util_points_populate_from_object_full.c
 utc_evas_map_util_points_populate_from_object.c
 utc_evas_map_util_points_populate_from_geometry.c
index 398b99848628cd1d9def06606fd3da3f9ecc776f..270eca3c4c59b58e8225958f77a89f1f0781c2a1 100644 (file)
@@ -1,19 +1,13 @@
 utc_evas_map_new.c
 utc_evas_map_free.c
-utc_evas_object_map_enable_set.c
-utc_evas_object_map_enable_get.c
-utc_evas_object_map_set.c
-utc_evas_object_map_get.c
-utc_evas_map_smooth_set.c
-utc_evas_map_smooth_get.c
-utc_evas_map_alpha_set.c
-utc_evas_map_alpha_get.c
+utc_evas_object_map_enable_get_set.c
+utc_evas_object_map_get_set.c
+utc_evas_map_smooth_get_set.c
+utc_evas_map_alpha_get_set.c
 utc_evas_map_point_coord_set.c
 utc_evas_map_point_coord_get.c
-utc_evas_map_point_image_uv_set.c
-utc_evas_map_point_image_uv_get.c
-utc_evas_map_point_color_set.c
-utc_evas_map_point_color_get.c
+utc_evas_map_point_image_uv_get_set.c
+utc_evas_map_point_color_get_set.c
 utc_evas_map_util_points_populate_from_object_full.c
 utc_evas_map_util_points_populate_from_object.c
 utc_evas_map_util_points_populate_from_geometry.c
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_alpha_get.c b/TC/evas/canvas/evas_map/utc_evas_map_alpha_get.c
deleted file mode 100644 (file)
index bde8d8e..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_alpha_get evas_map_alpha_get()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_alpha_get
- * @{
- * @objective Positive test case checks whether function returns alpha flag for map rendering properly.
- * @n Input Data: pointer to Evas_Map to get alpha flag.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Enable alpha for map rendering
- * @step 3 Check if alpha is enabled
- * @step 4 Disable alpha
- * @step 5 Check if alpha is disabled
- *
- * @passcondition Function returns EINA_TRUE for first call and EINA_FALSE for the second one.
- * @}
- */
-START_TEST(utc_evas_map_alpha_get_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_alpha_set(map, EINA_TRUE);
-
-   if (evas_map_alpha_get(map) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Alpha flag is not enabled..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_alpha_set(map, EINA_FALSE);
-
-   if (evas_map_alpha_get(map) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Alpha flag is not disabled..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_alpha_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Map.
- * @n Input Data: pointer to Evas_Map to get alpha flag.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Map
- *
- * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
- * @}
- */
-START_TEST(utc_evas_map_alpha_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_map_alpha_get, NULL) == 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_evas_map_alpha_get()
-{
-   TCase *tcase = tcase_create("utc_evas_map_alpha_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_alpha_get_p);
-   tcase_add_test(tcase, utc_evas_map_alpha_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_alpha_get_set.c b/TC/evas/canvas/evas_map/utc_evas_map_alpha_get_set.c
new file mode 100644 (file)
index 0000000..ad07c0b
--- /dev/null
@@ -0,0 +1,134 @@
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+static Evas_Map *map = NULL;
+
+/**
+ * @addtogroup evas_map
+ * @{
+ * @defgroup evas_map_alpha_get evas_map_alpha_get()
+ *
+ *
+ * @precondition
+ * @step 1 Create map of transformation points to be used later
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   map = evas_map_new(4);
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_map_free(map);
+}
+
+/**
+ * @addtogroup evas_map_alpha_get
+ * @{
+ * @objective Positive test case checks whether function returns alpha flag for map rendering properly.
+ * @n Input Data: pointer to Evas_Map to get alpha flag.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Enable alpha for map rendering
+ * @step 3 Check if alpha is enabled
+ * @step 4 Disable alpha
+ * @step 5 Check if alpha is disabled
+ *
+ * @passcondition Function returns EINA_TRUE for first call and EINA_FALSE for the second one.
+ * @}
+ */
+START_TEST(utc_evas_map_alpha_get_p)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_alpha_set(map, EINA_TRUE);
+
+   if (evas_map_alpha_get(map) != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Alpha flag is not enabled..", __FILE__, __LINE__);
+     }
+
+   evas_map_alpha_set(map, EINA_FALSE);
+
+   if (evas_map_alpha_get(map) != EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Alpha flag is not disabled..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_alpha_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Map.
+ * @n Input Data: pointer to Evas_Map to get alpha flag.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Map
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_evas_map_alpha_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_map_alpha_get, NULL) == 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 evas_map_alpha_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Map.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li EINA_FALSE to disable alpha rendering.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_alpha_set_n)
+{
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(evas_map_alpha_set, NULL, EINA_FALSE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_map_alpha_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_map_alpha_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_map_alpha_get_p);
+   tcase_add_test(tcase, utc_evas_map_alpha_get_n);
+   tcase_add_test(tcase, utc_evas_map_alpha_set_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_alpha_set.c b/TC/evas/canvas/evas_map/utc_evas_map_alpha_set.c
deleted file mode 100644 (file)
index a227ab1..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_alpha_set evas_map_alpha_set()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_alpha_set
- * @{
- * @objective Positive test case checks whether function enables and disables alpha flag for map rendering properly.
- * @n Input Data:
- * @n First call:
- * @li pointer to Evas_Map;
- * @li EINA_TRUE to enable alpha flag.
- * @n Second call:
- * @li pointer to Evas_Map;
- * @li EINA_FALSE to disable alpha flag.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Enable alpha for map rendering
- * @step 3 Check if alpha is enabled
- * @step 4 Disable alpha
- * @step 5 Check if alpha is disabled
- *
- * @passcondition Function enables and disables alpha flag for the map properly.
- * evas_map_alpha_get returns EINA_TRUE for first call and EINA_FALSE for the second one.
- * @}
- */
-START_TEST(utc_evas_map_alpha_set_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_alpha_set(map, EINA_TRUE);
-
-   if (evas_map_alpha_get(map) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Alpha flag is not enabled..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_alpha_set(map, EINA_FALSE);
-
-   if (evas_map_alpha_get(map) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Alpha flag is not disabled..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_alpha_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Map.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li EINA_FALSE to disable alpha rendering.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_alpha_set_n)
-{
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(evas_map_alpha_set, NULL, EINA_FALSE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_map_alpha_set()
-{
-   TCase *tcase = tcase_create("utc_evas_map_alpha_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_alpha_set_p);
-   tcase_add_test(tcase, utc_evas_map_alpha_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_point_color_get.c b/TC/evas/canvas/evas_map/utc_evas_map_point_color_get.c
deleted file mode 100644 (file)
index 0ef5613..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = 0;
-static int r = 0, g = 0, b = 0, a = 0;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_point_color_get evas_map_point_color_get()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_point_color_get
- * @{
- * @objective Positive test case checks whether function gets the color of point in the map properly.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 0 - index of point to get;
- * @li pointer to integer to write red value;
- * @li pointer to integer to write green value;
- * @li pointer to integer to write blue value;
- * @li pointer to integer to write alpha value.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Set the color of a vertex in the map
- * @step 3 Get the color of a vertex in the map
- *
- * @passcondition Function properly writes color of the point in the map to output parameters.
- * Set and got values are the same.
- * @}
- */
-START_TEST(utc_evas_map_point_color_get_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_color_set(map, 0, 1, 2, 3, 4);
-   evas_map_point_color_get(map, 0, &r, &g, &b, &a);
-
-   if ((r != 1) || (g != 2) || (b != 3) || (a != 4))
-     {
-        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 evas_map_point_color_get
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of some arguments.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 0 - index of point to get;
- * @li pointer to integer to write red value;
- * @li pointer to integer to write green value;
- * @li pointer to integer to write blue value;
- * @li pointer to integer to write alpha value.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function 5 times and pass (in turn) NULL instead of pointer to Evas_Map
- * and instead of pointers to write colors and alpha values
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_color_get_n)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-   r = g = b = a = 0;
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0, 1, 1, 1, 1);
-   UNITEST_FUNC_NEG_CA(evas_map_point_color_get, map, 3, &r, &g, &b, &a);
-
-   if (r != 255 || g != 255 || b != 255 || a != 255)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. r=%d, g=%d, b=%d, a=%d", __FILE__, __LINE__, r, g, b, a);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @addtogroup evas_map_point_color_get
- * @{
- * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
- * if it is called with index of point bigger than map size.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 5 - index of point to get, incorrect value;
- * @li pointer to integer to write red value;
- * @li pointer to integer to write green value;
- * @li pointer to integer to write blue value;
- * @li pointer to integer to write alpha value.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function with index of point = 5
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_color_get_n2)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_color_get(map, 5, &r, &g, &b, &a);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_map_point_color_get()
-{
-   TCase *tcase = tcase_create("utc_evas_map_point_color_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_point_color_get_p);
-   tcase_add_test(tcase, utc_evas_map_point_color_get_n);
-   tcase_add_test(tcase, utc_evas_map_point_color_get_n2);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_point_color_get_set.c b/TC/evas/canvas/evas_map/utc_evas_map_point_color_get_set.c
new file mode 100644 (file)
index 0000000..ecc4cf4
--- /dev/null
@@ -0,0 +1,268 @@
+#include <check.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+static Evas_Map *map = NULL;
+static int r = 0, g = 0, b = 0, a = 0;
+
+/**
+ * @addtogroup evas_map
+ * @{
+ * @defgroup evas_map_point_color_set evas_map_point_color_set()
+ *
+ *
+ * @precondition
+ * @step 1 Create map of transformation points to be used later
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   map = evas_map_new(4);
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_map_free(map);
+}
+
+/**
+ * @addtogroup evas_map_point_color_set
+ * @{
+ * @objective Positive test case checks whether function sets color of point in the map properly.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 3 - index of point to change;
+ * @li 1 - red value;
+ * @li 100 - green value;
+ * @li 200 - blue value;
+ * @li 255 - alpha value.
+ *
+ * @procedure
+ * @step 1 Set color of a vertex in the map
+ * @step 2 Get color of a vertex in the map
+ *
+ * @passcondition Set and got values of color are the same.
+ * @}
+ */
+START_TEST(utc_evas_map_point_color_set_p)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+   evas_map_point_color_set(map, 3, 1, 100, 200, 255);
+   evas_map_point_color_get(map, 3, &r, &g, &b, &a);
+
+   if ((r != 1) || (g != 100) || (b != 200) || (a != 255))
+     {
+        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 evas_map_point_color_set
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Map.
+ * @n Input Data:
+ * @li NULL instead of pointer to Evas_Map;
+ * @li 3 - index of point to change;
+ * @li 1 - red value;
+ * @li 100 - green value;
+ * @li 200 - blue value;
+ * @li 255 - alpha value.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_color_set_n)
+{
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0, 0, 0, 0, 0);
+   UNITEST_FUNC_NEG_CA(evas_map_point_color_set, NULL, 3, 1, 100, 200, 255);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_point_color_set
+ * @{
+ * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
+ * and doesn't set color values bigger than 255. To ensure that incorrect values aren't set it's needed
+ * to check that got values aren't greater than 255 and aren't less than 0. Checking if they are equal to any
+ * exact values is wrong way because color values are kept as unsigned char inside map and can vary
+ * for different platforms if we try to set incorrect values.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 3 - index of point to change;
+ * @li 300 - red value;
+ * @li 400 - green value;
+ * @li 500 - blue value;
+ * @li 600 - alpha value.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function with colors values greater than 255
+ * @step 3 Call evas_map_point_color_get to check values
+ * @step 4 Call function with colors values less than 0
+ * @step 5 Call evas_map_point_color_get to check values
+ *
+ * @passcondition Function doesn't set incorrect color values. Got values aren't greater than 255 or less than 0.
+ * @}
+ */
+START_TEST(utc_evas_map_point_color_set_n2)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_point_color_set(map, 3, 300, 400, 500, 600);
+   evas_map_point_color_get(map, 3, &r, &g, &b, &a);
+
+   if ((r > 255) || (g > 255) || (b > 255) || (a > 255))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. r=%d, g=%d, b=%d, a=%d", __FILE__, __LINE__, r, g, b, a);
+     }
+   evas_map_point_color_set(map, 3, -1, -1, -1, -1);
+   evas_map_point_color_get(map, 3, &r, &g, &b, &a);
+
+   if ((r < 0) || (g < 0) || (b < 0) || (a < 0))
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. r=%d, g=%d, b=%d, a=%d", __FILE__, __LINE__, r, g, b, a);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_point_color_set
+ * @{
+ * @objective Negative test case 3 checks whether function doesn't cause segmentation fault
+ * if it is called with index of point to change bigger than map size.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 5 - index of point to change, incorrect value;
+ * @li 1 - red value;
+ * @li 100 - green value;
+ * @li 200 - blue value;
+ * @li 255 - alpha value.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function with index of point = 5
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_color_set_n3)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_point_color_set(map, 5, 1, 100, 200, 255);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_point_color_get
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of some arguments.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 0 - index of point to get;
+ * @li pointer to integer to write red value;
+ * @li pointer to integer to write green value;
+ * @li pointer to integer to write blue value;
+ * @li pointer to integer to write alpha value.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function 5 times and pass (in turn) NULL instead of pointer to Evas_Map
+ * and instead of pointers to write colors and alpha values
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_color_get_n)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+   r = g = b = a = 0;
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0, 1, 1, 1, 1);
+   UNITEST_FUNC_NEG_CA(evas_map_point_color_get, map, 3, &r, &g, &b, &a);
+
+   if (r != 255 || g != 255 || b != 255 || a != 255)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. r=%d, g=%d, b=%d, a=%d", __FILE__, __LINE__, r, g, b, a);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ * @addtogroup evas_map_point_color_get
+ * @{
+ * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
+ * if it is called with index of point bigger than map size.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 5 - index of point to get, incorrect value;
+ * @li pointer to integer to write red value;
+ * @li pointer to integer to write green value;
+ * @li pointer to integer to write blue value;
+ * @li pointer to integer to write alpha value.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function with index of point = 5
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_color_get_n2)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_point_color_get(map, 5, &r, &g, &b, &a);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_map_point_color_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_map_point_color_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_map_point_color_set_p);
+   tcase_add_test(tcase, utc_evas_map_point_color_set_n);
+   tcase_add_test(tcase, utc_evas_map_point_color_set_n2);
+   tcase_add_test(tcase, utc_evas_map_point_color_set_n3);
+   tcase_add_test(tcase, utc_evas_map_point_color_get_n);
+   tcase_add_test(tcase, utc_evas_map_point_color_get_n2);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_point_color_set.c b/TC/evas/canvas/evas_map/utc_evas_map_point_color_set.c
deleted file mode 100644 (file)
index 0f457ff..0000000
+++ /dev/null
@@ -1,200 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-static int r = 0, g = 0, b = 0, a = 0;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_point_color_set evas_map_point_color_set()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_point_color_set
- * @{
- * @objective Positive test case checks whether function sets color of point in the map properly.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 3 - index of point to change;
- * @li 1 - red value;
- * @li 100 - green value;
- * @li 200 - blue value;
- * @li 255 - alpha value.
- *
- * @procedure
- * @step 1 Set color of a vertex in the map
- * @step 2 Get color of a vertex in the map
- *
- * @passcondition Set and got values of color are the same.
- * @}
- */
-START_TEST(utc_evas_map_point_color_set_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-   evas_map_point_color_set(map, 3, 1, 100, 200, 255);
-   evas_map_point_color_get(map, 3, &r, &g, &b, &a);
-
-   if ((r != 1) || (g != 100) || (b != 200) || (a != 255))
-     {
-        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 evas_map_point_color_set
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Map.
- * @n Input Data:
- * @li NULL instead of pointer to Evas_Map;
- * @li 3 - index of point to change;
- * @li 1 - red value;
- * @li 100 - green value;
- * @li 200 - blue value;
- * @li 255 - alpha value.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_color_set_n)
-{
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0, 0, 0, 0, 0);
-   UNITEST_FUNC_NEG_CA(evas_map_point_color_set, NULL, 3, 1, 100, 200, 255);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_point_color_set
- * @{
- * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
- * and doesn't set color values bigger than 255. To ensure that incorrect values aren't set it's needed
- * to check that got values aren't greater than 255 and aren't less than 0. Checking if they are equal to any
- * exact values is wrong way because color values are kept as unsigned char inside map and can vary
- * for different platforms if we try to set incorrect values.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 3 - index of point to change;
- * @li 300 - red value;
- * @li 400 - green value;
- * @li 500 - blue value;
- * @li 600 - alpha value.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function with colors values greater than 255
- * @step 3 Call evas_map_point_color_get to check values
- * @step 4 Call function with colors values less than 0
- * @step 5 Call evas_map_point_color_get to check values
- *
- * @passcondition Function doesn't set incorrect color values. Got values aren't greater than 255 or less than 0.
- * @}
- */
-START_TEST(utc_evas_map_point_color_set_n2)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_color_set(map, 3, 300, 400, 500, 600);
-   evas_map_point_color_get(map, 3, &r, &g, &b, &a);
-
-   if ((r > 255) || (g > 255) || (b > 255) || (a > 255))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. r=%d, g=%d, b=%d, a=%d", __FILE__, __LINE__, r, g, b, a);
-        return;
-     }
-   evas_map_point_color_set(map, 3, -1, -1, -1, -1);
-   evas_map_point_color_get(map, 3, &r, &g, &b, &a);
-
-   if ((r < 0) || (g < 0) || (b < 0) || (a < 0))
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. r=%d, g=%d, b=%d, a=%d", __FILE__, __LINE__, r, g, b, a);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_point_color_set
- * @{
- * @objective Negative test case 3 checks whether function doesn't cause segmentation fault
- * if it is called with index of point to change bigger than map size.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 5 - index of point to change, incorrect value;
- * @li 1 - red value;
- * @li 100 - green value;
- * @li 200 - blue value;
- * @li 255 - alpha value.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function with index of point = 5
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_color_set_n3)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_color_set(map, 5, 1, 100, 200, 255);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_evas_map_point_color_set()
-{
-   TCase *tcase = tcase_create("utc_evas_map_point_color_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_point_color_set_p);
-   tcase_add_test(tcase, utc_evas_map_point_color_set_n);
-   tcase_add_test(tcase, utc_evas_map_point_color_set_n2);
-   tcase_add_test(tcase, utc_evas_map_point_color_set_n3);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_get.c b/TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_get.c
deleted file mode 100644 (file)
index 5fe9d8a..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <float.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-static double u = 0, v = 0;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_point_image_uv_get evas_map_point_image_uv_get()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_point_image_uv_get
- * @{
- * @objective Positive test case checks whether function gets the texture source point properly.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 2 - index of point to get values;
- * @li pointer to integer to write X-coordinate (U source point);
- * @li pointer to integer to write Y-coordinate (V source point);
- *
- * @procedure
- * @step 1 Change the map point's U and V texture source point
- * @step 2 Set the map point's U and V texture source points
- * @step 3 Get the map point's U and V texture source points
- *
- * @passcondition Function writes in output parameters right values, that are the same as were set.
- * @}
- */
-START_TEST(utc_evas_map_point_image_uv_get_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_image_uv_set(map, 2, 1.0, 2.0);
-   evas_map_point_image_uv_get(map, 2, &u, &v);
-
-   if ((fabs(u - 1.0) > DBL_EPSILON) || (fabs(v - 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 evas_map_point_image_uv_get
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer some arguments.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 0 - index of point to get values;
- * @li pointer to integer to write X-coordinate (U source point);
- * @li pointer to integer to write Y-coordinate (V source point);
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function 3 times and pass (in turn) NULL instead of pointer to Evas_Map
- * and pointer to int to be filled with U and V source points.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_image_uv_get_n)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-   u = v = 0;
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0, 1, 1);
-   UNITEST_FUNC_NEG_CA(evas_map_point_image_uv_get, map, 0, &u, &v);
-
-   if (u || v)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. u=%f, v=%f", __FILE__, __LINE__, u, v);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_point_image_uv_get
- * @{
- * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
- * if it is called with index of point bigger than map size.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 5 - index of point to get values, incorrect value;
- * @li pointer to integer to write X-coordinate (U source point);
- * @li pointer to integer to write Y-coordinate (V source point);
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call tested function with index of point = 5
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_image_uv_get_n2)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_image_uv_get(map, 5, &u, &v);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_map_point_image_uv_get()
-{
-   TCase *tcase = tcase_create("utc_evas_map_point_image_uv_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_point_image_uv_get_p);
-   tcase_add_test(tcase, utc_evas_map_point_image_uv_get_n);
-   tcase_add_test(tcase, utc_evas_map_point_image_uv_get_n2);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_get_set.c b/TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_get_set.c
new file mode 100644 (file)
index 0000000..9dfe8ee
--- /dev/null
@@ -0,0 +1,209 @@
+#include <check.h>
+#include <Evas.h>
+#include <float.h>
+#include "../../../utc_negative_unitest.h"
+static Evas_Map *map = NULL;
+static double u = 0, v = 0;
+
+/**
+ * @addtogroup evas_map
+ * @{
+ * @defgroup evas_map_point_image_uv_get evas_map_point_image_uv_get()
+ *
+ *
+ * @precondition
+ * @step 1 Create map of transformation points to be used later
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   map = evas_map_new(4);
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_map_free(map);
+}
+
+/**
+ * @addtogroup evas_map_point_image_uv_get
+ * @{
+ * @objective Positive test case checks whether function gets the texture source point properly.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 2 - index of point to get values;
+ * @li pointer to integer to write X-coordinate (U source point);
+ * @li pointer to integer to write Y-coordinate (V source point);
+ *
+ * @procedure
+ * @step 1 Change the map point's U and V texture source point
+ * @step 2 Set the map point's U and V texture source points
+ * @step 3 Get the map point's U and V texture source points
+ *
+ * @passcondition Function writes in output parameters right values, that are the same as were set.
+ * @}
+ */
+START_TEST(utc_evas_map_point_image_uv_get_p)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_point_image_uv_set(map, 2, 1.0, 2.0);
+   evas_map_point_image_uv_get(map, 2, &u, &v);
+
+   if ((fabs(u - 1.0) > DBL_EPSILON) || (fabs(v - 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 evas_map_point_image_uv_get
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer some arguments.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 0 - index of point to get values;
+ * @li pointer to integer to write X-coordinate (U source point);
+ * @li pointer to integer to write Y-coordinate (V source point);
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function 3 times and pass (in turn) NULL instead of pointer to Evas_Map
+ * and pointer to int to be filled with U and V source points.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_image_uv_get_n)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+   u = v = 0;
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0, 1, 1);
+   UNITEST_FUNC_NEG_CA(evas_map_point_image_uv_get, map, 0, &u, &v);
+
+   if (u || v)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. u=%f, v=%f", __FILE__, __LINE__, u, v);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_point_image_uv_get
+ * @{
+ * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
+ * if it is called with index of point bigger than map size.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 5 - index of point to get values, incorrect value;
+ * @li pointer to integer to write X-coordinate (U source point);
+ * @li pointer to integer to write Y-coordinate (V source point);
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call tested function with index of point = 5
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_image_uv_get_n2)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_point_image_uv_get(map, 5, &u, &v);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_point_image_uv_set
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Map.
+ * @n Input Data:
+ * @li NULL instead of pointer to Evas_Map;
+ * @li 0 - index of point to change;
+ * @li 1.0 - X-coordinate;
+ * @li 1.0 - Y-coordinate.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_image_uv_set_n)
+{
+
+   evas_map_point_image_uv_set(NULL, 0, 1.0, 1.0);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_point_image_uv_set
+ * @{
+ * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
+ * if it is called with index of point to change bigger than map size.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li 5 - index of point to change, incorrect value;
+ * @li 1.0 - X-coordinate;
+ * @li 1.0 - Y-coordinate.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call tested function with index of point = 5
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_point_image_uv_set_n2)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_point_image_uv_set(map, 5, 1.0, 1.0);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_map_point_image_uv_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_map_point_image_uv_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_map_point_image_uv_get_p);
+   tcase_add_test(tcase, utc_evas_map_point_image_uv_get_n);
+   tcase_add_test(tcase, utc_evas_map_point_image_uv_get_n2);
+   tcase_add_test(tcase, utc_evas_map_point_image_uv_set_n);
+   tcase_add_test(tcase, utc_evas_map_point_image_uv_set_n2);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_set.c b/TC/evas/canvas/evas_map/utc_evas_map_point_image_uv_set.c
deleted file mode 100644 (file)
index 5dc8996..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <float.h>
-static Evas_Map *map = NULL;
-static double u = 0, v = 0;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_point_image_uv_set evas_map_point_image_uv_set()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_point_image_uv_set
- * @{
- * @objective Positive test case checks whether function sets the new texture source point properly.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 2 - index of point to change;
- * @li 1.0 - X-coordinate within the texture source;
- * @li 2.0 - Y-coordinate within the texture source.
- *
- * @procedure
- * @step 1 Change the map point's U and V texture source point
- * @step 2 Get the map point's U and V texture source points
- *
- * @passcondition Function sets the new texture source point properly. Set and got values are the same.
- * @}
- */
-START_TEST(utc_evas_map_point_image_uv_set_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_image_uv_set(map, 2, 1.0, 2.0);
-   evas_map_point_image_uv_get(map, 2, &u, &v);
-
-   if ((fabs(u - 1.0) > DBL_EPSILON) || (fabs(v - 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 evas_map_point_image_uv_set
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Map.
- * @n Input Data:
- * @li NULL instead of pointer to Evas_Map;
- * @li 0 - index of point to change;
- * @li 1.0 - X-coordinate;
- * @li 1.0 - Y-coordinate.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_image_uv_set_n)
-{
-
-   evas_map_point_image_uv_set(NULL, 0, 1.0, 1.0);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_point_image_uv_set
- * @{
- * @objective Negative test case 2 checks whether function doesn't cause segmentation fault
- * if it is called with index of point to change bigger than map size.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li 5 - index of point to change, incorrect value;
- * @li 1.0 - X-coordinate;
- * @li 1.0 - Y-coordinate.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call tested function with index of point = 5
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_point_image_uv_set_n2)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_point_image_uv_set(map, 5, 1.0, 1.0);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_map_point_image_uv_set()
-{
-   TCase *tcase = tcase_create("utc_evas_map_point_image_uv_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_point_image_uv_set_p);
-   tcase_add_test(tcase, utc_evas_map_point_image_uv_set_n);
-   tcase_add_test(tcase, utc_evas_map_point_image_uv_set_n2);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_smooth_get.c b/TC/evas/canvas/evas_map/utc_evas_map_smooth_get.c
deleted file mode 100644 (file)
index 0d7167e..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <Eina.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_smooth_get evas_map_smooth_get()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_smooth_get
- * @{
- * @objective Positive test case checks whether function gets the smoothing for given map rendering.
- * @n Input Data: pointer to Evas_Map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Enable smoothing for map rendering
- * @step 3 Check if smoothing is enabled
- * @step 4 Disable smoothing for map rendering
- * @step 5 Check if smoothing is disabled
- *
- * @passcondition Function returns EINA_TRUE for first call and EINA_FALSE for the second one.
- * @}
- */
-START_TEST(utc_evas_map_smooth_get_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_smooth_set(map, EINA_TRUE);
-
-   if (evas_map_smooth_get(map) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Smooth is not set to EINA_TRUE..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_smooth_set(map, EINA_FALSE);
-
-   if (evas_map_smooth_get(map) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Smooth is not set to EINA_FALSE..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_smooth_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Map.
- * @n Input Data: pointer to Evas_Map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
- *
- * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
- * @}
- */
-START_TEST(utc_evas_map_smooth_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_map_smooth_get, NULL) == 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_evas_map_smooth_get()
-{
-   TCase *tcase = tcase_create("utc_evas_map_smooth_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_smooth_get_p);
-   tcase_add_test(tcase, utc_evas_map_smooth_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_smooth_get_set.c b/TC/evas/canvas/evas_map/utc_evas_map_smooth_get_set.c
new file mode 100644 (file)
index 0000000..00db4ad
--- /dev/null
@@ -0,0 +1,134 @@
+#include <check.h>
+#include <Evas.h>
+#include <Eina.h>
+#include "../../../utc_negative_unitest.h"
+static Evas_Map *map = NULL;
+
+/**
+ * @addtogroup evas_map
+ * @{
+ * @defgroup evas_map_smooth_get evas_map_smooth_get()
+ *
+ *
+ * @precondition
+ * @step 1 Create map of transformation points to be used later
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   map = evas_map_new(4);
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_map_free(map);
+}
+
+/**
+ * @addtogroup evas_map_smooth_get
+ * @{
+ * @objective Positive test case checks whether function gets the smoothing for given map rendering.
+ * @n Input Data: pointer to Evas_Map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Enable smoothing for map rendering
+ * @step 3 Check if smoothing is enabled
+ * @step 4 Disable smoothing for map rendering
+ * @step 5 Check if smoothing is disabled
+ *
+ * @passcondition Function returns EINA_TRUE for first call and EINA_FALSE for the second one.
+ * @}
+ */
+START_TEST(utc_evas_map_smooth_get_p)
+{
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+
+   evas_map_smooth_set(map, EINA_TRUE);
+
+   if (evas_map_smooth_get(map) != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Smooth is not set to EINA_TRUE..", __FILE__, __LINE__);
+     }
+
+   evas_map_smooth_set(map, EINA_FALSE);
+
+   if (evas_map_smooth_get(map) != EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Smooth is not set to EINA_FALSE..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_map_smooth_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Map.
+ * @n Input Data: pointer to Evas_Map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_evas_map_smooth_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_map_smooth_get, NULL) == 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 evas_map_smooth_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Map.
+ * @n Input Data:
+ * @li pointer to Evas_Map;
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_map_smooth_set_n)
+{
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(evas_map_smooth_set, NULL, EINA_TRUE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_map_smooth_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_map_smooth_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_map_smooth_get_p);
+   tcase_add_test(tcase, utc_evas_map_smooth_get_n);
+   tcase_add_test(tcase, utc_evas_map_smooth_set_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_map/utc_evas_map_smooth_set.c b/TC/evas/canvas/evas_map/utc_evas_map_smooth_set.c
deleted file mode 100644 (file)
index 30489c2..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-#include <check.h>
-#include <Evas.h>
-#include <Eina.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_map_smooth_set evas_map_smooth_set()
- *
- *
- * @precondition
- * @step 1 Create map of transformation points to be used later
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   map = evas_map_new(4);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-}
-
-/**
- * @addtogroup evas_map_smooth_set
- * @{
- * @objective Positive test case checks whether function enables and disables the smoothing for
- * given map rendering properly.
- * @n Input Data:
- * @n First call:
- * @li pointer to Evas_Map;
- * @li EINA_TRUE to enable smoothing.
- * @n Second call:
- * @li pointer to Evas_Map;
- * @li EINA_FALSE to disable smoothing.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Enable smoothing for map rendering
- * @step 3 Check if smoothing is enabled
- * @step 4 Disable smoothing for map rendering
- * @step 5 Check if smoothing is disabled
- *
- * @passcondition Function enables and disables smoothing for given map properly.
- * @}
- */
-START_TEST(utc_evas_map_smooth_set_p)
-{
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_smooth_set(map, EINA_TRUE);
-
-   if (evas_map_smooth_get(map) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Smooth is not set to EINA_TRUE..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_map_smooth_set(map, EINA_FALSE);
-
-   if (evas_map_smooth_get(map) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Smooth is not set to EINA_FALSE..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_map_smooth_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Map.
- * @n Input Data:
- * @li pointer to Evas_Map;
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_map_smooth_set_n)
-{
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(evas_map_smooth_set, NULL, EINA_TRUE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_map_smooth_set()
-{
-   TCase *tcase = tcase_create("utc_evas_map_smooth_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_map_smooth_set_p);
-   tcase_add_test(tcase, utc_evas_map_smooth_set_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_object_map_enable_get.c b/TC/evas/canvas/evas_map/utc_evas_object_map_enable_get.c
deleted file mode 100644 (file)
index 0fd8c99..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-static Ecore_Evas *ee = NULL;
-static Evas_Object *obj = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_object_map_enable_get evas_object_map_enable_get()
- *
- *
- * @precondition
- * @step 1 Init the Ecore_Evas system
- * @step 2 Create map of transformation points to be later used with an Evas object
- * @step 3 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 4 Create an Evas image object with image data bound to an own, internal Ecore_Evas canvas wrapper
- * @step 5 Set current object transformation map
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   ecore_evas_init();
-   map = evas_map_new(4);
-
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-   ee = ecore_evas_buffer_new(128, 128);
-
-   if (!ee)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Ecore_Evas is not created..", __FILE__, __LINE__);
-        return;
-     }
-   obj = ecore_evas_object_image_new(ee);
-
-   if (obj)
-      evas_object_map_set(obj, map);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-   ecore_evas_free(ee);
-   ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_map_enable_get
- * @{
- * @objective Positive test case checks whether function returns state of using of the map properly.
- * @n Input Data: pointer to Evas_Map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Enable the use of map
- * @step 3 Check if using of the map is enabled
- * @step 4 Disable the use of map
- * @step 5 Check if using of the map is disabled
- *
- * @passcondition Function enables and disables the use of map for the Evas_Object properly.
- * @}
- */
-START_TEST(utc_evas_object_map_enable_get_p)
-{
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_object_map_enable_set(obj, EINA_TRUE);
-
-   if (evas_object_map_enable_get(obj) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Map is not enabled..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_object_map_enable_set(obj, EINA_FALSE);
-
-   if (evas_object_map_enable_get(obj) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Map is not disabled..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_map_enable_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Map.
- * @n Input Data: pointer to Evas_Map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
- *
- * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
- * @}
- */
-START_TEST(utc_evas_object_map_enable_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_object_map_enable_get, NULL) == 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_evas_object_map_enable_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_map_enable_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_map_enable_get_p);
-   tcase_add_test(tcase, utc_evas_object_map_enable_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_object_map_enable_get_set.c b/TC/evas/canvas/evas_map/utc_evas_object_map_enable_get_set.c
new file mode 100644 (file)
index 0000000..b748290
--- /dev/null
@@ -0,0 +1,199 @@
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include "../../../utc_negative_unitest.h"
+static Evas_Map *map = NULL;
+static Ecore_Evas *ee = NULL;
+static Evas_Object *obj = NULL;
+
+/**
+ * @addtogroup evas_map
+ * @{
+ * @defgroup evas_object_map_enable_set evas_object_map_enable_set()
+ *
+ *
+ * @precondition
+ * @step 1 Init the Ecore_Evas system
+ * @step 2 Create map of transformation points to be later used with an Evas object
+ * @step 3 Create a new Ecore_Evas canvas bound to the Evas buffer engine
+ * @step 4 Create an Evas image object with image data bound to an own, internal Ecore_Evas canvas wrapper
+ * @step 5 Set current object transformation map
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   ecore_evas_init();
+   map = evas_map_new(4);
+
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+   ee = ecore_evas_buffer_new(128, 128);
+
+   if (!ee)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Ecore_Evas is not created..", __FILE__, __LINE__);
+     }
+   obj = ecore_evas_object_image_new(ee);
+
+   if (obj)
+      evas_object_map_set(obj, map);
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_map_free(map);
+   ecore_evas_free(ee);
+   ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_map_enable_set
+ * @{
+ * @objective Positive test case checks whether function enables and disables using of the map properly.
+ * @n Input Data:
+ * @n First call:
+ * @li pointer to Evas_Object to enable/disable map on;
+ * @li EINA_TRUE to enable the use of map.
+ * @n Second call:
+ * @li pointer to Evas_Object;
+ * @li EINA_FALSE to disable the use of map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Enable the use of map
+ * @step 3 Check if using of the map is enabled
+ * @step 4 Disable the use of map
+ * @step 5 Check if using of the map is disabled
+ *
+ * @passcondition Function enables and disables the use of map for the Evas_Object properly.
+ * @}
+ */
+START_TEST(utc_evas_object_map_enable_set_p)
+{
+   if (!obj)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+     }
+
+   evas_object_map_enable_set(obj, EINA_TRUE);
+
+   if (evas_object_map_enable_get(obj) != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Map is not enabled..", __FILE__, __LINE__);
+     }
+
+   evas_object_map_enable_set(obj, EINA_FALSE);
+
+   if (evas_object_map_enable_get(obj) != EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Map is not disabled..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_map_enable_set
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data:
+ * @li pointer to Evas_Object;
+ * @li EINA_FALSE to disable the use of map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Object.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_map_enable_set_n)
+{
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(evas_object_map_enable_set, NULL, EINA_FALSE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_map_enable_set
+ * @{
+ * @objective Negative test case 2 checks if function doesn't cause segmentation fault
+ * if it is called with object without any set transformation map.
+ * @n Input Data:
+ * @li pointer to Evas_Object;
+ * @li EINA_FALSE to disable the use of map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Create new local Evas image object
+ * @step 3 Call function once and pass this object, without set map.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_map_enable_set_n2)
+{
+   Evas_Object *local_obj = ecore_evas_object_image_new(ee);
+
+   if (!local_obj)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+     }
+
+   evas_object_map_enable_set(local_obj, EINA_TRUE);
+   evas_object_map_enable_set(local_obj, EINA_FALSE);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_map_enable_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns EINA_FALSE if it is called with NULL instead of pointer to Evas_Map.
+ * @n Input Data: pointer to Evas_Map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function once and pass NULL instead of pointer to Evas_Map.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_evas_object_map_enable_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_object_map_enable_get, NULL) == 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_evas_object_map_enable_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_map_enable_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_map_enable_set_p);
+   tcase_add_test(tcase, utc_evas_object_map_enable_set_n);
+   tcase_add_test(tcase, utc_evas_object_map_enable_set_n2);
+   tcase_add_test(tcase, utc_evas_object_map_enable_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_map/utc_evas_object_map_enable_set.c b/TC/evas/canvas/evas_map/utc_evas_object_map_enable_set.c
deleted file mode 100644 (file)
index d0a692c..0000000
+++ /dev/null
@@ -1,184 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-static Ecore_Evas *ee = NULL;
-static Evas_Object *obj = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_object_map_enable_set evas_object_map_enable_set()
- *
- *
- * @precondition
- * @step 1 Init the Ecore_Evas system
- * @step 2 Create map of transformation points to be later used with an Evas object
- * @step 3 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 4 Create an Evas image object with image data bound to an own, internal Ecore_Evas canvas wrapper
- * @step 5 Set current object transformation map
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   ecore_evas_init();
-   map = evas_map_new(4);
-
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-   ee = ecore_evas_buffer_new(128, 128);
-
-   if (!ee)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Ecore_Evas is not created..", __FILE__, __LINE__);
-        return;
-     }
-   obj = ecore_evas_object_image_new(ee);
-
-   if (obj)
-      evas_object_map_set(obj, map);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-   ecore_evas_free(ee);
-   ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_map_enable_set
- * @{
- * @objective Positive test case checks whether function enables and disables using of the map properly.
- * @n Input Data:
- * @n First call:
- * @li pointer to Evas_Object to enable/disable map on;
- * @li EINA_TRUE to enable the use of map.
- * @n Second call:
- * @li pointer to Evas_Object;
- * @li EINA_FALSE to disable the use of map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Enable the use of map
- * @step 3 Check if using of the map is enabled
- * @step 4 Disable the use of map
- * @step 5 Check if using of the map is disabled
- *
- * @passcondition Function enables and disables the use of map for the Evas_Object properly.
- * @}
- */
-START_TEST(utc_evas_object_map_enable_set_p)
-{
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_object_map_enable_set(obj, EINA_TRUE);
-
-   if (evas_object_map_enable_get(obj) != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Map is not enabled..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_object_map_enable_set(obj, EINA_FALSE);
-
-   if (evas_object_map_enable_get(obj) != EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Map is not disabled..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_map_enable_set
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data:
- * @li pointer to Evas_Object;
- * @li EINA_FALSE to disable the use of map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function once and pass NULL instead of pointer to Evas_Object.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_map_enable_set_n)
-{
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(evas_object_map_enable_set, NULL, EINA_FALSE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_map_enable_set
- * @{
- * @objective Negative test case 2 checks if function doesn't cause segmentation fault
- * if it is called with object without any set transformation map.
- * @n Input Data:
- * @li pointer to Evas_Object;
- * @li EINA_FALSE to disable the use of map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Create new local Evas image object
- * @step 3 Call function once and pass this object, without set map.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_map_enable_set_n2)
-{
-   if (!ee)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-
-   Evas_Object *local_obj = ecore_evas_object_image_new(ee);
-
-   if (!local_obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_object_map_enable_set(local_obj, EINA_TRUE);
-   evas_object_map_enable_set(local_obj, EINA_FALSE);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_map_enable_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_map_enable_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_map_enable_set_p);
-   tcase_add_test(tcase, utc_evas_object_map_enable_set_n);
-   tcase_add_test(tcase, utc_evas_object_map_enable_set_n2);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_object_map_get.c b/TC/evas/canvas/evas_map/utc_evas_object_map_get.c
deleted file mode 100644 (file)
index 7aabffd..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-static Evas_Object *obj = NULL;
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_object_map_get evas_object_map_get()
- *
- *
- * @precondition
- * @step 1 Init the Ecore_Evas system
- * @step 2 Create map of transformation points to be later used with an Evas object
- * @step 3 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 4 Create an Evas image object with image data bound to an own, internal Ecore_Evas canvas wrapper
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   ecore_evas_init();
-   map = evas_map_new(4);
-
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-   ee = ecore_evas_buffer_new(128, 128);
-
-   if (!ee)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Ecore_Evas is not created..", __FILE__, __LINE__);
-        return;
-     }
-   obj = ecore_evas_object_image_new(ee);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-   ecore_evas_free(ee);
-   ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_map_get
- * @{
- * @objective Positive test case checks whether function gets transformation map for given object properly.
- * @n Input Data: pointer to Evas_Object to get map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Set current object transformation map
- * @step 3 Check if map is set
- *
- * @passcondition Function returns not NULL.
- * @}
- */
-START_TEST(utc_evas_object_map_get_p)
-{
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_object_map_set(obj, map);
-
-   if (!evas_object_map_get(obj))
-     {
-        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 evas_object_map_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data: NULL as pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_map_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_map_get, NULL) == 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_evas_object_map_get()
-{
-   TCase *tcase = tcase_create("utc_evas_object_map_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_map_get_p);
-   tcase_add_test(tcase, utc_evas_object_map_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_map/utc_evas_object_map_get_set.c b/TC/evas/canvas/evas_map/utc_evas_object_map_get_set.c
new file mode 100644 (file)
index 0000000..a764a7c
--- /dev/null
@@ -0,0 +1,146 @@
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include "../../../utc_negative_unitest.h"
+static Evas_Map *map = NULL;
+static Evas_Object *obj = NULL;
+static Ecore_Evas *ee = NULL;
+
+/**
+ * @addtogroup evas_map
+ * @{
+ * @defgroup evas_object_map_get evas_object_map_get()
+ *
+ *
+ * @precondition
+ * @step 1 Init the Ecore_Evas system
+ * @step 2 Create map of transformation points to be later used with an Evas object
+ * @step 3 Create a new Ecore_Evas canvas bound to the Evas buffer engine
+ * @step 4 Create an Evas image object with image data bound to an own, internal Ecore_Evas canvas wrapper
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   ecore_evas_init();
+   map = evas_map_new(4);
+
+   if (!map)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
+     }
+   ee = ecore_evas_buffer_new(128, 128);
+
+   if (!ee)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Ecore_Evas is not created..", __FILE__, __LINE__);
+     }
+   obj = ecore_evas_object_image_new(ee);
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_map_free(map);
+   ecore_evas_free(ee);
+   ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_map_get
+ * @{
+ * @objective Positive test case checks whether function gets transformation map for given object properly.
+ * @n Input Data: pointer to Evas_Object to get map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Set current object transformation map
+ * @step 3 Check if map is set
+ *
+ * @passcondition Function returns not NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_map_get_p)
+{
+   if (!obj)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+     }
+
+   evas_object_map_set(obj, map);
+
+   if (!evas_object_map_get(obj))
+     {
+        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 evas_object_map_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data: NULL as pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_map_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(NULL, evas_object_map_get, NULL) == 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 evas_object_map_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of any argument.
+ * @n Input Data: pointer to Evas_Object and pointer to Evas_Map.
+ *
+ * @procedure
+ * @step 1 Set signal handler for SIGSEGV
+ * @step 2 Call function 2 times and pass (in turn) NULL instead of one from valid arguments.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_map_set_n)
+{
+   if (!obj)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+     }
+
+   UNITEST_FUNC_NEG(evas_object_map_set, obj, map);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_map_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_object_map_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_object_map_get_p);
+   tcase_add_test(tcase, utc_evas_object_map_get_n);
+   tcase_add_test(tcase, utc_evas_object_map_set_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_map/utc_evas_object_map_set.c b/TC/evas/canvas/evas_map/utc_evas_object_map_set.c
deleted file mode 100644 (file)
index 6c1cad8..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-static Evas_Map *map = NULL;
-static Evas_Object *obj = NULL;
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup evas_map
- * @{
- * @defgroup evas_object_map_set evas_object_map_set()
- *
- *
- * @precondition
- * @step 1 Init the Ecore_Evas system
- * @step 2 Create map of transformation points to be later used with an Evas object
- * @step 3 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 4 Create an Evas image object with image data bound to an own, internal Ecore_Evas canvas wrapper
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   ecore_evas_init();
-   map = evas_map_new(4);
-
-   if (!map)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Map is not created..", __FILE__, __LINE__);
-        return;
-     }
-   ee = ecore_evas_buffer_new(128, 128);
-
-   if (!ee)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Ecore_Evas is not created..", __FILE__, __LINE__);
-        return;
-     }
-   obj = ecore_evas_object_image_new(ee);
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_map_free(map);
-   ecore_evas_free(ee);
-   ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_map_set
- * @{
- * @objective Positive test case checks whether function sets current object transformation map properly.
- * @n Input Data:
- * @li pointer to Evas_Object to set map for;
- * @li pointer to Evas_Map to be set.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Set map on Evas_Object
- * @step 3 Check if map is set
- *
- * @passcondition Function sets map properly, function evas_object_map_get returns not NULL.
- * @}
- */
-START_TEST(utc_evas_object_map_set_p)
-{
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   evas_object_map_set(obj, map);
-
-   if (!evas_object_map_get(obj))
-     {
-        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 evas_object_map_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of any argument.
- * @n Input Data: pointer to Evas_Object and pointer to Evas_Map.
- *
- * @procedure
- * @step 1 Set signal handler for SIGSEGV
- * @step 2 Call function 2 times and pass (in turn) NULL instead of one from valid arguments.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_map_set_n)
-{
-   if (!obj)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
-        return;
-     }
-
-   UNITEST_FUNC_NEG(evas_object_map_set, obj, map);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_map_set()
-{
-   TCase *tcase = tcase_create("utc_evas_object_map_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_object_map_set_p);
-   tcase_add_test(tcase, utc_evas_object_map_set_n);
-   return tcase;
-}