utc_evas_object_box_insert_at.c
utc_evas_object_box_append.c
-utc_evas_object_box_add.c
utc_evas_object_box_remove_at.c
utc_evas_object_box_align_set.c
utc_evas_object_box_align_get.c
-utc_evas_object_box_padding_set.c
-utc_evas_object_box_padding_get.c
+utc_evas_object_box_padding_get_set.c
utc_evas_object_box_children_get.c
utc_evas_object_box_layout_set.c
utc_evas_object_box_layout_horizontal.c
utc_evas_object_box_insert_at.c
utc_evas_object_box_append.c
-utc_evas_object_box_add.c
utc_evas_object_box_remove_at.c
utc_evas_object_box_align_set.c
utc_evas_object_box_align_get.c
-utc_evas_object_box_padding_set.c
-utc_evas_object_box_padding_get.c
+utc_evas_object_box_padding_get_set.c
utc_evas_object_box_children_get.c
utc_evas_object_box_layout_set.c
utc_evas_object_box_layout_horizontal.c
utc_evas_object_box_insert_at.c
utc_evas_object_box_append.c
-utc_evas_object_box_add.c
utc_evas_object_box_remove_at.c
utc_evas_object_box_align_set.c
utc_evas_object_box_align_get.c
-utc_evas_object_box_padding_set.c
-utc_evas_object_box_padding_get.c
+utc_evas_object_box_padding_get_set.c
utc_evas_object_box_children_get.c
utc_evas_object_box_layout_set.c
utc_evas_object_box_layout_horizontal.c
utc_evas_object_box_insert_at.c
utc_evas_object_box_append.c
-utc_evas_object_box_add.c
utc_evas_object_box_remove_at.c
utc_evas_object_box_align_set.c
utc_evas_object_box_align_get.c
-utc_evas_object_box_padding_set.c
-utc_evas_object_box_padding_get.c
+utc_evas_object_box_padding_get_set.c
utc_evas_object_box_children_get.c
utc_evas_object_box_layout_set.c
utc_evas_object_box_layout_horizontal.c
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Ecore.h>
-#include <Evas.h>
-#include "../../../utc_negative_unitest.h"
-
-/**
- * @addtogroup evas_object_box
- * @{
- * @defgroup evas_object_box_add evas_object_box_add()
- *
- *
- * @precondition
- * @step 1 evas initialized with evas_init()
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_box_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 Create new Evas object.
- * @step 2 Create a new box.
- * @step 3 Check if returned value is not NULL.
- *
- * @passcondition Function returns valid pointer to Evas_Object, not NULL.
- * @}
- */
-START_TEST(utc_evas_object_box_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_box_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_box_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_box_add_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(NULL, evas_object_box_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_box_add()
-{
- TCase *tcase = tcase_create("utc_evas_object_box_add");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_box_add_p);
- tcase_add_test(tcase, utc_evas_object_box_add_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_box
- * @{
- * @defgroup evas_object_box_padding_get evas_object_box_padding_get()
- *
- *
- * @precondition
- * @step 1 evas initialized with evas_init()
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_box_padding_get
- * @{
- * @objective Positive test case checks if function called with correct parameters gets padding of box object properly.
- * @n Input Data:
- * @li pointer to 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 Create a new box object.
- * @step 3 Set padding for the object.
- * @step 4 Get padding and check if the set parameters are the same.
- *
- * @passcondition Set and got padding values are the same.
- * @}
- */
-START_TEST(utc_evas_object_box_padding_get_p)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_box_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;
-
- evas_object_box_padding_set(obj, 10, 50);
- evas_object_box_padding_get(obj, &h, &v);
- evas_free(evas);
-
- if (h != 10 || v != 50)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. h=%d, v=%d", __FILE__, __LINE__, h, v);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_box_padding_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:
- * @li pointer to 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 Create a new box object.
- * @step 3 Call function 3 times and pass NULL (in turn) instead of pointer to Evas_Object,
- * horizontal and vertical padding.
- * @step 4 Check values of output parameters.
- *
- * @passcondition Function doesn't cause segmentation fault. Output parameters are set to 0 (default value).
- * @}
- */
-START_TEST(utc_evas_object_box_padding_get_n)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_box_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_box_padding_get, obj, &h, &v);
-
- evas_free(evas);
-
- if (h || v)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. h=%d, v=%d", __FILE__, __LINE__, h, v);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_box_padding_get()
-{
- TCase *tcase = tcase_create("utc_evas_object_box_padding_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_box_padding_get_p);
- tcase_add_test(tcase, utc_evas_object_box_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_box
+ * @{
+ * @defgroup evas_object_box_padding_get evas_object_box_padding_get()
+ *
+ *
+ * @precondition
+ * @step 1 evas initialized with evas_init()
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ evas_shutdown();
+}
+
+/**
+ * @addtogroup evas_object_box_padding_get
+ * @{
+ * @objective Positive test case checks if function called with correct parameters gets padding of box object properly.
+ * @n Input Data:
+ * @li pointer to 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 Create a new box object.
+ * @step 3 Set padding for the object.
+ * @step 4 Get padding and check if the set parameters are the same.
+ *
+ * @passcondition Set and got padding values are the same.
+ * @}
+ */
+START_TEST(utc_evas_object_box_padding_get_p)
+{
+ Evas *evas = evas_new();
+ Evas_Object *obj = evas_object_box_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;
+
+ evas_object_box_padding_set(obj, 10, 50);
+ evas_object_box_padding_get(obj, &h, &v);
+ evas_free(evas);
+
+ if (h != 10 || v != 50)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. h=%d, v=%d", __FILE__, __LINE__, h, v);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_box_padding_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:
+ * @li pointer to 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 Create a new box object.
+ * @step 3 Call function 3 times and pass NULL (in turn) instead of pointer to Evas_Object,
+ * horizontal and vertical padding.
+ * @step 4 Check values of output parameters.
+ *
+ * @passcondition Function doesn't cause segmentation fault. Output parameters are set to 0 (default value).
+ * @}
+ */
+START_TEST(utc_evas_object_box_padding_get_n)
+{
+ Evas *evas = evas_new();
+ Evas_Object *obj = evas_object_box_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_box_padding_get, obj, &h, &v);
+
+ evas_free(evas);
+
+ if (h || v)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. h=%d, v=%d", __FILE__, __LINE__, h, v);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_box_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:
+ * @li NULL instead of pointer to Evas_Object;
+ * @li 10 as horizontal padding value;
+ * @li 50 as vertical padding 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_box_padding_set_n)
+{
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(evas_object_box_padding_set, NULL, 10, 50);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup evas_object_box_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_box_add_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(NULL, evas_object_box_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_box_padding_get_set()
+{
+ TCase *tcase = tcase_create("utc_evas_object_box_padding_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_evas_object_box_padding_get_p);
+ tcase_add_test(tcase, utc_evas_object_box_padding_get_n);
+ tcase_add_test(tcase, utc_evas_object_box_padding_set_n);
+ tcase_add_test(tcase, utc_evas_object_box_add_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_box
- * @{
- * @defgroup evas_object_box_padding_set evas_object_box_padding_set()
- *
- *
- * @precondition
- * @step 1 evas initialized with evas_init()
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- evas_shutdown();
-}
-
-/**
- * @addtogroup evas_object_box_padding_set
- * @{
- * @objective Positive test case checks if function called with correct parameters sets padding of box object properly.
- * @n Input Data:
- * @li pointer to Evas_Object;
- * @li 10 as horizontal padding value;
- * @li 50 as vertical padding value.
- *
- * @procedure
- * @step 1 Create new Evas.
- * @step 2 Create a new box object.
- * @step 3 Set padding for the object.
- * @step 4 Get padding and check if the set parameters are the same.
- *
- * @passcondition Set and got padding values are the same.
- * @}
- */
-START_TEST(utc_evas_object_box_padding_set_p)
-{
- Evas *evas = evas_new();
- Evas_Object *obj = evas_object_box_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;
-
- evas_object_box_padding_set(obj, 10, 50);
- evas_object_box_padding_get(obj, &h, &v);
- evas_free(evas);
-
- if (h != 10 || v != 50)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed.. h=%d, v=%d", __FILE__, __LINE__, h, v);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup evas_object_box_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:
- * @li NULL instead of pointer to Evas_Object;
- * @li 10 as horizontal padding value;
- * @li 50 as vertical padding 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_box_padding_set_n)
-{
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(evas_object_box_padding_set, NULL, 10, 50);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_evas_object_box_padding_set()
-{
- TCase *tcase = tcase_create("utc_evas_object_box_padding_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_evas_object_box_padding_set_p);
- tcase_add_test(tcase, utc_evas_object_box_padding_set_n);
- return tcase;
-}