utc_evas_new.c
utc_evas_free.c
utc_evas_shutdown.c
-utc_evas_engine_info_set.c
-utc_evas_engine_info_get.c
-utc_evas_image_cache_get.c
-utc_evas_image_cache_set.c
+utc_evas_engine_info_get_set.c
+utc_evas_image_cache_get_set.c
utc_evas_image_max_size_get.c
utc_evas_image_cache_flush.c
utc_evas_image_cache_reload.c
utc_evas_out_add.c
utc_evas_output_del.c
-utc_evas_output_method_get.c
-utc_evas_output_method_set.c
-utc_evas_output_size_get.c
-utc_evas_output_size_set.c
-utc_evas_output_view_set.c
-utc_evas_output_view_get.c
-utc_evas_output_viewport_set.c
-utc_evas_output_viewport_get.c
+utc_evas_output_method_get_set.c
+utc_evas_output_size_get_set.c
+utc_evas_output_view_get_set.c
+utc_evas_output_viewport_get_set.c
utc_evas_render_method_lookup.c
utc_evas_object_image_extension_can_load_get.c
utc_evas_object_image_extension_can_load_fast_get.c
utc_evas_new.c
utc_evas_free.c
utc_evas_shutdown.c
-utc_evas_engine_info_set.c
-utc_evas_engine_info_get.c
-utc_evas_image_cache_get.c
-utc_evas_image_cache_set.c
+utc_evas_engine_info_get_set.c
+utc_evas_image_cache_get_set.c
utc_evas_image_max_size_get.c
utc_evas_image_cache_flush.c
utc_evas_image_cache_reload.c
utc_evas_out_add.c
utc_evas_output_del.c
-utc_evas_output_method_get.c
-utc_evas_output_method_set.c
-utc_evas_output_size_get.c
-utc_evas_output_size_set.c
-#utc_evas_output_view_set.c
-utc_evas_output_view_get.c
-utc_evas_output_viewport_set.c
-utc_evas_output_viewport_get.c
+utc_evas_output_method_get_set.c
+utc_evas_output_size_get_set.c
+#utc_evas_output_view_get_set.c
+utc_evas_output_viewport_get_set.c
utc_evas_render_method_lookup.c
utc_evas_object_image_extension_can_load_get.c
utc_evas_object_image_extension_can_load_fast_get.c
utc_evas_new.c
utc_evas_free.c
#utc_evas_shutdown.c
-utc_evas_engine_info_set.c
-utc_evas_engine_info_get.c
-#utc_evas_image_cache_get.c
-#utc_evas_image_cache_set.c
+utc_evas_engine_info_get_set.c
+#utc_evas_image_cache_get_set.c
#utc_evas_image_max_size_get.c
#utc_evas_image_cache_flush.c
#utc_evas_image_cache_reload.c
utc_evas_out_add.c
utc_evas_output_del.c
-utc_evas_output_method_get.c
-utc_evas_output_method_set.c
-utc_evas_output_size_get.c
-utc_evas_output_size_set.c
-#utc_evas_output_view_set.c
-utc_evas_output_view_get.c
-utc_evas_output_viewport_set.c
-utc_evas_output_viewport_get.c
+utc_evas_output_method_get_set.c
+utc_evas_output_size_get_set.c
+#utc_evas_output_view_get_set.c
+utc_evas_output_viewport_get_set.c
utc_evas_render_method_lookup.c
utc_evas_object_image_extension_can_load_get.c
utc_evas_object_image_extension_can_load_fast_get.c
utc_evas_new.c
utc_evas_free.c
#utc_evas_shutdown.c
-utc_evas_engine_info_set.c
-utc_evas_engine_info_get.c
-#utc_evas_image_cache_get.c
-#utc_evas_image_cache_set.c
+utc_evas_engine_info_get_set.c
+#utc_evas_image_cache_get_set.c
#utc_evas_image_max_size_get.c
#utc_evas_image_cache_flush.c
#utc_evas_image_cache_reload.c
utc_evas_out_add.c
utc_evas_output_del.c
-utc_evas_output_method_get.c
-utc_evas_output_method_set.c
-utc_evas_output_size_get.c
-utc_evas_output_size_set.c
-#utc_evas_output_view_set.c
-utc_evas_output_view_get.c
-utc_evas_output_viewport_set.c
-utc_evas_output_viewport_get.c
+utc_evas_output_method_get_set.c
+utc_evas_output_size_get_set.c
+#utc_evas_output_view_get_set.c
+utc_evas_output_viewport_get_set.c
utc_evas_render_method_lookup.c
utc_evas_object_image_extension_can_load_get.c
utc_evas_object_image_extension_can_load_fast_get.c
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_engine_info_get evas_engine_info_get()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_engine_info_get
- * @{
- * @objective Positive test case checks if tested function returns an info structure
- * about the render engine using in the evas object.
- * @n Input Data:
- * @li pointer to Evas object.
- *
- * @procedure
- * @step 1 Create a new, empty evas object
- * @step 2 Set the evas output method using an evas_render_method_lookup function.
- * Set "buffer" as an rendering engine
- * @step 3 Get the current render engine from the evas object in which the engine was set in the step before.
- *
- * @passcondition Function returns not NULL value.
- * @}
- */
-START_TEST(utc_evas_engine_info_get_p)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- evas_output_method_set(evas, evas_render_method_lookup("buffer"));
-
- if (!evas_engine_info_get(evas))
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_engine_info_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:
- * @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 NULL.
- * @}
- */
-START_TEST(utc_evas_engine_info_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(NULL, evas_engine_info_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_engine_info_get()
-{
- TCase *tcase = tcase_create("utc_evas_engine_info_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_engine_info_get_p);
- tcase_add_test(tcase, utc_evas_engine_info_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_main
+ * @{
+ * @defgroup evas_engine_info_set evas_engine_info_set()
+ *
+ * @precondition
+ * @step 1 Initialize Evas
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_engine_info_set
+ * @{
+ * @objective Positive test case checks if function called with correct render engine info
+ * structure returns EINA_TRUE.
+ * @n Input Data:
+ * @li pointer to Evas object (is set up with "buffer" render method);
+ * @li pointer to Evas_Engine_Info object of the Evas.
+ *
+ * @procedure
+ * @step 1 Create new evas object.
+ * @step 2 Set the evas output method using an evas_render_method_lookup function. Set "buffer" as an rendering engine.
+ * @step 3 Get the current render engine info struct from the evas object.
+ * @step 4 Set the information about the render engine got from the step before into a evas object.
+ *
+ * @passcondition Function returns EINA_TRUE.
+ * @}
+ */
+START_TEST(utc_evas_engine_info_set_p)
+{
+ Evas_Engine_Info *einfo = NULL;
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ else
+ {
+ evas_output_method_set(evas, evas_render_method_lookup("buffer"));
+ einfo = evas_engine_info_get(evas);
+
+ if (!einfo)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Engine info is not get..", __FILE__, __LINE__);
+ }
+ else if (evas_engine_info_set(evas, einfo) != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ else
+ {
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ }
+ evas_free(evas);
+ }
+}
+END_TEST
+
+/**
+ * @addtogroup evas_engine_info_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns EINA_FALSE if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to Evas object (is set up with "buffer" render method);
+ * @li pointer to Evas_Engine_Info object of the Evas.
+ *
+ * @procedure
+ * @step 1 Create new Evas
+ * @step 2 Set the evas output method using "buffer" as an rendering engine.
+ * @step 3 Get the current render engine info struct from the evas object.
+ * @step 4 Call tested function 2 times and pass (in turn) NULL instead of one from valid arguments.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_evas_engine_info_set_n)
+{
+ Evas_Engine_Info *einfo = NULL;
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ else
+ {
+ evas_output_method_set(evas, evas_render_method_lookup("buffer"));
+ einfo = evas_engine_info_get(evas);
+
+ if (!einfo)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Engine info is not get..", __FILE__, __LINE__);
+ }
+ else if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_engine_info_set, evas, einfo) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ else
+ {
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ }
+ evas_free(evas);
+ }
+}
+END_TEST
+
+/**
+ * @addtogroup evas_engine_info_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:
+ * @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 NULL.
+ * @}
+ */
+START_TEST(utc_evas_engine_info_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(NULL, evas_engine_info_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_engine_info_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_engine_info_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_engine_info_set_p);
+ tcase_add_test(tcase, utc_evas_engine_info_set_n);
+ tcase_add_test(tcase, utc_evas_engine_info_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_engine_info_set evas_engine_info_set()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_engine_info_set
- * @{
- * @objective Positive test case checks if function called with correct render engine info
- * structure returns EINA_TRUE.
- * @n Input Data:
- * @li pointer to Evas object (is set up with "buffer" render method);
- * @li pointer to Evas_Engine_Info object of the Evas.
- *
- * @procedure
- * @step 1 Create new evas object.
- * @step 2 Set the evas output method using an evas_render_method_lookup function. Set "buffer" as an rendering engine.
- * @step 3 Get the current render engine info struct from the evas object.
- * @step 4 Set the information about the render engine got from the step before into a evas object.
- *
- * @passcondition Function returns EINA_TRUE.
- * @}
- */
-START_TEST(utc_evas_engine_info_set_p)
-{
- Evas_Engine_Info *einfo = NULL;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- else
- {
- evas_output_method_set(evas, evas_render_method_lookup("buffer"));
- einfo = evas_engine_info_get(evas);
-
- if (!einfo)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Engine info is not get..", __FILE__, __LINE__);
- }
- else if (evas_engine_info_set(evas, einfo) != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
- evas_free(evas);
- }
-}
-END_TEST
-
-/**
- * @addtogroup evas_engine_info_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns EINA_FALSE if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to Evas object (is set up with "buffer" render method);
- * @li pointer to Evas_Engine_Info object of the Evas.
- *
- * @procedure
- * @step 1 Create new Evas
- * @step 2 Set the evas output method using "buffer" as an rendering engine.
- * @step 3 Get the current render engine info struct from the evas object.
- * @step 4 Call tested function 2 times and pass (in turn) NULL instead of one from valid arguments.
- *
- * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
- * @}
- */
-START_TEST(utc_evas_engine_info_set_n)
-{
- Evas_Engine_Info *einfo = NULL;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- else
- {
- evas_output_method_set(evas, evas_render_method_lookup("buffer"));
- einfo = evas_engine_info_get(evas);
-
- if (!einfo)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Engine info is not get..", __FILE__, __LINE__);
- }
- else if (UNITEST_FUNC_NEG_RET(EINA_FALSE, evas_engine_info_set, evas, einfo) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
- evas_free(evas);
- }
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_engine_info_set()
-{
- TCase *tcase = tcase_create("utc_evas_engine_info_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_engine_info_set_p);
- tcase_add_test(tcase, utc_evas_engine_info_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Ecore_Evas.h>
-#include <Evas.h>
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_image_cache_get evas_image_cache_get()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- ecore_evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup evas_image_cache_get
- * @{
- * @objective Positive test case 1. Retrieve the image cache size,from Evas.
- *
- * @n Input Data:
- * @li Valid Evas object named evas;
- *
- * @procedure
- * @step 1 Create new Evas.
- * @step 2 Set some image cache size to Evas.
- * @step 3 Retrieve image cache size from Evas.
- * @step 4 Compare image cache size with set one.
- *
- * @passcondition : Retrieved image cache size equal to set one.
- * @}
- */
-START_TEST(utc_evas_image_cache_get_p_1)
-{
- Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
- Evas* evas = ecore_evas_get(ee);
- const int expected_cache_size = 8192 * 1024;
- evas_image_cache_set(evas, expected_cache_size);
- int retrived_cache_size = evas_image_cache_get(evas);
- if (retrived_cache_size != expected_cache_size)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- ecore_evas_free(ee);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- ecore_evas_free(ee);
-}
-END_TEST
-
-/**
- * @addtogroup evas_image_cache_get
- * @{
- * @objective Negative test case 1. Retrieve the image cache size from NULL object.
- *
- * @n Input Data:
- * @li Invalid (NULL) Evas object;
- *
- * @procedure
- * @step 1 Retrieve image cache size from NULL object.
- *
- * @passcondition : Function doesn't cause segmentation fault and return 0.
- * @}
- */
-START_TEST(utc_evas_image_cache_get_n_1)
-{
- int retrived_cache_size = evas_image_cache_get(NULL);
- if (retrived_cache_size != 0)
- {
- 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_image_cache_get()
-{
- TCase *tcase = tcase_create("utc_evas_image_cache_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_image_cache_get_p_1);
- tcase_add_test(tcase, utc_evas_image_cache_get_n_1);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Ecore_Evas.h>
+#include <Evas.h>
+
+/**
+ * @addtogroup evas_main
+ * @{
+ * @defgroup evas_image_cache_set evas_image_cache_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with evas_init().
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ ecore_evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_image_cache_set
+ * @{
+ * @objective Positive test case 1. Set the image cache size,from Evas.
+ *
+ * @n Input Data:
+ * @li Valid Evas object named evas;
+ * @li Image cache size;
+ *
+ * @procedure
+ * @step 1 Create new Evas.
+ * @step 2 Set some image cache size to Evas.
+ * @step 3 Retrieve image cache size from Evas.
+ * @step 4 Compare image cache size with set one.
+ *
+ * @passcondition : Retrieved image cache size equal to set one.
+ * @}
+ */
+START_TEST(utc_evas_image_cache_set_p_1)
+{
+ Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
+ Evas* evas = ecore_evas_get(ee);
+ const int expected_cache_size = 8192 * 1024;
+ evas_image_cache_set(evas, expected_cache_size);
+ int retrived_cache_size = evas_image_cache_get(evas);
+ if (retrived_cache_size != expected_cache_size)
+ {
+ ecore_evas_free(ee);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ ecore_evas_free(ee);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_image_cache_set
+ * @{
+ * @objective Negative test case 1. Set the image cache size from NULL object.
+ *
+ * @n Input Data:
+ * @li Invalid (NULL) Evas object;
+ * @li Image cache size;
+ *
+ * @procedure
+ * @step 1 Set image cache size from NULL object.
+ *
+ * @passcondition : Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_image_cache_set_n_1)
+{
+ const int expected_cache_size = 8192 * 1024;
+ evas_image_cache_set(NULL, expected_cache_size);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_image_cache_get
+ * @{
+ * @objective Negative test case 1. Retrieve the image cache size from NULL object.
+ *
+ * @n Input Data:
+ * @li Invalid (NULL) Evas object;
+ *
+ * @procedure
+ * @step 1 Retrieve image cache size from NULL object.
+ *
+ * @passcondition : Function doesn't cause segmentation fault and return 0.
+ * @}
+ */
+START_TEST(utc_evas_image_cache_get_n_1)
+{
+ int retrived_cache_size = evas_image_cache_get(NULL);
+ if (retrived_cache_size != 0)
+ {
+ 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_image_cache_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_image_cache_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_image_cache_set_p_1);
+ tcase_add_test(tcase, utc_evas_image_cache_set_n_1);
+ tcase_add_test(tcase, utc_evas_image_cache_get_n_1);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Ecore_Evas.h>
-#include <Evas.h>
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_image_cache_set evas_image_cache_set()
- *
- *
- * @precondition
- * @step 1 Initialize with evas_init().
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- ecore_evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup evas_image_cache_set
- * @{
- * @objective Positive test case 1. Set the image cache size,from Evas.
- *
- * @n Input Data:
- * @li Valid Evas object named evas;
- * @li Image cache size;
- *
- * @procedure
- * @step 1 Create new Evas.
- * @step 2 Set some image cache size to Evas.
- * @step 3 Retrieve image cache size from Evas.
- * @step 4 Compare image cache size with set one.
- *
- * @passcondition : Retrieved image cache size equal to set one.
- * @}
- */
-START_TEST(utc_evas_image_cache_set_p_1)
-{
- Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
- Evas* evas = ecore_evas_get(ee);
- const int expected_cache_size = 8192 * 1024;
- evas_image_cache_set(evas, expected_cache_size);
- int retrived_cache_size = evas_image_cache_get(evas);
- if (retrived_cache_size != expected_cache_size)
- {
- ecore_evas_free(ee);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- ecore_evas_free(ee);
-}
-END_TEST
-
-/**
- * @addtogroup evas_image_cache_set
- * @{
- * @objective Negative test case 1. Set the image cache size from NULL object.
- *
- * @n Input Data:
- * @li Invalid (NULL) Evas object;
- * @li Image cache size;
- *
- * @procedure
- * @step 1 Set image cache size from NULL object.
- *
- * @passcondition : Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_image_cache_set_n_1)
-{
- const int expected_cache_size = 8192 * 1024;
- evas_image_cache_set(NULL, expected_cache_size);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_image_cache_set()
-{
- TCase *tcase = tcase_create("utc_evas_image_cache_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_image_cache_set_p_1);
- tcase_add_test(tcase, utc_evas_image_cache_set_n_1);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_method_get evas_output_method_get()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_method_get
- * @{
- * @objective Positive test case checks if the tested function correctly get the ID of
- * the render engine set earlier.
- * @n Input Data:
- * @li pointer to Evas;
- *
- * @procedure
- * @step 1 Create an evas object.
- * @step 2 Call evas_render_method_lookup() to get method ID for "software_x11" render engine
- * @step 3 Set the "software_x11" render engine saved on step 2 for the evas object.
- * @step 4 Call tested function and get returned value.
- *
- * @passcondition Output methods were got on step 4 and step 2 must be the same,
- * that means the tested function has get the render engine for the evas correctly.
- * @}
- */
-START_TEST(utc_evas_output_method_get_p)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
- }
- int method = evas_render_method_lookup("software_x11");
- evas_output_method_set(evas, method);
- int ret = evas_output_method_get(evas);
-
- if (ret != method)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong method ID returned: %d", __FILE__, __LINE__, ret);
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_method_get
- * @{
- * @objective Negative test case 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 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 0.
- * @}
- */
-START_TEST(utc_evas_output_method_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(0, evas_output_method_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_output_method_get()
-{
- TCase *tcase = tcase_create("utc_evas_output_method_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_method_get_p);
- tcase_add_test(tcase, utc_evas_output_method_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_main
+ * @{
+ * @defgroup evas_output_method_set evas_output_method_set()
+ *
+ * @precondition
+ * @step 1 Initialize Evas
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_output_method_set
+ * @{
+ * @objective Positive test case checks if the tested function correctly set the render
+ * engine for the canvas.
+ * @n Input Data:
+ * @li pointer to Evas;
+ * @li method ID for "software_x11" render engine.
+ *
+ * @procedure
+ * @step 1 Create an evas object.
+ * @step 2 Call evas_render_method_lookup() to get method ID for "software_x11" render engine
+ * @step 3 Call tested function and pass method ID saved on step 2
+ * @step 4 Call the evas_output_method_get function and get returned value.
+ *
+ * @passcondition Output methods were got on step 4 and step 2 must be the same,
+ * that means the tested function has set the render engine for the evas correctly.
+ * @}
+ */
+START_TEST(utc_evas_output_method_set_p)
+{
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
+ }
+ int method = evas_render_method_lookup("software_x11");
+ evas_output_method_set(evas, method);
+ int ret = evas_output_method_get(evas);
+
+ if (ret != method)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong method ID returned: %d", __FILE__, __LINE__, ret);
+ }
+ evas_free(evas);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_method_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;
+ * @li method ID for "software_x11" render engine.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_output_method_set_n)
+{
+ int method = evas_render_method_lookup("software_x11");
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0);
+ UNITEST_FUNC_NEG_CA(evas_output_method_set, NULL, method);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_method_set
+ * @{
+ * @objective Negative test case 2 checks if function works properly if it is called
+ * with incorrect render method ID.
+ * @n Input Data:
+ * @n First call:
+ * @li pointer to Evas;
+ * @li method ID for "software_x11" render engine.
+ * @n Second call:
+ * @li pointer to Evas;
+ * @li 0 as method ID.
+ *
+ * @procedure
+ * @step 1 Create Evas object to set output method
+ * @step 2 Call evas_render_method_lookup() to get method ID for "software_x11" render engine
+ * @step 3 Call tested function and pass method ID saved on step 2
+ * @step 4 Call tested function and pass 0 as method ID - invalid parameter
+ * @step 5 Call evas_output_method_get() to get actual method ID
+ *
+ * @passcondition Function doesn't cause segmentation fault and doesn't set
+ * invalid method ID - output methods were got on step 5 and step 2 must be the same.
+ * @}
+ */
+START_TEST(utc_evas_output_method_set_n2)
+{
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
+ }
+ int value = evas_render_method_lookup("software_x11");
+ evas_output_method_set(evas, value);
+ int method = evas_output_method_get(evas);
+ evas_output_method_set(evas, 0);
+ int ret = evas_output_method_get(evas);
+
+ if (ret != method)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong method ID returned: %d", __FILE__, __LINE__, ret);
+ }
+ evas_free(evas);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_method_get
+ * @{
+ * @objective Negative test case 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 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 0.
+ * @}
+ */
+START_TEST(utc_evas_output_method_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(0, evas_output_method_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_output_method_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_output_method_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_output_method_set_p);
+ tcase_add_test(tcase, utc_evas_output_method_set_n);
+ tcase_add_test(tcase, utc_evas_output_method_set_n2);
+ tcase_add_test(tcase, utc_evas_output_method_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_method_set evas_output_method_set()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_method_set
- * @{
- * @objective Positive test case checks if the tested function correctly set the render
- * engine for the canvas.
- * @n Input Data:
- * @li pointer to Evas;
- * @li method ID for "software_x11" render engine.
- *
- * @procedure
- * @step 1 Create an evas object.
- * @step 2 Call evas_render_method_lookup() to get method ID for "software_x11" render engine
- * @step 3 Call tested function and pass method ID saved on step 2
- * @step 4 Call the evas_output_method_get function and get returned value.
- *
- * @passcondition Output methods were got on step 4 and step 2 must be the same,
- * that means the tested function has set the render engine for the evas correctly.
- * @}
- */
-START_TEST(utc_evas_output_method_set_p)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
- }
- int method = evas_render_method_lookup("software_x11");
- evas_output_method_set(evas, method);
- int ret = evas_output_method_get(evas);
-
- if (ret != method)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong method ID returned: %d", __FILE__, __LINE__, ret);
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_method_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;
- * @li method ID for "software_x11" render engine.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_output_method_set_n)
-{
- int method = evas_render_method_lookup("software_x11");
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(evas_output_method_set, NULL, method);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_method_set
- * @{
- * @objective Negative test case 2 checks if function works properly if it is called
- * with incorrect render method ID.
- * @n Input Data:
- * @n First call:
- * @li pointer to Evas;
- * @li method ID for "software_x11" render engine.
- * @n Second call:
- * @li pointer to Evas;
- * @li 0 as method ID.
- *
- * @procedure
- * @step 1 Create Evas object to set output method
- * @step 2 Call evas_render_method_lookup() to get method ID for "software_x11" render engine
- * @step 3 Call tested function and pass method ID saved on step 2
- * @step 4 Call tested function and pass 0 as method ID - invalid parameter
- * @step 5 Call evas_output_method_get() to get actual method ID
- *
- * @passcondition Function doesn't cause segmentation fault and doesn't set
- * invalid method ID - output methods were got on step 5 and step 2 must be the same.
- * @}
- */
-START_TEST(utc_evas_output_method_set_n2)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas is not created..", __FILE__, __LINE__);
- }
- int value = evas_render_method_lookup("software_x11");
- evas_output_method_set(evas, value);
- int method = evas_output_method_get(evas);
- evas_output_method_set(evas, 0);
- int ret = evas_output_method_get(evas);
-
- if (ret != method)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong method ID returned: %d", __FILE__, __LINE__, ret);
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_output_method_set()
-{
- TCase *tcase = tcase_create("utc_evas_output_method_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_method_set_p);
- tcase_add_test(tcase, utc_evas_output_method_set_n);
- tcase_add_test(tcase, utc_evas_output_method_set_n2);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_size_get evas_output_size_get()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_size_get
- * @{
- * @objective Positive test case checks if the function correctly gets
- * the values of the width and height of the output size of the canvas.
- * @n Input Data:
- * @li pointer to Evas.
- * @li pointer to an integer to store the width in;
- * @li pointer to an integer to store the height in.
- *
- * @procedure
- * @step 1 Create an Evas object.
- * @step 2 Set the size of the Evas object to width=640, height=480.
- * @step 3 Get the size of the canvas with.
- *
- * @passcondition Returned values are the same as were set on step 2.
- * @}
- */
-START_TEST(utc_evas_output_size_get_p)
-{
- const int w = 640, h = 480;
- int val1 = 0, val2 = 0;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- else
- {
- evas_output_size_set(evas, w, h);
- evas_output_size_get(evas, &val1, &val2);
-
- if (val1 != w)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, val1);
- }
- else if (val2 != h)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, val2);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
- evas_free(evas);
- }
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_size_get
- * @{
- * @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:
- * @li pointer to Evas;
- * @li pointer to an integer to store the width in;
- * @li pointer to an integer to store the height in.
- *
- * @procedure
- * @step 1 Create new Evas
- * @step 2 Set width and height of the evas to 640 and 480
- * @step 3 Call function 3 times and pass (in turn) NULL instead of one from valid arguments
- * @step 4 Check that function sets proper values to output parameters
- *
- * @passcondition Function doesn't cause segmentation fault, output parameters have the same values that were set.
- * @}
- */
-START_TEST(utc_evas_output_size_get_n)
-{
- int w = 0, h = 0;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- evas_output_size_set(evas, 640, 480);
- UNITEST_FUNC_NEG(evas_output_size_get, evas, &w, &h);
-
- evas_free(evas);
-
- if (w != 640 || h != 480)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. w=%d, h=%d", __FILE__, __LINE__, w, h);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_output_size_get()
-{
- TCase *tcase = tcase_create("utc_evas_output_size_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_size_get_p);
- tcase_add_test(tcase, utc_evas_output_size_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_main
+ * @{
+ * @defgroup evas_output_size_set evas_output_size_set()
+ *
+ * @precondition
+ * @step 1 Initialize Evas
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_output_size_set
+ * @{
+ * @objective Positive test case checks if the function correctly sets
+ * the values of the width and height of the output size of the canvas.
+ * @n Input Data:
+ * @li pointer to Evas;
+ * @li 640 as width;
+ * @li 480 as height.
+ *
+ * @procedure
+ * @step 1 Create an Evas object.
+ * @step 2 Set the size of the Evas object.
+ * @step 3 Get the size of the canvas with evas_output_size_get().
+ *
+ * @passcondition Values which were set by the tested function are
+ * the same as width and height values which were get.
+ * @}
+ */
+START_TEST(utc_evas_output_size_set_p)
+{
+ const int w = 640, h = 480;
+ int val1 = 0, val2 = 0;
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ else
+ {
+ evas_output_size_set(evas, w, h);
+ evas_output_size_get(evas, &val1, &val2);
+
+ if (val1 != w)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, val1);
+ }
+ else if (val2 != h)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, val2);
+ }
+ else
+ {
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ }
+ evas_free(evas);
+ }
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_size_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;
+ * @li 640 as width;
+ * @li 480 as height.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_output_size_set_n)
+{
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(evas_output_size_set, NULL, 640, 480);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_size_set
+ * @{
+ * @objective Negative test case 2 checks if the tested function doesn't set width and height
+ * if it is called with invalid arguments.
+ * @n Input Data:
+ * @li pointer to Evas;
+ * @li -1 as width;
+ * @li -1 as height.
+ *
+ * @procedure
+ * @step 1 Create an Evas object.
+ * @step 2 Try to set incorrect size.
+ * @step 3 Get the size of the canvas.
+ *
+ * @passcondition Function doesn't set invalid values, width and height values
+ * are equal to 1.
+ * @}
+ */
+START_TEST(utc_evas_output_size_set_n2)
+{
+ int val1 = 0, val2 = 0;
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ else
+ {
+ evas_output_size_set(evas, -1, -1);
+ evas_output_size_get(evas, &val1, &val2);
+
+ if (val1 != 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong width is set..", __FILE__, __LINE__);
+ }
+ else if (val2 != 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong height is set..", __FILE__, __LINE__);
+ }
+ else
+ {
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ }
+ evas_free(evas);
+ }
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_size_get
+ * @{
+ * @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:
+ * @li pointer to Evas;
+ * @li pointer to an integer to store the width in;
+ * @li pointer to an integer to store the height in.
+ *
+ * @procedure
+ * @step 1 Create new Evas
+ * @step 2 Set width and height of the evas to 640 and 480
+ * @step 3 Call function 3 times and pass (in turn) NULL instead of one from valid arguments
+ * @step 4 Check that function sets proper values to output parameters
+ *
+ * @passcondition Function doesn't cause segmentation fault, output parameters have the same values that were set.
+ * @}
+ */
+START_TEST(utc_evas_output_size_get_n)
+{
+ int w = 0, h = 0;
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ evas_output_size_set(evas, 640, 480);
+ UNITEST_FUNC_NEG(evas_output_size_get, evas, &w, &h);
+
+ evas_free(evas);
+
+ if (w != 640 || h != 480)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. w=%d, h=%d", __FILE__, __LINE__, w, h);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_output_size_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_output_size_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_output_size_set_p);
+ tcase_add_test(tcase, utc_evas_output_size_set_n);
+ tcase_add_test(tcase, utc_evas_output_size_set_n2);
+ tcase_add_test(tcase, utc_evas_output_size_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_size_set evas_output_size_set()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_size_set
- * @{
- * @objective Positive test case checks if the function correctly sets
- * the values of the width and height of the output size of the canvas.
- * @n Input Data:
- * @li pointer to Evas;
- * @li 640 as width;
- * @li 480 as height.
- *
- * @procedure
- * @step 1 Create an Evas object.
- * @step 2 Set the size of the Evas object.
- * @step 3 Get the size of the canvas with evas_output_size_get().
- *
- * @passcondition Values which were set by the tested function are
- * the same as width and height values which were get.
- * @}
- */
-START_TEST(utc_evas_output_size_set_p)
-{
- const int w = 640, h = 480;
- int val1 = 0, val2 = 0;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- else
- {
- evas_output_size_set(evas, w, h);
- evas_output_size_get(evas, &val1, &val2);
-
- if (val1 != w)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, val1);
- }
- else if (val2 != h)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, val2);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
- evas_free(evas);
- }
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_size_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;
- * @li 640 as width;
- * @li 480 as height.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_output_size_set_n)
-{
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(evas_output_size_set, NULL, 640, 480);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_size_set
- * @{
- * @objective Negative test case 2 checks if the tested function doesn't set width and height
- * if it is called with invalid arguments.
- * @n Input Data:
- * @li pointer to Evas;
- * @li -1 as width;
- * @li -1 as height.
- *
- * @procedure
- * @step 1 Create an Evas object.
- * @step 2 Try to set incorrect size.
- * @step 3 Get the size of the canvas.
- *
- * @passcondition Function doesn't set invalid values, width and height values
- * are equal to 1.
- * @}
- */
-START_TEST(utc_evas_output_size_set_n2)
-{
- int val1 = 0, val2 = 0;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- else
- {
- evas_output_size_set(evas, -1, -1);
- evas_output_size_get(evas, &val1, &val2);
-
- if (val1 != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong width is set..", __FILE__, __LINE__);
- }
- else if (val2 != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong height is set..", __FILE__, __LINE__);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
- evas_free(evas);
- }
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_output_size_set()
-{
- TCase *tcase = tcase_create("utc_evas_output_size_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_size_set_p);
- tcase_add_test(tcase, utc_evas_output_size_set_n);
- tcase_add_test(tcase, utc_evas_output_size_set_n2);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Ecore_Evas.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_view_get evas_output_view_get()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- ecore_evas_init();
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_view_get
- * @{
- * @objective Positive test case checks if tested function gets view coordinates
- * properly if it is called with correct parameters.
- * @n Input Data:
- * @li pointer to Evas_Out object;
- * @li pointer to an Evas_Coord to store the x coord in;
- * @li pointer to an Evas_Coord to store the y coord in;
- * @li pointer to an Evas_Coord to store the width in;
- * @li pointer to an Evas_Coord to store the height in.
- *
- * @procedure
- * @step 1 Create an Evas object.
- * @step 2 Add an output to the canvas object.
- * @step 3 Set the output view coordiantes for the output.
- * @step 4 Get the view coordinates values from the output.
- *
- * @passcondition Get values and set values are the same.
- * @}
- */
-START_TEST(utc_evas_output_view_get_p)
-{
- const Evas_Coord w = 640, h = 480, x = 0, y = 0;
- Evas_Coord w1 = 0, h1 = 0, x1 = 0, y1 = 0;
-
- Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
- Evas* evas = ecore_evas_get(ee);
-
- Evas_Out * evo = evas_out_add(evas);
- if (!evo)
- {
- evas_free(evas);
- ecore_evas_free(ee);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Out object is not created..", __FILE__, __LINE__);
- }
-
- evas_output_view_set(evo, x, y, w, h);
- evas_output_view_get(evo, &x1, &y1, &w1, &h1);
-
- evas_output_del(evo);
- evas_free(evas);
- ecore_evas_free(ee);
-
- if (w1 != w)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, w1);
- }
- else if (h1 != h)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, h1);
- }
- else if (x1 != x)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned x coord is wrong: %d", __FILE__, __LINE__, x1);
- }
- else if (y1 != y)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned y coord is wrong: %d", __FILE__, __LINE__, y1);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_view_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to Evas_Out object;
- * @li pointer to an Evas_Coord to store the x coord in;
- * @li pointer to an Evas_Coord to store the y coord in;
- * @li pointer to an Evas_Coord to store the width in;
- * @li pointer to an Evas_Coord to store the height in.
- *
- * @procedure
- * @step 1 Create new Evas
- * @step 2 Add an output to the canvas object.
- * @step 3 Call function 5 times and pass (in turn) NULL instead of one from valid arguments
- * @step 4 Check that function sets proper values to output parameters
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL,
- * output parameters have the same values that were set.
- * @}
- */
-START_TEST(utc_evas_output_view_get_n)
-{
- const Evas_Coord w = 640, h = 480, x = 0, y = 0;
- Evas_Coord w1 = 0, h1 = 0, x1 = 0, y1 = 0;
- Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
- Evas* evas = ecore_evas_get(ee);
-
- Evas_Out * evo = evas_out_add(evas);
- if (!evo)
- {
- evas_free(evas);
- ecore_evas_free(ee);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Out object is not created..", __FILE__, __LINE__);
- }
-
- evas_output_view_set(evo, x, y, w, h);
- UNITEST_FUNC_NEG(evas_output_view_get, evo, &x1, &y1, &w1, &h1);
-
- evas_output_del(evo);
- evas_free(evas);
- ecore_evas_free(ee);
-
- if (w1 != w || h1 != h || x1 != x || y1 != y)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. w=%d, h=%d, x=%d, y=%d", __FILE__, __LINE__, w1, h1, x1, y1);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_output_view_get()
-{
- TCase *tcase = tcase_create("utc_evas_output_view_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_view_get_p);
- tcase_add_test(tcase, utc_evas_output_view_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Ecore_Evas.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_main
+ * @{
+ * @defgroup evas_output_view_set evas_output_view_set()
+ *
+ * @precondition
+ * @step 1 Initialize Evas
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_output_view_set
+ * @{
+ * @objective Positive test case checks if tested function sets view coordinates
+ * properly if it is called with correct parameters.
+ * @n Input Data:
+ * @li pointer to Evas_Out object;
+ * @li 0 as x coord;
+ * @li 0 as y coord;
+ * @li 640 as width;
+ * @li 480 as height.
+ *
+ * @procedure
+ * @step 1 Create an Evas object.
+ * @step 2 Add an output to the canvas object.
+ * @step 3 Set the output view coordiantes for the output.
+ * @step 4 Get the view coordinates values from the output.
+ *
+ * @passcondition Set values and get values are the same.
+ * @}
+ */
+START_TEST(utc_evas_output_view_set_p)
+{
+ const Evas_Coord w = 640, h = 480, x = 0, y = 0;
+ Evas_Coord w1 = 0, h1 = 0, x1 = 0, y1 = 0;
+ Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
+ Evas* evas = ecore_evas_get(ee);
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+
+ Evas_Out * evo = evas_out_add(evas);
+ if (!evo)
+ {
+ evas_free(evas);
+ ecore_evas_free(ee);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Out object is not created..", __FILE__, __LINE__);
+ }
+
+ evas_output_view_set(evo, x, y, w, h);
+ evas_output_view_get(evo, &x1, &y1, &w1, &h1);
+
+ evas_output_del(evo);
+ evas_free(evas);
+ ecore_evas_free(ee);
+
+ if (w1 != w)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, w1);
+ }
+ else if (h1 != h)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, h1);
+ }
+ else if (x1 != x)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned x coord is wrong: %d", __FILE__, __LINE__, x1);
+ }
+ else if (y1 != y)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned y coord is wrong: %d", __FILE__, __LINE__, y1);
+ }
+ else
+ {
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ }
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_view_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_Out.
+ * @n Input Data:
+ * @li NULL as pointer to Evas_Out object;
+ * @li 0 as x coord;
+ * @li 0 as y coord;
+ * @li 640 as width;
+ * @li 480 as height.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_output_view_set_n)
+{
+
+ evas_output_view_set(NULL, 0, 0, 640, 480);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_view_set
+ * @{
+ * @objective Negative test case 2 checks if the tested function does not set invalid values.
+ * @n Input Data:
+ * @li pointer to Evas_Out object;
+ * @li 0 as correct x coord;
+ * @li 0 as correct y coord;
+ * @li 640 correct as width;
+ * @li 480 correct as height.
+ * @li -1 as incorrect x, y coords, width, height.
+ *
+ * @procedure
+ * @step 1 Create a new Evas object.
+ * @step 2 Adds an output to the canvas.
+ * @step 4 Call the function with a correct values.
+ * @step 5 Call the function with an invalid values of width = -1 and height = -1.
+ * Function shouldn't set negative value as width or height.
+ * @step 6 Call the evas_output_view_get function and get output view
+ * coordinates from the output.
+ *
+ * @passcondition Size values returned by the evas_output_view_get
+ * function has correct values, the same as values set earlier (if were correct).
+ * @}
+ */
+START_TEST(utc_evas_output_view_set_n2)
+{
+ const Evas_Coord w = 640, h = 480, x = 0, y = 0;
+ Evas_Coord w1 = 0, h1 = 0;
+ Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
+ Evas* evas = ecore_evas_get(ee);
+
+ Evas_Out * evo = evas_out_add(evas);
+ if (!evo)
+ {
+ evas_free(evas);
+ ecore_evas_free(ee);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Out object is not created..", __FILE__, __LINE__);
+ }
+
+ evas_output_view_set(evo, x, y, w, h);
+ evas_output_view_set(evo, x, y, -1, -1);
+ evas_output_view_get(evo, NULL, NULL, &w1, &h1);
+
+ evas_output_del(evo);
+ evas_free(evas);
+ ecore_evas_free(ee);
+
+ if (w1 != w || h1 != h)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong size is set: w=%d, h=%d", __FILE__, __LINE__, w1, h1);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_view_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to Evas_Out object;
+ * @li pointer to an Evas_Coord to store the x coord in;
+ * @li pointer to an Evas_Coord to store the y coord in;
+ * @li pointer to an Evas_Coord to store the width in;
+ * @li pointer to an Evas_Coord to store the height in.
+ *
+ * @procedure
+ * @step 1 Create new Evas
+ * @step 2 Add an output to the canvas object.
+ * @step 3 Call function 5 times and pass (in turn) NULL instead of one from valid arguments
+ * @step 4 Check that function sets proper values to output parameters
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL,
+ * output parameters have the same values that were set.
+ * @}
+ */
+START_TEST(utc_evas_output_view_get_n)
+{
+ const Evas_Coord w = 640, h = 480, x = 0, y = 0;
+ Evas_Coord w1 = 0, h1 = 0, x1 = 0, y1 = 0;
+ Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
+ Evas* evas = ecore_evas_get(ee);
+
+ Evas_Out * evo = evas_out_add(evas);
+ if (!evo)
+ {
+ evas_free(evas);
+ ecore_evas_free(ee);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Out object is not created..", __FILE__, __LINE__);
+ }
+
+ evas_output_view_set(evo, x, y, w, h);
+ UNITEST_FUNC_NEG(evas_output_view_get, evo, &x1, &y1, &w1, &h1);
+
+ evas_output_del(evo);
+ evas_free(evas);
+ ecore_evas_free(ee);
+
+ if (w1 != w || h1 != h || x1 != x || y1 != y)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. w=%d, h=%d, x=%d, y=%d", __FILE__, __LINE__, w1, h1, x1, y1);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_output_view_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_output_view_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_output_view_set_p);
+ tcase_add_test(tcase, utc_evas_output_view_set_n);
+ tcase_add_test(tcase, utc_evas_output_view_set_n2);
+ tcase_add_test(tcase, utc_evas_output_view_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Ecore_Evas.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_view_set evas_output_view_set()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_view_set
- * @{
- * @objective Positive test case checks if tested function sets view coordinates
- * properly if it is called with correct parameters.
- * @n Input Data:
- * @li pointer to Evas_Out object;
- * @li 0 as x coord;
- * @li 0 as y coord;
- * @li 640 as width;
- * @li 480 as height.
- *
- * @procedure
- * @step 1 Create an Evas object.
- * @step 2 Add an output to the canvas object.
- * @step 3 Set the output view coordiantes for the output.
- * @step 4 Get the view coordinates values from the output.
- *
- * @passcondition Set values and get values are the same.
- * @}
- */
-START_TEST(utc_evas_output_view_set_p)
-{
- const Evas_Coord w = 640, h = 480, x = 0, y = 0;
- Evas_Coord w1 = 0, h1 = 0, x1 = 0, y1 = 0;
- Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
- Evas* evas = ecore_evas_get(ee);
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
-
- Evas_Out * evo = evas_out_add(evas);
- if (!evo)
- {
- evas_free(evas);
- ecore_evas_free(ee);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Out object is not created..", __FILE__, __LINE__);
- }
-
- evas_output_view_set(evo, x, y, w, h);
- evas_output_view_get(evo, &x1, &y1, &w1, &h1);
-
- evas_output_del(evo);
- evas_free(evas);
- ecore_evas_free(ee);
-
- if (w1 != w)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, w1);
- }
- else if (h1 != h)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, h1);
- }
- else if (x1 != x)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned x coord is wrong: %d", __FILE__, __LINE__, x1);
- }
- else if (y1 != y)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned y coord is wrong: %d", __FILE__, __LINE__, y1);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_view_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_Out.
- * @n Input Data:
- * @li NULL as pointer to Evas_Out object;
- * @li 0 as x coord;
- * @li 0 as y coord;
- * @li 640 as width;
- * @li 480 as height.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_output_view_set_n)
-{
-
- evas_output_view_set(NULL, 0, 0, 640, 480);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_view_set
- * @{
- * @objective Negative test case 2 checks if the tested function does not set invalid values.
- * @n Input Data:
- * @li pointer to Evas_Out object;
- * @li 0 as correct x coord;
- * @li 0 as correct y coord;
- * @li 640 correct as width;
- * @li 480 correct as height.
- * @li -1 as incorrect x, y coords, width, height.
- *
- * @procedure
- * @step 1 Create a new Evas object.
- * @step 2 Adds an output to the canvas.
- * @step 4 Call the function with a correct values.
- * @step 5 Call the function with an invalid values of width = -1 and height = -1.
- * Function shouldn't set negative value as width or height.
- * @step 6 Call the evas_output_view_get function and get output view
- * coordinates from the output.
- *
- * @passcondition Size values returned by the evas_output_view_get
- * function has correct values, the same as values set earlier (if were correct).
- * @}
- */
-START_TEST(utc_evas_output_view_set_n2)
-{
- const Evas_Coord w = 640, h = 480, x = 0, y = 0;
- Evas_Coord w1 = 0, h1 = 0;
- Ecore_Evas* ee = ecore_evas_new(NULL, 10, 10, 320, 240, NULL);
- Evas* evas = ecore_evas_get(ee);
-
- Evas_Out * evo = evas_out_add(evas);
- if (!evo)
- {
- evas_free(evas);
- ecore_evas_free(ee);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Out object is not created..", __FILE__, __LINE__);
- }
-
- evas_output_view_set(evo, x, y, w, h);
- evas_output_view_set(evo, x, y, -1, -1);
- evas_output_view_get(evo, NULL, NULL, &w1, &h1);
-
- evas_output_del(evo);
- evas_free(evas);
- ecore_evas_free(ee);
-
- if (w1 != w || h1 != h)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Wrong size is set: w=%d, h=%d", __FILE__, __LINE__, w1, h1);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_evas_output_view_set()
-{
- TCase *tcase = tcase_create("utc_evas_output_view_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_view_set_p);
- tcase_add_test(tcase, utc_evas_output_view_set_n);
- tcase_add_test(tcase, utc_evas_output_view_set_n2);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_viewport_get evas_output_viewport_get()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_viewport_get
- * @{
- * @objective Positive test case checks if tested function gets viewport coordinates
- * properly if it is called with correct parameters.
- * @n Input Data:
- * @li pointer to Evas.
- * @li pointer to an Evas_Coord to store the x coord in;
- * @li pointer to an Evas_Coord to store the y coord in;
- * @li pointer to an Evas_Coord to store the width in;
- * @li pointer to an Evas_Coord to store the height in.
- *
- * @procedure
- * @step 1 Create an Evas object.
- * @step 2 Set the output viewport coordiantes for the canvas object.
- * @step 3 Get the viewport coordinates values from the canvas.
- *
- * @passcondition Get values and set values are the same.
- * @}
- */
-START_TEST(utc_evas_output_viewport_get_p)
-{
- const Evas_Coord w = 640, h = 480, x = 0, y = 0;
- Evas_Coord w1 = 0, h1 = 0, x1 = -1, y1 = -1;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- else
- {
- evas_output_viewport_set(evas, x, y, w, h);
- evas_output_viewport_get(evas, &x1, &y1, &w1, &h1);
-
- if (w1 != w)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, w1);
- }
- else if (h1 != h)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, h1);
- }
- else if (x1 != x)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned x coord is wrong: %d", __FILE__, __LINE__, x1);
- }
- else if (y1 != y)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned y coord is wrong: %d", __FILE__, __LINE__, y1);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
- evas_free(evas);
- }
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_viewport_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of any argument.
- * @n Input Data:
- * @li pointer to Evas.
- * @li pointer to an Evas_Coord to store the x coord in;
- * @li pointer to an Evas_Coord to store the y coord in;
- * @li pointer to an Evas_Coord to store the width in;
- * @li pointer to an Evas_Coord to store the height in.
- *
- * @procedure
- * @step 1 Create new Evas
- * @step 2 Set the output viewport coordiantes for the canvas object
- * @step 3 Call function 5 times and pass (in turn) NULL instead of one from valid arguments
- * @step 4 Check that function sets proper values to output parameters
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL,
- * output parameters have the same values that were set.
- * @}
- */
-START_TEST(utc_evas_output_viewport_get_n)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- const Evas_Coord w = 640, h = 480, x = 0, y = 0;
- Evas_Coord w1 = 0, h1 = 0, x1 = -1, y1 = -1;
-
- evas_output_viewport_set(evas, x, y, w, h);
- UNITEST_FUNC_NEG(evas_output_viewport_get, evas, &x1, &y1, &w1, &h1);
-
- evas_free(evas);
-
- if (w1 != w || h1 != h || x1 != x || y1 != y)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. w=%d, h=%d, x=%d, y=%d", __FILE__, __LINE__, w1, h1, x1, y1);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_output_viewport_get()
-{
- TCase *tcase = tcase_create("utc_evas_output_viewport_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_viewport_get_p);
- tcase_add_test(tcase, utc_evas_output_viewport_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Evas.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_main
+ * @{
+ * @defgroup evas_output_viewport_get evas_output_viewport_get()
+ *
+ * @precondition
+ * @step 1 Initialize Evas
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_output_viewport_get
+ * @{
+ * @objective Positive test case checks if tested function gets viewport coordinates
+ * properly if it is called with correct parameters.
+ * @n Input Data:
+ * @li pointer to Evas.
+ * @li pointer to an Evas_Coord to store the x coord in;
+ * @li pointer to an Evas_Coord to store the y coord in;
+ * @li pointer to an Evas_Coord to store the width in;
+ * @li pointer to an Evas_Coord to store the height in.
+ *
+ * @procedure
+ * @step 1 Create an Evas object.
+ * @step 2 Set the output viewport coordiantes for the canvas object.
+ * @step 3 Get the viewport coordinates values from the canvas.
+ *
+ * @passcondition Get values and set values are the same.
+ * @}
+ */
+START_TEST(utc_evas_output_viewport_get_p)
+{
+ const Evas_Coord w = 640, h = 480, x = 0, y = 0;
+ Evas_Coord w1 = 0, h1 = 0, x1 = -1, y1 = -1;
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ else
+ {
+ evas_output_viewport_set(evas, x, y, w, h);
+ evas_output_viewport_get(evas, &x1, &y1, &w1, &h1);
+
+ if (w1 != w)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, w1);
+ }
+ else if (h1 != h)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, h1);
+ }
+ else if (x1 != x)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned x coord is wrong: %d", __FILE__, __LINE__, x1);
+ }
+ else if (y1 != y)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned y coord is wrong: %d", __FILE__, __LINE__, y1);
+ }
+ else
+ {
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ }
+ evas_free(evas);
+ }
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_viewport_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of any argument.
+ * @n Input Data:
+ * @li pointer to Evas.
+ * @li pointer to an Evas_Coord to store the x coord in;
+ * @li pointer to an Evas_Coord to store the y coord in;
+ * @li pointer to an Evas_Coord to store the width in;
+ * @li pointer to an Evas_Coord to store the height in.
+ *
+ * @procedure
+ * @step 1 Create new Evas
+ * @step 2 Set the output viewport coordiantes for the canvas object
+ * @step 3 Call function 5 times and pass (in turn) NULL instead of one from valid arguments
+ * @step 4 Check that function sets proper values to output parameters
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL,
+ * output parameters have the same values that were set.
+ * @}
+ */
+START_TEST(utc_evas_output_viewport_get_n)
+{
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ const Evas_Coord w = 640, h = 480, x = 0, y = 0;
+ Evas_Coord w1 = 0, h1 = 0, x1 = -1, y1 = -1;
+
+ evas_output_viewport_set(evas, x, y, w, h);
+ UNITEST_FUNC_NEG(evas_output_viewport_get, evas, &x1, &y1, &w1, &h1);
+
+ evas_free(evas);
+
+ if (w1 != w || h1 != h || x1 != x || y1 != y)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. w=%d, h=%d, x=%d, y=%d", __FILE__, __LINE__, w1, h1, x1, y1);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_output_viewport_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 object;
+ * @li 0 as x coord;
+ * @li 0 as y coord;
+ * @li 640 as width;
+ * @li 480 as height.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_output_viewport_set_n)
+{
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0, 0, 0);
+ UNITEST_FUNC_NEG_CA(evas_output_viewport_set, NULL, 0, 0, 640, 480);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_output_viewport_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_output_viewport_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_output_viewport_get_p);
+ tcase_add_test(tcase, utc_evas_output_viewport_get_n);
+ tcase_add_test(tcase, utc_evas_output_viewport_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_main
- * @{
- * @defgroup evas_output_viewport_set evas_output_viewport_set()
- *
- * @precondition
- * @step 1 Initialize Evas
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_output_viewport_set
- * @{
- * @objective Positive test case checks if tested function sets viewport coordinates
- * properly if it is called with correct parameters.
- * @n Input Data:
- * @li pointer to Evas object;
- * @li 0 as x coord;
- * @li 0 as y coord;
- * @li 640 as width;
- * @li 480 as height.
- *
- * @procedure
- * @step 1 Create an Evas object.
- * @step 2 Set the output viewport coordiantes for the canvas object.
- * @step 3 Get the viewport coordinates values from the canvas.
- *
- * @passcondition Set values and get values are the same.
- * @}
- */
-START_TEST(utc_evas_output_viewport_set_p)
-{
- const Evas_Coord w = 640, h = 480, x = 0, y = 0;
- Evas_Coord w1 = 0, h1 = 0, x1 = -1, y1 = -1;
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- }
- else
- {
- evas_output_viewport_set(evas, x, y, w, h);
- evas_output_viewport_get(evas, &x1, &y1, &w1, &h1);
-
- if (w1 != w)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned width is wrong: %d", __FILE__, __LINE__, w1);
- }
- else if (h1 != h)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned height is wrong: %d", __FILE__, __LINE__, h1);
- }
- else if (x1 != x)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned x coord is wrong: %d", __FILE__, __LINE__, x1);
- }
- else if (y1 != y)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Returned y coord is wrong: %d", __FILE__, __LINE__, y1);
- }
- else
- {
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- }
- evas_free(evas);
- }
-}
-END_TEST
-
-/**
- * @addtogroup evas_output_viewport_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 object;
- * @li 0 as x coord;
- * @li 0 as y coord;
- * @li 640 as width;
- * @li 480 as height.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_output_viewport_set_n)
-{
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0, 0, 0);
- UNITEST_FUNC_NEG_CA(evas_output_viewport_set, NULL, 0, 0, 640, 480);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_output_viewport_set()
-{
- TCase *tcase = tcase_create("utc_evas_output_viewport_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_output_viewport_set_p);
- tcase_add_test(tcase, utc_evas_output_viewport_set_n);
- return tcase;
-}