utc_elm_ctxpopup_xxxx: Merge TCs to reduce duplicate test operations 41/188741/1
authorApurv Khatri <apurv.khatri@samsung.com>
Mon, 10 Sep 2018 03:55:29 +0000 (09:25 +0530)
committerApurv Khatri <apurv.khatri@samsung.com>
Mon, 10 Sep 2018 03:55:29 +0000 (09:25 +0530)
Change-Id: Id5378c92b292599139c4335b9fbae65a99ff115b

TC/elementary/ctxpopup/tslist
TC/elementary/ctxpopup/tslist_mobile
TC/elementary/ctxpopup/tslist_tv
TC/elementary/ctxpopup/tslist_wear
TC/elementary/ctxpopup/utc_elm_ctxpopup_add.c [deleted file]
TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_get.c [deleted file]
TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_get_set.c [new file with mode: 0644]
TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_set.c [deleted file]
TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_get.c [deleted file]
TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_get_set.c [new file with mode: 0644]
TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_set.c [deleted file]

index 42eb1f8b5cdfd2baba4a0acf87b171a384f64992..d776a6fd6892343ae4489844b15647f83f9b6875 100644 (file)
@@ -1,9 +1,6 @@
-utc_elm_ctxpopup_add.c
 utc_elm_ctxpopup_clear.c
-utc_elm_ctxpopup_horizontal_set.c
-utc_elm_ctxpopup_horizontal_get.c
-utc_elm_ctxpopup_direction_priority_set.c
-utc_elm_ctxpopup_direction_priority_get.c
+utc_elm_ctxpopup_horizontal_get_set.c
+utc_elm_ctxpopup_direction_priority_get_set.c
 utc_elm_ctxpopup_direction_get.c
 utc_elm_ctxpopup_hover_parent_set.c
 utc_elm_ctxpopup_hover_parent_get.c
index 42eb1f8b5cdfd2baba4a0acf87b171a384f64992..5e2cc6ed55241e833134983bc49084297dc0ac29 100644 (file)
@@ -1,13 +1,10 @@
-utc_elm_ctxpopup_add.c
 utc_elm_ctxpopup_clear.c
-utc_elm_ctxpopup_horizontal_set.c
-utc_elm_ctxpopup_horizontal_get.c
-utc_elm_ctxpopup_direction_priority_set.c
-utc_elm_ctxpopup_direction_priority_get.c
+utc_elm_ctxpopup_horizontal_get_set.c
+utc_elm_ctxpopup_direction_priority_get_set.c
 utc_elm_ctxpopup_direction_get.c
 utc_elm_ctxpopup_hover_parent_set.c
 utc_elm_ctxpopup_hover_parent_get.c
 utc_elm_ctxpopup_auto_hide_disabled_set.c
 utc_elm_ctxpopup_dismiss.c
 utc_elm_ctxpopup_item_append.c
-utc_elm_ctxpopup_direction_available_get.c
+utc_elm_ctxpopup_direction_available_get.c
\ No newline at end of file
index 6d067bb31120b0a2cbf1ff15b6ee964358d5a11a..d8a0c8281cbf2306e09a420851ba3eb40d86b177 100644 (file)
@@ -1,9 +1,6 @@
-utc_elm_ctxpopup_add.c
 utc_elm_ctxpopup_clear.c
-utc_elm_ctxpopup_horizontal_set.c
-utc_elm_ctxpopup_horizontal_get.c
-utc_elm_ctxpopup_direction_priority_set.c
-utc_elm_ctxpopup_direction_priority_get.c
+utc_elm_ctxpopup_horizontal_get_set.c
+utc_elm_ctxpopup_direction_priority_get_set.c
 utc_elm_ctxpopup_direction_get.c
 utc_elm_ctxpopup_hover_parent_set.c
 utc_elm_ctxpopup_hover_parent_get.c
index 6d067bb31120b0a2cbf1ff15b6ee964358d5a11a..27dfe473c4ddf1bbc5a5635dc2cbb19694328147 100644 (file)
@@ -1,13 +1,10 @@
-utc_elm_ctxpopup_add.c
 utc_elm_ctxpopup_clear.c
-utc_elm_ctxpopup_horizontal_set.c
-utc_elm_ctxpopup_horizontal_get.c
-utc_elm_ctxpopup_direction_priority_set.c
-utc_elm_ctxpopup_direction_priority_get.c
+utc_elm_ctxpopup_horizontal_get_set.c
+utc_elm_ctxpopup_direction_priority_get_set.c
 utc_elm_ctxpopup_direction_get.c
 utc_elm_ctxpopup_hover_parent_set.c
 utc_elm_ctxpopup_hover_parent_get.c
 utc_elm_ctxpopup_auto_hide_disabled_set.c
 utc_elm_ctxpopup_dismiss.c
 utc_elm_ctxpopup_item_append.c
-#utc_elm_ctxpopup_direction_available_get.c
+#utc_elm_ctxpopup_direction_available_get.c
\ No newline at end of file
diff --git a/TC/elementary/ctxpopup/utc_elm_ctxpopup_add.c b/TC/elementary/ctxpopup/utc_elm_ctxpopup_add.c
deleted file mode 100644 (file)
index 2aa1509..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_ctxpopup
- * @{
- * @defgroup elm_ctxpopup_add elm_ctxpopup_add()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_ctxpopup_add
- * @{
- * @objective Positive Test case checks if function call with valid value to add a new ctxpopup object
- * to the parent works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_add with valid value
- *
- * @passcondition
- * @li Test passes if returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_add_p)
-{
-   if (main_win == NULL)
-     {
-        return;
-     }
-
-   Evas_Object *ctxpopup = NULL;
-
-   ctxpopup = elm_ctxpopup_add(main_win);
-   if (ctxpopup == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-   evas_object_del(ctxpopup);
-}
-END_TEST
-
-/**
- * @addtogroup elm_ctxpopup_add
- * @{
- * @objective Negative Test case checks if function call with invalid value to add a new ctxpopup object
- * to the parent works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_add with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_add_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_ctxpopup_add, main_win))
-     {
-        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_elm_ctxpopup_add()
-{
-   TCase *tcase = tcase_create("utc_elm_ctxpopup_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_ctxpopup_add_p);
-   tcase_add_test(tcase, utc_elm_ctxpopup_add_n);
-   return tcase;
-}
diff --git a/TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_get.c b/TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_get.c
deleted file mode 100644 (file)
index 15356a6..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *ctxpopup = NULL;
-
-/**
- * @addtogroup elm_ctxpopup
- * @{
- * @defgroup elm_ctxpopup_direction_priority_get elm_ctxpopup_direction_priority_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a ctxpopup to the main window and show it
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   ctxpopup = elm_ctxpopup_add(main_win);
-   if (ctxpopup == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a ctxpopup object to the main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(ctxpopup);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_ctxpopup_direction_priority_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get the direction priority of a ctxpopup
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the ctxpopup object
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
- *
- * @procedure
- * @step 1 Set the direction priority of a ctxpopup
- * @step 2 Call elm_ctxpopup_direction_priority_get with valid value
- *
- * @passcondition
- * @li Test passes if returned values are same as specified values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_direction_priority_get_p)
-{
-   if (main_win == NULL || ctxpopup == NULL)
-     {
-        return;
-     }
-
-   Elm_Ctxpopup_Direction first = ELM_CTXPOPUP_DIRECTION_DOWN, second = ELM_CTXPOPUP_DIRECTION_DOWN, third = ELM_CTXPOPUP_DIRECTION_DOWN, fourth = ELM_CTXPOPUP_DIRECTION_DOWN;
-
-   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
-   elm_ctxpopup_direction_priority_get(ctxpopup, &first, &second, &third, &fourth);
-   if ((first != ELM_CTXPOPUP_DIRECTION_DOWN) || (second != ELM_CTXPOPUP_DIRECTION_RIGHT) || (third != ELM_CTXPOPUP_DIRECTION_LEFT) || (fourth != ELM_CTXPOPUP_DIRECTION_UP))
-     {
-        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
-
-/**
- * @addtogroup elm_ctxpopup_direction_priority_get
- * @{
- * @objective Negative Test case 1 checks if function call with invalid value to get the direction priority of a ctxpopup
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the ctxpopup object
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
- * @li the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_direction_priority_get with invalid value instead of the ctxpopup object
- *
- * @passcondition
- * @li Test passes if values of variables remains same as they were before function call and there is no segmentation fault
- * Note! ELM_CTXPOPUP_DIRECTION_DOWN is the min value of Elm_Ctxpopup_Direction enum type
- * @}
- */
-START_TEST(utc_elm_ctxpopup_direction_priority_get_n)
-{
-   Elm_Ctxpopup_Direction first = ELM_CTXPOPUP_DIRECTION_DOWN - 1, second = ELM_CTXPOPUP_DIRECTION_DOWN - 1, third = ELM_CTXPOPUP_DIRECTION_DOWN - 1, fourth = ELM_CTXPOPUP_DIRECTION_DOWN - 1;
-
-   elm_ctxpopup_direction_priority_get(NULL, &first, &second, &third, &fourth);
-   if ((first != ELM_CTXPOPUP_DIRECTION_DOWN - 1) || (second != ELM_CTXPOPUP_DIRECTION_DOWN - 1) || (third != ELM_CTXPOPUP_DIRECTION_DOWN - 1) || (fourth != ELM_CTXPOPUP_DIRECTION_DOWN - 1))
-     {
-        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
-
-/**
- * @addtogroup elm_ctxpopup_direction_priority_get
- * @{
- * @objective Negative Test case 2 checks if function call with invalid value to get the direction priority of a ctxpopup
- * works without segmentation fault
- * @n Input Data:
- * @li the ctxpopup object
- * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
- * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
- * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
- * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
- * @step 2 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
- * @step 3 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
- * @step 4 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_direction_priority_get_n2)
-{
-   if (main_win == NULL || ctxpopup == NULL)
-     {
-        return;
-     }
-
-   Elm_Ctxpopup_Direction first = ELM_CTXPOPUP_DIRECTION_DOWN - 1, second = ELM_CTXPOPUP_DIRECTION_DOWN - 1, third = ELM_CTXPOPUP_DIRECTION_DOWN - 1, fourth = ELM_CTXPOPUP_DIRECTION_DOWN - 1;
-
-   CREATE_CHECKED_ARGS_ARRAY(0, 1, 1, 1, 1)
-   UNITEST_FUNC_NEG_CA(elm_ctxpopup_direction_priority_get, ctxpopup, &first, &second, &third, &fourth)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_ctxpopup_direction_priority_get()
-{
-   TCase *tcase = tcase_create("utc_elm_ctxpopup_direction_priority_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_get_p);
-   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_get_n);
-   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_get_n2);
-   return tcase;
-}
diff --git a/TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_get_set.c b/TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_get_set.c
new file mode 100644 (file)
index 0000000..dfc79fb
--- /dev/null
@@ -0,0 +1,223 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *ctxpopup = NULL;
+
+/**
+ * @addtogroup elm_ctxpopup
+ * @{
+ * @defgroup elm_ctxpopup_direction_priority_get elm_ctxpopup_direction_priority_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a ctxpopup to the main window and show it
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   ctxpopup = elm_ctxpopup_add(main_win);
+   if (ctxpopup == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a ctxpopup object to the main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(ctxpopup);
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_ctxpopup_direction_priority_get
+ * @{
+ * @objective Positive Test case checks if function call with valid value to get the direction priority of a ctxpopup
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the ctxpopup object
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
+ *
+ * @procedure
+ * @step 1 Set the direction priority of a ctxpopup
+ * @step 2 Call elm_ctxpopup_direction_priority_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned values are same as specified values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_direction_priority_get_p)
+{
+   Elm_Ctxpopup_Direction first = ELM_CTXPOPUP_DIRECTION_DOWN, second = ELM_CTXPOPUP_DIRECTION_DOWN, third = ELM_CTXPOPUP_DIRECTION_DOWN, fourth = ELM_CTXPOPUP_DIRECTION_DOWN;
+
+   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
+   elm_ctxpopup_direction_priority_get(ctxpopup, &first, &second, &third, &fourth);
+   if ((first != ELM_CTXPOPUP_DIRECTION_DOWN) || (second != ELM_CTXPOPUP_DIRECTION_RIGHT) || (third != ELM_CTXPOPUP_DIRECTION_LEFT) || (fourth != ELM_CTXPOPUP_DIRECTION_UP))
+     {
+        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
+
+/**
+ * @addtogroup elm_ctxpopup_direction_priority_get
+ * @{
+ * @objective Negative Test case 1 checks if function call with invalid value to get the direction priority of a ctxpopup
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the ctxpopup object
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
+ * @li the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
+ *
+ * @procedure
+ * @step 1 Call elm_ctxpopup_direction_priority_get with invalid value instead of the ctxpopup object
+ *
+ * @passcondition
+ * @li Test passes if values of variables remains same as they were before function call and there is no segmentation fault
+ * Note! ELM_CTXPOPUP_DIRECTION_DOWN is the min value of Elm_Ctxpopup_Direction enum type
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_direction_priority_get_n)
+{
+   Elm_Ctxpopup_Direction first = ELM_CTXPOPUP_DIRECTION_DOWN - 1, second = ELM_CTXPOPUP_DIRECTION_DOWN - 1, third = ELM_CTXPOPUP_DIRECTION_DOWN - 1, fourth = ELM_CTXPOPUP_DIRECTION_DOWN - 1;
+
+   elm_ctxpopup_direction_priority_get(NULL, &first, &second, &third, &fourth);
+   if ((first != ELM_CTXPOPUP_DIRECTION_DOWN - 1) || (second != ELM_CTXPOPUP_DIRECTION_DOWN - 1) || (third != ELM_CTXPOPUP_DIRECTION_DOWN - 1) || (fourth != ELM_CTXPOPUP_DIRECTION_DOWN - 1))
+     {
+        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
+
+/**
+ * @addtogroup elm_ctxpopup_direction_priority_get
+ * @{
+ * @objective Negative Test case 2 checks if function call with invalid value to get the direction priority of a ctxpopup
+ * works without segmentation fault
+ * @n Input Data:
+ * @li the ctxpopup object
+ * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
+ * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
+ * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
+ * @li NULL, the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
+ *
+ * @procedure
+ * @step 1 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 1st priority of direction
+ * @step 2 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 2nd priority of direction
+ * @step 3 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 3rd priority of direction
+ * @step 4 Call elm_ctxpopup_direction_priority_get with invalid value instead of the pointer to the Elm_Ctxpopup_Direction to store the 4th priority of direction
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_direction_priority_get_n2)
+{
+   Elm_Ctxpopup_Direction first = ELM_CTXPOPUP_DIRECTION_DOWN - 1, second = ELM_CTXPOPUP_DIRECTION_DOWN - 1, third = ELM_CTXPOPUP_DIRECTION_DOWN - 1, fourth = ELM_CTXPOPUP_DIRECTION_DOWN - 1;
+
+   CREATE_CHECKED_ARGS_ARRAY(0, 1, 1, 1, 1)
+   UNITEST_FUNC_NEG_CA(elm_ctxpopup_direction_priority_get, ctxpopup, &first, &second, &third, &fourth)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_ctxpopup_direction_priority_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to set the direction priority of a ctxpopup
+ * works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the ctxpopup object
+ * @li ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 1st priority of direction
+ * @li ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 2nd priority of direction
+ * @li ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 3rd priority of direction
+ * @li ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 4th priority of direction
+ * Note! ELM_CTXPOPUP_DIRECTION_DOWN is the min value of Elm_Ctxpopup_Direction enum type
+ *
+ * @procedure
+ * @step 1 Call elm_ctxpopup_direction_priority_set with invalid value instead of the ctxpopup object
+ * @step 2 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 1st priority of direction
+ * @step 3 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 2nd priority of direction
+ * @step 4 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 3rd priority of direction
+ * @step 5 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 4th priority of direction
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_direction_priority_set_n)
+{
+   elm_ctxpopup_direction_priority_set(NULL, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
+   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN - 1, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
+   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_DOWN - 1, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
+   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_DOWN - 1, ELM_CTXPOPUP_DIRECTION_UP);
+   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_DOWN - 1);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_ctxpopup_add
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to add a new ctxpopup object
+ * to the parent works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_ctxpopup_add with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_ctxpopup_add, main_win))
+     {
+        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_elm_ctxpopup_direction_priority_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_ctxpopup_direction_priority_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_get_p);
+   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_get_n);
+   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_get_n2);
+   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_set_n);
+   tcase_add_test(tcase, utc_elm_ctxpopup_add_n);
+   return tcase;
+}
diff --git a/TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_set.c b/TC/elementary/ctxpopup/utc_elm_ctxpopup_direction_priority_set.c
deleted file mode 100644 (file)
index 65deecf..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *ctxpopup = NULL;
-
-/**
- * @addtogroup elm_ctxpopup
- * @{
- * @defgroup elm_ctxpopup_direction_priority_set elm_ctxpopup_direction_priority_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a ctxpopup to the main window and show it
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   ctxpopup = elm_ctxpopup_add(main_win);
-   if (ctxpopup == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a ctxpopup object to the main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(ctxpopup);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_ctxpopup_direction_priority_set
- * @{
- * @objective Positive Test case checks if function call with valid value to set the direction priority of a ctxpopup
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the ctxpopup object
- * @li ELM_CTXPOPUP_DIRECTION_DOWN as the 1st priority of direction
- * @li ELM_CTXPOPUP_DIRECTION_RIGHT as the 2nd priority of direction
- * @li ELM_CTXPOPUP_DIRECTION_LEFT as the 3rd priority of direction
- * @li ELM_CTXPOPUP_DIRECTION_UP as the 4th priority of direction
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_direction_priority_set with valid value
- * @step 2 Get the direction priority of a ctxpopup
- *
- * @passcondition
- * @li Test passes if returned values are same as specified values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_direction_priority_set_p)
-{
-   if (main_win == NULL || ctxpopup == NULL)
-     {
-        return;
-     }
-
-   Elm_Ctxpopup_Direction first = ELM_CTXPOPUP_DIRECTION_DOWN, second = ELM_CTXPOPUP_DIRECTION_DOWN, third = ELM_CTXPOPUP_DIRECTION_DOWN, fourth = ELM_CTXPOPUP_DIRECTION_DOWN;
-
-   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
-   elm_ctxpopup_direction_priority_get(ctxpopup, &first, &second, &third, &fourth);
-   if ((first != ELM_CTXPOPUP_DIRECTION_DOWN) || (second != ELM_CTXPOPUP_DIRECTION_RIGHT) || (third != ELM_CTXPOPUP_DIRECTION_LEFT) || (fourth != ELM_CTXPOPUP_DIRECTION_UP))
-     {
-        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
-
-/**
- * @addtogroup elm_ctxpopup_direction_priority_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to set the direction priority of a ctxpopup
- * works without segmentation fault
- * @n Input Data:
- * @li NULL, the ctxpopup object
- * @li ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 1st priority of direction
- * @li ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 2nd priority of direction
- * @li ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 3rd priority of direction
- * @li ELM_CTXPOPUP_DIRECTION_UP, ELM_CTXPOPUP_DIRECTION_DOWN - 1 as the 4th priority of direction
- * Note! ELM_CTXPOPUP_DIRECTION_DOWN is the min value of Elm_Ctxpopup_Direction enum type
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_direction_priority_set with invalid value instead of the ctxpopup object
- * @step 2 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 1st priority of direction
- * @step 3 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 2nd priority of direction
- * @step 4 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 3rd priority of direction
- * @step 5 Call elm_ctxpopup_direction_priority_set with invalid value instead of the 4th priority of direction
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_direction_priority_set_n)
-{
-   if (main_win == NULL || ctxpopup == NULL)
-     {
-        return;
-     }
-
-   elm_ctxpopup_direction_priority_set(NULL, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
-   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN - 1, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
-   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_DOWN - 1, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_UP);
-   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_DOWN - 1, ELM_CTXPOPUP_DIRECTION_UP);
-   elm_ctxpopup_direction_priority_set(ctxpopup, ELM_CTXPOPUP_DIRECTION_DOWN, ELM_CTXPOPUP_DIRECTION_RIGHT, ELM_CTXPOPUP_DIRECTION_LEFT, ELM_CTXPOPUP_DIRECTION_DOWN - 1);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_ctxpopup_direction_priority_set()
-{
-   TCase *tcase = tcase_create("utc_elm_ctxpopup_direction_priority_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_set_p);
-   tcase_add_test(tcase, utc_elm_ctxpopup_direction_priority_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_get.c b/TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_get.c
deleted file mode 100644 (file)
index 3e77d5e..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *ctxpopup = NULL;
-
-/**
- * @addtogroup elm_ctxpopup
- * @{
- * @defgroup elm_ctxpopup_horizontal_get elm_ctxpopup_horizontal_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a ctxpopup to the main window and show it
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   ctxpopup = elm_ctxpopup_add(main_win);
-   if (ctxpopup == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a ctxpopup object to the main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(ctxpopup);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_ctxpopup_horizontal_get
- * @{
- * @objective Positive Test case checks if function call with valid value to get the value of current ctxpopup object's orientation
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the ctxpopup object
- *
- * @procedure
- * @step 1 Change the ctxpopup's orientation to horizontal
- * @step 2 Call elm_ctxpopup_horizontal_get with valid value
- * @step 3 Change the ctxpopup's orientation to vertical
- * @step 4 Call elm_ctxpopup_horizontal_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_horizontal_get_p)
-{
-   if (main_win == NULL || ctxpopup == NULL)
-     {
-        return;
-     }
-
-   Eina_Bool is_horizontal = EINA_FALSE;
-
-   elm_ctxpopup_horizontal_set(ctxpopup, EINA_TRUE);
-   is_horizontal = elm_ctxpopup_horizontal_get(ctxpopup);
-   if (is_horizontal == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_ctxpopup_horizontal_set(ctxpopup, EINA_FALSE);
-   is_horizontal = elm_ctxpopup_horizontal_get(ctxpopup);
-   if (is_horizontal == EINA_TRUE)
-     {
-        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
-
-/**
- * @addtogroup elm_ctxpopup_horizontal_get
- * @{
- * @objective Negative Test case checks if function call with invalid value to get the value of current ctxpopup object's orientation
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the ctxpopup object
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_horizontal_get with invalid value instead of the ctxpopup object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_horizontal_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_ctxpopup_horizontal_get, ctxpopup))
-     {
-        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_elm_ctxpopup_horizontal_get()
-{
-   TCase *tcase = tcase_create("utc_elm_ctxpopup_horizontal_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_ctxpopup_horizontal_get_p);
-   tcase_add_test(tcase, utc_elm_ctxpopup_horizontal_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_get_set.c b/TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_get_set.c
new file mode 100644 (file)
index 0000000..74956ee
--- /dev/null
@@ -0,0 +1,149 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL, *ctxpopup = NULL;
+
+/**
+ * @addtogroup elm_ctxpopup
+ * @{
+ * @defgroup elm_ctxpopup_horizontal_get elm_ctxpopup_horizontal_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a ctxpopup to the main window and show it
+ */
+
+static void
+setup(void)
+{
+   printf(" ============ Startup ============ \n");
+   UTC_ELM_INIT();
+   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+   if (main_win == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(main_win);
+   ctxpopup = elm_ctxpopup_add(main_win);
+   if (ctxpopup == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a ctxpopup object to the main window..", __FILE__, __LINE__);
+     }
+   evas_object_show(ctxpopup);
+}
+
+static void
+teardown(void)
+{
+   if (main_win != NULL)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_ctxpopup_horizontal_get
+ * @{
+ * @objective Positive Test case checks if function call with valid value to get the value of current ctxpopup object's orientation
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the ctxpopup object
+ *
+ * @procedure
+ * @step 1 Change the ctxpopup's orientation to horizontal
+ * @step 2 Call elm_ctxpopup_horizontal_get with valid value
+ * @step 3 Change the ctxpopup's orientation to vertical
+ * @step 4 Call elm_ctxpopup_horizontal_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_horizontal_get_p)
+{
+   Eina_Bool is_horizontal = EINA_FALSE;
+
+   elm_ctxpopup_horizontal_set(ctxpopup, EINA_TRUE);
+   is_horizontal = elm_ctxpopup_horizontal_get(ctxpopup);
+   if (is_horizontal == EINA_FALSE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_ctxpopup_horizontal_set(ctxpopup, EINA_FALSE);
+   is_horizontal = elm_ctxpopup_horizontal_get(ctxpopup);
+   if (is_horizontal == EINA_TRUE)
+     {
+        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
+
+/**
+ * @addtogroup elm_ctxpopup_horizontal_get
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to get the value of current ctxpopup object's orientation
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the ctxpopup object
+ *
+ * @procedure
+ * @step 1 Call elm_ctxpopup_horizontal_get with invalid value instead of the ctxpopup object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_horizontal_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_ctxpopup_horizontal_get, ctxpopup))
+     {
+        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
+
+/**
+ * @addtogroup elm_ctxpopup_horizontal_set
+ * @{
+ * @objective Negative Test case checks if function call with invalid value to change the ctxpopup's orientation to horizontal or vertical
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the ctxpopup object
+ * @li EINA_TRUE as the flag's value to change the ctxpopup's orientation to horizontal or vertical
+ *
+ * @procedure
+ * @step 1 Call elm_ctxpopup_horizontal_set with invalid value instead of the ctxpopup object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_ctxpopup_horizontal_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0)
+   UNITEST_FUNC_NEG_CA(elm_ctxpopup_horizontal_set, ctxpopup, EINA_TRUE)
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_ctxpopup_horizontal_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_ctxpopup_horizontal_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_ctxpopup_horizontal_get_p);
+   tcase_add_test(tcase, utc_elm_ctxpopup_horizontal_get_n);
+   tcase_add_test(tcase, utc_elm_ctxpopup_horizontal_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_set.c b/TC/elementary/ctxpopup/utc_elm_ctxpopup_horizontal_set.c
deleted file mode 100644 (file)
index 5fb19ed..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL, *ctxpopup = NULL;
-
-/**
- * @addtogroup elm_ctxpopup
- * @{
- * @defgroup elm_ctxpopup_horizontal_set elm_ctxpopup_horizontal_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a ctxpopup to the main window and show it
- */
-
-static void
-setup(void)
-{
-   printf(" ============ Startup ============ \n");
-   UTC_ELM_INIT();
-   main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
-   if (main_win == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(main_win);
-   ctxpopup = elm_ctxpopup_add(main_win);
-   if (ctxpopup == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a Ctxpopup object to the main window..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_show(ctxpopup);
-}
-
-static void
-teardown(void)
-{
-   if (main_win != NULL)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_ctxpopup_horizontal_set
- * @{
- * @objective Positive Test case checks if function call with valid value to change the ctxpopup's orientation to horizontal or vertical
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the ctxpopup object
- * @li EINA_TRUE, EINA_FALSE as the flag's value to change the ctxpopup's orientation to horizontal or vertical
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_horizontal_set with EINA_TRUE as the flag's value to change the ctxpopup's orientation to horizontal or vertical
- * @step 2 Get the value of current ctxpopup object's orientation
- * @step 3 Call elm_ctxpopup_horizontal_set with EINA_FALSE as the flag's value to change the ctxpopup's orientation to horizontal or vertical
- * @step 4 Get the value of current ctxpopup object's orientation
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_horizontal_set_p)
-{
-   if (main_win == NULL || ctxpopup == NULL)
-     {
-        return;
-     }
-
-   Eina_Bool is_horizontal = EINA_FALSE;
-
-   elm_ctxpopup_horizontal_set(ctxpopup, EINA_TRUE);
-   is_horizontal = elm_ctxpopup_horizontal_get(ctxpopup);
-   if (is_horizontal == EINA_FALSE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_ctxpopup_horizontal_set(ctxpopup, EINA_FALSE);
-   is_horizontal = elm_ctxpopup_horizontal_get(ctxpopup);
-   if (is_horizontal == EINA_TRUE)
-     {
-        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
-
-/**
- * @addtogroup elm_ctxpopup_horizontal_set
- * @{
- * @objective Negative Test case checks if function call with invalid value to change the ctxpopup's orientation to horizontal or vertical
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the ctxpopup object
- * @li EINA_TRUE as the flag's value to change the ctxpopup's orientation to horizontal or vertical
- *
- * @procedure
- * @step 1 Call elm_ctxpopup_horizontal_set with invalid value instead of the ctxpopup object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_ctxpopup_horizontal_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0)
-   UNITEST_FUNC_NEG_CA(elm_ctxpopup_horizontal_set, ctxpopup, EINA_TRUE)
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_ctxpopup_horizontal_set()
-{
-   TCase *tcase = tcase_create("utc_elm_ctxpopup_horizontal_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_ctxpopup_horizontal_set_p);
-   tcase_add_test(tcase, utc_elm_ctxpopup_horizontal_set_n);
-   return tcase;
-}