-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
utc_elm_mapbuf_point_color_get.c
utc_elm_mapbuf_point_color_set.c
utc_elm_mapbuf_auto.c
\ No newline at end of file
-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
utc_elm_mapbuf_point_color_get.c
utc_elm_mapbuf_point_color_set.c
utc_elm_mapbuf_auto.c
\ No newline at end of file
-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
utc_elm_mapbuf_point_color_get.c
utc_elm_mapbuf_point_color_set.c
#utc_elm_mapbuf_auto.c
\ No newline at end of file
-utc_elm_mapbuf_add.c
-utc_elm_mapbuf_alpha_get.c
-utc_elm_mapbuf_alpha_set.c
-utc_elm_mapbuf_enabled_get.c
-utc_elm_mapbuf_enabled_set.c
-utc_elm_mapbuf_smooth_get.c
-utc_elm_mapbuf_smooth_set.c
+utc_elm_mapbuf_alpha_get_set.c
+utc_elm_mapbuf_enabled_get_set.c
+utc_elm_mapbuf_smooth_get_set.c
utc_elm_mapbuf_point_color_get.c
utc_elm_mapbuf_point_color_set.c
#utc_elm_mapbuf_auto.c
\ No newline at end of file
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_add elm_mapbuf_add()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create 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)
- {
- startup_status = EINA_TRUE;
- }
- }
-}
-
-static void
-teardown(void)
-{
- if (NULL != main_win)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_add
- * @{
- * @objective Positive test case checks that the tested function successfully adds a new mapbuf widget to the given parent object.
- * @n Input Data: the parent object initialized in startup.
- *
- * @procedure
- * @step 1 Add a mapbuf widget to the main window.
- * @step 2 Check returned handle of widget.
- * @step 3 Delete mapbuf widget.
- *
- * @passcondition
- * Function must return nonnull mapbuf widget, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_add_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- Evas_Object *mapbuf = NULL;
-
- mapbuf = elm_mapbuf_add(main_win);
-
- if (mapbuf == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(mapbuf);
-}
-END_TEST
-
-/**
- * @addtogroup elm_mapbuf_add
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: the parent object initialized in startup (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the parent window object.
- *
- * @passcondition
- * Tested function must return NULL, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_add_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- if (UNITEST_FUNC_NEG_RET(NULL, elm_mapbuf_add, main_win) == 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_mapbuf_add()
-{
- TCase *tcase = tcase_create("utc_elm_mapbuf_add");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_mapbuf_add_p);
- tcase_add_test(tcase, utc_elm_mapbuf_add_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_alpha_get elm_mapbuf_alpha_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- mapbuf = elm_mapbuf_add(main_win);
- if (mapbuf != NULL)
- {
- startup_status = EINA_TRUE;
- elm_win_resize_object_add(main_win, mapbuf);
- evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
- }
- }
- }
-}
-
-static void
-teardown(void)
-{
- if (mapbuf != NULL)
- {
- evas_object_del(mapbuf);
- mapbuf = NULL;
- }
-
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
-
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_alpha_get
- * @{
- * @objective Positive test case checks that the tested function successfully retrieves a value of alpha blending.
- * @n Input Data: given mapbuf object.
- *
- * @procedure
- * @step 1 Turn on alpha blending for the given map.
- * @step 2 Get current value of alpha blending.
- * @step 3 Turn off alpha blending for the given map.
- * @step 4 Get current value of alpha blending.
- *
- * @passcondition
- * Tested function must return EINA_TRUE in first case (when alpha blending is turned on), and it must return EINA_FALSE in second case (when alpha blending is turned off). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_alpha_get_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool ok = EINA_FALSE;
-
- elm_mapbuf_alpha_set(mapbuf, EINA_TRUE);
- if (elm_mapbuf_alpha_get(mapbuf) == EINA_TRUE)
- {
- elm_mapbuf_alpha_set(mapbuf, EINA_FALSE);
- if (elm_mapbuf_alpha_get(mapbuf) == EINA_FALSE)
- {
- ok = EINA_TRUE;
- }
- }
-
- if (ok != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_mapbuf_alpha_get
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_alpha_get_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_alpha_get, mapbuf) == 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_mapbuf_alpha_get()
-{
- TCase *tcase = tcase_create("utc_elm_mapbuf_alpha_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_mapbuf_alpha_get_p);
- tcase_add_test(tcase, utc_elm_mapbuf_alpha_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Evas_Object *main_win = NULL;
+static Evas_Object *mapbuf = NULL;
+
+/**
+ * @addtogroup elm_mapbuf
+ * @{
+ * @defgroup elm_mapbuf_alpha_set elm_mapbuf_alpha_set()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ * @step 3 Add a new mapbuf widget to the main window
+ * @step 4 Resize and set hints for mapbuf
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ {
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win != NULL)
+ {
+ mapbuf = elm_mapbuf_add(main_win);
+ if (mapbuf != NULL)
+ {
+ startup_status = EINA_TRUE;
+ elm_win_resize_object_add(main_win, mapbuf);
+ evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ }
+ }
+ }
+}
+
+static void
+teardown(void)
+{
+ if (mapbuf != NULL)
+ {
+ evas_object_del(mapbuf);
+ mapbuf = NULL;
+ }
+
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_mapbuf_alpha_set
+ * @{
+ * @objective Positive test case checks that the tested function successfully sets a value of alpha blending.
+ * @n Input Data:
+ * @li given mapbuf object;
+ * @li alpha blending (EINA_TRUE in first case, and EINA_FALSE in second case).
+ *
+ * @procedure
+ * @step 1 Set alpha flag for map rendering to EINA_TRUE
+ * @step 2 Get alpha flag for map rendering
+ * @step 3 Set alpha flag for map rendering to EINA_FALSE
+ * @step 4 Get alpha flag for map rendering
+ *
+ * @passcondition
+ * In first case the tested function must return EINA_TRUE, and in second case the tested function must return EINA_FALSE. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_elm_mapbuf_alpha_set_p)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool alpha1 = EINA_FALSE;
+ Eina_Bool alpha2 = EINA_TRUE;
+
+ elm_mapbuf_alpha_set(mapbuf, EINA_TRUE);
+ alpha1 = elm_mapbuf_alpha_get(mapbuf);
+
+ elm_mapbuf_alpha_set(mapbuf, EINA_FALSE);
+ alpha2 = elm_mapbuf_alpha_get(mapbuf);
+
+ if (alpha1 != EINA_TRUE || alpha2 != 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_mapbuf_alpha_set
+ * @{
+ * @objective Negative test case checks situation if first argument is NULL
+ * @n Input Data:
+ * @li given mapbuf object (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_alpha_set_n)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ CREATE_CHECKED_ARGS_ARRAY(1,0);
+ UNITEST_FUNC_NEG_CA(elm_mapbuf_alpha_set, mapbuf, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_mapbuf_alpha_get
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_alpha_get_n)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_alpha_get, mapbuf) == 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_mapbuf_add
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: the parent object initialized in startup (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the parent window object.
+ *
+ * @passcondition
+ * Tested function must return NULL, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_add_n)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(NULL, elm_mapbuf_add, main_win) == 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_mapbuf_alpha_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_mapbuf_alpha_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_p);
+ tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_n);
+ tcase_add_test(tcase, utc_elm_mapbuf_alpha_get_n);
+ tcase_add_test(tcase, utc_elm_mapbuf_add_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_alpha_set elm_mapbuf_alpha_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- mapbuf = elm_mapbuf_add(main_win);
- if (mapbuf != NULL)
- {
- startup_status = EINA_TRUE;
- elm_win_resize_object_add(main_win, mapbuf);
- evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
- }
- }
- }
-}
-
-static void
-teardown(void)
-{
- if (mapbuf != NULL)
- {
- evas_object_del(mapbuf);
- mapbuf = NULL;
- }
-
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_alpha_set
- * @{
- * @objective Positive test case checks that the tested function successfully sets a value of alpha blending.
- * @n Input Data:
- * @li given mapbuf object;
- * @li alpha blending (EINA_TRUE in first case, and EINA_FALSE in second case).
- *
- * @procedure
- * @step 1 Set alpha flag for map rendering to EINA_TRUE
- * @step 2 Get alpha flag for map rendering
- * @step 3 Set alpha flag for map rendering to EINA_FALSE
- * @step 4 Get alpha flag for map rendering
- *
- * @passcondition
- * In first case the tested function must return EINA_TRUE, and in second case the tested function must return EINA_FALSE. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_alpha_set_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool alpha1 = EINA_FALSE;
- Eina_Bool alpha2 = EINA_TRUE;
-
- elm_mapbuf_alpha_set(mapbuf, EINA_TRUE);
- alpha1 = elm_mapbuf_alpha_get(mapbuf);
-
- elm_mapbuf_alpha_set(mapbuf, EINA_FALSE);
- alpha2 = elm_mapbuf_alpha_get(mapbuf);
-
- if (alpha1 != EINA_TRUE || alpha2 != 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_mapbuf_alpha_set
- * @{
- * @objective Negative test case checks situation if first argument is NULL
- * @n Input Data:
- * @li given mapbuf object (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_alpha_set_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- CREATE_CHECKED_ARGS_ARRAY(1,0);
- UNITEST_FUNC_NEG_CA(elm_mapbuf_alpha_set, mapbuf, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_mapbuf_alpha_set()
-{
- TCase *tcase = tcase_create("utc_elm_mapbuf_alpha_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_p);
- tcase_add_test(tcase, utc_elm_mapbuf_alpha_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_enabled_get elm_mapbuf_enabled_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- mapbuf = elm_mapbuf_add(main_win);
- if (mapbuf != NULL)
- {
- startup_status = EINA_TRUE;
- elm_win_resize_object_add(main_win, mapbuf);
- evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
- }
- }
- }
-}
-
-static void
-teardown(void)
-{
- if (mapbuf != NULL)
- {
- evas_object_del(mapbuf);
- mapbuf = NULL;
- }
-
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
-
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_enabled_get
- * @{
- * @objective Positive test case checks that the tested function retrieves a value whether map is enabled or not.
- * @n Input Data: given mapbuf object.
- *
- * @procedure
- * @step 1 Enable the map.
- * @step 2 Get value whether map is enabled or not.
- * @step 3 Disable the map.
- * @step 4 Get value whether map is enabled or not.
- *
- * @passcondition
- * Tested function must return EINA_TRUE in first case (when map is enabled), and it must return EINA_FALSE in second case (when map is disabled). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_enabled_get_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool ok = EINA_FALSE;
-
- elm_mapbuf_enabled_set(mapbuf, EINA_TRUE);
- if (elm_mapbuf_enabled_get(mapbuf) == EINA_TRUE)
- {
- elm_mapbuf_enabled_set(mapbuf, EINA_FALSE);
- if (elm_mapbuf_enabled_get(mapbuf) == EINA_FALSE)
- {
- ok = EINA_TRUE;
- }
- }
-
- if (ok != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_mapbuf_enabled_get
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_enabled_get_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_enabled_get, mapbuf) == 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_mapbuf_enabled_get()
-{
- TCase *tcase = tcase_create("utc_elm_mapbuf_enabled_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_p);
- tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Evas_Object *main_win = NULL;
+static Evas_Object *mapbuf = NULL;
+
+/**
+ * @addtogroup elm_mapbuf
+ * @{
+ * @defgroup elm_mapbuf_enabled_get elm_mapbuf_enabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ * @step 3 Add a new mapbuf widget to the main window
+ * @step 4 Resize and set hints for mapbuf
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ {
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win != NULL)
+ {
+ mapbuf = elm_mapbuf_add(main_win);
+ if (mapbuf != NULL)
+ {
+ startup_status = EINA_TRUE;
+ elm_win_resize_object_add(main_win, mapbuf);
+ evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ }
+ }
+ }
+}
+
+static void
+teardown(void)
+{
+ if (mapbuf != NULL)
+ {
+ evas_object_del(mapbuf);
+ mapbuf = NULL;
+ }
+
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_mapbuf_enabled_get
+ * @{
+ * @objective Positive test case checks that the tested function retrieves a value whether map is enabled or not.
+ * @n Input Data: given mapbuf object.
+ *
+ * @procedure
+ * @step 1 Enable the map.
+ * @step 2 Get value whether map is enabled or not.
+ * @step 3 Disable the map.
+ * @step 4 Get value whether map is enabled or not.
+ *
+ * @passcondition
+ * Tested function must return EINA_TRUE in first case (when map is enabled), and it must return EINA_FALSE in second case (when map is disabled). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_elm_mapbuf_enabled_get_p)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool ok = EINA_FALSE;
+
+ elm_mapbuf_enabled_set(mapbuf, EINA_TRUE);
+ if (elm_mapbuf_enabled_get(mapbuf) == EINA_TRUE)
+ {
+ elm_mapbuf_enabled_set(mapbuf, EINA_FALSE);
+ if (elm_mapbuf_enabled_get(mapbuf) == EINA_FALSE)
+ {
+ ok = EINA_TRUE;
+ }
+ }
+
+ if (ok != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_mapbuf_enabled_get
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: given mapbuf object (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_enabled_get_n)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_enabled_get, mapbuf) == 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_mapbuf_enabled_set
+ * @{
+ * @objective Negative test case checks situation if first argument of tested function is NULL.
+ * @n Input Data:
+ * @li given mapbuf object (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_enabled_set_n)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ CREATE_CHECKED_ARGS_ARRAY(1,0);
+ UNITEST_FUNC_NEG_CA(elm_mapbuf_enabled_set, mapbuf, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_mapbuf_enabled_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_mapbuf_enabled_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_p);
+ tcase_add_test(tcase, utc_elm_mapbuf_enabled_get_n);
+ tcase_add_test(tcase, utc_elm_mapbuf_enabled_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_enabled_set elm_mapbuf_enabled_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- mapbuf = elm_mapbuf_add(main_win);
- if (mapbuf != NULL)
- {
- startup_status = EINA_TRUE;
- elm_win_resize_object_add(main_win, mapbuf);
- evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
- }
- }
- }
-}
-
-static void
-teardown(void)
-{
- if (mapbuf != NULL)
- {
- evas_object_del(mapbuf);
- mapbuf = NULL;
- }
-
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
-
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_enabled_set
- * @{
- * @objective Positive test case checks that the tested function sets a value whether map is enabled or not.
- * @n Input Data:
- * @li given mapbuf object;
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Enable the map.
- * @step 2 Get value whether map is enabled or not.
- * @step 3 Disable the map.
- * @step 4 Get value whether map is enabled or not.
- *
- * @passcondition
- * Tested function must set EINA_TRUE in first case (consequently map becomes enabled), and it must set EINA_FALSE in second case (consequently map becomes disabled). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_enabled_set_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool ok = EINA_FALSE;
-
- elm_mapbuf_enabled_set(mapbuf, EINA_TRUE);
- if (elm_mapbuf_enabled_get(mapbuf) == EINA_TRUE)
- {
- elm_mapbuf_enabled_set(mapbuf, EINA_FALSE);
- if (elm_mapbuf_enabled_get(mapbuf) == EINA_FALSE)
- {
- ok = EINA_TRUE;
- }
- }
-
- if (ok != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_mapbuf_enabled_set
- * @{
- * @objective Negative test case checks situation if first argument of tested function is NULL.
- * @n Input Data:
- * @li given mapbuf object (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_enabled_set_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- CREATE_CHECKED_ARGS_ARRAY(1,0);
- UNITEST_FUNC_NEG_CA(elm_mapbuf_enabled_set, mapbuf, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_mapbuf_enabled_set()
-{
- TCase *tcase = tcase_create("utc_elm_mapbuf_enabled_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_mapbuf_enabled_set_p);
- tcase_add_test(tcase, utc_elm_mapbuf_enabled_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_smooth_get elm_mapbuf_smooth_get()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- mapbuf = elm_mapbuf_add(main_win);
- if (mapbuf != NULL)
- {
- startup_status = EINA_TRUE;
- elm_win_resize_object_add(main_win, mapbuf);
- evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
- }
- }
- }
-}
-
-static void
-teardown(void)
-{
- if (mapbuf != NULL)
- {
- evas_object_del(mapbuf);
- mapbuf = NULL;
- }
-
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
-
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_smooth_get
- * @{
- * @objective Positive test case checks that the tested function retrieves a value whether map is smoothed or not.
- * @n Input Data: given mapbuf object.
- *
- * @procedure
- * @step 1 Turn on smoothing of the map.
- * @step 2 Get value whether map is smoothed or not.
- * @step 3 Turn off smoothing of the map.
- * @step 4 Get value whether map is smoothed or not.
- *
- * @passcondition
- * Tested function must return EINA_TRUE in first case (when map is smoothed), and it must return EINA_FALSE in second case (when map is not smoothed). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_smooth_get_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool ok = EINA_FALSE;
-
- elm_mapbuf_smooth_set(mapbuf, EINA_TRUE);
- if (elm_mapbuf_smooth_get(mapbuf) == EINA_TRUE)
- {
- elm_mapbuf_smooth_set(mapbuf, EINA_FALSE);
- if (elm_mapbuf_smooth_get(mapbuf) == EINA_FALSE)
- {
- ok = EINA_TRUE;
- }
- }
-
- if (ok != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_mapbuf_smooth_get
- * @{
- * @objective Negative test case checks situation if argument of tested function is NULL.
- * @n Input Data: NULL instead of the mapbuf object
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_smooth_get_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_smooth_get, mapbuf) == 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_mapbuf_smooth_get()
-{
- TCase *tcase = tcase_create("utc_elm_mapbuf_smooth_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_p);
- tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Evas_Object *main_win = NULL;
+static Evas_Object *mapbuf = NULL;
+
+/**
+ * @addtogroup elm_mapbuf
+ * @{
+ * @defgroup elm_mapbuf_smooth_get elm_mapbuf_smooth_get()
+ *
+ * @precondition
+ * @step 1 Initialize elementary
+ * @step 2 Create a main window
+ * @step 3 Add a new mapbuf widget to the main window
+ * @step 4 Resize and set hints for mapbuf
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ {
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win != NULL)
+ {
+ mapbuf = elm_mapbuf_add(main_win);
+ if (mapbuf != NULL)
+ {
+ startup_status = EINA_TRUE;
+ elm_win_resize_object_add(main_win, mapbuf);
+ evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ }
+ }
+ }
+}
+
+static void
+teardown(void)
+{
+ if (mapbuf != NULL)
+ {
+ evas_object_del(mapbuf);
+ mapbuf = NULL;
+ }
+
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_mapbuf_smooth_get
+ * @{
+ * @objective Positive test case checks that the tested function retrieves a value whether map is smoothed or not.
+ * @n Input Data: given mapbuf object.
+ *
+ * @procedure
+ * @step 1 Turn on smoothing of the map.
+ * @step 2 Get value whether map is smoothed or not.
+ * @step 3 Turn off smoothing of the map.
+ * @step 4 Get value whether map is smoothed or not.
+ *
+ * @passcondition
+ * Tested function must return EINA_TRUE in first case (when map is smoothed), and it must return EINA_FALSE in second case (when map is not smoothed). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_elm_mapbuf_smooth_get_p)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool ok = EINA_FALSE;
+
+ elm_mapbuf_smooth_set(mapbuf, EINA_TRUE);
+ if (elm_mapbuf_smooth_get(mapbuf) == EINA_TRUE)
+ {
+ elm_mapbuf_smooth_set(mapbuf, EINA_FALSE);
+ if (elm_mapbuf_smooth_get(mapbuf) == EINA_FALSE)
+ {
+ ok = EINA_TRUE;
+ }
+ }
+
+ if (ok != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_mapbuf_smooth_get
+ * @{
+ * @objective Negative test case checks situation if argument of tested function is NULL.
+ * @n Input Data: NULL instead of the mapbuf object
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_smooth_get_n)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_mapbuf_smooth_get, mapbuf) == 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_mapbuf_smooth_set
+ * @{
+ * @objective Negative test case checks situation if first argument of tested function is NULL.
+ * @n Input Data:
+ * @li given mapbuf object (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Call test function with NULL instead of the mapbuf object.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+START_TEST(utc_elm_mapbuf_smooth_set_n)
+{
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ CREATE_CHECKED_ARGS_ARRAY(1,0);
+ UNITEST_FUNC_NEG_CA(elm_mapbuf_smooth_set, mapbuf, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_mapbuf_smooth_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_mapbuf_smooth_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_p);
+ tcase_add_test(tcase, utc_elm_mapbuf_smooth_get_n);
+ tcase_add_test(tcase, utc_elm_mapbuf_smooth_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Evas_Object *main_win = NULL;
-static Evas_Object *mapbuf = NULL;
-
-/**
- * @addtogroup elm_mapbuf
- * @{
- * @defgroup elm_mapbuf_smooth_set elm_mapbuf_smooth_set()
- *
- * @precondition
- * @step 1 Initialize elementary
- * @step 2 Create a main window
- * @step 3 Add a new mapbuf widget to the main window
- * @step 4 Resize and set hints for mapbuf
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- {
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win != NULL)
- {
- mapbuf = elm_mapbuf_add(main_win);
- if (mapbuf != NULL)
- {
- startup_status = EINA_TRUE;
- elm_win_resize_object_add(main_win, mapbuf);
- evas_object_size_hint_weight_set(mapbuf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(mapbuf, EVAS_HINT_FILL, EVAS_HINT_FILL);
- }
- }
- }
-}
-
-static void
-teardown(void)
-{
- if (mapbuf != NULL)
- {
- evas_object_del(mapbuf);
- mapbuf = NULL;
- }
-
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
-
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_mapbuf_smooth_set
- * @{
- * @objective Positive test case checks that the tested function sets a value whether map is smoothed or not.
- * @n Input Data:
- * @li given mapbuf object;
- * @li EINA_TRUE/EINA_FALSE.
- *
- * @procedure
- * @step 1 Turn on smoothing of the map.
- * @step 2 Get value whether map is smoothed or not.
- * @step 3 Turn off smoothing of the map.
- * @step 4 Get value whether map is smoothed or not.
- *
- * @passcondition
- * Tested function must set EINA_TRUE in first case (consequently map becomes smoothed), and it must set EINA_FALSE in second case (consequently map becomes no smoothed). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_elm_mapbuf_smooth_set_p)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- Eina_Bool ok = EINA_FALSE;
-
- elm_mapbuf_smooth_set(mapbuf, EINA_TRUE);
- if (elm_mapbuf_smooth_get(mapbuf) == EINA_TRUE)
- {
- elm_mapbuf_smooth_set(mapbuf, EINA_FALSE);
- if (elm_mapbuf_smooth_get(mapbuf) == EINA_FALSE)
- {
- ok = EINA_TRUE;
- }
- }
-
- if (ok != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_mapbuf_smooth_set
- * @{
- * @objective Negative test case checks situation if first argument of tested function is NULL.
- * @n Input Data:
- * @li given mapbuf object (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Call test function with NULL instead of the mapbuf object.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-START_TEST(utc_elm_mapbuf_smooth_set_n)
-{
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- return;
- }
-
- CREATE_CHECKED_ARGS_ARRAY(1,0);
- UNITEST_FUNC_NEG_CA(elm_mapbuf_smooth_set, mapbuf, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_mapbuf_smooth_set()
-{
- TCase *tcase = tcase_create("utc_elm_mapbuf_smooth_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_mapbuf_smooth_set_p);
- tcase_add_test(tcase, utc_elm_mapbuf_smooth_set_n);
- return tcase;
-}