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
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
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
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
+++ /dev/null
-#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;
-}
--- /dev/null
+#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;
+}
+++ /dev/null
-#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;
-}
+++ /dev/null
-#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;
-}
--- /dev/null
+#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;
+}
+++ /dev/null
-#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;
-}