utc_evas_object_table_accessor_new.c
-utc_evas_object_table_add.c
utc_evas_object_table_add_to.c
-utc_evas_object_table_align_get.c
-utc_evas_object_table_align_set.c
+utc_evas_object_table_align_get_set.c
utc_evas_object_table_child_get.c
utc_evas_object_table_children_get.c
utc_evas_object_table_clear.c
utc_evas_object_table_col_row_size_get.c
-utc_evas_object_table_homogeneous_get.c
-utc_evas_object_table_homogeneous_set.c
+utc_evas_object_table_homogeneous_get_set.c
utc_evas_object_table_iterator_new.c
-utc_evas_object_table_mirrored_get.c
-utc_evas_object_table_mirrored_set.c
+utc_evas_object_table_mirrored_get_set.c
utc_evas_object_table_pack.c
utc_evas_object_table_pack_get.c
-utc_evas_object_table_padding_get.c
-utc_evas_object_table_padding_set.c
+utc_evas_object_table_padding_get_set.c
utc_evas_object_table_unpack.c
utc_evas_object_table_accessor_new.c
-utc_evas_object_table_add.c
utc_evas_object_table_add_to.c
-utc_evas_object_table_align_get.c
-utc_evas_object_table_align_set.c
+utc_evas_object_table_align_get_set.c
utc_evas_object_table_child_get.c
utc_evas_object_table_children_get.c
utc_evas_object_table_clear.c
utc_evas_object_table_col_row_size_get.c
-utc_evas_object_table_homogeneous_get.c
-utc_evas_object_table_homogeneous_set.c
+utc_evas_object_table_homogeneous_get_set.c
utc_evas_object_table_iterator_new.c
-utc_evas_object_table_mirrored_get.c
-utc_evas_object_table_mirrored_set.c
+utc_evas_object_table_mirrored_get_set.c
utc_evas_object_table_pack.c
utc_evas_object_table_pack_get.c
-utc_evas_object_table_padding_get.c
-utc_evas_object_table_padding_set.c
+utc_evas_object_table_padding_get_set.c
utc_evas_object_table_unpack.c
utc_evas_object_table_accessor_new.c
-utc_evas_object_table_add.c
utc_evas_object_table_add_to.c
-utc_evas_object_table_align_get.c
-utc_evas_object_table_align_set.c
+utc_evas_object_table_align_get_set.c
utc_evas_object_table_child_get.c
utc_evas_object_table_children_get.c
utc_evas_object_table_clear.c
utc_evas_object_table_col_row_size_get.c
-utc_evas_object_table_homogeneous_get.c
-utc_evas_object_table_homogeneous_set.c
+utc_evas_object_table_homogeneous_get_set.c
utc_evas_object_table_iterator_new.c
-utc_evas_object_table_mirrored_get.c
-utc_evas_object_table_mirrored_set.c
+utc_evas_object_table_mirrored_get_set.c
utc_evas_object_table_pack.c
utc_evas_object_table_pack_get.c
-utc_evas_object_table_padding_get.c
-utc_evas_object_table_padding_set.c
+utc_evas_object_table_padding_get_set.c
utc_evas_object_table_unpack.c
utc_evas_object_table_accessor_new.c
-utc_evas_object_table_add.c
utc_evas_object_table_add_to.c
-utc_evas_object_table_align_get.c
-utc_evas_object_table_align_set.c
+utc_evas_object_table_align_get_set.c
utc_evas_object_table_child_get.c
utc_evas_object_table_children_get.c
utc_evas_object_table_clear.c
utc_evas_object_table_col_row_size_get.c
-utc_evas_object_table_homogeneous_get.c
-utc_evas_object_table_homogeneous_set.c
+utc_evas_object_table_homogeneous_get_set.c
utc_evas_object_table_iterator_new.c
-utc_evas_object_table_mirrored_get.c
-utc_evas_object_table_mirrored_set.c
+utc_evas_object_table_mirrored_get_set.c
utc_evas_object_table_pack.c
utc_evas_object_table_pack_get.c
-utc_evas_object_table_padding_get.c
-utc_evas_object_table_padding_set.c
+utc_evas_object_table_padding_get_set.c
utc_evas_object_table_unpack.c
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_add evas_object_table_add()
- *
- *
- * @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_object_table_add
- * @{
- * @objective Positive test case checks if function works properly if it is called with valid pointer to Evas.
- * @n Input Data: pointer to Evas object.
- *
- * @procedure
- * @step 1 Initialize pointer to Evas with function evas_new.
- * @step 2 Call tested function with pointer from step 1 as a parameter and check returned value.
- *
- * @passcondition Function returns valid pointer to Evas_Object, not NULL.
- * @}
- */
-START_TEST(utc_evas_object_table_add_p)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_add
- * @{
- * @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.
- * @n Input Data: 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_object_table_add_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(NULL, evas_object_table_add, NULL) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_table_add()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_add");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_add_p);
- tcase_add_test(tcase, utc_evas_object_table_add_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include <math.h>
-#include <float.h>
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_align_get evas_object_table_align_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_object_table_align_get
- * @{
- * @objective Positive test case 01: checks if function works properly if it gets previously set align value properly.
- * @n Input Data:
- * @li pointer to table object.
- * @li pointer for obtaining horizontal alignment.
- * @li pointer for obtaining vertical alignment.
- *
- * @procedure
- * @step 1 Initialize pointer to Evas with function evas_new.
- * @step 2 Create table object using evas_object_table_add.
- * @step 3 Call evas_object_table_align_get to obtain default values of horizontal and vertical alignment.
- * @step 4 Increase default values of of horizontal and vertical alignment by 0.5.
- * @step 5 Call tested function with values of horizontal and vertical alignment from step 4 as a parameter and check returned values with expected.
- *
- * @passcondition Function returns valid pointer to Evas_Object, not NULL.
- * @}
- */
-START_TEST(utc_evas_object_table_align_get_p_01)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
- Evas_Object *object = evas_object_table_add(evas);
-
- if (!object)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Table object is not created..", __FILE__, __LINE__);
- return;
- }
-
- double expected_horizontal = 0.1, expected_vertical = 0.1, horizontal = 0.0, vertical = 0.0;
- evas_object_table_align_get(object, &expected_horizontal, &expected_vertical);
-
- expected_horizontal += 0.5;
- expected_vertical += 0.5;
-
- evas_object_table_align_set(object, expected_horizontal, expected_vertical);
-
- evas_object_table_align_get(object, &horizontal, &vertical);
-
- if (fabs(horizontal - expected_horizontal) > DBL_EPSILON || fabs(vertical - expected_vertical) > DBL_EPSILON)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_align_get
- * @{
- * @objective Negative test case 01: checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to table object.
- * @n Input Data:
- * @li null pointer to table object.
- * @li null pointer for obtaining horizontal alignment.
- * @li null pointer for obtaining vertical alignment.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's arguments.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_table_align_get_n_01)
-{
-
- evas_object_table_align_get(NULL, NULL, NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @}
- */
-
-TCase * _utc_evas_object_table_align_get()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_align_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_align_get_p_01);
- tcase_add_test(tcase, utc_evas_object_table_align_get_n_01);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Ecore.h>
+#include <Evas.h>
+#include <math.h>
+#include <float.h>
+#include "../../../utc_negative_unitest.h"
+
+/**
+ * @addtogroup evas_object_table
+ * @{
+ * @defgroup evas_object_table_align_set evas_object_table_align_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_object_table_align_set
+ * @{
+ * @objective Positive test case 01: checks if function works properly if it properly sets alignment values.
+ * @n Input Data:
+ * @li pointer to table object.
+ * @li horizontal alignment.
+ * @li vertical alignment.
+ *
+ * @procedure
+ * @step 1 Initialize pointer to Evas with function evas_new.
+ * @step 2 Create table object using evas_object_table_add.
+ * @step 3 Call evas_object_table_align_set to obtain default values of horizontal and vertical alignment.
+ * @step 4 Increase default values of of horizontal and vertical alignment by 0.5.
+ * @step 5 Call tested function with values of horizontal and vertical alignment from step 4 as a parameter and check returned values with expected.
+ *
+ * @passcondition Function returns valid pointer to Evas_Object, not NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_table_align_set_p_01)
+{
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+ Evas_Object *object = evas_object_table_add(evas);
+
+ if (!object)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Table object is not created..", __FILE__, __LINE__);
+ }
+
+ double expected_horizontal = 0.1, expected_vertical = 0.1, horizontal = 0.0, vertical = 0.0;
+ evas_object_table_align_get(object, &expected_horizontal, &expected_vertical);
+
+ expected_horizontal += 0.5;
+ expected_vertical += 0.5;
+
+ evas_object_table_align_set(object, expected_horizontal, expected_vertical);
+
+ evas_object_table_align_get(object, &horizontal, &vertical);
+
+ if (fabs(horizontal - expected_horizontal) > DBL_EPSILON || fabs(vertical - expected_vertical) > DBL_EPSILON)
+ {
+ 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_object_table_align_set
+ * @{
+ * @objective Negative test case 01: checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to table object.
+ * @n Input Data:
+ * @li null pointer to table object.
+ * @li horizontal alignment.
+ * @li vertical alignment.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_table_align_set_n_01)
+{
+
+ evas_object_table_align_set(NULL, 0.0, 0.0);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_align_get
+ * @{
+ * @objective Negative test case 01: checks if function doesn't cause segmentation fault
+ * and returns NULL if it is called with NULL instead of pointer to table object.
+ * @n Input Data:
+ * @li null pointer to table object.
+ * @li null pointer for obtaining horizontal alignment.
+ * @li null pointer for obtaining vertical alignment.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's arguments.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_table_align_get_n_01)
+{
+
+ evas_object_table_align_get(NULL, NULL, NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_add
+ * @{
+ * @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.
+ * @n Input Data: 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_object_table_add_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(NULL, evas_object_table_add, NULL) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ * @}
+ */
+
+TCase * _utc_evas_object_table_align_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_object_table_align_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_object_table_align_set_p_01);
+ tcase_add_test(tcase, utc_evas_object_table_align_set_n_01);
+ tcase_add_test(tcase, utc_evas_object_table_align_get_n_01);
+ tcase_add_test(tcase, utc_evas_object_table_add_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include <math.h>
-#include <float.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_align_set evas_object_table_align_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_object_table_align_set
- * @{
- * @objective Positive test case 01: checks if function works properly if it properly sets alignment values.
- * @n Input Data:
- * @li pointer to table object.
- * @li horizontal alignment.
- * @li vertical alignment.
- *
- * @procedure
- * @step 1 Initialize pointer to Evas with function evas_new.
- * @step 2 Create table object using evas_object_table_add.
- * @step 3 Call evas_object_table_align_set to obtain default values of horizontal and vertical alignment.
- * @step 4 Increase default values of of horizontal and vertical alignment by 0.5.
- * @step 5 Call tested function with values of horizontal and vertical alignment from step 4 as a parameter and check returned values with expected.
- *
- * @passcondition Function returns valid pointer to Evas_Object, not NULL.
- * @}
- */
-START_TEST(utc_evas_object_table_align_set_p_01)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
- Evas_Object *object = evas_object_table_add(evas);
-
- if (!object)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Table object is not created..", __FILE__, __LINE__);
- return;
- }
-
- double expected_horizontal = 0.1, expected_vertical = 0.1, horizontal = 0.0, vertical = 0.0;
- evas_object_table_align_get(object, &expected_horizontal, &expected_vertical);
-
- expected_horizontal += 0.5;
- expected_vertical += 0.5;
-
- evas_object_table_align_set(object, expected_horizontal, expected_vertical);
-
- evas_object_table_align_get(object, &horizontal, &vertical);
-
- if (fabs(horizontal - expected_horizontal) > DBL_EPSILON || fabs(vertical - expected_vertical) > DBL_EPSILON)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_align_set
- * @{
- * @objective Negative test case 01: checks if function doesn't cause segmentation fault
- * and returns NULL if it is called with NULL instead of pointer to table object.
- * @n Input Data:
- * @li null pointer to table object.
- * @li horizontal alignment.
- * @li vertical alignment.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_table_align_set_n_01)
-{
-
- evas_object_table_align_set(NULL, 0.0, 0.0);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_evas_object_table_align_set()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_align_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_align_set_p_01);
- tcase_add_test(tcase, utc_evas_object_table_align_set_n_01);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_homogeneous_get evas_object_table_homogeneous_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_object_table_homogeneous_get
- * @{
- * @objective Positive test case checks if function gets homogeneous values properly.
- * @n Input Data: pointer to table Evas_Object.
- *
- * @procedure
- * @step 1 Create new Evas
- * @step 2 Add new table Evas_Object to the evas
- * @step 3 Set homogeneous mode for the object to EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE
- * @step 4 Get table homogeneous mode and compare with value set on previous step
- * @step 5 Compare got and set values
- *
- * @passcondition Got homogeneous mode is equal to set mode.
- * @}
- */
-START_TEST(utc_evas_object_table_homogeneous_get_p)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- return;
- }
- evas_object_table_homogeneous_set(obj, EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE);
-
- if (evas_object_table_homogeneous_get(obj) != EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_homogeneous_get
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data: NULL as pointer to table Evas_Object.
- *
- * @procedure
- * @step 1 Call function once and pass NULL as first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_table_homogeneous_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE, evas_object_table_homogeneous_get, NULL) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_table_homogeneous_get()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_homogeneous_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_homogeneous_get_p);
- tcase_add_test(tcase, utc_evas_object_table_homogeneous_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_object_table
+ * @{
+ * @defgroup evas_object_table_homogeneous_set evas_object_table_homogeneous_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_object_table_homogeneous_set
+ * @{
+ * @objective Positive test case checks if function sets homogeneous values properly.
+ * @n Input Data:
+ * @li pointer to Evas_Object;
+ * @li EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE, EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM,
+ * EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE as homogeneous values for 1, 2, 3 invocations.
+ *
+ * @procedure
+ * @step 1 Create new Evas
+ * @step 2 Add new table Evas_Object to the evas
+ * @step 3 Set homogeneous mode for the object to EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE
+ * @step 4 Get table homogeneous mode and compare with value set on previous step
+ * @step 5 Set mode for the object to EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM
+ * @step 6 Get mode and compare with value set on previous step
+ * @step 7 Set mode for the object to EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE
+ * @step 8 Get mode and compare with value set on previous step
+ *
+ * @passcondition Each got homogeneous mode is equal to mode that was previously set.
+ * @}
+ */
+START_TEST(utc_evas_object_table_homogeneous_set_p)
+{
+ Evas *evas = evas_new();
+ Evas_Object *obj = evas_object_table_add(evas);
+
+ if (!obj)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+ }
+ evas_object_table_homogeneous_set(obj, EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE);
+
+ if (evas_object_table_homogeneous_get(obj) != EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Mode is not set to EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE", __FILE__, __LINE__);
+ }
+ evas_object_table_homogeneous_set(obj, EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM);
+
+ if (evas_object_table_homogeneous_get(obj) != EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Mode is not set to EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM", __FILE__, __LINE__);
+ }
+ evas_object_table_homogeneous_set(obj, EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE);
+
+ if (evas_object_table_homogeneous_get(obj) != EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Mode is not set to EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE", __FILE__, __LINE__);
+ }
+ evas_free(evas);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_homogeneous_set
+ * @{
+ * @objective Negative test case 1 checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data:
+ * @li NULL instead of pointer to Evas_Object;
+ * @li EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE as homogeneous value.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_table_homogeneous_set_n)
+{
+ evas_object_table_homogeneous_set(NULL, EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_homogeneous_set
+ * @{
+ * @objective Negative test case 2 checks if function works properly and doesn't cause
+ * segmentation fault if it is called with incorrect homogeneous values.
+ * @n Input Data:
+ * @li pointer to Evas_Object;
+ * @li -1 as incorrect homogeneous value.
+ *
+ * @procedure
+ * @step 1 Create new Evas
+ * @step 2 Add new table Evas_Object to the evas
+ * @step 3 Call tested function once and pass -1 instead of second argument.
+ * @step 4 Get table homogeneous value and compare with -1
+ *
+ * @passcondition Function doesn't cause segmentation fault, evas_object_table_homogeneous_get returns
+ * value that is not equal -1 - it means tested function doesn't set incorrect value.
+ * @}
+ */
+START_TEST(utc_evas_object_table_homogeneous_set_n2)
+{
+ Evas *evas = evas_new();
+ Evas_Object *obj = evas_object_table_add(evas);
+
+ if (!obj)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+ }
+ evas_object_table_homogeneous_set(NULL, (Evas_Object_Table_Homogeneous_Mode)-1);
+
+ if (evas_object_table_homogeneous_get(obj) == -1)
+ {
+ 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_object_table_homogeneous_get
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data: NULL as pointer to table Evas_Object.
+ *
+ * @procedure
+ * @step 1 Call function once and pass NULL as first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_table_homogeneous_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE, evas_object_table_homogeneous_get, NULL) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_table_homogeneous_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_object_table_homogeneous_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_object_table_homogeneous_set_p);
+ tcase_add_test(tcase, utc_evas_object_table_homogeneous_set_n);
+ tcase_add_test(tcase, utc_evas_object_table_homogeneous_set_n2);
+ tcase_add_test(tcase, utc_evas_object_table_homogeneous_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_homogeneous_set evas_object_table_homogeneous_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_object_table_homogeneous_set
- * @{
- * @objective Positive test case checks if function sets homogeneous values properly.
- * @n Input Data:
- * @li pointer to Evas_Object;
- * @li EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE, EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM,
- * EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE as homogeneous values for 1, 2, 3 invocations.
- *
- * @procedure
- * @step 1 Create new Evas
- * @step 2 Add new table Evas_Object to the evas
- * @step 3 Set homogeneous mode for the object to EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE
- * @step 4 Get table homogeneous mode and compare with value set on previous step
- * @step 5 Set mode for the object to EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM
- * @step 6 Get mode and compare with value set on previous step
- * @step 7 Set mode for the object to EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE
- * @step 8 Get mode and compare with value set on previous step
- *
- * @passcondition Each got homogeneous mode is equal to mode that was previously set.
- * @}
- */
-START_TEST(utc_evas_object_table_homogeneous_set_p)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- return;
- }
- evas_object_table_homogeneous_set(obj, EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE);
-
- if (evas_object_table_homogeneous_get(obj) != EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Mode is not set to EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE", __FILE__, __LINE__);
- return;
- }
- evas_object_table_homogeneous_set(obj, EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM);
-
- if (evas_object_table_homogeneous_get(obj) != EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Mode is not set to EVAS_OBJECT_TABLE_HOMOGENEOUS_ITEM", __FILE__, __LINE__);
- return;
- }
- evas_object_table_homogeneous_set(obj, EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE);
-
- if (evas_object_table_homogeneous_get(obj) != EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Mode is not set to EVAS_OBJECT_TABLE_HOMOGENEOUS_NONE", __FILE__, __LINE__);
- return;
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_homogeneous_set
- * @{
- * @objective Negative test case 1 checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data:
- * @li NULL instead of pointer to Evas_Object;
- * @li EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE as homogeneous value.
- *
- * @procedure
- * @step 1 Call function once and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_table_homogeneous_set_n)
-{
- evas_object_table_homogeneous_set(NULL, EVAS_OBJECT_TABLE_HOMOGENEOUS_TABLE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_homogeneous_set
- * @{
- * @objective Negative test case 2 checks if function works properly and doesn't cause
- * segmentation fault if it is called with incorrect homogeneous values.
- * @n Input Data:
- * @li pointer to Evas_Object;
- * @li -1 as incorrect homogeneous value.
- *
- * @procedure
- * @step 1 Create new Evas
- * @step 2 Add new table Evas_Object to the evas
- * @step 3 Call tested function once and pass -1 instead of second argument.
- * @step 4 Get table homogeneous value and compare with -1
- *
- * @passcondition Function doesn't cause segmentation fault, evas_object_table_homogeneous_get returns
- * value that is not equal -1 - it means tested function doesn't set incorrect value.
- * @}
- */
-START_TEST(utc_evas_object_table_homogeneous_set_n2)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- return;
- }
- evas_object_table_homogeneous_set(NULL, (Evas_Object_Table_Homogeneous_Mode)-1);
-
- if (evas_object_table_homogeneous_get(obj) == -1)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_table_homogeneous_set()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_homogeneous_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_homogeneous_set_p);
- tcase_add_test(tcase, utc_evas_object_table_homogeneous_set_n);
- tcase_add_test(tcase, utc_evas_object_table_homogeneous_set_n2);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_mirrored_get evas_object_table_mirrored_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_object_table_mirrored_get
- * @{
- * @objective Positive test case 01: checks if function works properly if it is called with valid pointer to Evas_Object.
- * @n Input Data:
- * @li pointer to Evas object.
- *
- * @procedure
- * @step 1 Initialize pointer to Evas with function evas_new.
- * @step 2 Initialize pointer to Evas_Object with function evas_object_table_add.
- * @step 3 Get default mirrored vaule by calling tested function and invert it.
- * @step 4 Set the value obtained at step 3 by calling evas_object_table_mirrored_set.
- * @step 6 Call tested function with pointer from step 2 as a parameter and compare returned value with the value that is obtained at step 3.
- *
- * @passcondition Function returns a value that was previously set.
- * @}
- */
-START_TEST(utc_evas_object_table_mirrored_get_p_01)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
-
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool mirrored = !evas_object_table_mirrored_get(obj);
-
- evas_object_table_mirrored_set(obj, mirrored);
-
- if (mirrored != evas_object_table_mirrored_get(obj))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
-
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_mirrored_get
- * @{
- * @objective Negative test case 01: 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 pointer to Evas object.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
- * @}
- */
-START_TEST(utc_evas_object_table_mirrored_get_n_01)
-{
-
- if (evas_object_table_mirrored_get(NULL) != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_evas_object_table_mirrored_get()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_mirrored_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_mirrored_get_p_01);
- tcase_add_test(tcase, utc_evas_object_table_mirrored_get_n_01);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+
+/**
+ * @addtogroup evas_object_table
+ * @{
+ * @defgroup evas_object_table_mirrored_get evas_object_table_mirrored_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_object_table_mirrored_get
+ * @{
+ * @objective Positive test case 01: checks if function works properly if it is called with valid pointer to Evas_Object.
+ * @n Input Data:
+ * @li pointer to Evas object.
+ *
+ * @procedure
+ * @step 1 Initialize pointer to Evas with function evas_new.
+ * @step 2 Initialize pointer to Evas_Object with function evas_object_table_add.
+ * @step 3 Get default mirrored vaule by calling tested function and invert it.
+ * @step 4 Set the value obtained at step 3 by calling evas_object_table_mirrored_set.
+ * @step 6 Call tested function with pointer from step 2 as a parameter and compare returned value with the value that is obtained at step 3.
+ *
+ * @passcondition Function returns a value that was previously set.
+ * @}
+ */
+START_TEST(utc_evas_object_table_mirrored_get_p_01)
+{
+ Evas *evas = evas_new();
+
+ if (!evas)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+
+ Evas_Object *obj = evas_object_table_add(evas);
+
+ if (!obj)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool mirrored = !evas_object_table_mirrored_get(obj);
+
+ evas_object_table_mirrored_set(obj, mirrored);
+
+ if (mirrored != evas_object_table_mirrored_get(obj))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+
+ evas_free(evas);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_mirrored_get
+ * @{
+ * @objective Negative test case 01: 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 pointer to Evas object.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_evas_object_table_mirrored_get_n_01)
+{
+
+ if (evas_object_table_mirrored_get(NULL) != EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_mirrored_set
+ * @{
+ * @objective Negative test case 01: 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 pointer to Evas object.
+ * @li EINA_TRUE the mirrored mode to set
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of it's argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault and returns NULL.
+ * @}
+ */
+START_TEST(utc_evas_object_table_mirrored_set_n_01)
+{
+
+ evas_object_table_mirrored_set(NULL, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_evas_object_table_mirrored_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_object_table_mirrored_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_object_table_mirrored_get_p_01);
+ tcase_add_test(tcase, utc_evas_object_table_mirrored_get_n_01);
+ tcase_add_test(tcase, utc_evas_object_table_mirrored_set_n_01);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_mirrored_set evas_object_table_mirrored_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_object_table_mirrored_set
- * @{
- * @objective Positive test case 01: checks if function works properly if it is called with valid pointer to Evas_Object.
- * @n Input Data:
- * @li pointer to Evas object.
- * @li mirrored the mirrored mode to set
- *
- * @procedure
- * @step 1 Initialize pointer to Evas with function evas_new.
- * @step 2 Initialize pointer to Evas_Object with function evas_object_table_add.
- * @step 3 Get default mirrored vaule by calling tested function and invert it.
- * @step 4 Set the value obtained at step 3 by calling evas_object_table_mirrored_set.
- * @step 6 Call tested function with pointer from step 2 as a parameter and compare returned value with the value that is obtained at step 3.
- *
- * @passcondition Function returns a value that ws previously set.
- * @}
- */
-START_TEST(utc_evas_object_table_mirrored_set_p_01)
-{
- Evas *evas = evas_new();
-
- if (!evas)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
-
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool mirrored = !evas_object_table_mirrored_get(obj);
-
- evas_object_table_mirrored_set(obj, mirrored);
-
- if (mirrored != evas_object_table_mirrored_get(obj))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas object is not created..", __FILE__, __LINE__);
- return;
- }
-
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_mirrored_set
- * @{
- * @objective Negative test case 01: 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 pointer to Evas object.
- * @li EINA_TRUE the mirrored mode to set
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of it's argument.
- *
- * @passcondition Function doesn't cause segmentation fault and returns NULL.
- * @}
- */
-START_TEST(utc_evas_object_table_mirrored_set_n_01)
-{
-
- evas_object_table_mirrored_set(NULL, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @}
- */
-
-TCase * _utc_evas_object_table_mirrored_set()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_mirrored_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_mirrored_set_p_01);
- tcase_add_test(tcase, utc_evas_object_table_mirrored_set_n_01);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_table
- * @{
- * @defgroup evas_object_table_padding_get evas_object_table_padding_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_object_table_padding_get
- * @{
- * @objective Positive test case checks if function gets padding between table's cells properly.
- * @n Input Data:
- * @li pointer to table Evas_Object;
- * @li pointer to integer to write horizontal padding value;
- * @li pointer to integer to write vertical padding value.
- *
- * @procedure
- * @step 1 Create new evas.
- * @step 2 Add table Evas_Object to the evas.
- * @step 3 Set padding values for the table object.
- * @step 4 Get actual padding values and compare with values that were set.
- *
- * @passcondition Got and set values of padding match.
- * @}
- */
-START_TEST(utc_evas_object_table_padding_get_p)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- return;
- }
- Evas_Coord v = 50, h = 100;
- Evas_Coord v1 = 0, h1 = 0;
-
- evas_object_table_padding_set(obj, h, v);
- evas_object_table_padding_get(obj, &h1, &v1);
- evas_free(evas);
-
- if ((v != v1) || (h != h1))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. v=%d, h=%d", __FILE__, __LINE__, v1, h1);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_padding_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 table Evas_Object;
- * @li pointer to integer to write horizontal padding value;
- * @li pointer to integer to write vertical padding value.
- *
- * @procedure
- * @step 1 Create new evas.
- * @step 2 Add table Evas_Object to the evas.
- * @step 3 Call function 3 times and pass (in turn) NULL instead of one valid argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_table_padding_get_n)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- return;
- }
- Evas_Coord h = 0, v = 0;
-
- UNITEST_FUNC_NEG(evas_object_table_padding_get, obj, &h, &v);
-
- if (h || v)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. h=%d, v=%d", __FILE__, __LINE__, h, v);
- return;
- }
- evas_free(evas);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_table_padding_get()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_padding_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_padding_get_p);
- tcase_add_test(tcase, utc_evas_object_table_padding_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_object_table
+ * @{
+ * @defgroup evas_object_table_padding_get evas_object_table_padding_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_object_table_padding_get
+ * @{
+ * @objective Positive test case checks if function gets padding between table's cells properly.
+ * @n Input Data:
+ * @li pointer to table Evas_Object;
+ * @li pointer to integer to write horizontal padding value;
+ * @li pointer to integer to write vertical padding value.
+ *
+ * @procedure
+ * @step 1 Create new evas.
+ * @step 2 Add table Evas_Object to the evas.
+ * @step 3 Set padding values for the table object.
+ * @step 4 Get actual padding values and compare with values that were set.
+ *
+ * @passcondition Got and set values of padding match.
+ * @}
+ */
+START_TEST(utc_evas_object_table_padding_get_p)
+{
+ Evas *evas = evas_new();
+ Evas_Object *obj = evas_object_table_add(evas);
+
+ if (!obj)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+ }
+ Evas_Coord v = 50, h = 100;
+ Evas_Coord v1 = 0, h1 = 0;
+
+ evas_object_table_padding_set(obj, h, v);
+ evas_object_table_padding_get(obj, &h1, &v1);
+ evas_free(evas);
+
+ if ((v != v1) || (h != h1))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. v=%d, h=%d", __FILE__, __LINE__, v1, h1);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_padding_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 table Evas_Object;
+ * @li pointer to integer to write horizontal padding value;
+ * @li pointer to integer to write vertical padding value.
+ *
+ * @procedure
+ * @step 1 Create new evas.
+ * @step 2 Add table Evas_Object to the evas.
+ * @step 3 Call function 3 times and pass (in turn) NULL instead of one valid argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_table_padding_get_n)
+{
+ Evas *evas = evas_new();
+ Evas_Object *obj = evas_object_table_add(evas);
+
+ if (!obj)
+ {
+ evas_free(evas);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
+ }
+ Evas_Coord h = 0, v = 0;
+
+ UNITEST_FUNC_NEG(evas_object_table_padding_get, obj, &h, &v);
+
+ if (h || v)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. h=%d, v=%d", __FILE__, __LINE__, h, v);
+ }
+ evas_free(evas);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_table_padding_set
+ * @{
+ * @objective Negative test case checks if function doesn't cause segmentation fault
+ * if it is called with NULL instead of pointer to Evas_Object.
+ * @n Input Data: NULL as pointer to Evas_Object, 0 as horizontal and vertical padding.
+ *
+ * @procedure
+ * @step 1 Call function and pass NULL instead of first argument.
+ *
+ * @passcondition Function doesn't cause segmentation fault.
+ * @}
+ */
+START_TEST(utc_evas_object_table_padding_set_n)
+{
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(evas_object_table_padding_set, NULL, 0, 0);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_evas_object_table_padding_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_object_table_padding_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_object_table_padding_get_p);
+ tcase_add_test(tcase, utc_evas_object_table_padding_get_n);
+ tcase_add_test(tcase, utc_evas_object_table_padding_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_object_table
- * @{
- * @defgroup evas_object_table_padding_set evas_object_table_padding_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_object_table_padding_set
- * @{
- * @objective Positive test case checks if function sets padding between table's cells properly.
- * @n Input Data:
- * @li pointer to table Evas_Object;
- * @li 100 as horizontal padding value;
- * @li 50 as vertical padding value.
- *
- * @procedure
- * @step 1 Create new evas.
- * @step 2 Add table Evas_Object to the evas.
- * @step 3 Call tested function to set padding values for the table object.
- * @step 4 Get actual padding values and compare with values that were set.
- *
- * @passcondition Got and set values of padding match.
- * @}
- */
-START_TEST(utc_evas_object_table_padding_set_p)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_table_add(evas);
-
- if (!obj)
- {
- evas_free(evas);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. Evas_Object is not created..", __FILE__, __LINE__);
- return;
- }
- Evas_Coord v = 50, h = 100;
- Evas_Coord v1 = 0, h1 = 0;
-
- evas_object_table_padding_set(obj, h, v);
- evas_object_table_padding_get(obj, &h1, &v1);
- evas_free(evas);
-
- if ((v != v1) || (h != h1))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. v=%d, h=%d", __FILE__, __LINE__, v1, h1);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_table_padding_set
- * @{
- * @objective Negative test case checks if function doesn't cause segmentation fault
- * if it is called with NULL instead of pointer to Evas_Object.
- * @n Input Data: NULL as pointer to Evas_Object, 0 as horizontal and vertical padding.
- *
- * @procedure
- * @step 1 Call function and pass NULL instead of first argument.
- *
- * @passcondition Function doesn't cause segmentation fault.
- * @}
- */
-START_TEST(utc_evas_object_table_padding_set_n)
-{
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(evas_object_table_padding_set, NULL, 0, 0);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_table_padding_set()
-{
- TCase *tcase = tcase_create("utc_evas_object_table_padding_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_table_padding_set_p);
- tcase_add_test(tcase, utc_evas_object_table_padding_set_n);
- return tcase;
-}