utc_evas_font_dir_xxxx: Merge TCs to reduce duplicate test operations 15/190515/2
authorApurv Khatri <apurv.khatri@samsung.com>
Wed, 3 Oct 2018 08:43:23 +0000 (14:13 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 12 Oct 2018 07:41:15 +0000 (07:41 +0000)
Change-Id: Ib884846fb7a6b155266bbeb24db6c9b930dbd2ee

TC/evas/canvas/evas_font_dir/tslist
TC/evas/canvas/evas_font_dir/tslist_mobile
TC/evas/canvas/evas_font_dir/tslist_tv
TC/evas/canvas/evas_font_dir/tslist_wear
TC/evas/canvas/evas_font_dir/utc_evas_font_cache_get.c [deleted file]
TC/evas/canvas/evas_font_dir/utc_evas_font_cache_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_font_dir/utc_evas_font_cache_set.c [deleted file]
TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_get.c [deleted file]
TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_get_set.c [new file with mode: 0644]
TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_set.c [deleted file]

index 0d42bb37f42e19e0240e42036645329b4bb4065b..9f1657f6650a7aa8e040ef98639b316dfb750ad1 100644 (file)
@@ -1,11 +1,9 @@
 utc_evas_font_available_list.c
 utc_evas_font_available_list_free.c
 utc_evas_font_cache_flush.c
-utc_evas_font_cache_get.c
-utc_evas_font_cache_set.c
+utc_evas_font_cache_get_set.c
 utc_evas_font_hinting_can_hint.c
-utc_evas_font_hinting_get.c
-utc_evas_font_hinting_set.c
+utc_evas_font_hinting_get_set.c
 utc_evas_font_path.c
 utc_evas_font_path_append.c
 utc_evas_font_path_prepend.c
index 0d42bb37f42e19e0240e42036645329b4bb4065b..9f1657f6650a7aa8e040ef98639b316dfb750ad1 100644 (file)
@@ -1,11 +1,9 @@
 utc_evas_font_available_list.c
 utc_evas_font_available_list_free.c
 utc_evas_font_cache_flush.c
-utc_evas_font_cache_get.c
-utc_evas_font_cache_set.c
+utc_evas_font_cache_get_set.c
 utc_evas_font_hinting_can_hint.c
-utc_evas_font_hinting_get.c
-utc_evas_font_hinting_set.c
+utc_evas_font_hinting_get_set.c
 utc_evas_font_path.c
 utc_evas_font_path_append.c
 utc_evas_font_path_prepend.c
index 665f9d6393be4c470e66c739f5e2292f1a8d5288..7db8dbf7a1a3b0f75936eb5849ff7a57969b7d30 100644 (file)
@@ -1,11 +1,9 @@
 utc_evas_font_available_list.c
 utc_evas_font_available_list_free.c
 utc_evas_font_cache_flush.c
-utc_evas_font_cache_get.c
-utc_evas_font_cache_set.c
+utc_evas_font_cache_get_set.c
 #utc_evas_font_hinting_can_hint.c
-utc_evas_font_hinting_get.c
-utc_evas_font_hinting_set.c
+utc_evas_font_hinting_get_set.c
 #utc_evas_font_path.c
 utc_evas_font_path_append.c
 utc_evas_font_path_prepend.c
index 665f9d6393be4c470e66c739f5e2292f1a8d5288..7db8dbf7a1a3b0f75936eb5849ff7a57969b7d30 100644 (file)
@@ -1,11 +1,9 @@
 utc_evas_font_available_list.c
 utc_evas_font_available_list_free.c
 utc_evas_font_cache_flush.c
-utc_evas_font_cache_get.c
-utc_evas_font_cache_set.c
+utc_evas_font_cache_get_set.c
 #utc_evas_font_hinting_can_hint.c
-utc_evas_font_hinting_get.c
-utc_evas_font_hinting_set.c
+utc_evas_font_hinting_get_set.c
 #utc_evas_font_path.c
 utc_evas_font_path_append.c
 utc_evas_font_path_prepend.c
diff --git a/TC/evas/canvas/evas_font_dir/utc_evas_font_cache_get.c b/TC/evas/canvas/evas_font_dir/utc_evas_font_cache_get.c
deleted file mode 100644 (file)
index 8205124..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_font_dir
- * @{
- * @defgroup evas_font_cache_get evas_font_cache_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_font_cache_get
- * @{
- * @objective Positive test case checks if function gets cache size properly.
- * @n Input Data:
- * @li pointer to Evas.
- *
- * @procedure
- * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 2 Get an Ecore_Evas's Evas
- * @step 3 Change the size of font cache of the evas to 2
- * @step 4 Get size of cache
- *
- * @passcondition Function returns 2.
- * @}
- */
-START_TEST(utc_evas_font_cache_get_p)
-{
-   int ret = 0;
-   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
-   Evas *evas = ecore_evas_get(ee);
-
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_font_cache_set(evas, 2);
-        ret = evas_font_cache_get(evas);
-
-        if (ret != 2)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned cache size is wrong: %d..", __FILE__, __LINE__, ret);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   ecore_evas_free(ee);
-}
-END_TEST
-
-/**
- * @addtogroup evas_font_cache_get
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * and returns 0 if it is called with NULL instead of pointer to Evas.
- * @n Input Data:
- * @li NULL instead of pointer to Evas_Object.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns 0.
- * @}
- */
-START_TEST(utc_evas_font_cache_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(0, evas_font_cache_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_font_cache_get()
-{
-   TCase *tcase = tcase_create("utc_evas_font_cache_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_font_cache_get_p);
-   tcase_add_test(tcase, utc_evas_font_cache_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_font_dir/utc_evas_font_cache_get_set.c b/TC/evas/canvas/evas_font_dir/utc_evas_font_cache_get_set.c
new file mode 100644 (file)
index 0000000..45e7331
--- /dev/null
@@ -0,0 +1,186 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_font_dir
+ * @{
+ * @defgroup evas_font_cache_set evas_font_cache_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_font_cache_set
+ * @{
+ * @objective Positive test case checks if function sets given cache size properly.
+ * @n Input Data:
+ * @li pointer to Evas
+ * @li 2 as cache size.
+ *
+ * @procedure
+ * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
+ * @step 2 Get an Ecore_Evas's Evas
+ * @step 3 Change the size of font cache of the evas to 2
+ * @step 4 Get size of cache via evas_font_cache_get()
+ *
+ * @passcondition Function sets cache size successfully, evas_font_cache_get() returns 2.
+ * @}
+ */
+START_TEST(utc_evas_font_cache_set_p)
+{
+   int ret = 0;
+   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
+   Evas *evas = ecore_evas_get(ee);
+
+   if (!evas)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
+     }
+   else
+     {
+        evas_font_cache_set(evas, 2);
+        ret = evas_font_cache_get(evas);
+
+        if (ret != 2)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned cache size is wrong: %d..", __FILE__, __LINE__, ret);
+          }
+        else
+          {
+             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+          }
+     }
+   ecore_evas_free(ee);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_font_cache_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.
+ * @n Input Data:
+ * @li NULL instead of pointer to Evas_Object
+ * @li 2 as size of cache.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_font_cache_set_n)
+{
+
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(evas_font_cache_set, NULL, 2);
+
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_font_cache_set
+ * @{
+ * @objective Negative test case 2 checks if function doesn't cause segmentation fault
+ * and doesn't set cache size with incorrect argument.
+ * @n Input Data:
+ * @li pointer to Evas
+ * @li -2 as cache size.
+ *
+ * @procedure
+ * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
+ * @step 2 Get an Ecore_Evas's Evas
+ * @step 3 Try to change the size of font cache of the evas to negative value -2
+ * @step 4 Get size of cache via evas_font_cache_get()
+ *
+ * @passcondition Function doesn't set cache size, evas_font_cache_get() returns 0.
+ * @}
+ */
+START_TEST(utc_evas_font_cache_set_n2)
+{
+   int ret = 0;
+   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
+   Evas *evas = ecore_evas_get(ee);
+
+   if (!evas)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
+     }
+   else
+     {
+        evas_font_cache_set(evas, -2);
+        ret = evas_font_cache_get(evas);
+
+        if (ret)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned cache size is wrong: %d..", __FILE__, __LINE__, ret);
+          }
+        else
+          {
+             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+          }
+     }
+   ecore_evas_free(ee);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_font_cache_get
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * and returns 0 if it is called with NULL instead of pointer to Evas.
+ * @n Input Data:
+ * @li NULL instead of pointer to Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns 0.
+ * @}
+ */
+START_TEST(utc_evas_font_cache_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(0, evas_font_cache_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_font_cache_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_font_cache_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_font_cache_set_p);
+   tcase_add_test(tcase, utc_evas_font_cache_set_n);
+   tcase_add_test(tcase, utc_evas_font_cache_set_n2);
+   tcase_add_test(tcase, utc_evas_font_cache_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_font_dir/utc_evas_font_cache_set.c b/TC/evas/canvas/evas_font_dir/utc_evas_font_cache_set.c
deleted file mode 100644 (file)
index 4af0b78..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_font_dir
- * @{
- * @defgroup evas_font_cache_set evas_font_cache_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_font_cache_set
- * @{
- * @objective Positive test case checks if function sets given cache size properly.
- * @n Input Data:
- * @li pointer to Evas
- * @li 2 as cache size.
- *
- * @procedure
- * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 2 Get an Ecore_Evas's Evas
- * @step 3 Change the size of font cache of the evas to 2
- * @step 4 Get size of cache via evas_font_cache_get()
- *
- * @passcondition Function sets cache size successfully, evas_font_cache_get() returns 2.
- * @}
- */
-START_TEST(utc_evas_font_cache_set_p)
-{
-   int ret = 0;
-   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
-   Evas *evas = ecore_evas_get(ee);
-
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_font_cache_set(evas, 2);
-        ret = evas_font_cache_get(evas);
-
-        if (ret != 2)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned cache size is wrong: %d..", __FILE__, __LINE__, ret);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   ecore_evas_free(ee);
-}
-END_TEST
-
-/**
- * @addtogroup evas_font_cache_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.
- * @n Input Data:
- * @li NULL instead of pointer to Evas_Object
- * @li 2 as size of cache.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_font_cache_set_n)
-{
-
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(evas_font_cache_set, NULL, 2);
-
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_font_cache_set
- * @{
- * @objective Negative test case 2 checks if function doesn't cause segmentation fault
- * and doesn't set cache size with incorrect argument.
- * @n Input Data:
- * @li pointer to Evas
- * @li -2 as cache size.
- *
- * @procedure
- * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 2 Get an Ecore_Evas's Evas
- * @step 3 Try to change the size of font cache of the evas to negative value -2
- * @step 4 Get size of cache via evas_font_cache_get()
- *
- * @passcondition Function doesn't set cache size, evas_font_cache_get() returns 0.
- * @}
- */
-START_TEST(utc_evas_font_cache_set_n2)
-{
-   int ret = 0;
-   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
-   Evas *evas = ecore_evas_get(ee);
-
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_font_cache_set(evas, -2);
-        ret = evas_font_cache_get(evas);
-
-        if (ret)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned cache size is wrong: %d..", __FILE__, __LINE__, ret);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   ecore_evas_free(ee);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_font_cache_set()
-{
-   TCase *tcase = tcase_create("utc_evas_font_cache_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_font_cache_set_p);
-   tcase_add_test(tcase, utc_evas_font_cache_set_n);
-   tcase_add_test(tcase, utc_evas_font_cache_set_n2);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_get.c b/TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_get.c
deleted file mode 100644 (file)
index 7b98469..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_font_dir
- * @{
- * @defgroup evas_font_hinting_get evas_font_hinting_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_font_hinting_get
- * @{
- * @objective Positive test case checks if function gets hinting value properly.
- * @n Input Data:
- * @li pointer to Evas object
- *
- * @procedure
- * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 2 Get an Ecore_Evas's Evas
- * @step 3 Set hinting of evas to EVAS_FONT_HINTING_AUTO
- * @step 4 Get hinting
- *
- * @passcondition Function returns EVAS_FONT_HINTING_AUTO.
- * @}
- */
-START_TEST(utc_evas_font_hinting_get_p)
-{
-   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
-   Evas *evas = ecore_evas_get(ee);
-
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
-
-        if (evas_font_hinting_get(evas) != EVAS_FONT_HINTING_AUTO)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned hinting is wrong..", __FILE__, __LINE__);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   ecore_evas_free(ee);
-}
-END_TEST
-
-/**
- * @addtogroup evas_font_hinting_get
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * and returns EVAS_FONT_HINTING_NONE if it is called with NULL instead of pointer to Evas.
- * @n Input Data:
- * @li NULL as pointer to Evas.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns EVAS_FONT_HINTING_NONE.
- * @}
- */
-START_TEST(utc_evas_font_hinting_get_n)
-{
-
-   if (UNITEST_FUNC_NEG_RET(EVAS_FONT_HINTING_NONE, evas_font_hinting_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_font_hinting_get()
-{
-   TCase *tcase = tcase_create("utc_evas_font_hinting_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_font_hinting_get_p);
-   tcase_add_test(tcase, utc_evas_font_hinting_get_n);
-   return tcase;
-}
diff --git a/TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_get_set.c b/TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_get_set.c
new file mode 100644 (file)
index 0000000..1740ff8
--- /dev/null
@@ -0,0 +1,184 @@
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_font_dir
+ * @{
+ * @defgroup evas_font_hinting_set evas_font_hinting_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   evas_init();
+}
+
+static void
+teardown(void)
+{
+   printf(" ============ Cleanup ============ \n");
+   evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_font_hinting_set
+ * @{
+ * @objective Positive test case checks if function sets given hinting value properly.
+ * @n Input Data:
+ * @li pointer to Evas
+ * @li EVAS_FONT_HINTING_AUTO as hinting.
+ *
+ * @procedure
+ * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
+ * @step 2 Get an Ecore_Evas's Evas
+ * @step 3 Set hinting of evas to EVAS_FONT_HINTING_AUTO
+ * @step 4 Get hinting via evas_font_hinting_get()
+ *
+ * @passcondition Function sets hinting successfully, evas_font_hinting_get() returns EVAS_FONT_HINTING_AUTO.
+ * @}
+ */
+START_TEST(utc_evas_font_hinting_set_p)
+{
+   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
+   Evas *evas = ecore_evas_get(ee);
+
+   if (!evas)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
+     }
+   else
+     {
+        evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
+
+        if (evas_font_hinting_get(evas) != EVAS_FONT_HINTING_AUTO)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned hinting is wrong..", __FILE__, __LINE__);
+          }
+        else
+          {
+             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+          }
+     }
+   ecore_evas_free(ee);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_font_hinting_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.
+ * @n Input Data:
+ * @li NULL as pointer to Evas
+ * @li 0 as hinting value.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_font_hinting_set_n)
+{
+   evas_font_hinting_set(NULL, 0);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_font_hinting_set
+ * @{
+ * @objective Negative test case 2 checks if function doesn't set hinting if it
+ * is called with incorrect hinting argument.
+ * @n Input Data:
+ * @li Valid pointer to Evas
+ * @li -1 as hinting value.
+ *
+ * @procedure
+ * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
+ * @step 2 Get an Ecore_Evas's Evas
+ * @step 3 Set hinting of evas to -1 (it is incorrect since function gets enum value
+ * without negative elements)
+ * @step 4 Get hinting via evas_font_hinting_get()
+ *
+ * @passcondition Function doesn't set hinting, evas_font_hinting_get() returns non negative value.
+ * @}
+ */
+#ifdef NOT_APPROVED_FOR_BUILD
+START_TEST(utc_evas_font_hinting_set_n2)
+{
+   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
+   Evas *evas = ecore_evas_get(ee);
+
+   if (!evas)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
+     }
+   else
+     {
+        evas_font_hinting_set(evas, (Evas_Font_Hinting_Flags)-1);
+
+        if (evas_font_hinting_get(evas) == -1)
+          {
+             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Hinting is set to -1", __FILE__, __LINE__);
+          }
+        else
+          {
+             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+          }
+     }
+   ecore_evas_free(ee);
+}
+END_TEST
+#endif //NOT_APPROVED_FOR_BUILD
+
+/**
+ * @addtogroup evas_font_hinting_get
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * and returns EVAS_FONT_HINTING_NONE if it is called with NULL instead of pointer to Evas.
+ * @n Input Data:
+ * @li NULL as pointer to Evas.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EVAS_FONT_HINTING_NONE.
+ * @}
+ */
+START_TEST(utc_evas_font_hinting_get_n)
+{
+
+   if (UNITEST_FUNC_NEG_RET(EVAS_FONT_HINTING_NONE, evas_font_hinting_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_font_hinting_get_set()
+{
+   TCase *tcase = tcase_create("utc_evas_font_hinting_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_evas_font_hinting_set_p);
+   tcase_add_test(tcase, utc_evas_font_hinting_set_n);
+#ifdef NOT_APPROVED_FOR_BUILD
+   tcase_add_test(tcase, utc_evas_font_hinting_set_n2);
+#endif
+   tcase_add_test(tcase, utc_evas_font_hinting_get_n);
+   return tcase;
+}
diff --git a/TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_set.c b/TC/evas/canvas/evas_font_dir/utc_evas_font_hinting_set.c
deleted file mode 100644 (file)
index 36a7407..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-
-/**
- * @addtogroup evas_font_dir
- * @{
- * @defgroup evas_font_hinting_set evas_font_hinting_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   evas_init();
-}
-
-static void
-teardown(void)
-{
-   printf(" ============ Cleanup ============ \n");
-   evas_shutdown();
-}
-
-/**
- * @addtogroup evas_font_hinting_set
- * @{
- * @objective Positive test case checks if function sets given hinting value properly.
- * @n Input Data:
- * @li pointer to Evas
- * @li EVAS_FONT_HINTING_AUTO as hinting.
- *
- * @procedure
- * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 2 Get an Ecore_Evas's Evas
- * @step 3 Set hinting of evas to EVAS_FONT_HINTING_AUTO
- * @step 4 Get hinting via evas_font_hinting_get()
- *
- * @passcondition Function sets hinting successfully, evas_font_hinting_get() returns EVAS_FONT_HINTING_AUTO.
- * @}
- */
-START_TEST(utc_evas_font_hinting_set_p)
-{
-   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
-   Evas *evas = ecore_evas_get(ee);
-
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_font_hinting_set(evas, EVAS_FONT_HINTING_AUTO);
-
-        if (evas_font_hinting_get(evas) != EVAS_FONT_HINTING_AUTO)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned hinting is wrong..", __FILE__, __LINE__);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   ecore_evas_free(ee);
-}
-END_TEST
-
-/**
- * @addtogroup evas_font_hinting_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.
- * @n Input Data:
- * @li NULL as pointer to Evas
- * @li 0 as hinting value.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_font_hinting_set_n)
-{
-   evas_font_hinting_set(NULL, 0);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_font_hinting_set
- * @{
- * @objective Negative test case 2 checks if function doesn't set hinting if it
- * is called with incorrect hinting argument.
- * @n Input Data:
- * @li Valid pointer to Evas
- * @li -1 as hinting value.
- *
- * @procedure
- * @step 1 Create a new Ecore_Evas canvas bound to the Evas buffer engine
- * @step 2 Get an Ecore_Evas's Evas
- * @step 3 Set hinting of evas to -1 (it is incorrect since function gets enum value
- * without negative elements)
- * @step 4 Get hinting via evas_font_hinting_get()
- *
- * @passcondition Function doesn't set hinting, evas_font_hinting_get() returns non negative value.
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-START_TEST(utc_evas_font_hinting_set_n2)
-{
-   Ecore_Evas *ee = ecore_evas_buffer_new(1, 1);
-   Evas *evas = ecore_evas_get(ee);
-
-   if (!evas)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
-     }
-   else
-     {
-        evas_font_hinting_set(evas, (Evas_Font_Hinting_Flags)-1);
-
-        if (evas_font_hinting_get(evas) == -1)
-          {
-             ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Hinting is set to -1", __FILE__, __LINE__);
-          }
-        else
-          {
-             printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-          }
-     }
-   ecore_evas_free(ee);
-}
-END_TEST
-#endif //NOT_APPROVED_FOR_BUILD
-/**
- *@}
- */
-
-TCase * _utc_evas_font_hinting_set()
-{
-   TCase *tcase = tcase_create("utc_evas_font_hinting_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_evas_font_hinting_set_p);
-   tcase_add_test(tcase, utc_evas_font_hinting_set_n);
-#ifdef NOT_APPROVED_FOR_BUILD
-   tcase_add_test(tcase, utc_evas_font_hinting_set_n2);
-#endif
-   return tcase;
-}