utc_elm_naviframe_xxxx: Merge TCs to reduce duplicate test operations 51/189051/2
authorApurv Khatri <apurv.khatri@samsung.com>
Thu, 13 Sep 2018 05:16:58 +0000 (10:46 +0530)
committerHermet Park <chuneon.park@samsung.com>
Fri, 21 Sep 2018 07:41:45 +0000 (07:41 +0000)
Change-Id: I6e461def204942b679104246b378b826fc861efb

20 files changed:
TC/elementary/naviframe/tslist
TC/elementary/naviframe/tslist_mobile
TC/elementary/naviframe/tslist_tv
TC/elementary/naviframe/tslist_wear
TC/elementary/naviframe/utc_elm_naviframe_add.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_get.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_get_set.c [new file with mode: 0644]
TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_set.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_event_enabled_get.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_event_enabled_get_set.c [new file with mode: 0644]
TC/elementary/naviframe/utc_elm_naviframe_event_enabled_set.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_item_style_get.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_item_style_get_set.c [new file with mode: 0644]
TC/elementary/naviframe/utc_elm_naviframe_item_style_set.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_get.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_get_set.c [new file with mode: 0644]
TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_set.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_get.c [deleted file]
TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_get_set.c [new file with mode: 0644]
TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_set.c [deleted file]

index 8e08b78731c9d3a1c1dc719109be3331dfc040a1..9446737fca7191c4cbfa1a029821fc07dedb38a7 100644 (file)
@@ -1,21 +1,15 @@
-utc_elm_naviframe_add.c
 utc_elm_naviframe_bottom_item_get.c
-utc_elm_naviframe_content_preserve_on_pop_get.c
-utc_elm_naviframe_content_preserve_on_pop_set.c
+utc_elm_naviframe_content_preserve_on_pop_get_set.c
 utc_elm_naviframe_item_insert_after.c
 utc_elm_naviframe_item_pop.c
 utc_elm_naviframe_item_pop_to.c
 utc_elm_naviframe_item_promote.c
 utc_elm_naviframe_item_push.c
-utc_elm_naviframe_item_style_get.c
-utc_elm_naviframe_item_style_set.c
-#utc_elm_naviframe_item_title_visible_get.c
-#utc_elm_naviframe_item_title_visible_set.c
-utc_elm_naviframe_prev_btn_auto_pushed_get.c
-utc_elm_naviframe_prev_btn_auto_pushed_set.c
+utc_elm_naviframe_item_style_get_set.c
+#utc_elm_naviframe_item_title_visible_get_set.c
+utc_elm_naviframe_prev_btn_auto_pushed_get_set.c
 utc_elm_naviframe_top_item_get.c
-utc_elm_naviframe_event_enabled_get.c
-utc_elm_naviframe_event_enabled_set.c
+utc_elm_naviframe_event_enabled_get_set.c
 utc_elm_naviframe_item_insert_before.c
 utc_elm_naviframe_item_simple_promote.c
 utc_elm_naviframe_item_title_enabled_get.c
index 8e08b78731c9d3a1c1dc719109be3331dfc040a1..9446737fca7191c4cbfa1a029821fc07dedb38a7 100644 (file)
@@ -1,21 +1,15 @@
-utc_elm_naviframe_add.c
 utc_elm_naviframe_bottom_item_get.c
-utc_elm_naviframe_content_preserve_on_pop_get.c
-utc_elm_naviframe_content_preserve_on_pop_set.c
+utc_elm_naviframe_content_preserve_on_pop_get_set.c
 utc_elm_naviframe_item_insert_after.c
 utc_elm_naviframe_item_pop.c
 utc_elm_naviframe_item_pop_to.c
 utc_elm_naviframe_item_promote.c
 utc_elm_naviframe_item_push.c
-utc_elm_naviframe_item_style_get.c
-utc_elm_naviframe_item_style_set.c
-#utc_elm_naviframe_item_title_visible_get.c
-#utc_elm_naviframe_item_title_visible_set.c
-utc_elm_naviframe_prev_btn_auto_pushed_get.c
-utc_elm_naviframe_prev_btn_auto_pushed_set.c
+utc_elm_naviframe_item_style_get_set.c
+#utc_elm_naviframe_item_title_visible_get_set.c
+utc_elm_naviframe_prev_btn_auto_pushed_get_set.c
 utc_elm_naviframe_top_item_get.c
-utc_elm_naviframe_event_enabled_get.c
-utc_elm_naviframe_event_enabled_set.c
+utc_elm_naviframe_event_enabled_get_set.c
 utc_elm_naviframe_item_insert_before.c
 utc_elm_naviframe_item_simple_promote.c
 utc_elm_naviframe_item_title_enabled_get.c
index 8e08b78731c9d3a1c1dc719109be3331dfc040a1..9446737fca7191c4cbfa1a029821fc07dedb38a7 100644 (file)
@@ -1,21 +1,15 @@
-utc_elm_naviframe_add.c
 utc_elm_naviframe_bottom_item_get.c
-utc_elm_naviframe_content_preserve_on_pop_get.c
-utc_elm_naviframe_content_preserve_on_pop_set.c
+utc_elm_naviframe_content_preserve_on_pop_get_set.c
 utc_elm_naviframe_item_insert_after.c
 utc_elm_naviframe_item_pop.c
 utc_elm_naviframe_item_pop_to.c
 utc_elm_naviframe_item_promote.c
 utc_elm_naviframe_item_push.c
-utc_elm_naviframe_item_style_get.c
-utc_elm_naviframe_item_style_set.c
-#utc_elm_naviframe_item_title_visible_get.c
-#utc_elm_naviframe_item_title_visible_set.c
-utc_elm_naviframe_prev_btn_auto_pushed_get.c
-utc_elm_naviframe_prev_btn_auto_pushed_set.c
+utc_elm_naviframe_item_style_get_set.c
+#utc_elm_naviframe_item_title_visible_get_set.c
+utc_elm_naviframe_prev_btn_auto_pushed_get_set.c
 utc_elm_naviframe_top_item_get.c
-utc_elm_naviframe_event_enabled_get.c
-utc_elm_naviframe_event_enabled_set.c
+utc_elm_naviframe_event_enabled_get_set.c
 utc_elm_naviframe_item_insert_before.c
 utc_elm_naviframe_item_simple_promote.c
 utc_elm_naviframe_item_title_enabled_get.c
index 8e08b78731c9d3a1c1dc719109be3331dfc040a1..9446737fca7191c4cbfa1a029821fc07dedb38a7 100644 (file)
@@ -1,21 +1,15 @@
-utc_elm_naviframe_add.c
 utc_elm_naviframe_bottom_item_get.c
-utc_elm_naviframe_content_preserve_on_pop_get.c
-utc_elm_naviframe_content_preserve_on_pop_set.c
+utc_elm_naviframe_content_preserve_on_pop_get_set.c
 utc_elm_naviframe_item_insert_after.c
 utc_elm_naviframe_item_pop.c
 utc_elm_naviframe_item_pop_to.c
 utc_elm_naviframe_item_promote.c
 utc_elm_naviframe_item_push.c
-utc_elm_naviframe_item_style_get.c
-utc_elm_naviframe_item_style_set.c
-#utc_elm_naviframe_item_title_visible_get.c
-#utc_elm_naviframe_item_title_visible_set.c
-utc_elm_naviframe_prev_btn_auto_pushed_get.c
-utc_elm_naviframe_prev_btn_auto_pushed_set.c
+utc_elm_naviframe_item_style_get_set.c
+#utc_elm_naviframe_item_title_visible_get_set.c
+utc_elm_naviframe_prev_btn_auto_pushed_get_set.c
 utc_elm_naviframe_top_item_get.c
-utc_elm_naviframe_event_enabled_get.c
-utc_elm_naviframe_event_enabled_set.c
+utc_elm_naviframe_event_enabled_get_set.c
 utc_elm_naviframe_item_insert_before.c
 utc_elm_naviframe_item_simple_promote.c
 utc_elm_naviframe_item_title_enabled_get.c
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_add.c b/TC/elementary/naviframe/utc_elm_naviframe_add.c
deleted file mode 100644 (file)
index c458307..0000000
+++ /dev/null
@@ -1,110 +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_naviframe
- * @{
- * @defgroup elm_naviframe_add elm_naviframe_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_naviframe_add
- * @{
- * @objective Positive test case checks if add a new naviframe object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the parent window object
- *
- * @procedure
- * @step 1 Add a naviframe object to main window
- *
- * @passcondition Returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_add_p)
-{
-   Evas_Object *naviframe = NULL;
-
-   if (main_win == NULL)
-     {
-        return;
-     }
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   evas_object_del(naviframe);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_naviframe_add
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the parent object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the parent object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the parent object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_add_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_naviframe_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_naviframe_add()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_add");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_add_p);
-   tcase_add_test(tcase, utc_elm_naviframe_add_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_get.c b/TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_get.c
deleted file mode 100644 (file)
index bf6bc29..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_content_preserve_on_pop_get elm_naviframe_content_preserve_on_pop_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to 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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_content_preserve_on_pop_get
- * @{
- * @objective Positive test case checks if get a preserve mode
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the naviframe object
- *
- * @procedure
- * @step 1 Set a preserve mode to EINA_TRUE
- * @step 2 Get a preserve mode
- * @step 3 Set a preserve mode to EINA_FALSE
- * @step 4 Get a preserve mode
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_content_preserve_on_pop_get_p)
-{
-   Eina_Bool preserve = EINA_FALSE;
-
-   if (naviframe == NULL)
-     {
-        return;
-     }
-   elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_TRUE);
-   preserve = elm_naviframe_content_preserve_on_pop_get(naviframe);
-   if (preserve != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_FALSE);
-   preserve = elm_naviframe_content_preserve_on_pop_get(naviframe);
-   if (preserve != EINA_FALSE)
-     {
-        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_naviframe_content_preserve_on_pop_get
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the naviframe object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the naviframe object
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_content_preserve_on_pop_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_content_preserve_on_pop_get, naviframe) == 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_elm_naviframe_content_preserve_on_pop_get()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_content_preserve_on_pop_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_content_preserve_on_pop_get_p);
-   tcase_add_test(tcase, utc_elm_naviframe_content_preserve_on_pop_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_get_set.c b/TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_get_set.c
new file mode 100644 (file)
index 0000000..a52dd2c
--- /dev/null
@@ -0,0 +1,166 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *naviframe = NULL;
+
+/**
+ * @addtogroup elm_naviframe
+ * @{
+ * @defgroup elm_naviframe_content_preserve_on_pop_get elm_naviframe_content_preserve_on_pop_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a naviframe object to 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__);
+     }
+   evas_object_show(main_win);
+   naviframe = elm_naviframe_add(main_win);
+   if (naviframe == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_naviframe_content_preserve_on_pop_get
+ * @{
+ * @objective Positive test case checks if get a preserve mode
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the naviframe object
+ *
+ * @procedure
+ * @step 1 Set a preserve mode to EINA_TRUE
+ * @step 2 Get a preserve mode
+ * @step 3 Set a preserve mode to EINA_FALSE
+ * @step 4 Get a preserve mode
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_content_preserve_on_pop_get_p)
+{
+   Eina_Bool preserve = EINA_FALSE;
+   elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_TRUE);
+   preserve = elm_naviframe_content_preserve_on_pop_get(naviframe);
+   if (preserve != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_FALSE);
+   preserve = elm_naviframe_content_preserve_on_pop_get(naviframe);
+   if (preserve != EINA_FALSE)
+     {
+        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_naviframe_content_preserve_on_pop_get
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the naviframe object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the naviframe object
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_content_preserve_on_pop_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_content_preserve_on_pop_get, naviframe) == 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
+
+/**
+ * @addtogroup elm_naviframe_content_preserve_on_pop_set
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the naviframe object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the naviframe object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_content_preserve_on_pop_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_naviframe_content_preserve_on_pop_set, naviframe, EINA_TRUE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_naviframe_add
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the parent object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the parent object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the parent object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_add_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_naviframe_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_naviframe_content_preserve_on_pop_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_naviframe_content_preserve_on_pop_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_naviframe_content_preserve_on_pop_get_p);
+   tcase_add_test(tcase, utc_elm_naviframe_content_preserve_on_pop_get_n);
+   tcase_add_test(tcase, utc_elm_naviframe_content_preserve_on_pop_set_n);
+   tcase_add_test(tcase, utc_elm_naviframe_add_n);
+   return tcase;
+}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_set.c b/TC/elementary/naviframe/utc_elm_naviframe_content_preserve_on_pop_set.c
deleted file mode 100644 (file)
index dd9bc25..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_content_preserve_on_pop_set elm_naviframe_content_preserve_on_pop_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to 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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_content_preserve_on_pop_set
- * @{
- * @objective Positive test case checks if set a preserve mode
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the naviframe object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set a preserve mode to EINA_TRUE
- * @step 2 Get a preserve mode
- * @step 3 Set a preserve mode to EINA_FALSE
- * @step 4 Get a preserve mode
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_content_preserve_on_pop_set_p)
-{
-   Eina_Bool preserve = EINA_FALSE;
-
-   if (naviframe == NULL)
-     {
-        return;
-     }
-   elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_TRUE);
-   preserve = elm_naviframe_content_preserve_on_pop_get(naviframe);
-   if (preserve != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_content_preserve_on_pop_set(naviframe, EINA_FALSE);
-   preserve = elm_naviframe_content_preserve_on_pop_get(naviframe);
-   if (preserve != EINA_FALSE)
-     {
-        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_naviframe_content_preserve_on_pop_set
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the naviframe object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the naviframe object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_content_preserve_on_pop_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_naviframe_content_preserve_on_pop_set, naviframe, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_naviframe_content_preserve_on_pop_set()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_content_preserve_on_pop_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_content_preserve_on_pop_set_p);
-   tcase_add_test(tcase, utc_elm_naviframe_content_preserve_on_pop_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_event_enabled_get.c b/TC/elementary/naviframe/utc_elm_naviframe_event_enabled_get.c
deleted file mode 100644 (file)
index 6eb9950..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_event_enabled_get elm_naviframe_event_enabled_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to 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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_event_enabled_get
- * @{
- * @objective Positive test case 01 checks if get the naviframe event handling option
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the naviframe object
- *
- * @procedure
- * @step 1 Set the naviframe event handling option to EINA_TRUE
- * @step 2 Get the naviframe event handling option
- * @step 3 Set the naviframe event handling option to EINA_FALSE
- * @step 4 Get the naviframe event handling option
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_event_enabled_get_p_01)
-{
-   Eina_Bool status = EINA_FALSE;
-
-   if (naviframe == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_event_enabled_set(naviframe, EINA_TRUE);
-   status = elm_naviframe_event_enabled_get(naviframe);
-   if (status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_event_enabled_set(naviframe, EINA_FALSE);
-   status = elm_naviframe_event_enabled_get(naviframe);
-   if (status != EINA_FALSE)
-     {
-        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_naviframe_event_enabled_get
- * @{
- * @objective Negative Test case 01 checks if call test function with NULL instead of the naviframe object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the naviframe object
- *
- * @procedure
- * @step 1 Call elm_naviframe_event_enabled_get() with NULL instead of the naviframe object
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_event_enabled_get_n_01)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_event_enabled_get, naviframe) == 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_elm_naviframe_event_enabled_get()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_event_enabled_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_event_enabled_get_p_01);
-   tcase_add_test(tcase, utc_elm_naviframe_event_enabled_get_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_event_enabled_get_set.c b/TC/elementary/naviframe/utc_elm_naviframe_event_enabled_get_set.c
new file mode 100644 (file)
index 0000000..6c1de33
--- /dev/null
@@ -0,0 +1,142 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *naviframe = NULL;
+
+/**
+ * @addtogroup elm_naviframe
+ * @{
+ * @defgroup elm_naviframe_event_enabled_get elm_naviframe_event_enabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a naviframe object to 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__);
+     }
+   evas_object_show(main_win);
+   naviframe = elm_naviframe_add(main_win);
+   if (naviframe == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_naviframe_event_enabled_get
+ * @{
+ * @objective Positive test case 01 checks if get the naviframe event handling option
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the naviframe object
+ *
+ * @procedure
+ * @step 1 Set the naviframe event handling option to EINA_TRUE
+ * @step 2 Get the naviframe event handling option
+ * @step 3 Set the naviframe event handling option to EINA_FALSE
+ * @step 4 Get the naviframe event handling option
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_event_enabled_get_p_01)
+{
+   Eina_Bool status = EINA_FALSE;
+   elm_naviframe_event_enabled_set(naviframe, EINA_TRUE);
+   status = elm_naviframe_event_enabled_get(naviframe);
+   if (status != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_naviframe_event_enabled_set(naviframe, EINA_FALSE);
+   status = elm_naviframe_event_enabled_get(naviframe);
+   if (status != EINA_FALSE)
+     {
+        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_naviframe_event_enabled_get
+ * @{
+ * @objective Negative Test case 01 checks if call test function with NULL instead of the naviframe object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the naviframe object
+ *
+ * @procedure
+ * @step 1 Call elm_naviframe_event_enabled_get() with NULL instead of the naviframe object
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_event_enabled_get_n_01)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_event_enabled_get, naviframe) == 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
+
+/**
+ * @addtogroup elm_naviframe_event_enabled_set
+ * @{
+ * @objective Negative Test case 01 checks if call test function with NULL instead of the naviframe object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the naviframe object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call elm_naviframe_event_enabled_set() with NULL instead of the naviframe object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_event_enabled_set_n_01)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_naviframe_event_enabled_set, naviframe, EINA_TRUE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_naviframe_event_enabled_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_naviframe_event_enabled_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_naviframe_event_enabled_get_p_01);
+   tcase_add_test(tcase, utc_elm_naviframe_event_enabled_get_n_01);
+   tcase_add_test(tcase, utc_elm_naviframe_event_enabled_set_n_01);
+   return tcase;
+}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_event_enabled_set.c b/TC/elementary/naviframe/utc_elm_naviframe_event_enabled_set.c
deleted file mode 100644 (file)
index 0734235..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_event_enabled_set elm_naviframe_event_enabled_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to 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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_event_enabled_set
- * @{
- * @objective Positive test case 01 checks if set the naviframe event handling option
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the naviframe object
- * @li EINA_TRUE / EINA_FALSE
- *
- * @procedure
- * @step 1 Set the naviframe event handling option to EINA_TRUE
- * @step 2 Get the naviframe event handling option
- * @step 3 Set the naviframe event handling option to EINA_FALSE
- * @step 4 Get the naviframe event handling option
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_event_enabled_set_p_01)
-{
-   Eina_Bool status = EINA_FALSE;
-
-   if (naviframe == NULL)
-     {
-        return;
-     }
-   elm_naviframe_event_enabled_set(naviframe, EINA_TRUE);
-   status = elm_naviframe_event_enabled_get(naviframe);
-   if (status != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_event_enabled_set(naviframe, EINA_FALSE);
-   status = elm_naviframe_event_enabled_get(naviframe);
-   if (status != EINA_FALSE)
-     {
-        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_naviframe_event_enabled_set
- * @{
- * @objective Negative Test case 01 checks if call test function with NULL instead of the naviframe object
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the naviframe object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call elm_naviframe_event_enabled_set() with NULL instead of the naviframe object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_event_enabled_set_n_01)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_naviframe_event_enabled_set, naviframe, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_naviframe_event_enabled_set()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_event_enabled_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_event_enabled_set_p_01);
-   tcase_add_test(tcase, utc_elm_naviframe_event_enabled_set_n_01);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_item_style_get.c b/TC/elementary/naviframe/utc_elm_naviframe_item_style_get.c
deleted file mode 100644 (file)
index 6013dbf..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_item_style_get elm_naviframe_item_style_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to main window
- * @step 4 Create a new naviframe item
- */
-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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-   item = elm_naviframe_item_push(naviframe, "item1", NULL, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe item..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_item_style_get
- * @{
- * @objective Positive test case checks if get an item style
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the item object
- *
- * @procedure
- * @step 1 Set the style for just pushed item
- * @step 2 Get an item style
- *
- * @passcondition Returned value is equal to "default" string and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_style_get_p)
-{
-   const char *ret = NULL;
-
-   if (item == NULL)
-     {
-        return;
-     }
-   elm_naviframe_item_style_set(item, "default");
-   ret = elm_naviframe_item_style_get(item);
-   if (ret == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
-        return;
-     }
-   if (strcmp(ret, "default") != 0)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, string comparation mismatch..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_naviframe_item_style_get
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the item object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the item object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the item object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_style_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(NULL, elm_naviframe_item_style_get, item) == 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_elm_naviframe_item_style_get()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_item_style_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_item_style_get_p);
-   tcase_add_test(tcase, utc_elm_naviframe_item_style_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_item_style_get_set.c b/TC/elementary/naviframe/utc_elm_naviframe_item_style_get_set.c
new file mode 100644 (file)
index 0000000..d6a23e3
--- /dev/null
@@ -0,0 +1,144 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *naviframe = NULL;
+static Elm_Object_Item *item = NULL;
+
+/**
+ * @addtogroup elm_naviframe
+ * @{
+ * @defgroup elm_naviframe_item_style_get elm_naviframe_item_style_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a naviframe object to main window
+ * @step 4 Create a new naviframe item
+ */
+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);
+   naviframe = elm_naviframe_add(main_win);
+   if (naviframe == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
+     }
+   item = elm_naviframe_item_push(naviframe, "item1", NULL, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe item..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_naviframe_item_style_get
+ * @{
+ * @objective Positive test case checks if get an item style
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the item object
+ *
+ * @procedure
+ * @step 1 Set the style for just pushed item
+ * @step 2 Get an item style
+ *
+ * @passcondition Returned value is equal to "default" string and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_item_style_get_p)
+{
+   const char *ret = NULL;
+   elm_naviframe_item_style_set(item, "default");
+   ret = elm_naviframe_item_style_get(item);
+   if (ret == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
+     }
+   if (strcmp(ret, "default") != 0)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, string comparation mismatch..", __FILE__, __LINE__);
+     }
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_naviframe_item_style_get
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the item object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the item object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the item object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_item_style_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(NULL, elm_naviframe_item_style_get, item) == 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
+
+/**
+ * @addtogroup elm_naviframe_item_style_set
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of valid parameters
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL, the item object
+ * @li NULL, "default" string
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of valid parameters
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_item_style_set_n)
+{
+   UNITEST_FUNC_NEG(elm_naviframe_item_style_set, item, "default");
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_naviframe_item_style_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_naviframe_item_style_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_naviframe_item_style_get_p);
+   tcase_add_test(tcase, utc_elm_naviframe_item_style_get_n);
+   tcase_add_test(tcase, utc_elm_naviframe_item_style_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_item_style_set.c b/TC/elementary/naviframe/utc_elm_naviframe_item_style_set.c
deleted file mode 100644 (file)
index 025cae0..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-static Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_item_style_set elm_naviframe_item_style_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to main window
- * @step 4 Create a new naviframe item
- */
-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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-   item = elm_naviframe_item_push(naviframe, "item1", NULL, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe item..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_item_style_set
- * @{
- * @objective Positive test case checks if set an item style
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the item object
- * @li "default" string
- *
- * @procedure
- * @step 1 Set the style for just pushed item
- * @step 2 Get an item style
- *
- * @passcondition Returned value is equal to "default" string and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_style_set_p)
-{
-   const char *ret = NULL;
-
-   if (item == NULL)
-     {
-        return;
-     }
-   elm_naviframe_item_style_set(item, "default");
-   ret = elm_naviframe_item_style_get(item);
-   if (ret == NULL)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, returned value is NULL..", __FILE__, __LINE__);
-        return;
-     }
-   if (strcmp(ret, "default") != 0)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed, string comparation mismatch..", __FILE__, __LINE__);
-        return;
-     }
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_naviframe_item_style_set
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of valid parameters
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL, the item object
- * @li NULL, "default" string
- *
- * @procedure
- * @step 1 Call test function with NULL instead of valid parameters
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_style_set_n)
-{
-   if (item == NULL)
-     {
-        return;
-     }
-   UNITEST_FUNC_NEG(elm_naviframe_item_style_set, item, "default");
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_naviframe_item_style_set()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_item_style_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_item_style_set_p);
-   tcase_add_test(tcase, utc_elm_naviframe_item_style_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_get.c b/TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_get.c
deleted file mode 100644 (file)
index a16609d..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_item_title_visible_get elm_naviframe_item_title_visible_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to main window
- * @step 4 Create a new naviframe item
- */
-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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-   item = elm_naviframe_item_push(naviframe, "item1", NULL, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe item..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_item_title_visible_get
- * @{
- * @objective Positive test case checks if get the item title visible option
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the item object
- *
- * @procedure
- * @step 1 Set the item title visible option to EINA_TRUE
- * @step 2 Get the item title visible option
- * @step 3 Set the item title visible option to EINA_FALSE
- * @step 4 Get the item title visible option
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_title_visible_get_p)
-{
-   Eina_Bool visible = EINA_FALSE;
-
-   if (item == NULL)
-     {
-        return;
-     }
-   elm_naviframe_item_title_visible_set(item, EINA_TRUE);
-   visible = elm_naviframe_item_title_visible_get(item);
-   if (visible != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_item_title_visible_set(item, EINA_FALSE);
-   visible = elm_naviframe_item_title_visible_get(item);
-   if (visible != EINA_FALSE)
-     {
-        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_naviframe_item_title_visible_get
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the item object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the item object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the item object
- *
- * @passcondition Returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_title_visible_get_n)
-{
-   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_item_title_visible_get, item) == 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_elm_naviframe_item_title_visible_get()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_item_title_visible_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_item_title_visible_get_p);
-   tcase_add_test(tcase, utc_elm_naviframe_item_title_visible_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_get_set.c b/TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_get_set.c
new file mode 100644 (file)
index 0000000..79f9a07
--- /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;
+static Evas_Object *naviframe = NULL;
+Elm_Object_Item *item = NULL;
+
+/**
+ * @addtogroup elm_naviframe
+ * @{
+ * @defgroup elm_naviframe_item_title_visible_get elm_naviframe_item_title_visible_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a naviframe object to main window
+ * @step 4 Create a new naviframe item
+ */
+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);
+   naviframe = elm_naviframe_add(main_win);
+   if (naviframe == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
+     }
+   item = elm_naviframe_item_push(naviframe, "item1", NULL, NULL, NULL, NULL);
+   if (item == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe item..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_naviframe_item_title_visible_get
+ * @{
+ * @objective Positive test case checks if get the item title visible option
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the item object
+ *
+ * @procedure
+ * @step 1 Set the item title visible option to EINA_TRUE
+ * @step 2 Get the item title visible option
+ * @step 3 Set the item title visible option to EINA_FALSE
+ * @step 4 Get the item title visible option
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_item_title_visible_get_p)
+{
+   Eina_Bool visible = EINA_FALSE;
+   elm_naviframe_item_title_visible_set(item, EINA_TRUE);
+   visible = elm_naviframe_item_title_visible_get(item);
+   if (visible != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_naviframe_item_title_visible_set(item, EINA_FALSE);
+   visible = elm_naviframe_item_title_visible_get(item);
+   if (visible != EINA_FALSE)
+     {
+        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_naviframe_item_title_visible_get
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the item object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the item object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the item object
+ *
+ * @passcondition Returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_item_title_visible_get_n)
+{
+   if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_item_title_visible_get, item) == 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
+
+/**
+ * @addtogroup elm_naviframe_item_title_visible_set
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the item object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the item object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the item object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_item_title_visible_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_naviframe_item_title_visible_set, item, EINA_TRUE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_naviframe_item_title_visible_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_naviframe_item_title_visible_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_naviframe_item_title_visible_get_p);
+   tcase_add_test(tcase, utc_elm_naviframe_item_title_visible_get_n);
+   tcase_add_test(tcase, utc_elm_naviframe_item_title_visible_set_n);
+   return tcase;
+}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_set.c b/TC/elementary/naviframe/utc_elm_naviframe_item_title_visible_set.c
deleted file mode 100644 (file)
index 41e44a1..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-Elm_Object_Item *item = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_item_title_visible_set elm_naviframe_item_title_visible_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to main window
- * @step 4 Create a new naviframe item
- */
-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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-   item = elm_naviframe_item_push(naviframe, "item1", NULL, NULL, NULL, NULL);
-   if (item == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe item..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_item_title_visible_set
- * @{
- * @objective Positive test case checks if set the item title visible option
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the item object
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Set the item title visible option to EINA_TRUE
- * @step 2 Get the item title visible option
- * @step 3 Set the item title visible option to EINA_FALSE
- * @step 4 Get the item title visible option
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_title_visible_set_p)
-{
-   Eina_Bool visible = EINA_FALSE;
-
-   if (item == NULL)
-     {
-        return;
-     }
-   elm_naviframe_item_title_visible_set(item, EINA_TRUE);
-   visible = elm_naviframe_item_title_visible_get(item);
-   if (visible != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_item_title_visible_set(item, EINA_FALSE);
-   visible = elm_naviframe_item_title_visible_get(item);
-   if (visible != EINA_FALSE)
-     {
-        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_naviframe_item_title_visible_set
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the item object
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the item object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the item object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_item_title_visible_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_naviframe_item_title_visible_set, item, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_naviframe_item_title_visible_set()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_item_title_visible_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_item_title_visible_set_p);
-   tcase_add_test(tcase, utc_elm_naviframe_item_title_visible_set_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_get.c b/TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_get.c
deleted file mode 100644 (file)
index 77cf477..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_prev_btn_auto_pushed_get elm_naviframe_prev_btn_auto_pushed_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to 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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_prev_btn_auto_pushed_get
- * @{
- * @objective Positive test case checks if get pushed state
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the naviframe object
- *
- * @procedure
- * @step 1 Set pushed state to EINA_TRUE
- * @step 2 Get pushed state
- * @step 3 Set pushed state to EINA_FALSE
- * @step 4 Get pushed state
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_prev_btn_auto_pushed_get_p)
-{
-   Eina_Bool auto_push = EINA_FALSE;
-
-   if (naviframe == NULL)
-     {
-        return;
-     }
-   naviframe = elm_naviframe_add(main_win);
-   elm_naviframe_prev_btn_auto_pushed_set(naviframe, EINA_TRUE);
-   auto_push = elm_naviframe_prev_btn_auto_pushed_get(naviframe);
-   evas_object_del(naviframe);
-   if (auto_push != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_prev_btn_auto_pushed_set(naviframe, EINA_FALSE);
-   auto_push = elm_naviframe_prev_btn_auto_pushed_get(naviframe);
-   evas_object_del(naviframe);
-   if (auto_push != EINA_FALSE)
-     {
-        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_naviframe_prev_btn_auto_pushed_get
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the naviframe object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the naviframe object
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_prev_btn_auto_pushed_get_n)
-{
-   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_prev_btn_auto_pushed_get, naviframe))
-     {
-        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_naviframe_prev_btn_auto_pushed_get()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_prev_btn_auto_pushed_get");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_prev_btn_auto_pushed_get_p);
-   tcase_add_test(tcase, utc_elm_naviframe_prev_btn_auto_pushed_get_n);
-   return tcase;
-}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_get_set.c b/TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_get_set.c
new file mode 100644 (file)
index 0000000..2a6ee30
--- /dev/null
@@ -0,0 +1,144 @@
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Evas_Object *naviframe = NULL;
+
+/**
+ * @addtogroup elm_naviframe
+ * @{
+ * @defgroup elm_naviframe_prev_btn_auto_pushed_set elm_naviframe_prev_btn_auto_pushed_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Add a naviframe object to 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__);
+     }
+   evas_object_show(main_win);
+   naviframe = elm_naviframe_add(main_win);
+   if (naviframe == NULL)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
+     }
+}
+
+static void
+teardown(void)
+{
+   if (NULL != main_win)
+     {
+        evas_object_del(main_win);
+        main_win = NULL;
+     }
+   elm_shutdown();
+   printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_naviframe_prev_btn_auto_pushed_set
+ * @{
+ * @objective Positive test case checks if set pushed state
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the naviframe object
+ * @li EINA_TRUE, EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Set pushed state to EINA_TRUE
+ * @step 2 Get pushed state
+ * @step 3 Set pushed state to EINA_FALSE
+ * @step 4 Get pushed state
+ *
+ * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_prev_btn_auto_pushed_set_p)
+{
+   Eina_Bool auto_push = EINA_FALSE;
+   elm_naviframe_prev_btn_auto_pushed_set(naviframe, EINA_TRUE);
+   auto_push = elm_naviframe_prev_btn_auto_pushed_get(naviframe);
+   if (auto_push != EINA_TRUE)
+     {
+        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+     }
+   elm_naviframe_prev_btn_auto_pushed_set(naviframe, EINA_FALSE);
+   auto_push = elm_naviframe_prev_btn_auto_pushed_get(naviframe);
+   if (auto_push != EINA_FALSE)
+     {
+        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_naviframe_prev_btn_auto_pushed_set
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the naviframe object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the naviframe object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_prev_btn_auto_pushed_set_n)
+{
+   CREATE_CHECKED_ARGS_ARRAY(1, 0);
+   UNITEST_FUNC_NEG_CA(elm_naviframe_prev_btn_auto_pushed_set, naviframe, EINA_TRUE);
+   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_naviframe_prev_btn_auto_pushed_get
+ * @{
+ * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the naviframe object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the naviframe object
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_naviframe_prev_btn_auto_pushed_get_n)
+{
+   if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_naviframe_prev_btn_auto_pushed_get, naviframe))
+     {
+        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_naviframe_prev_btn_auto_pushed_get_set()
+{
+   TCase *tcase = tcase_create("utc_elm_naviframe_prev_btn_auto_pushed_get_set");
+   tcase_set_timeout(tcase, 30);
+   tcase_add_checked_fixture(tcase, setup, teardown);
+   tcase_add_test(tcase, utc_elm_naviframe_prev_btn_auto_pushed_set_p);
+   tcase_add_test(tcase, utc_elm_naviframe_prev_btn_auto_pushed_set_n);
+   tcase_add_test(tcase, utc_elm_naviframe_prev_btn_auto_pushed_get_n);
+   return tcase;
+}
diff --git a/TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_set.c b/TC/elementary/naviframe/utc_elm_naviframe_prev_btn_auto_pushed_set.c
deleted file mode 100644 (file)
index 31d4ff3..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Evas_Object *naviframe = NULL;
-
-/**
- * @addtogroup elm_naviframe
- * @{
- * @defgroup elm_naviframe_prev_btn_auto_pushed_set elm_naviframe_prev_btn_auto_pushed_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Add a naviframe object to 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);
-   naviframe = elm_naviframe_add(main_win);
-   if (naviframe == NULL)
-     {
-   ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a naviframe object..", __FILE__, __LINE__);
-        return;
-     }
-}
-
-static void
-teardown(void)
-{
-   if (NULL != main_win)
-     {
-        evas_object_del(main_win);
-        main_win = NULL;
-     }
-   elm_shutdown();
-   printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_naviframe_prev_btn_auto_pushed_set
- * @{
- * @objective Positive test case checks if set pushed state
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the naviframe object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set pushed state to EINA_TRUE
- * @step 2 Get pushed state
- * @step 3 Set pushed state to EINA_FALSE
- * @step 4 Get pushed state
- *
- * @passcondition Returned value is equal to EINA_TRUE at step 2 and EINA_FALSE at step 4 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_prev_btn_auto_pushed_set_p)
-{
-   Eina_Bool auto_push = EINA_FALSE;
-
-   if (naviframe == NULL)
-     {
-        return;
-     }
-   elm_naviframe_prev_btn_auto_pushed_set(naviframe, EINA_TRUE);
-   auto_push = elm_naviframe_prev_btn_auto_pushed_get(naviframe);
-   if (auto_push != EINA_TRUE)
-     {
-        ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
-        return;
-     }
-   elm_naviframe_prev_btn_auto_pushed_set(naviframe, EINA_FALSE);
-   auto_push = elm_naviframe_prev_btn_auto_pushed_get(naviframe);
-   if (auto_push != EINA_FALSE)
-     {
-        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_naviframe_prev_btn_auto_pushed_set
- * @{
- * @objective Negative Test case checks if call test function with NULL instead of the naviframe object
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the naviframe object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the naviframe object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_naviframe_prev_btn_auto_pushed_set_n)
-{
-   CREATE_CHECKED_ARGS_ARRAY(1, 0);
-   UNITEST_FUNC_NEG_CA(elm_naviframe_prev_btn_auto_pushed_set, naviframe, EINA_TRUE);
-   printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_naviframe_prev_btn_auto_pushed_set()
-{
-   TCase *tcase = tcase_create("utc_elm_naviframe_prev_btn_auto_pushed_set");
-   tcase_set_timeout(tcase, 30);
-   tcase_add_checked_fixture(tcase, setup, teardown);
-   tcase_add_test(tcase, utc_elm_naviframe_prev_btn_auto_pushed_set_p);
-   tcase_add_test(tcase, utc_elm_naviframe_prev_btn_auto_pushed_set_n);
-   return tcase;
-}