utc_elm_transit_effect_translation_add.c
utc_elm_transit_effect_wipe_add.c
utc_elm_transit_effect_zoom_add.c
-utc_elm_transit_event_enabled_set.c
-utc_elm_transit_event_enabled_get.c
+utc_elm_transit_event_enabled_get_set.c
utc_elm_transit_object_add.c
utc_elm_transit_object_remove.c
utc_elm_transit_objects_get.c
-utc_elm_transit_objects_final_state_keep_set.c
-utc_elm_transit_objects_final_state_keep_get.c
-utc_elm_transit_paused_set.c
-utc_elm_transit_paused_get.c
+utc_elm_transit_objects_final_state_keep_get_set.c
+utc_elm_transit_paused_get_set.c
utc_elm_transit_progress_value_get.c
-utc_elm_transit_repeat_times_get.c
-utc_elm_transit_repeat_times_set.c
-utc_elm_transit_tween_mode_set.c
-utc_elm_transit_tween_mode_get.c
-utc_elm_transit_add.c
-utc_elm_transit_auto_reverse_set.c
-utc_elm_transit_auto_reverse_get.c
+utc_elm_transit_repeat_times_get_set.c
+utc_elm_transit_tween_mode_get_set.c
+utc_elm_transit_auto_reverse_get_set.c
utc_elm_transit_chain_transit_add.c
utc_elm_transit_chain_transits_get.c
utc_elm_transit_del.c
-utc_elm_transit_duration_set.c
-utc_elm_transit_duration_get.c
+utc_elm_transit_duration_get_set.c
utc_elm_transit_effect_blend_add.c
utc_elm_transit_effect_color_add.c
utc_elm_transit_effect_fade_add.c
utc_elm_transit_effect_del.c
utc_elm_transit_del_cb_set.c
utc_elm_transit_chain_transit_del.c
-utc_elm_transit_smooth_set.c
+utc_elm_transit_smooth_get_set.c
utc_elm_transit_tween_mode_factor_get.c
utc_elm_transit_tween_mode_factor_set.c
utc_elm_transit_tween_mode_factor_n_set.c
-utc_elm_transit_smooth_get.c
utc_elm_transit_go_in.c
\ No newline at end of file
utc_elm_transit_effect_translation_add.c
utc_elm_transit_effect_wipe_add.c
utc_elm_transit_effect_zoom_add.c
-utc_elm_transit_event_enabled_set.c
-utc_elm_transit_event_enabled_get.c
+utc_elm_transit_event_enabled_get_set.c
utc_elm_transit_object_add.c
utc_elm_transit_object_remove.c
utc_elm_transit_objects_get.c
-utc_elm_transit_objects_final_state_keep_set.c
-utc_elm_transit_objects_final_state_keep_get.c
-utc_elm_transit_paused_set.c
-utc_elm_transit_paused_get.c
+utc_elm_transit_objects_final_state_keep_get_set.c
+utc_elm_transit_paused_get_set.c
utc_elm_transit_progress_value_get.c
-utc_elm_transit_repeat_times_get.c
-utc_elm_transit_repeat_times_set.c
-utc_elm_transit_tween_mode_set.c
-utc_elm_transit_tween_mode_get.c
-utc_elm_transit_add.c
-utc_elm_transit_auto_reverse_set.c
-utc_elm_transit_auto_reverse_get.c
+utc_elm_transit_repeat_times_get_set.c
+utc_elm_transit_tween_mode_get_set.c
+utc_elm_transit_auto_reverse_get_set.c
utc_elm_transit_chain_transit_add.c
utc_elm_transit_chain_transits_get.c
utc_elm_transit_del.c
-utc_elm_transit_duration_set.c
-utc_elm_transit_duration_get.c
+utc_elm_transit_duration_get_set.c
utc_elm_transit_effect_blend_add.c
utc_elm_transit_effect_color_add.c
utc_elm_transit_effect_fade_add.c
utc_elm_transit_effect_del.c
utc_elm_transit_del_cb_set.c
utc_elm_transit_chain_transit_del.c
-utc_elm_transit_smooth_set.c
+utc_elm_transit_smooth_get_set.c
utc_elm_transit_tween_mode_factor_get.c
utc_elm_transit_tween_mode_factor_set.c
utc_elm_transit_tween_mode_factor_n_set.c
-utc_elm_transit_smooth_get.c
utc_elm_transit_go_in.c
\ No newline at end of file
utc_elm_transit_effect_translation_add.c
utc_elm_transit_effect_wipe_add.c
utc_elm_transit_effect_zoom_add.c
-utc_elm_transit_event_enabled_set.c
-utc_elm_transit_event_enabled_get.c
+utc_elm_transit_event_enabled_get_set.c
utc_elm_transit_object_add.c
utc_elm_transit_object_remove.c
utc_elm_transit_objects_get.c
-utc_elm_transit_objects_final_state_keep_set.c
-utc_elm_transit_objects_final_state_keep_get.c
-utc_elm_transit_paused_set.c
-utc_elm_transit_paused_get.c
+utc_elm_transit_objects_final_state_keep_get_set.c
+utc_elm_transit_paused_get_set.c
utc_elm_transit_progress_value_get.c
-utc_elm_transit_repeat_times_get.c
-utc_elm_transit_repeat_times_set.c
-utc_elm_transit_tween_mode_set.c
-utc_elm_transit_tween_mode_get.c
-utc_elm_transit_add.c
-utc_elm_transit_auto_reverse_set.c
-utc_elm_transit_auto_reverse_get.c
+utc_elm_transit_repeat_times_get_set.c
+utc_elm_transit_tween_mode_get_set.c
+utc_elm_transit_auto_reverse_get_set.c
utc_elm_transit_chain_transit_add.c
utc_elm_transit_chain_transits_get.c
utc_elm_transit_del.c
-utc_elm_transit_duration_set.c
-utc_elm_transit_duration_get.c
+utc_elm_transit_duration_get_set.c
utc_elm_transit_effect_blend_add.c
utc_elm_transit_effect_color_add.c
utc_elm_transit_effect_fade_add.c
utc_elm_transit_effect_del.c
utc_elm_transit_del_cb_set.c
utc_elm_transit_chain_transit_del.c
-utc_elm_transit_smooth_set.c
+utc_elm_transit_smooth_get_set.c
utc_elm_transit_tween_mode_factor_get.c
utc_elm_transit_tween_mode_factor_set.c
utc_elm_transit_tween_mode_factor_n_set.c
-utc_elm_transit_smooth_get.c
#utc_elm_transit_go_in.c
\ No newline at end of file
utc_elm_transit_effect_translation_add.c
utc_elm_transit_effect_wipe_add.c
utc_elm_transit_effect_zoom_add.c
-utc_elm_transit_event_enabled_set.c
-utc_elm_transit_event_enabled_get.c
+utc_elm_transit_event_enabled_get_set.c
utc_elm_transit_object_add.c
utc_elm_transit_object_remove.c
utc_elm_transit_objects_get.c
-utc_elm_transit_objects_final_state_keep_set.c
-utc_elm_transit_objects_final_state_keep_get.c
-utc_elm_transit_paused_set.c
-utc_elm_transit_paused_get.c
+utc_elm_transit_objects_final_state_keep_get_set.c
+utc_elm_transit_paused_get_set.c
utc_elm_transit_progress_value_get.c
-utc_elm_transit_repeat_times_get.c
-utc_elm_transit_repeat_times_set.c
-utc_elm_transit_tween_mode_set.c
-utc_elm_transit_tween_mode_get.c
-utc_elm_transit_add.c
-utc_elm_transit_auto_reverse_set.c
-utc_elm_transit_auto_reverse_get.c
+utc_elm_transit_repeat_times_get_set.c
+utc_elm_transit_tween_mode_get_set.c
+utc_elm_transit_auto_reverse_get_set.c
utc_elm_transit_chain_transit_add.c
utc_elm_transit_chain_transits_get.c
utc_elm_transit_del.c
-utc_elm_transit_duration_set.c
-utc_elm_transit_duration_get.c
+utc_elm_transit_duration_get_set.c
utc_elm_transit_effect_blend_add.c
utc_elm_transit_effect_color_add.c
utc_elm_transit_effect_fade_add.c
utc_elm_transit_effect_del.c
utc_elm_transit_del_cb_set.c
utc_elm_transit_chain_transit_del.c
-utc_elm_transit_smooth_set.c
+utc_elm_transit_smooth_get_set.c
utc_elm_transit_tween_mode_factor_get.c
utc_elm_transit_tween_mode_factor_set.c
utc_elm_transit_tween_mode_factor_n_set.c
-utc_elm_transit_smooth_get.c
#utc_elm_transit_go_in.c
\ No newline at end of file
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_add elm_transit_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__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_add
- * @{
- * @objective Positive test case checks if create a new transit
- * works properly and doesn't cause segmentation fault
- * @n Input Data: no parameters passed to function
- *
- * @procedure
- * @step 1 Create a new transit
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_add_p)
-{
- Elm_Transit *transit = NULL;
-
- transit = elm_transit_add();
- if (!transit)
- {
- 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_transit_add()
-{
- TCase *tcase = tcase_create("utc_elm_transit_add");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_add_p);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_auto_reverse_get elm_transit_auto_reverse_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_auto_reverse_get
- * @{
- * @objective Positive test case checks if get if the auto reverse is on
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the transit object
- *
- * @procedure
- * @step 1 Set automatic reverse to EINA_TRUE
- * @step 2 Get automatic reverse
- * @step 3 Set automatic reverse to EINA_FALSE
- * @step 4 Get automatic reverse
- *
- * @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_transit_auto_reverse_get_p)
-{
- Eina_Bool auto_reverse = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_auto_reverse_set(transit, EINA_TRUE);
- auto_reverse = elm_transit_auto_reverse_get(transit);
- if (auto_reverse != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_auto_reverse_set(transit, EINA_FALSE);
- auto_reverse = elm_transit_auto_reverse_get(transit);
- if (auto_reverse != 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_transit_auto_reverse_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the transit object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_auto_reverse_get_n)
-{
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_auto_reverse_get, transit) == 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_transit_auto_reverse_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_auto_reverse_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_auto_reverse_get_p);
- tcase_add_test(tcase, utc_elm_transit_auto_reverse_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Elm_Transit *transit = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_auto_reverse_get elm_transit_auto_reverse_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create a transit object
+ */
+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);
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (transit)
+ {
+ elm_transit_del(transit);
+ transit = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_auto_reverse_get
+ * @{
+ * @objective Positive test case checks if get if the auto reverse is on
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the transit object
+ *
+ * @procedure
+ * @step 1 Set automatic reverse to EINA_TRUE
+ * @step 2 Get automatic reverse
+ * @step 3 Set automatic reverse to EINA_FALSE
+ * @step 4 Get automatic reverse
+ *
+ * @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_transit_auto_reverse_get_p)
+{
+ Eina_Bool auto_reverse = EINA_FALSE;
+
+ elm_transit_auto_reverse_set(transit, EINA_TRUE);
+ auto_reverse = elm_transit_auto_reverse_get(transit);
+ if (auto_reverse != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_transit_auto_reverse_set(transit, EINA_FALSE);
+ auto_reverse = elm_transit_auto_reverse_get(transit);
+ if (auto_reverse != 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_transit_auto_reverse_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the transit object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_auto_reverse_get_n)
+{
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_auto_reverse_get, transit) == 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_transit_auto_reverse_set
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_auto_reverse_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0);
+ UNITEST_FUNC_NEG_CA(elm_transit_auto_reverse_set, transit, EINA_FALSE);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_transit_auto_reverse_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_auto_reverse_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_auto_reverse_get_p);
+ tcase_add_test(tcase, utc_elm_transit_auto_reverse_get_n);
+ tcase_add_test(tcase, utc_elm_transit_auto_reverse_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_auto_reverse_set elm_transit_auto_reverse_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_auto_reverse_set
- * @{
- * @objective Positive test case checks if set automatic reverse
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set automatic reverse to EINA_TRUE
- * @step 2 Get automatic reverse
- * @step 3 Set automatic reverse to EINA_FALSE
- * @step 4 Get automatic reverse
- *
- * @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_transit_auto_reverse_set_p)
-{
- Eina_Bool auto_reverse = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_auto_reverse_set(transit, EINA_TRUE);
- auto_reverse = elm_transit_auto_reverse_get(transit);
- if (auto_reverse != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_auto_reverse_set(transit, EINA_FALSE);
- auto_reverse = elm_transit_auto_reverse_get(transit);
- if (auto_reverse != 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_transit_auto_reverse_set
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_auto_reverse_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(elm_transit_auto_reverse_set, transit, EINA_FALSE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_auto_reverse_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_auto_reverse_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_auto_reverse_set_p);
- tcase_add_test(tcase, utc_elm_transit_auto_reverse_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_duration_get elm_transit_duration_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_duration_get
- * @{
- * @objective Positive test case checks if get the transit animation time
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the transit object
- *
- * @procedure
- * @step 1 Set duration of transit animation
- * @step 2 Get the duration of transit animation
- *
- * @passcondition Returned value is equal to 1.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_duration_get_p)
-{
- double duration = 0.0;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_duration_set(transit, 1.0);
- duration = elm_transit_duration_get(transit);
- if (fabs(duration - 1.0) > DBL_EPSILON)
- {
- 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_transit_duration_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the transit object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition Returned value is 0.0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_duration_get_n)
-{
- double duration = -1.0;
-
- duration = elm_transit_duration_get(NULL);
- if (fabs(duration) > DBL_EPSILON)
- {
- 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_transit_duration_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_duration_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_duration_get_p);
- tcase_add_test(tcase, utc_elm_transit_duration_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include <math.h>
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Elm_Transit *transit = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_duration_set elm_transit_duration_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create a transit object
+ */
+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);
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (transit)
+ {
+ elm_transit_del(transit);
+ transit = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_duration_set
+ * @{
+ * @objective Positive test case checks if set the transit animation time
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the transit object
+ * @li 1.0
+ *
+ * @procedure
+ * @step 1 Set duration of transit animation
+ * @step 2 Get the duration of transit animation
+ *
+ * @passcondition Returned value is equal to 1.0 in DBL_EPSILON range and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_duration_set_p)
+{
+ double duration = 0.0;
+
+ elm_transit_duration_set(transit, 1.0);
+ duration = elm_transit_duration_get(transit);
+ if (fabs(duration - 1.0) > DBL_EPSILON)
+ {
+ 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_transit_duration_set
+ * @{
+ * @objective Negative test case 01 checks if call test function with NULL instead of the transit object
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ * @li 1.0
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_duration_set_n)
+{
+ elm_transit_duration_set(NULL, 1.0);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_transit_duration_set
+ * @{
+ * @objective Negative test case 02 checks if call test function with negative duration
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the transit object
+ * @li -1.0
+ *
+ * @procedure
+ * @step 1 Call test function with negative duration
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_duration_set_n2)
+{
+ elm_transit_duration_set(transit, -1.0);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_transit_duration_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the transit object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition Returned value is 0.0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_duration_get_n)
+{
+ double duration = -1.0;
+
+ duration = elm_transit_duration_get(NULL);
+ if (fabs(duration) > DBL_EPSILON)
+ {
+ 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_transit_duration_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_duration_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_duration_set_p);
+ tcase_add_test(tcase, utc_elm_transit_duration_set_n);
+ tcase_add_test(tcase, utc_elm_transit_duration_set_n2);
+ tcase_add_test(tcase, utc_elm_transit_duration_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include <math.h>
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_duration_set elm_transit_duration_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_duration_set
- * @{
- * @objective Positive test case checks if set the transit animation time
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li 1.0
- *
- * @procedure
- * @step 1 Set duration of transit animation
- * @step 2 Get the duration of transit animation
- *
- * @passcondition Returned value is equal to 1.0 in DBL_EPSILON range and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_duration_set_p)
-{
- double duration = 0.0;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_duration_set(transit, 1.0);
- duration = elm_transit_duration_get(transit);
- if (fabs(duration - 1.0) > DBL_EPSILON)
- {
- 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_transit_duration_set
- * @{
- * @objective Negative test case 01 checks if call test function with NULL instead of the transit object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- * @li 1.0
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_duration_set_n)
-{
- elm_transit_duration_set(NULL, 1.0);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_transit_duration_set
- * @{
- * @objective Negative test case 02 checks if call test function with negative duration
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li -1.0
- *
- * @procedure
- * @step 1 Call test function with negative duration
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_duration_set_n2)
-{
- if (transit == NULL)
- {
- return;
- }
- elm_transit_duration_set(transit, -1.0);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_duration_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_duration_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_duration_set_p);
- tcase_add_test(tcase, utc_elm_transit_duration_set_n);
- tcase_add_test(tcase, utc_elm_transit_duration_set_n2);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_event_enabled_get elm_transit_event_enabled_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_event_enabled_get
- * @{
- * @objective Positive test case checks if get the event enabled
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the transit object
- *
- * @procedure
- * @step 1 Set the event enabled state to EINA_TRUE
- * @step 2 Get the event enabled state of transit object
- * @step 3 Set the event enabled state to EINA_FALSE
- * @step 4 Get the event enabled state of transit object
- *
- * @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_transit_event_enabled_get_p)
-{
- Eina_Bool enabled = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_event_enabled_set(transit, EINA_TRUE);
- enabled = elm_transit_event_enabled_get(transit);
- if (enabled != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_event_enabled_set(transit, EINA_FALSE);
- enabled = elm_transit_event_enabled_get(transit);
- if (enabled != 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_transit_event_enabled_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_event_enabled_get_n)
-{
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_event_enabled_get, transit) == 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_transit_event_enabled_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_event_enabled_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_event_enabled_get_p);
- tcase_add_test(tcase, utc_elm_transit_event_enabled_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Elm_Transit *transit = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_event_enabled_get elm_transit_event_enabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create a transit object
+ */
+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);
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (transit)
+ {
+ elm_transit_del(transit);
+ transit = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_event_enabled_get
+ * @{
+ * @objective Positive test case checks if get the event enabled
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the transit object
+ *
+ * @procedure
+ * @step 1 Set the event enabled state to EINA_TRUE
+ * @step 2 Get the event enabled state of transit object
+ * @step 3 Set the event enabled state to EINA_FALSE
+ * @step 4 Get the event enabled state of transit object
+ *
+ * @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_transit_event_enabled_get_p)
+{
+ Eina_Bool enabled = EINA_FALSE;
+
+ elm_transit_event_enabled_set(transit, EINA_TRUE);
+ enabled = elm_transit_event_enabled_get(transit);
+ if (enabled != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_transit_event_enabled_set(transit, EINA_FALSE);
+ enabled = elm_transit_event_enabled_get(transit);
+ if (enabled != 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_transit_event_enabled_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_event_enabled_get_n)
+{
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_event_enabled_get, transit) == 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_transit_event_enabled_set
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_event_enabled_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0);
+ UNITEST_FUNC_NEG_CA(elm_transit_event_enabled_set, transit, EINA_TRUE);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_transit_event_enabled_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_event_enabled_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_event_enabled_get_p);
+ tcase_add_test(tcase, utc_elm_transit_event_enabled_get_n);
+ tcase_add_test(tcase, utc_elm_transit_event_enabled_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_event_enabled_set elm_transit_event_enabled_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_event_enabled_set
- * @{
- * @objective Positive test case checks if set the event enabled
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the event enabled state to EINA_TRUE
- * @step 2 Get the event enabled state of transit object
- * @step 3 Set the event enabled state to EINA_FALSE
- * @step 4 Get the event enabled state of transit object
- *
- * @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_transit_event_enabled_set_p)
-{
- Eina_Bool enabled = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_event_enabled_set(transit, EINA_TRUE);
- enabled = elm_transit_event_enabled_get(transit);
- if (enabled != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_event_enabled_set(transit, EINA_FALSE);
- enabled = elm_transit_event_enabled_get(transit);
- if (enabled != 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_transit_event_enabled_set
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_event_enabled_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(elm_transit_event_enabled_set, transit, EINA_TRUE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_event_enabled_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_event_enabled_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_event_enabled_set_p);
- tcase_add_test(tcase, utc_elm_transit_event_enabled_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_objects_final_state_keep_get elm_transit_objects_final_state_keep_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_objects_final_state_keep_get
- * @{
- * @objective Positive test case checks if get the keep state value
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the transit object
- *
- * @procedure
- * @step 1 Enable keeping up the objects states
- * @step 2 Get the keep state value
- * @step 3 Disable keeping up the objects states
- * @step 4 Get the keep state value
- *
- * @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_transit_objects_final_state_keep_get_p)
-{
- Eina_Bool keep = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_objects_final_state_keep_set(transit, EINA_TRUE);
- keep = elm_transit_objects_final_state_keep_get(transit);
- if (keep != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_objects_final_state_keep_set(transit, EINA_FALSE);
- keep = elm_transit_objects_final_state_keep_get(transit);
- if (keep != 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_transit_objects_final_state_keep_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the transit object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_objects_final_state_keep_get_n)
-{
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_objects_final_state_keep_get, transit) == 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_transit_objects_final_state_keep_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_objects_final_state_keep_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_objects_final_state_keep_get_p);
- tcase_add_test(tcase, utc_elm_transit_objects_final_state_keep_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Elm_Transit *transit = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_objects_final_state_keep_get elm_transit_objects_final_state_keep_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create a transit object
+ */
+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);
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (transit)
+ {
+ elm_transit_del(transit);
+ transit = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_objects_final_state_keep_get
+ * @{
+ * @objective Positive test case checks if get the keep state value
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the transit object
+ *
+ * @procedure
+ * @step 1 Enable keeping up the objects states
+ * @step 2 Get the keep state value
+ * @step 3 Disable keeping up the objects states
+ * @step 4 Get the keep state value
+ *
+ * @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_transit_objects_final_state_keep_get_p)
+{
+ Eina_Bool keep = EINA_FALSE;
+
+ elm_transit_objects_final_state_keep_set(transit, EINA_TRUE);
+ keep = elm_transit_objects_final_state_keep_get(transit);
+ if (keep != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_transit_objects_final_state_keep_set(transit, EINA_FALSE);
+ keep = elm_transit_objects_final_state_keep_get(transit);
+ if (keep != 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_transit_objects_final_state_keep_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the transit object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_objects_final_state_keep_get_n)
+{
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_objects_final_state_keep_get, transit) == 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_transit_objects_final_state_keep_set
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_objects_final_state_keep_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0);
+ UNITEST_FUNC_NEG_CA(elm_transit_objects_final_state_keep_set, transit, EINA_TRUE);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_transit_objects_final_state_keep_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_objects_final_state_keep_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_objects_final_state_keep_get_p);
+ tcase_add_test(tcase, utc_elm_transit_objects_final_state_keep_get_n);
+ tcase_add_test(tcase, utc_elm_transit_objects_final_state_keep_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_objects_final_state_keep_set elm_transit_objects_final_state_keep_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create window object using elm_win_add
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_objects_final_state_keep_set
- * @{
- * @objective Positive test case checks if Enable/disable keeping up the objects states
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Enable keeping up the objects states
- * @step 2 Get the keep state value
- * @step 3 Disable keeping up the objects states
- * @step 4 Get the keep state value
- *
- * @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_transit_objects_final_state_keep_set_p)
-{
- Eina_Bool keep = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_objects_final_state_keep_set(transit, EINA_TRUE);
- keep = elm_transit_objects_final_state_keep_get(transit);
- if (keep != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_objects_final_state_keep_set(transit, EINA_FALSE);
- keep = elm_transit_objects_final_state_keep_get(transit);
- if (keep != 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_transit_objects_final_state_keep_set
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_objects_final_state_keep_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(elm_transit_objects_final_state_keep_set, transit, EINA_TRUE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_objects_final_state_keep_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_objects_final_state_keep_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_objects_final_state_keep_set_p);
- tcase_add_test(tcase, utc_elm_transit_objects_final_state_keep_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_paused_get elm_transit_paused_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- * @step 4 Set the duration and add resizing effects to trasit
- * @step 5 Start animation
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
- elm_transit_duration_set(transit, 1.0);
- elm_transit_effect_resizing_add(transit, 100, 100, 200, 200);
- elm_transit_go(transit);
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_paused_get
- * @{
- * @objective Positive test case checks if get the paused state
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the transit object
- *
- * @procedure
- * @step 1 Set the paused state to EINA_TRUE
- * @step 2 Get the paused state
- * @step 3 Set the paused state to EINA_FALSE
- * @step 4 Get the paused 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_transit_paused_get_p)
-{
- Eina_Bool paused = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_paused_set(transit, EINA_TRUE);
- paused = elm_transit_paused_get(transit);
- if (paused != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_paused_set(transit, EINA_FALSE);
- paused = elm_transit_paused_get(transit);
- if (paused != 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_transit_paused_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the transit object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_paused_get_n)
-{
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_paused_get, transit) == 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_transit_paused_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_paused_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_paused_get_p);
- tcase_add_test(tcase, utc_elm_transit_paused_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Elm_Transit *transit = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_paused_get elm_transit_paused_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create a transit object
+ * @step 4 Set the duration and add resizing effects to trasit
+ * @step 5 Start animation
+ */
+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);
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
+ }
+ elm_transit_duration_set(transit, 1.0);
+ elm_transit_effect_resizing_add(transit, 100, 100, 200, 200);
+ elm_transit_go(transit);
+}
+
+static void
+teardown(void)
+{
+ if (transit)
+ {
+ elm_transit_del(transit);
+ transit = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_paused_get
+ * @{
+ * @objective Positive test case checks if get the paused state
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the transit object
+ *
+ * @procedure
+ * @step 1 Set the paused state to EINA_TRUE
+ * @step 2 Get the paused state
+ * @step 3 Set the paused state to EINA_FALSE
+ * @step 4 Get the paused 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_transit_paused_get_p)
+{
+ Eina_Bool paused = EINA_FALSE;
+
+ elm_transit_paused_set(transit, EINA_TRUE);
+ paused = elm_transit_paused_get(transit);
+ if (paused != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_transit_paused_set(transit, EINA_FALSE);
+ paused = elm_transit_paused_get(transit);
+ if (paused != 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_transit_paused_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the transit object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition Returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_paused_get_n)
+{
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_paused_get, transit) == 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_transit_paused_set
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_paused_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0);
+ UNITEST_FUNC_NEG_CA(elm_transit_paused_set, transit, EINA_TRUE);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_transit_paused_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_paused_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_paused_get_p);
+ tcase_add_test(tcase, utc_elm_transit_paused_get_n);
+ tcase_add_test(tcase, utc_elm_transit_paused_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_paused_set elm_transit_paused_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- * @step 4 Set the duration and add resizing effecty to trasit
- * @step 5 Start animation
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
- elm_transit_duration_set(transit, 1.0);
- elm_transit_effect_resizing_add(transit, 100, 100, 200, 200);
- elm_transit_go(transit);
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_paused_set
- * @{
- * @objective Positive test case checks if pause the transition
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the paused state to EINA_TRUE
- * @step 2 Get the paused state
- * @step 3 Set the paused state to EINA_FALSE
- * @step 4 Get the paused 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_transit_paused_set_p)
-{
- Eina_Bool paused = EINA_FALSE;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_paused_set(transit, EINA_TRUE);
- paused = elm_transit_paused_get(transit);
- if (paused != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_paused_set(transit, EINA_FALSE);
- paused = elm_transit_paused_get(transit);
- if (paused != 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_transit_paused_set
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_paused_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(elm_transit_paused_set, transit, EINA_TRUE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_paused_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_paused_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_paused_set_p);
- tcase_add_test(tcase, utc_elm_transit_paused_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_repeat_times_get elm_transit_repeat_times_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_repeat_times_get
- * @{
- * @objective Positive test case checks if set the transit repeat count
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the transit object
- *
- * @procedure
- * @step 1 Set the repeat time
- * @step 2 Get the repeat time
- *
- * @passcondition Returned value is equal to 3 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_repeat_times_get_p)
-{
- int repeat = 0;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_repeat_times_set(transit, 3);
- repeat = elm_transit_repeat_times_get(transit);
- if (repeat != 3)
- {
- 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_transit_repeat_times_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the transit object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition Returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_repeat_times_get_n)
-{
- if (UNITEST_FUNC_NEG_RET(0, elm_transit_repeat_times_get, transit) == 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_transit_repeat_times_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_repeat_times_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_repeat_times_get_p);
- tcase_add_test(tcase, utc_elm_transit_repeat_times_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Elm_Transit *transit = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_repeat_times_set elm_transit_repeat_times_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create a transit object
+ */
+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);
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (transit)
+ {
+ elm_transit_del(transit);
+ transit = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_repeat_times_set
+ * @{
+ * @objective Positive test case checks if set the transit repeat count
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the transit object
+ * @li 3
+ *
+ * @procedure
+ * @step 1 Set the repeat time
+ * @step 2 Get the repeat time
+ *
+ * @passcondition Returned value is equal to 3 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_repeat_times_set_p)
+{
+ int repeat = 0;
+
+ elm_transit_repeat_times_set(transit, 3);
+ repeat = elm_transit_repeat_times_get(transit);
+ if (repeat != 3)
+ {
+ 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_transit_repeat_times_set
+ * @{
+ * @objective Negative test case 01 checks if call test function with NULL instead of the transit object
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ * @li 3
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_repeat_times_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0);
+ UNITEST_FUNC_NEG_CA(elm_transit_repeat_times_set, transit, 3);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_transit_repeat_times_set
+ * @{
+ * @objective Negative test case 02 checks if call test function with negative repeat count
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the transit object
+ * @li -3
+ *
+ * @procedure
+ * @step 1 Call test function with negative repeat count
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_repeat_times_set_n2)
+{
+ elm_transit_repeat_times_set(transit, -3);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_transit_repeat_times_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the transit object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition Returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_repeat_times_get_n)
+{
+ if (UNITEST_FUNC_NEG_RET(0, elm_transit_repeat_times_get, transit) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_transit_repeat_times_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_repeat_times_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_repeat_times_set_p);
+ tcase_add_test(tcase, utc_elm_transit_repeat_times_set_n);
+ tcase_add_test(tcase, utc_elm_transit_repeat_times_set_n2);
+ tcase_add_test(tcase, utc_elm_transit_repeat_times_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_repeat_times_set elm_transit_repeat_times_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_repeat_times_set
- * @{
- * @objective Positive test case checks if set the transit repeat count
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li 3
- *
- * @procedure
- * @step 1 Set the repeat time
- * @step 2 Get the repeat time
- *
- * @passcondition Returned value is equal to 3 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_repeat_times_set_p)
-{
- int repeat = 0;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_repeat_times_set(transit, 3);
- repeat = elm_transit_repeat_times_get(transit);
- if (repeat != 3)
- {
- 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_transit_repeat_times_set
- * @{
- * @objective Negative test case 01 checks if call test function with NULL instead of the transit object
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- * @li 3
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_repeat_times_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0);
- UNITEST_FUNC_NEG_CA(elm_transit_repeat_times_set, transit, 3);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_transit_repeat_times_set
- * @{
- * @objective Negative test case 02 checks if call test function with negative repeat count
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li -3
- *
- * @procedure
- * @step 1 Call test function with negative repeat count
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_repeat_times_set_n2)
-{
- if (transit == NULL)
- {
- return;
- }
- elm_transit_repeat_times_set(transit, -3);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_repeat_times_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_repeat_times_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_repeat_times_set_p);
- tcase_add_test(tcase, utc_elm_transit_repeat_times_set_n);
- tcase_add_test(tcase, utc_elm_transit_repeat_times_set_n2);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_smooth_get elm_transit_smooth_get()
- *
- *
- * @precondition
- * @step 1 Initialize elementary by calling elm_init().
- * @step 2 Add window by calling elm_win_add().
- */
-
-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;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_smooth_get
- * @{
- * @objective Positive Test case 01 checks if function works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- *
- * @procedure
- * @step 1 Set the smooth property of transit to EINA_TRUE
- * @step 2 Get the smooth property of transit
- * @step 3 Set the smooth property of transit to EINA_FALSE
- * @step 4 Get the smooth property of transit
- *
- * @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_transit_smooth_get_p_01)
-{
- Eina_Bool smooth = EINA_FALSE;
- Elm_Transit *transit = NULL;
-
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_smooth_set(transit, EINA_TRUE);
- smooth = elm_transit_smooth_get(transit);
- if (smooth != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_smooth_set(transit, EINA_FALSE);
- smooth = elm_transit_smooth_get(transit);
- if (smooth != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_del(transit);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_transit_smooth_get
- * @{
- * @objective Negative Test case 01 checks if function call with NULL
- * instead of transit parameter works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- *
- * @procedure
- * @step 1 Call elm_transit_smooth_get with invalid value instead of the transit object
- *
- * @passcondition There is no segmentation fault and function returns EINA_FALSE
- * @}
- */
-
-START_TEST(utc_elm_transit_smooth_get_n_01)
-{
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_smooth_get, transit) == 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_transit_smooth_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_smooth_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_smooth_get_p_01);
- tcase_add_test(tcase, utc_elm_transit_smooth_get_n_01);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_smooth_get elm_transit_smooth_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize elementary by calling elm_init().
+ * @step 2 Add window by calling elm_win_add().
+ */
+
+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__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_smooth_get
+ * @{
+ * @objective Positive Test case 01 checks if function works properly and doesn't cause segmentation fault
+ * @n Input Data:
+ * @li the transit object
+ *
+ * @procedure
+ * @step 1 Set the smooth property of transit to EINA_TRUE
+ * @step 2 Get the smooth property of transit
+ * @step 3 Set the smooth property of transit to EINA_FALSE
+ * @step 4 Get the smooth property of transit
+ *
+ * @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_transit_smooth_get_p_01)
+{
+ Eina_Bool smooth = EINA_FALSE;
+ Elm_Transit *transit = NULL;
+
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_transit_smooth_set(transit, EINA_TRUE);
+ smooth = elm_transit_smooth_get(transit);
+ if (smooth != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_transit_smooth_set(transit, EINA_FALSE);
+ smooth = elm_transit_smooth_get(transit);
+ if (smooth != EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_transit_del(transit);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_transit_smooth_get
+ * @{
+ * @objective Negative Test case 01 checks if function call with NULL
+ * instead of transit parameter works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ *
+ * @procedure
+ * @step 1 Call elm_transit_smooth_get with invalid value instead of the transit object
+ *
+ * @passcondition There is no segmentation fault and function returns EINA_FALSE
+ * @}
+ */
+
+START_TEST(utc_elm_transit_smooth_get_n_01)
+{
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_transit_smooth_get, transit) == 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_transit_smooth_set
+ * @{
+ * @objective Negative Test case 01 checks if function call with NULL
+ * instead of transit parameter works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the transit object
+ * @li EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Add transit
+ * @step 2 Call elm_transit_smooth_set with invalid value instead of the transit object
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_smooth_set_n_01)
+{
+ elm_transit_smooth_set(NULL, EINA_FALSE);
+ elm_transit_smooth_set(NULL, EINA_TRUE);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @}
+ */
+
+TCase * _utc_elm_transit_smooth_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_smooth_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_smooth_get_p_01);
+ tcase_add_test(tcase, utc_elm_transit_smooth_get_n_01);
+ tcase_add_test(tcase, utc_elm_transit_smooth_set_n_01);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_smooth_set elm_transit_smooth_set()
- *
- *
- * @precondition
- * @step 1 Initialize elementary by calling elm_init().
- * @step 2 Add window by calling elm_win_add().
- */
-
-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;
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_smooth_set
- * @{
- * @objective Positive Test case 01 checks if function works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li EINA_TRUE, EINA_FALSE
- *
- * @procedure
- * @step 1 Set the smooth property of transit to EINA_TRUE
- * @step 2 Get the smooth property of transit
- * @step 3 Set the smooth property of transit to EINA_FALSE
- * @step 4 Get the smooth property of transit
- *
- * @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_transit_smooth_set_p_01)
-{
- Eina_Bool smooth = EINA_FALSE;
- Elm_Transit *transit = NULL;
-
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_smooth_set(transit, EINA_TRUE);
- smooth = elm_transit_smooth_get(transit);
- if (smooth != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_smooth_set(transit, EINA_FALSE);
- smooth = elm_transit_smooth_get(transit);
- if (smooth != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- elm_transit_del(transit);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_transit_smooth_set
- * @{
- * @objective Negative Test case 01 checks if function call with NULL
- * instead of transit parameter works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the transit object
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Add transit
- * @step 2 Call elm_transit_smooth_set with invalid value instead of the transit object
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_smooth_set_n_01)
-{
- elm_transit_smooth_set(NULL, EINA_FALSE);
- elm_transit_smooth_set(NULL, EINA_TRUE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_smooth_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_smooth_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_smooth_set_p_01);
- tcase_add_test(tcase, utc_elm_transit_smooth_set_n_01);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_tween_mode_get elm_transit_tween_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_tween_mode_get
- * @{
- * @objective Positive test case checks if get the transit animation acceleration type
- * works properly and doesn't cause segmentation fault
- * @n Input Data: the transit object
- *
- * @procedure
- * @step 1 Set the tween mode
- * @step 2 Get the tween mode
- *
- * @passcondition Returned value is ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_tween_mode_get_p)
-{
- Elm_Transit_Tween_Mode mode = ELM_TRANSIT_TWEEN_MODE_LINEAR;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL);
- mode = elm_transit_tween_mode_get(transit);
- if (mode != ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL)
- {
- 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_transit_tween_mode_get
- * @{
- * @objective Negative test case checks if call test function with NULL instead of the transit object
- * works properly and doesn't cause segmentation fault
- * @n Input Data: NULL instead of the transit object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the transit object
- *
- * @passcondition Returned value is ELM_TRANSIT_TWEEN_MODE_LINEAR and there is no segmentation fault
- * Note! ELM_TRANSIT_TWEEN_MODE_LINEAR is the default value
- * @}
- */
-START_TEST(utc_elm_transit_tween_mode_get_n)
-{
- if (UNITEST_FUNC_NEG_RET(ELM_TRANSIT_TWEEN_MODE_LINEAR, elm_transit_tween_mode_get, transit) == 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_transit_tween_mode_get()
-{
- TCase *tcase = tcase_create("utc_elm_transit_tween_mode_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_tween_mode_get_p);
- tcase_add_test(tcase, utc_elm_transit_tween_mode_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+static Elm_Transit *transit = NULL;
+
+/**
+ * @addtogroup elm_transit
+ * @{
+ * @defgroup elm_transit_tween_mode_get elm_transit_tween_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ * @step 3 Create a transit object
+ */
+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);
+ transit = elm_transit_add();
+ if (transit == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (transit)
+ {
+ elm_transit_del(transit);
+ transit = NULL;
+ }
+ if (main_win)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_transit_tween_mode_get
+ * @{
+ * @objective Positive test case checks if get the transit animation acceleration type
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: the transit object
+ *
+ * @procedure
+ * @step 1 Set the tween mode
+ * @step 2 Get the tween mode
+ *
+ * @passcondition Returned value is ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_tween_mode_get_p)
+{
+ Elm_Transit_Tween_Mode mode = ELM_TRANSIT_TWEEN_MODE_LINEAR;
+
+ elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL);
+ mode = elm_transit_tween_mode_get(transit);
+ if (mode != ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL)
+ {
+ 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_transit_tween_mode_get
+ * @{
+ * @objective Negative test case checks if call test function with NULL instead of the transit object
+ * works properly and doesn't cause segmentation fault
+ * @n Input Data: NULL instead of the transit object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the transit object
+ *
+ * @passcondition Returned value is ELM_TRANSIT_TWEEN_MODE_LINEAR and there is no segmentation fault
+ * Note! ELM_TRANSIT_TWEEN_MODE_LINEAR is the default value
+ * @}
+ */
+START_TEST(utc_elm_transit_tween_mode_get_n)
+{
+ if (UNITEST_FUNC_NEG_RET(ELM_TRANSIT_TWEEN_MODE_LINEAR, elm_transit_tween_mode_get, transit) == 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_transit_tween_mode_set
+ * @{
+ * @objective Negative test case checks if call test function with invalid parameters
+ * doesn't cause segmentation fault
+ * @n Input Data:
+ * @li NULL, the transit object
+ * @li ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, ELM_TRANSIT_TWEEN_MODE_LINEAR - 1
+ *
+ * @procedure
+ * @step 1 Call test function with invalid parameters
+ * Note! ELM_TRANSIT_TWEEN_MODE_LINEAR is the min value of Elm_Transit_Tween_Mode enum type
+ *
+ * @passcondition There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_transit_tween_mode_set_n)
+{
+ elm_transit_tween_mode_set(NULL, ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL);
+ elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_LINEAR - 1);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_transit_tween_mode_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_transit_tween_mode_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_transit_tween_mode_get_p);
+ tcase_add_test(tcase, utc_elm_transit_tween_mode_get_n);
+ tcase_add_test(tcase, utc_elm_transit_tween_mode_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-static Elm_Transit *transit = NULL;
-
-/**
- * @addtogroup elm_transit
- * @{
- * @defgroup elm_transit_tween_mode_set elm_transit_tween_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- * @step 3 Create a transit object
- */
-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);
- transit = elm_transit_add();
- if (transit == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a transit object..", __FILE__, __LINE__);
- return;
- }
-}
-
-static void
-teardown(void)
-{
- if (transit)
- {
- elm_transit_del(transit);
- transit = NULL;
- }
- if (main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_transit_tween_mode_set
- * @{
- * @objective Positive test case checks if set the transit animation acceleration type
- * works properly and doesn't cause segmentation fault
- * @n Input Data:
- * @li the transit object
- * @li ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL
- *
- * @procedure
- * @step 1 Set the tween mode
- * @step 2 Get the tween mode
- *
- * @passcondition Returned value is ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_tween_mode_set_p)
-{
- Elm_Transit_Tween_Mode mode = ELM_TRANSIT_TWEEN_MODE_LINEAR;
-
- if (transit == NULL)
- {
- return;
- }
- elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL);
- mode = elm_transit_tween_mode_get(transit);
- if (mode != ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL)
- {
- 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_transit_tween_mode_set
- * @{
- * @objective Negative test case checks if call test function with invalid parameters
- * doesn't cause segmentation fault
- * @n Input Data:
- * @li NULL, the transit object
- * @li ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL, ELM_TRANSIT_TWEEN_MODE_LINEAR - 1
- *
- * @procedure
- * @step 1 Call test function with invalid parameters
- * Note! ELM_TRANSIT_TWEEN_MODE_LINEAR is the min value of Elm_Transit_Tween_Mode enum type
- *
- * @passcondition There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_transit_tween_mode_set_n)
-{
- if (transit == NULL)
- {
- return;
- }
- elm_transit_tween_mode_set(NULL, ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL);
- elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_LINEAR - 1);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_transit_tween_mode_set()
-{
- TCase *tcase = tcase_create("utc_elm_transit_tween_mode_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_transit_tween_mode_set_p);
- tcase_add_test(tcase, utc_elm_transit_tween_mode_set_n);
- return tcase;
-}