utc_ecore_evas_activate.c
utc_ecore_evas_alpha_get.c
utc_ecore_evas_alpha_set.c
-utc_ecore_evas_app_comp_sync_get.c
-utc_ecore_evas_app_comp_sync_set.c
-utc_ecore_evas_aspect_get.c
-utc_ecore_evas_aspect_set.c
+utc_ecore_evas_app_comp_sync_get_set.c
+utc_ecore_evas_aspect_get_set.c
#utc_ecore_evas_aux_hint.c
-#utc_ecore_evas_avoid_damage_get.c
-#utc_ecore_evas_avoid_damage_set.c
-utc_ecore_evas_borderless_get.c
-utc_ecore_evas_borderless_set.c
+#utc_ecore_evas_avoid_damage_get_set.c
+utc_ecore_evas_borderless_get_set.c
utc_ecore_evas_callback_delete_request_set.c
utc_ecore_evas_callback_destroy_set.c
utc_ecore_evas_callback_focus_in_set.c
utc_ecore_evas_callback_state_change_set.c
#utc_ecore_evas_callback_sticky_set.c
#utc_ecore_evas_callback_unsticky_set.c
-utc_ecore_evas_comp_sync_get.c
-utc_ecore_evas_comp_sync_set.c
-utc_ecore_evas_cursor_get.c
-utc_ecore_evas_cursor_set.c
+utc_ecore_evas_comp_sync_get_set.c
+utc_ecore_evas_cursor_get_set.c
utc_ecore_evas_cursor_unset.c
utc_ecore_evas_data_get.c
utc_ecore_evas_data_set.c
-#utc_ecore_evas_demand_attention_get.c
-#utc_ecore_evas_demand_attention_set.c
-utc_ecore_evas_draw_frame_get.c
-utc_ecore_evas_draw_frame_set.c
+#utc_ecore_evas_demand_attention_get_set.c
+utc_ecore_evas_draw_frame_get_set.c
utc_ecore_evas_ecore_evas_get.c
utc_ecore_evas_ecore_evas_list_get.c
utc_ecore_evas_engine_name_get.c
utc_ecore_evas_free.c
utc_ecore_evas_focus_get.c
utc_ecore_evas_focus_set.c
-utc_ecore_evas_focus_skip_get.c
-utc_ecore_evas_focus_skip_set.c
-utc_ecore_evas_fullscreen_get.c
-utc_ecore_evas_fullscreen_set.c
+utc_ecore_evas_focus_skip_get_set.c
+utc_ecore_evas_fullscreen_get_set.c
utc_ecore_evas_geometry_get.c
utc_ecore_evas_get.c
utc_ecore_evas_hide.c
-utc_ecore_evas_iconified_get.c
-utc_ecore_evas_iconified_set.c
+utc_ecore_evas_iconified_get_set.c
utc_ecore_evas_init.c
utc_ecore_evas_manual_render.c
-utc_ecore_evas_manual_render_get.c
-utc_ecore_evas_manual_render_set.c
-utc_ecore_evas_maximized_get.c
-utc_ecore_evas_maximized_set.c
+utc_ecore_evas_manual_render_get_set.c
+utc_ecore_evas_maximized_get_set.c
utc_ecore_evas_move.c
utc_ecore_evas_move_resize.c
#utc_ecore_evas_managed_move.c
utc_ecore_evas_msg_parent_send.c
utc_ecore_evas_msg_send.c
-utc_ecore_evas_name_class_get.c
-utc_ecore_evas_name_class_set.c
+utc_ecore_evas_name_class_get_set.c
utc_ecore_evas_new.c
utc_ecore_evas_object_cursor_set.c
utc_ecore_evas_request_geometry_get.c
utc_ecore_evas_resize.c
-utc_ecore_evas_rotation_get.c
-utc_ecore_evas_rotation_set.c
+utc_ecore_evas_rotation_get_set.c
utc_ecore_evas_rotation_with_resize_set.c
utc_ecore_evas_screen_geometry_get.c
-#utc_ecore_evas_shaped_get.c
-#utc_ecore_evas_shaped_set.c
+#utc_ecore_evas_shaped_get_set.c
utc_ecore_evas_show.c
utc_ecore_evas_shutdown.c
-utc_ecore_evas_size_base_get.c
-utc_ecore_evas_size_base_set.c
-utc_ecore_evas_size_max_get.c
-utc_ecore_evas_size_max_set.c
-utc_ecore_evas_size_min_get.c
-utc_ecore_evas_size_min_set.c
+utc_ecore_evas_size_base_get_set.c
+utc_ecore_evas_size_max_get_set.c
+utc_ecore_evas_size_min_get_set.c
utc_ecore_evas_size_step_get.c
utc_ecore_evas_size_step_set.c
utc_ecore_evas_stack.c
-#utc_ecore_evas_sticky_get.c
-#utc_ecore_evas_sticky_set.c
-utc_ecore_evas_title_get.c
-utc_ecore_evas_title_set.c
-utc_ecore_evas_transparent_get.c
-utc_ecore_evas_transparent_set.c
+#utc_ecore_evas_sticky_get_set.c
+utc_ecore_evas_title_get_set.c
+utc_ecore_evas_transparent_get_set.c
utc_ecore_evas_visibility_get.c
utc_ecore_evas_window_get.c
utc_ecore_evas_ignore_events.c
utc_ecore_evas_wm_rotation.c
utc_ecore_evas_screen_dpi_get.c
-#utc_ecore_evas_modal_set.c
-#utc_ecore_evas_modal_get.c
-#utc_ecore_evas_override_set.c
-#utc_ecore_evas_override_get.c
-#utc_ecore_evas_urgent_set.c
-#utc_ecore_evas_urgent_get.c
-utc_ecore_evas_withdrawn_set.c
-utc_ecore_evas_withdrawn_get.c
-#utc_ecore_evas_window_available_profiles_get.c
-#utc_ecore_evas_window_available_profiles_set.c
+#utc_ecore_evas_modal_get_set.c
+#utc_ecore_evas_override_get_set.c
+#utc_ecore_evas_urgent_get_set.c
+utc_ecore_evas_withdrawn_get_set.c
+#utc_ecore_evas_window_available_profiles_get_set.c
utc_ecore_evas_input_event.c
+++ /dev/null
-#utc_ecore_evas_activate.c
-utc_ecore_evas_alpha_get.c
-utc_ecore_evas_alpha_set.c
-utc_ecore_evas_app_comp_sync_get.c
-utc_ecore_evas_app_comp_sync_set.c
-utc_ecore_evas_aspect_get.c
-utc_ecore_evas_aspect_set.c
-#utc_ecore_evas_aux_hint.c
-#utc_ecore_evas_avoid_damage_get.c
-#utc_ecore_evas_avoid_damage_set.c
-utc_ecore_evas_borderless_get.c
-utc_ecore_evas_borderless_set.c
-utc_ecore_evas_callback_delete_request_set.c
-#utc_ecore_evas_callback_destroy_set.c
-utc_ecore_evas_callback_focus_in_set.c
-#utc_ecore_evas_callback_focus_out_set.c
-utc_ecore_evas_callback_hide_set.c
-utc_ecore_evas_callback_mouse_in_set.c
-utc_ecore_evas_callback_mouse_out_set.c
-utc_ecore_evas_callback_move_set.c
-utc_ecore_evas_callback_msg_handle_set.c
-utc_ecore_evas_callback_msg_parent_handle_set.c
-utc_ecore_evas_callback_post_render_set.c
-utc_ecore_evas_callback_pre_free_set.c
-utc_ecore_evas_callback_pre_render_set.c
-utc_ecore_evas_callback_resize_set.c
-utc_ecore_evas_callback_show_set.c
-utc_ecore_evas_callback_state_change_set.c
-#utc_ecore_evas_callback_sticky_set.c
-#utc_ecore_evas_callback_unsticky_set.c
-utc_ecore_evas_comp_sync_get.c
-utc_ecore_evas_comp_sync_set.c
-utc_ecore_evas_cursor_get.c
-utc_ecore_evas_cursor_set.c
-utc_ecore_evas_cursor_unset.c
-utc_ecore_evas_data_get.c
-utc_ecore_evas_data_set.c
-#utc_ecore_evas_demand_attention_get.c
-#utc_ecore_evas_demand_attention_set.c
-utc_ecore_evas_draw_frame_get.c
-utc_ecore_evas_draw_frame_set.c
-utc_ecore_evas_ecore_evas_get.c
-utc_ecore_evas_ecore_evas_list_get.c
-utc_ecore_evas_engine_name_get.c
-utc_ecore_evas_engine_type_supported_get.c
-utc_ecore_evas_engines_free.c
-utc_ecore_evas_engines_get.c
-utc_ecore_evas_free.c
-utc_ecore_evas_focus_get.c
-utc_ecore_evas_focus_set.c
-utc_ecore_evas_focus_skip_get.c
-utc_ecore_evas_focus_skip_set.c
-utc_ecore_evas_fullscreen_get.c
-utc_ecore_evas_fullscreen_set.c
-utc_ecore_evas_geometry_get.c
-utc_ecore_evas_get.c
-utc_ecore_evas_hide.c
-utc_ecore_evas_iconified_get.c
-utc_ecore_evas_iconified_set.c
-utc_ecore_evas_init.c
-utc_ecore_evas_manual_render.c
-utc_ecore_evas_manual_render_get.c
-utc_ecore_evas_manual_render_set.c
-utc_ecore_evas_maximized_get.c
-utc_ecore_evas_maximized_set.c
-utc_ecore_evas_move.c
-#utc_ecore_evas_move_resize.c
-#utc_ecore_evas_managed_move.c
-utc_ecore_evas_msg_parent_send.c
-utc_ecore_evas_msg_send.c
-utc_ecore_evas_name_class_get.c
-utc_ecore_evas_name_class_set.c
-utc_ecore_evas_new.c
-utc_ecore_evas_object_cursor_set.c
-utc_ecore_evas_request_geometry_get.c
-utc_ecore_evas_resize.c
-utc_ecore_evas_rotation_get.c
-utc_ecore_evas_rotation_set.c
-utc_ecore_evas_rotation_with_resize_set.c
-utc_ecore_evas_screen_geometry_get.c
-#utc_ecore_evas_shaped_get.c
-#utc_ecore_evas_shaped_set.c
-utc_ecore_evas_show.c
-utc_ecore_evas_shutdown.c
-utc_ecore_evas_size_base_get.c
-utc_ecore_evas_size_base_set.c
-utc_ecore_evas_size_max_get.c
-utc_ecore_evas_size_max_set.c
-utc_ecore_evas_size_min_get.c
-utc_ecore_evas_size_min_set.c
-utc_ecore_evas_size_step_get.c
-utc_ecore_evas_size_step_set.c
-#utc_ecore_evas_stack.c
-#utc_ecore_evas_sticky_get.c
-#utc_ecore_evas_sticky_set.c
-utc_ecore_evas_title_get.c
-utc_ecore_evas_title_set.c
-utc_ecore_evas_transparent_get.c
-utc_ecore_evas_transparent_set.c
-utc_ecore_evas_visibility_get.c
-utc_ecore_evas_window_get.c
-#utc_ecore_evas_ignore_events.c
-utc_ecore_evas_wm_rotation.c
-utc_ecore_evas_screen_dpi_get.c
-#utc_ecore_evas_modal_set.c
-#utc_ecore_evas_modal_get.c
-#utc_ecore_evas_override_set.c
-#utc_ecore_evas_override_get.c
-#utc_ecore_evas_urgent_set.c
-#utc_ecore_evas_urgent_get.c
-utc_ecore_evas_withdrawn_set.c
-utc_ecore_evas_withdrawn_get.c
-#utc_ecore_evas_window_available_profiles_get.c
-#utc_ecore_evas_window_available_profiles_set.c
-utc_ecore_evas_input_event.c
utc_ecore_evas_activate.c
utc_ecore_evas_alpha_get.c
utc_ecore_evas_alpha_set.c
-utc_ecore_evas_app_comp_sync_get.c
-utc_ecore_evas_app_comp_sync_set.c
-utc_ecore_evas_aspect_get.c
-utc_ecore_evas_aspect_set.c
+utc_ecore_evas_app_comp_sync_get_set.c
+utc_ecore_evas_aspect_get_set.c
#utc_ecore_evas_aux_hint.c
-#utc_ecore_evas_avoid_damage_get.c
-#utc_ecore_evas_avoid_damage_set.c
-utc_ecore_evas_borderless_get.c
-utc_ecore_evas_borderless_set.c
+#utc_ecore_evas_avoid_damage_get_set.c
+utc_ecore_evas_borderless_get_set.c
utc_ecore_evas_callback_delete_request_set.c
#utc_ecore_evas_callback_destroy_set.c
utc_ecore_evas_callback_focus_in_set.c
utc_ecore_evas_callback_state_change_set.c
#utc_ecore_evas_callback_sticky_set.c
#utc_ecore_evas_callback_unsticky_set.c
-utc_ecore_evas_comp_sync_get.c
-utc_ecore_evas_comp_sync_set.c
-utc_ecore_evas_cursor_get.c
-utc_ecore_evas_cursor_set.c
+utc_ecore_evas_comp_sync_get_set.c
+utc_ecore_evas_cursor_get_set.c
utc_ecore_evas_cursor_unset.c
utc_ecore_evas_data_get.c
utc_ecore_evas_data_set.c
-#utc_ecore_evas_demand_attention_get.c
-#utc_ecore_evas_demand_attention_set.c
-utc_ecore_evas_draw_frame_get.c
-utc_ecore_evas_draw_frame_set.c
+#utc_ecore_evas_demand_attention_get_set.c
+utc_ecore_evas_draw_frame_get_set.c
utc_ecore_evas_ecore_evas_get.c
utc_ecore_evas_ecore_evas_list_get.c
utc_ecore_evas_engine_name_get.c
utc_ecore_evas_free.c
utc_ecore_evas_focus_get.c
utc_ecore_evas_focus_set.c
-utc_ecore_evas_focus_skip_get.c
-utc_ecore_evas_focus_skip_set.c
-utc_ecore_evas_fullscreen_get.c
-utc_ecore_evas_fullscreen_set.c
+utc_ecore_evas_focus_skip_get_set.c
+utc_ecore_evas_fullscreen_get_set.c
utc_ecore_evas_geometry_get.c
utc_ecore_evas_get.c
utc_ecore_evas_hide.c
-utc_ecore_evas_iconified_get.c
-utc_ecore_evas_iconified_set.c
+utc_ecore_evas_iconified_get_set.c
utc_ecore_evas_init.c
utc_ecore_evas_manual_render.c
-utc_ecore_evas_manual_render_get.c
-utc_ecore_evas_manual_render_set.c
-utc_ecore_evas_maximized_get.c
-utc_ecore_evas_maximized_set.c
+utc_ecore_evas_manual_render_get_set.c
+utc_ecore_evas_maximized_get_set.c
utc_ecore_evas_move.c
#utc_ecore_evas_move_resize.c
#utc_ecore_evas_managed_move.c
utc_ecore_evas_msg_parent_send.c
utc_ecore_evas_msg_send.c
-utc_ecore_evas_name_class_get.c
-utc_ecore_evas_name_class_set.c
+utc_ecore_evas_name_class_get_set.c
utc_ecore_evas_new.c
utc_ecore_evas_object_cursor_set.c
utc_ecore_evas_request_geometry_get.c
utc_ecore_evas_resize.c
-utc_ecore_evas_rotation_get.c
-utc_ecore_evas_rotation_set.c
+utc_ecore_evas_rotation_get_set.c
utc_ecore_evas_rotation_with_resize_set.c
utc_ecore_evas_screen_geometry_get.c
-#utc_ecore_evas_shaped_get.c
-#utc_ecore_evas_shaped_set.c
+#utc_ecore_evas_shaped_get_set.c
utc_ecore_evas_show.c
utc_ecore_evas_shutdown.c
-utc_ecore_evas_size_base_get.c
-utc_ecore_evas_size_base_set.c
-utc_ecore_evas_size_max_get.c
-utc_ecore_evas_size_max_set.c
-utc_ecore_evas_size_min_get.c
-utc_ecore_evas_size_min_set.c
+utc_ecore_evas_size_base_get_set.c
+utc_ecore_evas_size_max_get_set.c
+utc_ecore_evas_size_min_get_set.c
utc_ecore_evas_size_step_get.c
utc_ecore_evas_size_step_set.c
utc_ecore_evas_stack.c
-#utc_ecore_evas_sticky_get.c
-#utc_ecore_evas_sticky_set.c
-utc_ecore_evas_title_get.c
-utc_ecore_evas_title_set.c
-utc_ecore_evas_transparent_get.c
-utc_ecore_evas_transparent_set.c
+#utc_ecore_evas_sticky_get_set.c
+utc_ecore_evas_title_get_set.c
+utc_ecore_evas_transparent_get_set.c
utc_ecore_evas_visibility_get.c
utc_ecore_evas_window_get.c
#utc_ecore_evas_ignore_events.c
utc_ecore_evas_wm_rotation.c
utc_ecore_evas_screen_dpi_get.c
-#utc_ecore_evas_modal_set.c
-#utc_ecore_evas_modal_get.c
-#utc_ecore_evas_override_set.c
-#utc_ecore_evas_override_get.c
-#utc_ecore_evas_urgent_set.c
-#utc_ecore_evas_urgent_get.c
-utc_ecore_evas_withdrawn_set.c
-utc_ecore_evas_withdrawn_get.c
-#utc_ecore_evas_window_available_profiles_get.c
-#utc_ecore_evas_window_available_profiles_set.c
+#utc_ecore_evas_modal_get_set.c
+#utc_ecore_evas_override_get_set.c
+#utc_ecore_evas_urgent_get_set.c
+utc_ecore_evas_withdrawn_get_set.c
+#utc_ecore_evas_window_available_profiles_get_set.c
utc_ecore_evas_input_event.c
+
#utc_ecore_evas_activate.c
#utc_ecore_evas_alpha_get.c
#utc_ecore_evas_alpha_set.c
-#utc_ecore_evas_app_comp_sync_get.c
-#utc_ecore_evas_app_comp_sync_set.c
-#utc_ecore_evas_aspect_get.c
-#utc_ecore_evas_aspect_set.c
+#utc_ecore_evas_app_comp_sync_get_set.c
+#utc_ecore_evas_aspect_get_set.c
#utc_ecore_evas_aux_hint.c
-#utc_ecore_evas_avoid_damage_get.c
-#utc_ecore_evas_avoid_damage_set.c
-#utc_ecore_evas_borderless_get.c
-#utc_ecore_evas_borderless_set.c
+#utc_ecore_evas_avoid_damage_get_set.c
+#utc_ecore_evas_borderless_get_set.c
#utc_ecore_evas_callback_delete_request_set.c
#utc_ecore_evas_callback_destroy_set.c
#utc_ecore_evas_callback_focus_in_set.c
#utc_ecore_evas_callback_state_change_set.c
#utc_ecore_evas_callback_sticky_set.c
#utc_ecore_evas_callback_unsticky_set.c
-#utc_ecore_evas_comp_sync_get.c
-#utc_ecore_evas_comp_sync_set.c
-#utc_ecore_evas_cursor_get.c
-#utc_ecore_evas_cursor_set.c
+#utc_ecore_evas_comp_sync_get_set.c
+#utc_ecore_evas_cursor_get_set.c
#utc_ecore_evas_cursor_unset.c
#utc_ecore_evas_data_get.c
#utc_ecore_evas_data_set.c
-#utc_ecore_evas_demand_attention_get.c
-#utc_ecore_evas_demand_attention_set.c
-#utc_ecore_evas_draw_frame_get.c
-#utc_ecore_evas_draw_frame_set.c
+#utc_ecore_evas_demand_attention_get_set.c
+#utc_ecore_evas_draw_frame_get_set.c
#utc_ecore_evas_ecore_evas_get.c
#utc_ecore_evas_ecore_evas_list_get.c
#utc_ecore_evas_engine_name_get.c
#utc_ecore_evas_engine_type_supported_get.c
#utc_ecore_evas_engines_free.c
#utc_ecore_evas_engines_get.c
+#utc_ecore_evas_free.c
#utc_ecore_evas_focus_get.c
#utc_ecore_evas_focus_set.c
-#utc_ecore_evas_focus_skip_get.c
-#utc_ecore_evas_focus_skip_set.c
-#utc_ecore_evas_free.c
-#utc_ecore_evas_fullscreen_get.c
-#utc_ecore_evas_fullscreen_set.c
+#utc_ecore_evas_focus_skip_get_set.c
+#utc_ecore_evas_fullscreen_get_set.c
#utc_ecore_evas_geometry_get.c
#utc_ecore_evas_get.c
#utc_ecore_evas_hide.c
-#utc_ecore_evas_iconified_get.c
-#utc_ecore_evas_iconified_set.c
+#utc_ecore_evas_iconified_get_set.c
#utc_ecore_evas_init.c
#utc_ecore_evas_manual_render.c
-#utc_ecore_evas_manual_render_get.c
-#utc_ecore_evas_manual_render_set.c
-#utc_ecore_evas_maximized_get.c
-#utc_ecore_evas_maximized_set.c
+#utc_ecore_evas_manual_render_get_set.c
+#utc_ecore_evas_maximized_get_set.c
#utc_ecore_evas_move.c
#utc_ecore_evas_move_resize.c
#utc_ecore_evas_managed_move.c
#utc_ecore_evas_msg_parent_send.c
#utc_ecore_evas_msg_send.c
-#utc_ecore_evas_name_class_get.c
-#utc_ecore_evas_name_class_set.c
+#utc_ecore_evas_name_class_get_set.c
#utc_ecore_evas_new.c
#utc_ecore_evas_object_cursor_set.c
#utc_ecore_evas_request_geometry_get.c
#utc_ecore_evas_resize.c
-#utc_ecore_evas_rotation_get.c
-#utc_ecore_evas_rotation_set.c
+#utc_ecore_evas_rotation_get_set.c
#utc_ecore_evas_rotation_with_resize_set.c
#utc_ecore_evas_screen_geometry_get.c
-#utc_ecore_evas_shaped_get.c
-#utc_ecore_evas_shaped_set.c
+#utc_ecore_evas_shaped_get_set.c
#utc_ecore_evas_show.c
#utc_ecore_evas_shutdown.c
-#utc_ecore_evas_size_base_get.c
-#utc_ecore_evas_size_base_set.c
-#utc_ecore_evas_size_max_get.c
-#utc_ecore_evas_size_max_set.c
-#utc_ecore_evas_size_min_get.c
-#utc_ecore_evas_size_min_set.c
+#utc_ecore_evas_size_base_get_set.c
+#utc_ecore_evas_size_max_get_set.c
+#utc_ecore_evas_size_min_get_set.c
#utc_ecore_evas_size_step_get.c
#utc_ecore_evas_size_step_set.c
#utc_ecore_evas_stack.c
-#utc_ecore_evas_sticky_get.c
-#utc_ecore_evas_sticky_set.c
-#utc_ecore_evas_title_get.c
-#utc_ecore_evas_title_set.c
-#utc_ecore_evas_transparent_get.c
-#utc_ecore_evas_transparent_set.c
+#utc_ecore_evas_sticky_get_set.c
+#utc_ecore_evas_title_get_set.c
+#utc_ecore_evas_transparent_get_set.c
#utc_ecore_evas_visibility_get.c
#utc_ecore_evas_window_get.c
+#utc_ecore_evas_ignore_events.c
#utc_ecore_evas_wm_rotation.c
#utc_ecore_evas_screen_dpi_get.c
-#utc_ecore_evas_ignore_events.c
-#utc_ecore_evas_modal_set.c
-#utc_ecore_evas_modal_get.c
-#utc_ecore_evas_override_set.c
-#utc_ecore_evas_override_get.c
-#utc_ecore_evas_urgent_set.c
-#utc_ecore_evas_urgent_get.c
-#utc_ecore_evas_withdrawn_set.c
-#utc_ecore_evas_withdrawn_get.c
-#utc_ecore_evas_window_available_profiles_get.c
-#utc_ecore_evas_window_available_profiles_set.c
+#utc_ecore_evas_modal_get_set.c
+#utc_ecore_evas_override_get_set.c
+#utc_ecore_evas_urgent_get_set.c
+#utc_ecore_evas_withdrawn_get_set.c
+#utc_ecore_evas_window_available_profiles_get_set.c
#utc_ecore_evas_input_event.c
+
#utc_ecore_evas_activate.c
#utc_ecore_evas_alpha_get.c
#utc_ecore_evas_alpha_set.c
-#utc_ecore_evas_app_comp_sync_get.c
-#utc_ecore_evas_app_comp_sync_set.c
-#utc_ecore_evas_aspect_get.c
-#utc_ecore_evas_aspect_set.c
+#utc_ecore_evas_app_comp_sync_get_set.c
+#utc_ecore_evas_aspect_get_set.c
#utc_ecore_evas_aux_hint.c
-#utc_ecore_evas_avoid_damage_get.c
-#utc_ecore_evas_avoid_damage_set.c
-#utc_ecore_evas_borderless_get.c
-#utc_ecore_evas_borderless_set.c
+#utc_ecore_evas_avoid_damage_get_set.c
+#utc_ecore_evas_borderless_get_set.c
#utc_ecore_evas_callback_delete_request_set.c
#utc_ecore_evas_callback_destroy_set.c
#utc_ecore_evas_callback_focus_in_set.c
#utc_ecore_evas_callback_state_change_set.c
#utc_ecore_evas_callback_sticky_set.c
#utc_ecore_evas_callback_unsticky_set.c
-#utc_ecore_evas_comp_sync_get.c
-#utc_ecore_evas_comp_sync_set.c
-#utc_ecore_evas_cursor_get.c
-#utc_ecore_evas_cursor_set.c
+#utc_ecore_evas_comp_sync_get_set.c
+#utc_ecore_evas_cursor_get_set.c
#utc_ecore_evas_cursor_unset.c
#utc_ecore_evas_data_get.c
#utc_ecore_evas_data_set.c
-#utc_ecore_evas_demand_attention_get.c
-#utc_ecore_evas_demand_attention_set.c
-#utc_ecore_evas_draw_frame_get.c
-#utc_ecore_evas_draw_frame_set.c
+#utc_ecore_evas_demand_attention_get_set.c
+#utc_ecore_evas_draw_frame_get_set.c
#utc_ecore_evas_ecore_evas_get.c
#utc_ecore_evas_ecore_evas_list_get.c
#utc_ecore_evas_engine_name_get.c
#utc_ecore_evas_engine_type_supported_get.c
#utc_ecore_evas_engines_free.c
#utc_ecore_evas_engines_get.c
+#utc_ecore_evas_free.c
#utc_ecore_evas_focus_get.c
#utc_ecore_evas_focus_set.c
-#utc_ecore_evas_focus_skip_get.c
-#utc_ecore_evas_focus_skip_set.c
-#utc_ecore_evas_free.c
-#utc_ecore_evas_fullscreen_get.c
-#utc_ecore_evas_fullscreen_set.c
+#utc_ecore_evas_focus_skip_get_set.c
+#utc_ecore_evas_fullscreen_get_set.c
#utc_ecore_evas_geometry_get.c
#utc_ecore_evas_get.c
#utc_ecore_evas_hide.c
-#utc_ecore_evas_iconified_get.c
-#utc_ecore_evas_iconified_set.c
+#utc_ecore_evas_iconified_get_set.c
#utc_ecore_evas_init.c
#utc_ecore_evas_manual_render.c
-#utc_ecore_evas_manual_render_get.c
-#utc_ecore_evas_manual_render_set.c
-#utc_ecore_evas_maximized_get.c
-#utc_ecore_evas_maximized_set.c
+#utc_ecore_evas_manual_render_get_set.c
+#utc_ecore_evas_maximized_get_set.c
#utc_ecore_evas_move.c
#utc_ecore_evas_move_resize.c
#utc_ecore_evas_managed_move.c
#utc_ecore_evas_msg_parent_send.c
#utc_ecore_evas_msg_send.c
-#utc_ecore_evas_name_class_get.c
-#utc_ecore_evas_name_class_set.c
+#utc_ecore_evas_name_class_get_set.c
#utc_ecore_evas_new.c
#utc_ecore_evas_object_cursor_set.c
#utc_ecore_evas_request_geometry_get.c
#utc_ecore_evas_resize.c
-#utc_ecore_evas_rotation_get.c
-#utc_ecore_evas_rotation_set.c
+#utc_ecore_evas_rotation_get_set.c
#utc_ecore_evas_rotation_with_resize_set.c
#utc_ecore_evas_screen_geometry_get.c
-#utc_ecore_evas_shaped_get.c
-#utc_ecore_evas_shaped_set.c
+#utc_ecore_evas_shaped_get_set.c
#utc_ecore_evas_show.c
#utc_ecore_evas_shutdown.c
-#utc_ecore_evas_size_base_get.c
-#utc_ecore_evas_size_base_set.c
-#utc_ecore_evas_size_max_get.c
-#utc_ecore_evas_size_max_set.c
-#utc_ecore_evas_size_min_get.c
-#utc_ecore_evas_size_min_set.c
+#utc_ecore_evas_size_base_get_set.c
+#utc_ecore_evas_size_max_get_set.c
+#utc_ecore_evas_size_min_get_set.c
#utc_ecore_evas_size_step_get.c
#utc_ecore_evas_size_step_set.c
#utc_ecore_evas_stack.c
-#utc_ecore_evas_sticky_get.c
-#utc_ecore_evas_sticky_set.c
-#utc_ecore_evas_title_get.c
-#utc_ecore_evas_title_set.c
-#utc_ecore_evas_transparent_get.c
-#utc_ecore_evas_transparent_set.c
+#utc_ecore_evas_sticky_get_set.c
+#utc_ecore_evas_title_get_set.c
+#utc_ecore_evas_transparent_get_set.c
#utc_ecore_evas_visibility_get.c
#utc_ecore_evas_window_get.c
+#utc_ecore_evas_ignore_events.c
#utc_ecore_evas_wm_rotation.c
#utc_ecore_evas_screen_dpi_get.c
-#utc_ecore_evas_ignore_events.c
-#utc_ecore_evas_modal_set.c
-#utc_ecore_evas_modal_get.c
-#utc_ecore_evas_override_set.c
-#utc_ecore_evas_override_get.c
-#utc_ecore_evas_urgent_set.c
-#utc_ecore_evas_urgent_get.c
-#utc_ecore_evas_withdrawn_set.c
-#utc_ecore_evas_withdrawn_get.c
-#utc_ecore_evas_window_available_profiles_get.c
-#utc_ecore_evas_window_available_profiles_set.c
+#utc_ecore_evas_modal_get_set.c
+#utc_ecore_evas_override_get_set.c
+#utc_ecore_evas_urgent_get_set.c
+#utc_ecore_evas_withdrawn_get_set.c
+#utc_ecore_evas_window_available_profiles_get_set.c
#utc_ecore_evas_input_event.c
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_app_comp_sync_get ecore_evas_app_comp_sync_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_app_comp_sync_get
- * @{
- * @objective The positive test case checks if ecore_evas_app_comp_sync_get() succeeded.
- * @n Input Data: none.
- * @procedure
- * @step 1 Set ecore_evas_app_comp_sync_set() to EINA_TRUE.
- * @step 2 Call ecore_evas_app_comp_sync_get().
- * @step 3 Set ecore_evas_app_comp_sync_set() to EINA_FALSE.
- * @step 4 Call ecore_evas_app_comp_sync_get().
- * @step 5 Compare the result with the expected value.
- *
- * @passcondition
- * The EINA_TRUE, EINA_FALSE values were set by ecore_evas_app_comp_sync_set, and these values must return by ecore_evas_app_comp_sync_get.
- * @}
- */
-
-START_TEST(utc_ecore_evas_app_comp_sync_get_p)
-{
- Eina_Bool eb1, eb2;
-
- ecore_evas_app_comp_sync_set(EINA_TRUE);
- eb1 = ecore_evas_app_comp_sync_get();
- ecore_evas_app_comp_sync_set(EINA_FALSE);
- eb2 = ecore_evas_app_comp_sync_get();
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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_ecore_evas_app_comp_sync_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_app_comp_sync_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_app_comp_sync_get_p);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_app_comp_sync_get ecore_evas_app_comp_sync_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_app_comp_sync_get
+ * @{
+ * @objective The positive test case checks if ecore_evas_app_comp_sync_get() succeeded.
+ * @n Input Data: none.
+ * @procedure
+ * @step 1 Set ecore_evas_app_comp_sync_set() to EINA_TRUE.
+ * @step 2 Call ecore_evas_app_comp_sync_get().
+ * @step 3 Set ecore_evas_app_comp_sync_set() to EINA_FALSE.
+ * @step 4 Call ecore_evas_app_comp_sync_get().
+ * @step 5 Compare the result with the expected value.
+ *
+ * @passcondition
+ * The EINA_TRUE, EINA_FALSE values were set by ecore_evas_app_comp_sync_set, and these values must return by ecore_evas_app_comp_sync_get.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_app_comp_sync_get_p)
+{
+ Eina_Bool eb1, eb2;
+
+ ecore_evas_app_comp_sync_set(EINA_TRUE);
+ eb1 = ecore_evas_app_comp_sync_get();
+ ecore_evas_app_comp_sync_set(EINA_FALSE);
+ eb2 = ecore_evas_app_comp_sync_get();
+
+ if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
+ {
+ 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_ecore_evas_app_comp_sync_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_app_comp_sync_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_app_comp_sync_get_p);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_app_comp_sync_set ecore_evas_app_comp_sync_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_app_comp_sync_set
- * @{
- * @objective The positive test case checks if ecore_evas_app_comp_sync_set() succeeded.
- * @n Input Data: none.
- * @procedure
- * @step 1 Set ecore_evas_app_comp_sync_set() to FALSE.
- * @step 2 Call ecore_evas_app_comp_sync_get().
- * @step 3 Compare the result with the expected value.
- *
- * @passcondition
- * The EINA_FALSE value was set by ecore_evas_app_comp_sync_set, and this value must return by ecore_evas_app_comp_sync_get.
- * @}
- */
-
-START_TEST(utc_ecore_evas_app_comp_sync_set_p)
-{
- Eina_Bool eb1, eb2;
-
- ecore_evas_app_comp_sync_set(EINA_TRUE);
- eb1 = ecore_evas_app_comp_sync_get();
- ecore_evas_app_comp_sync_set(EINA_FALSE);
- eb2 = ecore_evas_app_comp_sync_get();
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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_ecore_evas_app_comp_sync_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_app_comp_sync_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_app_comp_sync_set_p);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-static double aspect_ratio = 0.8;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_aspect_get ecore_evas_aspect_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_buffer_new(1, 1);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_aspect_get
- * @{
- * @objective The positive test case checks that the function really gets aspect ratio of the given Ecore_Evas.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li double value an extra parameter to enable the alpha channel.
- * @procedure
- * @step 1 Set double value bigger than 0 to set aspect ratio in the given Ecore_Evas.
- * @step 2 Call ecore_evas_aspect_get() to retrieve aspect ratio property.
- * @step 3 Compare the result with the expected value.
- *
- * @passcondition
- * Function must set aspect ratio in the given Ecore_Evas (value returned by ecore_evas_aspect_get() must be double value(0.8)).
- * @}
- */
-
-START_TEST(utc_ecore_evas_aspect_get_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- double ar = 0;
-
- ecore_evas_aspect_set(ee, aspect_ratio);
- ar = ecore_evas_aspect_get(ee);
-
- if (aspect_ratio == ar)
- {
- 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 ecore_evas_aspect_get
- * @{
- * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return double value (0.0), if there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_aspect_get_n)
-{
- if (!startup_status)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(0.0, ecore_evas_aspect_get, ee) == 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_ecore_evas_aspect_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_aspect_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_aspect_get_p);
- tcase_add_test(tcase, utc_ecore_evas_aspect_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+static double aspect_ratio = 0.8;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_aspect_get ecore_evas_aspect_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_buffer_new(1, 1);
+ startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_aspect_get
+ * @{
+ * @objective The positive test case checks that the function really gets aspect ratio of the given Ecore_Evas.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @li double value an extra parameter to enable the alpha channel.
+ * @procedure
+ * @step 1 Set double value bigger than 0 to set aspect ratio in the given Ecore_Evas.
+ * @step 2 Call ecore_evas_aspect_get() to retrieve aspect ratio property.
+ * @step 3 Compare the result with the expected value.
+ *
+ * @passcondition
+ * Function must set aspect ratio in the given Ecore_Evas (value returned by ecore_evas_aspect_get() must be double value(0.8)).
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_aspect_get_p)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
+ }
+
+ double ar = 0;
+
+ ecore_evas_aspect_set(ee, aspect_ratio);
+ ar = ecore_evas_aspect_get(ee);
+
+ if (aspect_ratio == ar)
+ {
+ 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 ecore_evas_aspect_get
+ * @{
+ * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return double value (0.0), if there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_aspect_get_n)
+{
+ if (!startup_status)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(0.0, ecore_evas_aspect_get, ee) == 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 ecore_evas_aspect_set
+ * @{
+ * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li double value to set the aspect ratio.
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_aspect_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(ecore_evas_alpha_set, ee, aspect_ratio);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+*@}
+*/
+
+TCase * _utc_ecore_evas_aspect_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_aspect_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_aspect_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_aspect_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_aspect_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-static double aspect_ratio = 0.8;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_aspect_set ecore_evas_aspect_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_buffer_new(1, 1);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_aspect_set
- * @{
- * @objective The positive test case checks that the function really sets the aspect ratio of a given Ecore_Evas.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li double value an extra parameter to enable the aspect ratio.
- * @procedure
- * @step 1 Set value bigger than 0 in the given Ecore_Evas.
- * @step 2 Call ecore_evas_aspect_get() to retrieve to retrieve aspect ratio property.
- * @step 3 Compare the result with the expected value.
- *
- * @passcondition
- * Function must set aspect ratio in the given Ecore_Evas (value returned by ecore_evas_aspect_get() must be double value(0.8)).
- * @}
- */
-
-START_TEST(utc_ecore_evas_aspect_set_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- double ar = 0;
-
- ecore_evas_aspect_set(ee, aspect_ratio);
- ar = ecore_evas_aspect_get(ee);
-
- if (aspect_ratio == ar)
- {
- 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 ecore_evas_aspect_set
- * @{
- * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li double value to set the aspect ratio.
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_aspect_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(ecore_evas_alpha_set, ee, aspect_ratio);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
- /**
- *@}
- */
-
-TCase * _utc_ecore_evas_aspect_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_aspect_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_aspect_set_p);
- tcase_add_test(tcase, utc_ecore_evas_aspect_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_avoid_damage_get ecore_evas_avoid_damage_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- * @step 3 Set ecore_evas damage property to ECORE_EVAS_AVOID_DAMAGE_EXPOSE
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_avoid_damage_get
- * @{
- * @objective The positive test case checks that ecore_evas_avoid_damage_get() returns correct damage of the given Ecore_Evas' window.
- * @n Input Data: the given Ecore_Evas object initialized in startup.
- * @procedure
- * @step 1 Call ecore_evas_avoid_damage_get() to retrieve damage property.
- * @step 2 Compare the result with the expected value.
- *
- * @passcondition
- * Function must return ECORE_EVAS_AVOID_DAMAGE_EXPOSE, because this value was assigned to the given Ecore_Evas object in startup.
- * @}
- */
-
-START_TEST(utc_ecore_evas_avoid_damage_get_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- Ecore_Evas_Avoid_Damage_Type eeadt;
-
- ecore_evas_avoid_damage_set(ee, ECORE_EVAS_AVOID_DAMAGE_EXPOSE);
-
- eeadt = ecore_evas_avoid_damage_get(ee);
-
- if (ECORE_EVAS_AVOID_DAMAGE_EXPOSE != eeadt)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..Value is:%d", __FILE__, __LINE__, eeadt);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_evas_avoid_damage_get
- * @{
- * @objective The negative test case checks situation if first argument (Ecore_Evas object) is NULL.
- * @n Input Data: the unitialized Ecore_Evas object.
- * @procedure
- * @step 1 Pass NULL as the parameter to ecore_evas_avoid_damage_get().
- * @step 2 Compare the result with the expected value.
- *
- * @passcondition
- * Function must return ECORE_EVAS_AVOID_DAMAGE_NONE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_avoid_damage_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(ECORE_EVAS_AVOID_DAMAGE_NONE, ecore_evas_avoid_damage_get, ee) == 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_ecore_evas_avoid_damage_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_avoid_damage_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_avoid_damage_get_p);
- tcase_add_test(tcase, utc_ecore_evas_avoid_damage_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+static Ecore_Timer *timer = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_avoid_damage_set ecore_evas_avoid_damage_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
+ ecore_evas_show(ee);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_avoid_damage_set
+ * @{
+ * @objective The positive test case checks if ecore_evas_avoid_damage_set() sets the given value correctly.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @li ECORE_EVAS_AVOID_DAMAGE_EXPOSE.
+ * @procedure
+ * @step 1 Set damage type to ECORE_EVAS_AVOID_DAMAGE_EXPOSE by ecore_evas_avoid_damage_set().
+ * @step 2 Call ecore_evas_avoid_damage_get() to retrieve damage property.
+ * @step 3 Compare the result with ECORE_EVAS_AVOID_DAMAGE_EXPOSE.
+ *
+ * @passcondition
+ * Function must set damage in the given Ecore_Evas (value returned by ecore_evas_avoid_damage_get() must be ECORE_EVAS_AVOID_DAMAGE_EXPOSE).
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_avoid_damage_set_p)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
+ }
+
+ Ecore_Evas_Avoid_Damage_Type eeadt;
+
+ ecore_evas_avoid_damage_set(ee, ECORE_EVAS_AVOID_DAMAGE_EXPOSE);
+ timer = ecore_timer_add(10.0, _quit_timer_cb, NULL);
+ if (timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+
+ eeadt = ecore_evas_avoid_damage_get(ee);
+
+ if (ECORE_EVAS_AVOID_DAMAGE_EXPOSE != eeadt)
+ {
+ 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 ecore_evas_avoid_damage_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li NULL;
+ * @li ECORE_EVAS_AVOID_DAMAGE_EXPOSE.
+ * @procedure
+ * @step 1 Call tested function with NULL as first argument.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_avoid_damage_set_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
+ }
+
+ ecore_evas_avoid_damage_set(NULL, ECORE_EVAS_AVOID_DAMAGE_EXPOSE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_avoid_damage_get
+ * @{
+ * @objective The negative test case checks situation if first argument (Ecore_Evas object) is NULL.
+ * @n Input Data: the unitialized Ecore_Evas object.
+ * @procedure
+ * @step 1 Pass NULL as the parameter to ecore_evas_avoid_damage_get().
+ * @step 2 Compare the result with the expected value.
+ *
+ * @passcondition
+ * Function must return ECORE_EVAS_AVOID_DAMAGE_NONE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_avoid_damage_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(ECORE_EVAS_AVOID_DAMAGE_NONE, ecore_evas_avoid_damage_get, ee) == 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_ecore_evas_avoid_damage_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_avoid_damage_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_avoid_damage_set_p);
+ tcase_add_test(tcase, utc_ecore_evas_avoid_damage_set_n);
+ tcase_add_test(tcase, utc_ecore_evas_avoid_damage_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-static Ecore_Timer *timer = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_avoid_damage_set ecore_evas_avoid_damage_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
- ecore_evas_show(ee);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_avoid_damage_set
- * @{
- * @objective The positive test case checks if ecore_evas_avoid_damage_set() sets the given value correctly.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li ECORE_EVAS_AVOID_DAMAGE_EXPOSE.
- * @procedure
- * @step 1 Set damage type to ECORE_EVAS_AVOID_DAMAGE_EXPOSE by ecore_evas_avoid_damage_set().
- * @step 2 Call ecore_evas_avoid_damage_get() to retrieve damage property.
- * @step 3 Compare the result with ECORE_EVAS_AVOID_DAMAGE_EXPOSE.
- *
- * @passcondition
- * Function must set damage in the given Ecore_Evas (value returned by ecore_evas_avoid_damage_get() must be ECORE_EVAS_AVOID_DAMAGE_EXPOSE).
- * @}
- */
-
-START_TEST(utc_ecore_evas_avoid_damage_set_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- Ecore_Evas_Avoid_Damage_Type eeadt;
-
- ecore_evas_avoid_damage_set(ee, ECORE_EVAS_AVOID_DAMAGE_EXPOSE);
- timer = ecore_timer_add(10.0, _quit_timer_cb, NULL);
- if (timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-
- eeadt = ecore_evas_avoid_damage_get(ee);
-
- if (ECORE_EVAS_AVOID_DAMAGE_EXPOSE != eeadt)
- {
- 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 ecore_evas_avoid_damage_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li NULL;
- * @li ECORE_EVAS_AVOID_DAMAGE_EXPOSE.
- * @procedure
- * @step 1 Call tested function with NULL as first argument.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_avoid_damage_set_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- ecore_evas_avoid_damage_set(NULL, ECORE_EVAS_AVOID_DAMAGE_EXPOSE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_avoid_damage_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_avoid_damage_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_avoid_damage_set_p);
- tcase_add_test(tcase, utc_ecore_evas_avoid_damage_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_borderless_get ecore_evas_borderless_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- * @step 3 Set borderless property to FALSE
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_borderless_get
- * @{
- * @objective The positive test case checks that ecore_evas_borderless_get() returns correct value of the given Ecore_Evas object's borderless status (this value was set in startup).
- * @n Input Data: Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Set borderless property to EINA_TRUE.
- * @step 2 Wait a one second for window state changes using the timer.
- * @step 3 Call ecore_evas_borderless_get() to retrieve borderless property.
- * @step 4 Set borderless property to EINA_FALSE.
- * @step 5 Wait a one second for window state changes using the timer.
- * @step 6 Call ecore_evas_borderless_get() to retrieve borderless property.
- * @step 7 Compare retrieved results with expected values.
- *
- * @passcondition
- * Functio must return EINA_TRUE.
- * @}
- */
-
-START_TEST(utc_ecore_evas_borderless_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 eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_borderless_set(ee, EINA_TRUE);
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_borderless_get(ee);
- ecore_evas_borderless_set(ee, EINA_FALSE);
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_borderless_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_borderless_get
- * @{
- * @objective The negative test case 1 checks situation if first argument (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- * @procedure
- * @step 1 Call ecore_evas_borderless_get with NULL as the argument.
- * @step 2 Check returned value. It must be NULL.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_borderless_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, ecore_evas_borderless_get, ee) == 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_ecore_evas_borderless_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_borderless_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_borderless_get_p);
- tcase_add_test(tcase, utc_ecore_evas_borderless_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return EINA_FALSE;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_borderless_get ecore_evas_borderless_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ * @step 3 Set borderless property to FALSE
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_borderless_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_borderless_get() returns correct value of the given Ecore_Evas object's borderless status (this value was set in startup).
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ * @procedure
+ * @step 1 Set borderless property to EINA_TRUE.
+ * @step 2 Wait a one second for window state changes using the timer.
+ * @step 3 Call ecore_evas_borderless_get() to retrieve borderless property.
+ * @step 4 Set borderless property to EINA_FALSE.
+ * @step 5 Wait a one second for window state changes using the timer.
+ * @step 6 Call ecore_evas_borderless_get() to retrieve borderless property.
+ * @step 7 Compare retrieved results with expected values.
+ *
+ * @passcondition
+ * Functio must return EINA_TRUE.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_borderless_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 eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_borderless_set(ee, EINA_TRUE);
+ if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_borderless_get(ee);
+ ecore_evas_borderless_set(ee, EINA_FALSE);
+ if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_borderless_get(ee);
+
+ if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
+ {
+ 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 ecore_evas_borderless_get
+ * @{
+ * @objective The negative test case 1 checks situation if first argument (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ * @procedure
+ * @step 1 Call ecore_evas_borderless_get with NULL as the argument.
+ * @step 2 Check returned value. It must be NULL.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_borderless_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, ecore_evas_borderless_get, ee) == 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 ecore_evas_borderless_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_FALSE.
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_borderless_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_borderless_set, ee, EINA_FALSE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_borderless_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_borderless_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_borderless_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_borderless_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_borderless_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_borderless_set ecore_evas_borderless_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_borderless_set
- * @{
- * @objective The positive test case checks that ecore_evas_borderless_set sets the given value correctly.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li EINA_TRUE.
- * @procedure
- * @step 1 Set borderless property to EINA_TRUE.
- * @step 2 Wait a one second for window state changes using the timer.
- * @step 3 Call ecore_evas_borderless_get() to retrieve borderless property.
- * @step 4 Set borderless property to EINA_FALSE.
- * @step 5 Wait a one second for window state changes using the timer.
- * @step 6 Call ecore_evas_borderless_get() to retrieve borderless property.
- * @step 7 Compare retrieved results with expected values.
- *
- * @passcondition
- * Function must set borderless status in the given Ecore_Evas. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_borderless_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_borderless_set(ee, EINA_TRUE);
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_borderless_get(ee);
- ecore_evas_borderless_set(ee, EINA_FALSE);
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_borderless_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_borderless_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_FALSE.
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_borderless_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_borderless_set, ee, EINA_FALSE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_borderless_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_borderless_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_borderless_set_p);
- tcase_add_test(tcase, utc_ecore_evas_borderless_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_comp_sync_get ecore_evas_comp_sync_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- * @step 3 Set comp-sync property to FALSE
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_comp_sync_get
- * @{
- * @objective The positive test case checks that tested function returns correct value which was set in startup.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Call ecore_evas_comp_sync_get() to retrieve comp-sync property.
- * @step 2 Compare the result with the expected value.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_comp_sync_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 eb1, eb2;
-
- ecore_evas_comp_sync_set(ee, EINA_TRUE);
- eb1 = ecore_evas_comp_sync_get(ee);
- ecore_evas_comp_sync_set(ee, EINA_FALSE);
- eb2 = ecore_evas_comp_sync_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_comp_sync_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Call ecore_evas_comp_sync_get() with NULL as the argument using universal macro.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_comp_sync_get_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- UNITEST_FUNC_NEG(ecore_evas_comp_sync_get, ee);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_comp_sync_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_comp_sync_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_comp_sync_get_p);
- tcase_add_test(tcase, utc_ecore_evas_comp_sync_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_comp_sync_get ecore_evas_comp_sync_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ * @step 3 Set comp-sync property to FALSE
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ if (ee == NULL)
+ {
+ startup_status = EINA_FALSE;
+ }
+ else
+ {
+ startup_status = EINA_TRUE;
+ }
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_comp_sync_get
+ * @{
+ * @objective The positive test case checks that tested function returns correct value which was set in startup.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ * @procedure
+ * @step 1 Call ecore_evas_comp_sync_get() to retrieve comp-sync property.
+ * @step 2 Compare the result with the expected value.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_comp_sync_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 eb1, eb2;
+
+ ecore_evas_comp_sync_set(ee, EINA_TRUE);
+ eb1 = ecore_evas_comp_sync_get(ee);
+ ecore_evas_comp_sync_set(ee, EINA_FALSE);
+ eb2 = ecore_evas_comp_sync_get(ee);
+
+ if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
+ {
+ 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 ecore_evas_comp_sync_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ * @procedure
+ * @step 1 Call ecore_evas_comp_sync_get() with NULL as the argument using universal macro.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_comp_sync_get_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
+ }
+
+ UNITEST_FUNC_NEG(ecore_evas_comp_sync_get, ee);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_comp_sync_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li synchronization flag whose value is EINA_FALSE.
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_comp_sync_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(ecore_evas_comp_sync_set, ee, EINA_FALSE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_comp_sync_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_comp_sync_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_comp_sync_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_comp_sync_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_comp_sync_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_comp_sync_set ecore_evas_comp_sync_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_comp_sync_set
- * @{
- * @objective The positive test case checks that tested function sets correct value.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li synchronization flag whose value is EINA_FALSE.
- * @procedure
- * @step 1 Set comp-sync property to EINA_FALSE.
- * @step 2 Call ecore_evas_comp_sync_get() to retrieve comp-sync property.
- * @step 3 Compare the result with the expected value.
- *
- * @passcondition
- * Function must set the synchronization status in the given Ecore_Evas object (value returned by ecore_evas_comp_sync_get() must be EINA_FALSE). Also there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_comp_sync_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 eb1, eb2;
-
- ecore_evas_comp_sync_set(ee, EINA_TRUE);
- eb1 = ecore_evas_comp_sync_get(ee);
- ecore_evas_comp_sync_set(ee, EINA_FALSE);
- eb2 = ecore_evas_comp_sync_get(ee);
-
- if ((EINA_FALSE != eb2) || (EINA_TRUE != eb1))
- {
- 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 ecore_evas_comp_sync_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li synchronization flag whose value is EINA_FALSE.
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_comp_sync_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(ecore_evas_comp_sync_set, ee, EINA_FALSE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_comp_sync_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_comp_sync_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_comp_sync_set_p);
- tcase_add_test(tcase, utc_ecore_evas_comp_sync_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_cursor_get ecore_evas_cursor_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_cursor_get
- * @{
- * @objective The positive test case checks that tested function gets those parameters of cursor which were set in startup.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li address of eo variable (this variable specifies Evas_Object object);
- * @li address of l variable (this variable specifies layer);
- * @li address of x variable (this variable specifies x-coordinate);
- * @li address of y variable (this variable specifies y-coordinate).
- * @procedure
- * @step 1 Set path to an image file, layer, and coordinates for the ecore_evas cursor - call ecore_evas_cursor_set();
- * @step 2 Call ecore_evas_cursor_get() to retrieve evas_object, layer and coordinates of the ecore_evas cursor;
- * @step 3 Compare the result with the expected value.
- *
- * @passcondition
- * Function must retrieve Evas_Object which isn't null. Also it must retrieve the following values of layer, x-coordinate and y-coordinate: 1000000, 2, and 2. Besides, there is no segmentation fault.
- * @}p
- */
-
-START_TEST(utc_ecore_evas_cursor_get_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Evas_Object *eo = NULL;
- int l = 0, x = 0, y = 0;
-
- ecore_evas_cursor_set(ee, "utc_UIFW_mouse_pointer.png", 1000000, 2, 2);
- ecore_evas_cursor_get(ee, &eo, &l, &x, &y);
-
- if (NULL == eo || (1000000 != l || 2 != x || 2 != y))
- {
- 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 ecore_evas_cursor_get
- * @{
- * @objective The negative test case 1 checks that the function don't get Evas_Object object if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by NULL;
- * @li address of eo variable (this variable specifies Evas_Object object);
- * @li address of l variable (this variable specifies layer);
- * @li address of x variable (this variable specifies x-coordinate);
- * @li address of y variable (this variable specifies y-coordinate).
- * @procedure
- * @step 1 Call ecore_evas_cursor_get() with NULL as the first parameter.
- * @step 2 Compare the result with the expected value.
- *
- * @passcondition
- * Evas_Object object specified by eo variable must be NULL. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_cursor_get_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Evas_Object *eo = NULL;
- int l = 0, x = 0, y = 0;
-
- ecore_evas_cursor_get(NULL, &eo, &l, &x, &y);
-
- if (NULL != eo)
- {
- 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 ecore_evas_cursor_get
- * @{
- * @objective The negative test case 2 checks situations if second, third, fourth and fifth arguments of tested function become NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;;
- * @li address of eo variable (this variable specifies Evas_Object object and will be replaced by NULL in the universal macro);
- * @li address of l variable (this variable specifies layer and will be replaced by NULL in the universal macro);
- * @li address of x variable (this variable specifies x-coordinate and will be replaced by NULL in the universal macro);
- * @li address of y variable (this variable specifies y-coordinate and will be replaced by NULL in the universal macro).
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_cursor_get_n2)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Evas_Object *eo = NULL;
- int l = 0, x = 0, y = 0;
-
- CREATE_CHECKED_ARGS_ARRAY(0, 1, 1, 1, 1);
- UNITEST_FUNC_NEG_CA(ecore_evas_cursor_get, ee, &eo, &l, &x, &y);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_cursor_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_cursor_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_cursor_get_p);
- tcase_add_test(tcase, utc_ecore_evas_cursor_get_n);
- tcase_add_test(tcase, utc_ecore_evas_cursor_get_n2);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_cursor_get ecore_evas_cursor_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ if (ee == NULL)
+ {
+ startup_status = EINA_FALSE;
+ }
+ else
+ {
+ startup_status = EINA_TRUE;
+ }
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_cursor_get
+ * @{
+ * @objective The positive test case checks that tested function gets those parameters of cursor which were set in startup.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @li address of eo variable (this variable specifies Evas_Object object);
+ * @li address of l variable (this variable specifies layer);
+ * @li address of x variable (this variable specifies x-coordinate);
+ * @li address of y variable (this variable specifies y-coordinate).
+ * @procedure
+ * @step 1 Set path to an image file, layer, and coordinates for the ecore_evas cursor - call ecore_evas_cursor_set();
+ * @step 2 Call ecore_evas_cursor_get() to retrieve evas_object, layer and coordinates of the ecore_evas cursor;
+ * @step 3 Compare the result with the expected value.
+ *
+ * @passcondition
+ * Function must retrieve Evas_Object which isn't null. Also it must retrieve the following values of layer, x-coordinate and y-coordinate: 1000000, 2, and 2. Besides, there is no segmentation fault.
+ * @}p
+ */
+
+START_TEST(utc_ecore_evas_cursor_get_p)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Evas_Object *eo = NULL;
+ int l = 0, x = 0, y = 0;
+
+ ecore_evas_cursor_set(ee, "utc_UIFW_mouse_pointer.png", 1000000, 2, 2);
+ ecore_evas_cursor_get(ee, &eo, &l, &x, &y);
+
+ if (NULL == eo || (1000000 != l || 2 != x || 2 != y))
+ {
+ 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 ecore_evas_cursor_get
+ * @{
+ * @objective The negative test case 1 checks that the function don't get Evas_Object object if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by NULL;
+ * @li address of eo variable (this variable specifies Evas_Object object);
+ * @li address of l variable (this variable specifies layer);
+ * @li address of x variable (this variable specifies x-coordinate);
+ * @li address of y variable (this variable specifies y-coordinate).
+ * @procedure
+ * @step 1 Call ecore_evas_cursor_get() with NULL as the first parameter.
+ * @step 2 Compare the result with the expected value.
+ *
+ * @passcondition
+ * Evas_Object object specified by eo variable must be NULL. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_cursor_get_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Evas_Object *eo = NULL;
+ int l = 0, x = 0, y = 0;
+
+ ecore_evas_cursor_get(NULL, &eo, &l, &x, &y);
+
+ if (NULL != eo)
+ {
+ 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 ecore_evas_cursor_get
+ * @{
+ * @objective The negative test case 2 checks situations if second, third, fourth and fifth arguments of tested function become NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;;
+ * @li address of eo variable (this variable specifies Evas_Object object and will be replaced by NULL in the universal macro);
+ * @li address of l variable (this variable specifies layer and will be replaced by NULL in the universal macro);
+ * @li address of x variable (this variable specifies x-coordinate and will be replaced by NULL in the universal macro);
+ * @li address of y variable (this variable specifies y-coordinate and will be replaced by NULL in the universal macro).
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_cursor_get_n2)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Evas_Object *eo = NULL;
+ int l = 0, x = 0, y = 0;
+
+ CREATE_CHECKED_ARGS_ARRAY(0, 1, 1, 1, 1);
+ UNITEST_FUNC_NEG_CA(ecore_evas_cursor_get, ee, &eo, &l, &x, &y);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_cursor_set
+ * @{
+ * @objective The negative test case 1 checks situations if all arguments of tested function become NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable will be replaced by NULL in the universal macro;
+ * @li path to an image file utc_UIFW_mouse_pointer.png (will be replaced by NULL in the universal macro);
+ * @li layer = 1000000 (will be replaced by NULL in the universal macro);
+ * @li x-coordinate = 2 (will be replaced by NULL in the universal macro);
+ * @li y-coordinate = 2 (will be replaced by NULL in the universal macro).
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_cursor_set_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Evas_Object *eo = NULL;
+ int l = 0, x = 0, y = 0;
+
+ UNITEST_FUNC_NEG(ecore_evas_cursor_set, ee, "utc_UIFW_mouse_pointer.png", 1000000, 2, 2);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_cursor_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_cursor_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_cursor_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_cursor_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_cursor_get_n2);
+ tcase_add_test(tcase, utc_ecore_evas_cursor_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_cursor_set ecore_evas_cursor_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_cursor_set
- * @{
- * @objective The positive test case checks that tested function sets those parameters of cursor which were set.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li path to an image file (utc_UIFW_mouse_pointer.png);
- * @li layer = 1000000;
- * @li x-coordinate = 2;
- * @li y-coordinate = 2.
- * @procedure
- * @step 1 Set path to an image file, layer, and coordinates for the ecore_evas cursor - call ecore_evas_cursor_set()
- * @step 2 Call ecore_evas_cursor_get() to retrieve evas_object, layer and coordinates of the ecore_evas cursor.
- * @step 3 Compare the result with the expected value.
- *
- * @passcondition
- * Function must retrieve Evas_Object which isn't null. Also it must retrieve the following values of layer, x-coordinate and y-coordinate: 1000000, 2, and 2. Besides, there is no segmentation fault.
- * @}p
- */
-
-START_TEST(utc_ecore_evas_cursor_set_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Evas_Object *eo = NULL;
- int l = 0, x = 0, y = 0;
-
- ecore_evas_cursor_set(ee, "utc_UIFW_mouse_pointer.png", 1000000, 2, 2);
- ecore_evas_cursor_get(ee, &eo, &l, &x, &y);
-
- if (NULL == eo || (1000000 != l || 2 != x || 2 != y))
- {
- 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 ecore_evas_cursor_set
- * @{
- * @objective The negative test case 1 checks situations if all arguments of tested function become NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable will be replaced by NULL in the universal macro;
- * @li path to an image file utc_UIFW_mouse_pointer.png (will be replaced by NULL in the universal macro);
- * @li layer = 1000000 (will be replaced by NULL in the universal macro);
- * @li x-coordinate = 2 (will be replaced by NULL in the universal macro);
- * @li y-coordinate = 2 (will be replaced by NULL in the universal macro).
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_cursor_set_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Evas_Object *eo = NULL;
- int l = 0, x = 0, y = 0;
-
- UNITEST_FUNC_NEG(ecore_evas_cursor_set, ee, "utc_UIFW_mouse_pointer.png", 1000000, 2, 2);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_cursor_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_cursor_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_cursor_set_p);
- tcase_add_test(tcase, utc_ecore_evas_cursor_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_demand_attention_get ecore_evas_demand_attention_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- ecore_evas_show(ee);
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_demand_attention_get
- * @{
- * @objective Positive test case 01: Checks if function properly works with valid input data.
- * @n Input Data:
- * @li valid Ecore_Evas object
- *
- * @procedure
- * @step 1 call ecore_evas_demand_attention_set with valid Ecore_Evas object
- * @step 2 Check if ecore_evas_demand_attention_get returns the same value was set by ecore_evas_demand_attention_set
- *
- * @passcondition
- * ecore_evas_demand_attention_get returns the same value was set by ecore_evas_demand_attention_set
- * @}
- */
-
-START_TEST(utc_ecore_evas_demand_attention_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 ret;
-
- ecore_evas_demand_attention_set(ee, EINA_TRUE);
-
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-
- ret = ecore_evas_demand_attention_get(ee);
-
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_evas_demand_attention_set(ee, EINA_FALSE);
-
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-
- ret = ecore_evas_demand_attention_get(ee);
-
- if (ret != 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 ecore_evas_demand_attention_get
- * @{
- * @objective The negative test case 1 checks situations if argument of tested function become NULL.
- * @n Input Data:
- * @li NULL instead of valid Ecore_Evas object
- *
- * @procedure
- * @step 1 call ecore_evas_demand_attention_get with NULL instead of a valid Ecore_Evas object
- *
- * @passcondition
- * There is no segmentation fault and function should return EINA_FALSE.
- * @}
- */
-
-START_TEST(utc_ecore_evas_demand_attention_get_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- ret = ecore_evas_demand_attention_get(NULL);
-
- if (ret != 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
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_demand_attention_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_demand_attention_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_demand_attention_get_p);
- tcase_add_test(tcase, utc_ecore_evas_demand_attention_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return EINA_FALSE;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_demand_attention_get ecore_evas_demand_attention_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ if (ee == NULL)
+ {
+ startup_status = EINA_FALSE;
+ }
+ else
+ {
+ startup_status = EINA_TRUE;
+ ecore_evas_show(ee);
+ }
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_demand_attention_get
+ * @{
+ * @objective Positive test case 01: Checks if function properly works with valid input data.
+ * @n Input Data:
+ * @li valid Ecore_Evas object
+ *
+ * @procedure
+ * @step 1 call ecore_evas_demand_attention_set with valid Ecore_Evas object
+ * @step 2 Check if ecore_evas_demand_attention_get returns the same value was set by ecore_evas_demand_attention_set
+ *
+ * @passcondition
+ * ecore_evas_demand_attention_get returns the same value was set by ecore_evas_demand_attention_set
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_demand_attention_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 ret;
+
+ ecore_evas_demand_attention_set(ee, EINA_TRUE);
+
+ if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+
+ ret = ecore_evas_demand_attention_get(ee);
+
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ ecore_evas_demand_attention_set(ee, EINA_FALSE);
+
+ if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+
+ ret = ecore_evas_demand_attention_get(ee);
+
+ if (ret != 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 ecore_evas_demand_attention_get
+ * @{
+ * @objective The negative test case 1 checks situations if argument of tested function become NULL.
+ * @n Input Data:
+ * @li NULL instead of valid Ecore_Evas object
+ *
+ * @procedure
+ * @step 1 call ecore_evas_demand_attention_get with NULL instead of a valid Ecore_Evas object
+ *
+ * @passcondition
+ * There is no segmentation fault and function should return EINA_FALSE.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_demand_attention_get_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool ret = EINA_FALSE;
+
+ ret = ecore_evas_demand_attention_get(NULL);
+
+ if (ret != 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 ecore_evas_demand_attention_set
+ * @{
+ * @objective The negative test case 1 checks situations if first argument of tested function become NULL.
+ * @n Input Data:
+ * @li NULL instead of a valid Ecore_Evas object
+ * @li the flag state to set (EINA_TRUE)
+ *
+ * @procedure
+ * @step 1 call ecore_evas_demand_attention_set with NULL instead of a valid Ecore_Evas object
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_demand_attention_set_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ ecore_evas_demand_attention_set(NULL, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_demand_attention_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_demand_attention_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_demand_attention_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_demand_attention_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_demand_attention_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_demand_attention_set ecore_evas_demand_attention_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- ecore_evas_show(ee);
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_demand_attention_set
- * @{
- * @objective Positive test case 01: Checks if function properly works with valid input data.
- * @n Input Data:
- * @li valid Ecore_Evas object
- * @li the flag state to set (EINA_TRUE | EINA_FALSE)
- *
- * @procedure
- * @step 1 call ecore_evas_demand_attention_set with valid Ecore_Evas object
- * @step 2 Check if ecore_evas_demand_attention_get returns the same value was set by ecore_evas_demand_attention_set
- *
- * @passcondition
- * ecore_evas_demand_attention_get returns the same value was set by ecore_evas_demand_attention_set
- * @}
- */
-
-START_TEST(utc_ecore_evas_demand_attention_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 ret;
-
- ecore_evas_demand_attention_set(ee, EINA_TRUE);
-
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-
- ret = ecore_evas_demand_attention_get(ee);
-
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_evas_demand_attention_set(ee, EINA_FALSE);
-
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-
- ret = ecore_evas_demand_attention_get(ee);
-
- if (ret != 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 ecore_evas_demand_attention_set
- * @{
- * @objective The negative test case 1 checks situations if first argument of tested function become NULL.
- * @n Input Data:
- * @li NULL instead of a valid Ecore_Evas object
- * @li the flag state to set (EINA_TRUE)
- *
- * @procedure
- * @step 1 call ecore_evas_demand_attention_set with NULL instead of a valid Ecore_Evas object
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_demand_attention_set_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- ecore_evas_demand_attention_set(NULL, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_demand_attention_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_demand_attention_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_demand_attention_set_p);
- tcase_add_test(tcase, utc_ecore_evas_demand_attention_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_draw_frame_get ecore_evas_draw_frame_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_draw_frame_get
- * @{
- * @objective Positive test case 01: Checks if function properly works with valid input data.
- * @n Input Data:
- * @li valid Ecore_Evas object
- *
- * @procedure
- * @step 1 call ecore_evas_draw_frame_set with valid Ecore_Evas object
- * @step 2 Check if ecore_evas_draw_frame_get returns the same value was set by ecore_evas_draw_frame_set
- *
- * @passcondition
- * ecore_evas_draw_frame_set/get is deprecated. It should be possilbe to use this symbol.
- * @}
- */
-
-START_TEST(utc_ecore_evas_draw_frame_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 ret;
-
- ecore_evas_draw_frame_set(ee, EINA_TRUE);
- ret = ecore_evas_draw_frame_get(ee);
-
- if (ret != EINA_TRUE)
- {
- /* ecore_evas_draw_frame_set/get deprecated API. checking result is meaningless.
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- */
- }
-
- ecore_evas_draw_frame_set(ee, EINA_FALSE);
- ret = ecore_evas_draw_frame_get(ee);
-
- if (ret != EINA_FALSE)
- {
- /* ecore_evas_draw_frame_set/get deprecated API. checking result is meaningless.
- 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 ecore_evas_draw_frame_get
- * @{
- * @objective The negative test case 1 checks situations if first argument of tested function become NULL.
- * @n Input Data:
- * @li NULL instead of a valid Ecore_Evas object
- *
- * @procedure
- * @step 1 call ecore_evas_draw_frame_get with NULL instead of a valid Ecore_Evas object
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_draw_frame_get_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- ret = ecore_evas_draw_frame_get(NULL);
-
- if (ret != 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
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_draw_frame_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_draw_frame_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_draw_frame_get_p);
- tcase_add_test(tcase, utc_ecore_evas_draw_frame_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_draw_frame_get ecore_evas_draw_frame_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ if (ee == NULL)
+ {
+ startup_status = EINA_FALSE;
+ }
+ else
+ {
+ startup_status = EINA_TRUE;
+ }
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_draw_frame_get
+ * @{
+ * @objective Positive test case 01: Checks if function properly works with valid input data.
+ * @n Input Data:
+ * @li valid Ecore_Evas object
+ *
+ * @procedure
+ * @step 1 call ecore_evas_draw_frame_set with valid Ecore_Evas object
+ * @step 2 Check if ecore_evas_draw_frame_get returns the same value was set by ecore_evas_draw_frame_set
+ *
+ * @passcondition
+ * ecore_evas_draw_frame_set/get is deprecated. It should be possilbe to use this symbol.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_draw_frame_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 ret;
+
+ ecore_evas_draw_frame_set(ee, EINA_TRUE);
+ ret = ecore_evas_draw_frame_get(ee);
+
+ if (ret != EINA_TRUE)
+ {
+ /* ecore_evas_draw_frame_set/get deprecated API. checking result is meaningless.
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ */
+ }
+
+ ecore_evas_draw_frame_set(ee, EINA_FALSE);
+ ret = ecore_evas_draw_frame_get(ee);
+
+ if (ret != EINA_FALSE)
+ {
+ /* ecore_evas_draw_frame_set/get deprecated API. checking result is meaningless.
+ 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 ecore_evas_draw_frame_get
+ * @{
+ * @objective The negative test case 1 checks situations if first argument of tested function become NULL.
+ * @n Input Data:
+ * @li NULL instead of a valid Ecore_Evas object
+ *
+ * @procedure
+ * @step 1 call ecore_evas_draw_frame_get with NULL instead of a valid Ecore_Evas object
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_draw_frame_get_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool ret = EINA_FALSE;
+
+ ret = ecore_evas_draw_frame_get(NULL);
+
+ if (ret != 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 ecore_evas_draw_frame_set
+ * @{
+ * @objective The negative test case 1 checks situations if first argument of tested function become NULL.
+ * @n Input Data:
+ * @li NULL instead of a valid Ecore_Evas object
+ * @li the flag state to set (EINA_TRUE)
+ *
+ * @procedure
+ * @step 1 call ecore_evas_draw_frame_set with NULL instead of a valid Ecore_Evas object
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_draw_frame_set_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ ecore_evas_draw_frame_set(NULL, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_draw_frame_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_draw_frame_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_draw_frame_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_draw_frame_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_draw_frame_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_draw_frame_set ecore_evas_draw_frame_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- startup_status = EINA_TRUE;
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_draw_frame_set
- * @{
- * @objective Positive test case 01: Checks if function properly works with valid input data.
- * @n Input Data:
- * @li valid Ecore_Evas object
- * @li the flag state to set (EINA_TRUE | EINA_FALSE)
- *
- * @procedure
- * @step 1 call ecore_evas_draw_frame_set with valid Ecore_Evas object
- * @step 2 Check if ecore_evas_draw_frame_get returns the same value was set by ecore_evas_draw_frame_set
- *
- * @passcondition
- * ecore_evas_draw_frame_set/get is deprecated. It should be possilbe to use this symbol.
- * @}
- */
-
-START_TEST(utc_ecore_evas_draw_frame_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 ret;
-
- ecore_evas_draw_frame_set(ee, EINA_TRUE);
- ret = ecore_evas_draw_frame_get(ee);
-
- if (ret != EINA_TRUE)
- {
- /* ecore_evas_draw_frame_set/get deprecated API. checking result is meaningless.
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- */
- }
-
- ecore_evas_draw_frame_set(ee, EINA_FALSE);
- ret = ecore_evas_draw_frame_get(ee);
-
- if (ret != EINA_FALSE)
- {
- /* ecore_evas_draw_frame_set/get deprecated API. checking result is meaningless.
- 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 ecore_evas_draw_frame_set
- * @{
- * @objective The negative test case 1 checks situations if first argument of tested function become NULL.
- * @n Input Data:
- * @li NULL instead of a valid Ecore_Evas object
- * @li the flag state to set (EINA_TRUE)
- *
- * @procedure
- * @step 1 call ecore_evas_draw_frame_set with NULL instead of a valid Ecore_Evas object
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_draw_frame_set_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- ecore_evas_draw_frame_set(NULL, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_draw_frame_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_draw_frame_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_draw_frame_set_p);
- tcase_add_test(tcase, utc_ecore_evas_draw_frame_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-static int callback_counter = 0;
-static Ecore_Timer *timer = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-static void callback_function(Ecore_Evas *ee)
-{
- callback_counter++;
- if (timer != NULL)
- {
- ecore_timer_del(timer);
- }
- ecore_main_loop_quit();
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_focus_skip_get ecore_evas_focus_skip_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (timer != NULL)
- {
- ecore_timer_del(timer);
- }
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_focus_skip_get
- * @{
- * @objective The positive test case checks that function sets callback without error.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @procedure
- * @step 1 Initialize callback_counter to 0.
- * @step 2 Set focus-in event callback for the given Ecore_Evas object.
- * @step 3 Block focus-in event for the given Ecore_Evas object by ecore_evas_focus_skip_set() with EINA_TRUE.
- * @step 4 Checking blocking by ecore_evas_focus_skip_get().
- * @step 5 Call ecore_evas_show() and ecore_evas_focus_set() with EINA_TRUE for initiating focus-in event.
- * @step 6 Set timer for preschedule termination of main loop if tested callback wasn't executed.
- * @step 7 Start of main loop and wait for tested callback executing.
- * @step 8 Check value of static variable named callback_counter. If this variable is changed, that callback wasn't executed, and this is well. In other cases we watch error.
- * @step 9 Unlock focus-in event for the given Ecore_Evas object by ecore_evas_focus_skip_set() with EINA_FALSE.
- * @step 10 Checking unblocking by ecore_evas_focus_skip_get().
- * @step 11 Call ecore_evas_show() and ecore_evas_focus_set() with EINA_TRUE for initiating focus-in event.
- * @step 12 Set timer for preschedule termination of main loop if tested callback wasn't executed.
- * @step 13 Start of main loop and wait for tested callback executing.
- * @step 14 Check value of static variable named callback_counter. If this variable isin't changed, that callback was executed, and this is well. In other cases we watch error.
- *
- * @passcondition
- * The function must return values that were set, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_focus_skip_get_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
- Evas_Object *bg;
- ecore_evas_show(ee);
-
- bg = evas_object_rectangle_add(ecore_evas_get(ee));
- evas_object_color_set(bg, 255, 128, 0, 255);
- evas_object_resize(bg, 9999, 9999);
- evas_object_show(bg);
-
- callback_counter = 0;
- ecore_evas_callback_focus_in_set(ee, callback_function);
- ecore_evas_focus_set(ee, EINA_FALSE);
- ecore_evas_focus_skip_set(ee, EINA_TRUE);
-
- if (EINA_TRUE != ecore_evas_focus_skip_get(ee))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed", __FILE__, __LINE__);
- }
-
- ecore_evas_focus_set(ee, EINA_TRUE);
-
- timer = ecore_timer_add(0.5, _quit_timer_cb, NULL);
- if (timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-/* TODO replace printf by ck_abort_msg when API will be fixed*/
- if (callback_counter > 0)
- {
- printf("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_evas_focus_skip_set(ee, EINA_FALSE);
- if (EINA_FALSE != ecore_evas_focus_skip_get(ee))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed", __FILE__, __LINE__);
- }
-
- ecore_evas_focus_set(ee, EINA_TRUE);
-
- timer = ecore_timer_add(0.5, _quit_timer_cb, NULL);
- if (timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-
- if (callback_counter < 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_evas_focus_skip_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_focus_skip_get_n)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- UNITEST_FUNC_NEG(ecore_evas_focus_skip_get, ee);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_focus_skip_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_focus_skip_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_focus_skip_get_p);
- tcase_add_test(tcase, utc_ecore_evas_focus_skip_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+static int callback_counter = 0;
+static Ecore_Timer *timer = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+static void callback_function(Ecore_Evas *ee)
+{
+ callback_counter++;
+ if (timer != NULL)
+ {
+ ecore_timer_del(timer);
+ }
+ ecore_main_loop_quit();
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_focus_skip_get ecore_evas_focus_skip_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (timer != NULL)
+ {
+ ecore_timer_del(timer);
+ }
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_focus_skip_get
+ * @{
+ * @objective The positive test case checks that function sets callback without error.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @procedure
+ * @step 1 Initialize callback_counter to 0.
+ * @step 2 Set focus-in event callback for the given Ecore_Evas object.
+ * @step 3 Block focus-in event for the given Ecore_Evas object by ecore_evas_focus_skip_set() with EINA_TRUE.
+ * @step 4 Checking blocking by ecore_evas_focus_skip_get().
+ * @step 5 Call ecore_evas_show() and ecore_evas_focus_set() with EINA_TRUE for initiating focus-in event.
+ * @step 6 Set timer for preschedule termination of main loop if tested callback wasn't executed.
+ * @step 7 Start of main loop and wait for tested callback executing.
+ * @step 8 Check value of static variable named callback_counter. If this variable is changed, that callback wasn't executed, and this is well. In other cases we watch error.
+ * @step 9 Unlock focus-in event for the given Ecore_Evas object by ecore_evas_focus_skip_set() with EINA_FALSE.
+ * @step 10 Checking unblocking by ecore_evas_focus_skip_get().
+ * @step 11 Call ecore_evas_show() and ecore_evas_focus_set() with EINA_TRUE for initiating focus-in event.
+ * @step 12 Set timer for preschedule termination of main loop if tested callback wasn't executed.
+ * @step 13 Start of main loop and wait for tested callback executing.
+ * @step 14 Check value of static variable named callback_counter. If this variable isin't changed, that callback was executed, and this is well. In other cases we watch error.
+ *
+ * @passcondition
+ * The function must return values that were set, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_focus_skip_get_p)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+ Evas_Object *bg;
+ ecore_evas_show(ee);
+
+ bg = evas_object_rectangle_add(ecore_evas_get(ee));
+ evas_object_color_set(bg, 255, 128, 0, 255);
+ evas_object_resize(bg, 9999, 9999);
+ evas_object_show(bg);
+
+ callback_counter = 0;
+ ecore_evas_callback_focus_in_set(ee, callback_function);
+ ecore_evas_focus_set(ee, EINA_FALSE);
+ ecore_evas_focus_skip_set(ee, EINA_TRUE);
+
+ if (EINA_TRUE != ecore_evas_focus_skip_get(ee))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed", __FILE__, __LINE__);
+ }
+
+ ecore_evas_focus_set(ee, EINA_TRUE);
+
+ timer = ecore_timer_add(0.5, _quit_timer_cb, NULL);
+ if (timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+/* TODO replace printf by ck_abort_msg when API will be fixed*/
+ if (callback_counter > 0)
+ {
+ printf("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ ecore_evas_focus_skip_set(ee, EINA_FALSE);
+ if (EINA_FALSE != ecore_evas_focus_skip_get(ee))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed", __FILE__, __LINE__);
+ }
+
+ ecore_evas_focus_set(ee, EINA_TRUE);
+
+ timer = ecore_timer_add(0.5, _quit_timer_cb, NULL);
+ if (timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+
+ if (callback_counter < 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_focus_skip_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_focus_skip_get_n)
+{
+
+ if (startup_status != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ UNITEST_FUNC_NEG(ecore_evas_focus_skip_get, ee);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_focus_skip_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_focus_skip_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(ecore_evas_focus_skip_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_focus_skip_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_focus_skip_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_focus_skip_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_focus_skip_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_focus_skip_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-static int callback_counter = 0;
-static Ecore_Timer *timer = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-static void callback_function(Ecore_Evas *ee)
-{
- callback_counter++;
- if (timer != NULL)
- {
- ecore_timer_del(timer);
- }
- ecore_main_loop_quit();
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_focus_skip_set ecore_evas_focus_skip_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (timer != NULL)
- {
- ecore_timer_del(timer);
- }
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_focus_skip_set
- * @{
- * @objective The positive test case checks that function sets callback without error.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li EINA_TRUE/EINA_FALSE.
- * @procedure
- * @step 1 Initialize callback_counter to 0.
- * @step 2 Set focus-in event callback for the given Ecore_Evas object.
- * @step 3 Block focus-in event for the given Ecore_Evas object by ecore_evas_focus_skip_set() with EINA_TRUE.
- * @step 4 Checking blocking by ecore_evas_focus_skip_get().
- * @step 5 Call ecore_evas_show() and ecore_evas_focus_set() with EINA_TRUE for initiating focus-in event.
- * @step 6 Set timer for preschedule termination of main loop if tested callback wasn't executed.
- * @step 7 Start of main loop and wait for tested callback executing.
- * @step 8 Check value of static variable named callback_counter. If this variable is changed, that callback wasn't executed, and this is well. In other cases we watch error.
- * @step 9 Unlock focus-in event for the given Ecore_Evas object by ecore_evas_focus_skip_set() with EINA_FALSE.
- * @step 10 Checking unblocking by ecore_evas_focus_skip_get().
- * @step 11 Call ecore_evas_show() and ecore_evas_focus_set() with EINA_TRUE for initiating focus-in event.
- * @step 12 Set timer for preschedule termination of main loop if tested callback wasn't executed.
- * @step 13 Start of main loop and wait for tested callback executing.
- * @step 14 Check value of static variable named callback_counter. If this variable isin't changed, that callback was executed, and this is well. In other cases we watch error.
- *
- * @passcondition
- * The callback_counter variable must be 0 and then more or equal 1 respectively, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_focus_skip_set_p)
-{
-
- if (startup_status != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
- Evas_Object *bg;
- ecore_evas_show(ee);
-
- bg = evas_object_rectangle_add(ecore_evas_get(ee));
- evas_object_color_set(bg, 255, 128, 0, 255);
- evas_object_resize(bg, 9999, 9999);
- evas_object_show(bg);
-
- callback_counter = 0;
- ecore_evas_callback_focus_in_set(ee, callback_function);
- ecore_evas_focus_set(ee, EINA_FALSE);
- ecore_evas_focus_skip_set(ee, EINA_TRUE);
-
- if (EINA_TRUE != ecore_evas_focus_skip_get(ee))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed", __FILE__, __LINE__);
- }
-
- ecore_evas_focus_set(ee, EINA_TRUE);
-
- timer = ecore_timer_add(0.5, _quit_timer_cb, NULL);
- if (timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-/* TODO replace printf by ck_abort_msg when API will be fixed*/
- if (callback_counter > 0)
- {
- printf("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_evas_focus_skip_set(ee, EINA_FALSE);
- if (EINA_FALSE != ecore_evas_focus_skip_get(ee))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed", __FILE__, __LINE__);
- }
-
- ecore_evas_focus_set(ee, EINA_TRUE);
-
- timer = ecore_timer_add(0.5, _quit_timer_cb, NULL);
- if (timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
-
- if (callback_counter < 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup ecore_evas_focus_skip_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_focus_skip_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(ecore_evas_focus_skip_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_focus_skip_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_focus_skip_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_focus_skip_set_p);
- tcase_add_test(tcase, utc_ecore_evas_focus_skip_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_fullscreen_get ecore_evas_fullscreen_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- * @step 3 Call ecore_evas_fullscreen_set() and set fullscreen property to TRUE
- * @step 4 Create a new timer. We will use this timer to wait 1 second between ecore_evas_fullscreen_set() and ecore_evas_fullscreen_get(). This is necessary because the running EFL application does not know that ecore_evas is fullscreen until X11 reports to it that this request succeeded. One second is an arbitrary value, we just need to wait some time
- * @step 5 Execute ecore_main_loop_quit to run the application main loop
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- if (ee == NULL)
- {
- startup_status = EINA_FALSE;
- }
- else
- {
- ecore_evas_show(ee);
- startup_status = EINA_TRUE;
- ecore_evas_fullscreen_set(ee, EINA_TRUE);
- ecore_timer_add(1.0, _quit_timer_cb, NULL);
- ecore_main_loop_begin();
- }
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_fullscreen_get
- * @{
- * @objective The positive test case checks that the tested function gets correct fullscreen status of the given Ecore_Evas object.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Call ecore_evas_fullscreen_get() to retrieve fullscreen property.
- * @step 2 Compare the result with the expected value.
- *
- * @passcondition
- * Function must return EINA_FALSE, because this value of fullscreen status was set in startup. Also there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_fullscreen_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 eb;
-
- eb = ecore_evas_fullscreen_get(ee);
-
- if (EINA_FALSE == eb)
- {
- 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 ecore_evas_fullscreen_get
- * @{
- * @objective The negative test case checks situation if argument of tested function becomes NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- * @step 2 Check that the value returned by this universal macro is TET_PASS.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_fullscreen_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, ecore_evas_fullscreen_get, ee) == 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_ecore_evas_fullscreen_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_fullscreen_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_fullscreen_get_p);
- tcase_add_test(tcase, utc_ecore_evas_fullscreen_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return EINA_FALSE;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_fullscreen_set ecore_evas_fullscreen_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init().
+ * @step 2 Create new ecore_evas canvas.
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_fullscreen_set
+ * @{
+ * @objective The positive test case checks that tested function correctly sets the fullscreen status.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @li EINA_TRUE, EINA_FALSE
+ * @procedure
+ * @step 1 Set fullscreen property to EINA_TRUE.
+ * @step 2 Create timer. We will use this timer to wait 1 second between ecore_evas_fullscreen_set() and ecore_evas_fullscreen_get(). This is necessary because the running EFL application does not know that ecore_evas is fullscreen until X11 reports to it that this request succeeded. One second is an arbitrary value, we just need to wait some time.
+ * @step 3 Execute ecore_main_loop_begin() to run the application main loop.
+ * @step 4 Call ecore_evas_fullscreen_get() to retrieve fullscreen property.
+ * @step 5 Set fullscreen property to EINA_FALSE.
+ * @step 6 Create still timer. We will use this timer to wait 1 second between ecore_evas_fullscreen_set() and ecore_evas_fullscreen_get(). This is necessary because the running EFL application does not know that ecore_evas is fullscreen until X11 reports to it that this request succeeded. One second is an arbitrary value, we just need to wait some time.
+ * @step 7 Execute ecore_main_loop_begin() to run the application main loop.
+ * @step 8 Call ecore_evas_fullscreen_get() to retrieve fullscreen property.
+ * @step 9 Compare fullscreen statuses retrieved at the step 4 and the step 8 with EINA_TRUE and EINA_FALSE, accordingly.
+ *
+ * @passcondition
+ * Data retrieved by ecore_evas_fullscreen_get() must be equal to EINA_TRUE in the first case and EINA_FALSE in the second case. Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_fullscreen_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 eb1, eb2;
+
+ ecore_evas_show(ee);
+
+ ecore_evas_fullscreen_set(ee, EINA_TRUE);
+ if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_fullscreen_get(ee);
+
+ ecore_evas_fullscreen_set(ee, EINA_FALSE);
+ if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_fullscreen_get(ee);
+
+ if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
+ {
+ 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 ecore_evas_fullscreen_set
+ * @{
+ * @objective The negative test case checks situation if first argument of tested function (Ecore_Evas object) becomes NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_fullscreen_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(ecore_evas_fullscreen_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_fullscreen_get
+ * @{
+ * @objective The negative test case checks situation if argument of tested function becomes NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ * @step 2 Check that the value returned by this universal macro is TET_PASS.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_fullscreen_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, ecore_evas_fullscreen_get, ee) == 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_ecore_evas_fullscreen_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_fullscreen_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_fullscreen_set_p);
+ tcase_add_test(tcase, utc_ecore_evas_fullscreen_set_n);
+ tcase_add_test(tcase, utc_ecore_evas_fullscreen_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_fullscreen_set ecore_evas_fullscreen_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init().
- * @step 2 Create new ecore_evas canvas.
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_fullscreen_set
- * @{
- * @objective The positive test case checks that tested function correctly sets the fullscreen status.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li EINA_TRUE, EINA_FALSE
- * @procedure
- * @step 1 Set fullscreen property to EINA_TRUE.
- * @step 2 Create timer. We will use this timer to wait 1 second between ecore_evas_fullscreen_set() and ecore_evas_fullscreen_get(). This is necessary because the running EFL application does not know that ecore_evas is fullscreen until X11 reports to it that this request succeeded. One second is an arbitrary value, we just need to wait some time.
- * @step 3 Execute ecore_main_loop_begin() to run the application main loop.
- * @step 4 Call ecore_evas_fullscreen_get() to retrieve fullscreen property.
- * @step 5 Set fullscreen property to EINA_FALSE.
- * @step 6 Create still timer. We will use this timer to wait 1 second between ecore_evas_fullscreen_set() and ecore_evas_fullscreen_get(). This is necessary because the running EFL application does not know that ecore_evas is fullscreen until X11 reports to it that this request succeeded. One second is an arbitrary value, we just need to wait some time.
- * @step 7 Execute ecore_main_loop_begin() to run the application main loop.
- * @step 8 Call ecore_evas_fullscreen_get() to retrieve fullscreen property.
- * @step 9 Compare fullscreen statuses retrieved at the step 4 and the step 8 with EINA_TRUE and EINA_FALSE, accordingly.
- *
- * @passcondition
- * Data retrieved by ecore_evas_fullscreen_get() must be equal to EINA_TRUE in the first case and EINA_FALSE in the second case. Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_fullscreen_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 eb1, eb2;
-
- ecore_evas_show(ee);
-
- ecore_evas_fullscreen_set(ee, EINA_TRUE);
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_fullscreen_get(ee);
-
- ecore_evas_fullscreen_set(ee, EINA_FALSE);
- if (ecore_timer_add(1.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_fullscreen_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_fullscreen_set
- * @{
- * @objective The negative test case checks situation if first argument of tested function (Ecore_Evas object) becomes NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_fullscreen_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(ecore_evas_fullscreen_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_fullscreen_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_fullscreen_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_fullscreen_set_p);
- tcase_add_test(tcase, utc_ecore_evas_fullscreen_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_iconified_get ecore_evas_iconified_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_iconified_get
- * @{
- * @objective The positive test case checks that ecore_evas_iconified_get retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Call ecore_evas_iconified_set() to set iconified property in EINA_TRUE.
- * @step 2 Call ecore_evas_iconified_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
- * @step 3 Call ecore_evas_iconified_set() to set iconified property in EINA_FALSE.
- * @step 4 Call ecore_evas_iconified_get() to retrieve iconified property; use eb2 variable for saving the retrieved value.
- * @step 5 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_iconified_get() must be equal to the value which was set by ecore_evas_iconified_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_iconified_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 eb1, eb2;
-
- ecore_evas_iconified_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_iconified_get(ee);
-
- ecore_evas_iconified_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_iconified_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_iconified_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_iconified_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, ecore_evas_iconified_get, ee) == 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_ecore_evas_iconified_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_iconified_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_iconified_get_p);
- tcase_add_test(tcase, utc_ecore_evas_iconified_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_iconified_get ecore_evas_iconified_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_iconified_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_iconified_get retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ * @procedure
+ * @step 1 Call ecore_evas_iconified_set() to set iconified property in EINA_TRUE.
+ * @step 2 Call ecore_evas_iconified_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
+ * @step 3 Call ecore_evas_iconified_set() to set iconified property in EINA_FALSE.
+ * @step 4 Call ecore_evas_iconified_get() to retrieve iconified property; use eb2 variable for saving the retrieved value.
+ * @step 5 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_iconified_get() must be equal to the value which was set by ecore_evas_iconified_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_iconified_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 eb1, eb2;
+
+ ecore_evas_iconified_set(ee, EINA_TRUE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_iconified_get(ee);
+
+ ecore_evas_iconified_set(ee, EINA_FALSE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_iconified_get(ee);
+
+ if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
+ {
+ 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 ecore_evas_iconified_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_iconified_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, ecore_evas_iconified_get, ee) == 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 ecore_evas_iconified_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li iconified status (EINA_TRUE).
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_iconified_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(ecore_evas_iconified_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_iconified_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_iconified_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_iconified_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_iconified_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_iconified_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_iconified_set ecore_evas_iconified_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_iconified_set
- * @{
- * @objective The positive test case checks that ecore_evas_iconified_set sets correct values in all cases.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li iconified status (EINA_TRUE or EINA_FALSE).
- * @procedure
- * @step 1 Call ecore_evas_iconified_set() to set iconified property in EINA_TRUE.
- * @step 2 Call ecore_evas_iconified_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
- * @step 3 Call ecore_evas_iconified_set() to set iconified property in EINA_FALSE.
- * @step 4 Call ecore_evas_iconified_get() to retrieve iconified property; use eb2 variable for saving the retrieved value.
- * @step 5 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_iconified_get() must be equal to the value which was set by ecore_evas_iconified_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_iconified_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 eb1, eb2;
-
- ecore_evas_iconified_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_iconified_get(ee);
-
- ecore_evas_iconified_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_iconified_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_iconified_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li iconified status (EINA_TRUE).
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_iconified_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(ecore_evas_iconified_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_iconified_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_iconified_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_iconified_set_p);
- tcase_add_test(tcase, utc_ecore_evas_iconified_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_manual_render_get ecore_evas_manual_render_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- * @step 3 Call ecore_evas_manual_render_set() to set manual-render property to TRUE
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_manual_render_get
- * @{
- * @objective The positive test case checks that ecore_evas_manual_render_get() retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Call ecore_evas_manual_render_set() to set manual-render property in EINA_TRUE.
- * @step 2 Call ecore_evas_manual_render_get() to retrieve current manual-render property; use eb1 variable for saving the retrieved value.
- * @step 3 Call ecore_evas_manual_render_set() to set manual-render property in EINA_FALSE.
- * @step 4 Call ecore_evas_manual_render_get() to retrieve current manual-render property; use eb2 variable for saving the retrieved value.
- * @step 5 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_manual_render_get() must be equal to the value which was set by ecore_evas_manual_render_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_manual_render_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 eb1, eb2;
-
- ecore_evas_manual_render_set(ee, EINA_TRUE);
- eb1 = ecore_evas_manual_render_get(ee);
- ecore_evas_manual_render_set(ee, EINA_FALSE);
- eb2 = ecore_evas_manual_render_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_manual_render_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * Function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_manual_render_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, ecore_evas_manual_render_get, ee) == 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_ecore_evas_manual_render_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_manual_render_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_manual_render_get_p);
- tcase_add_test(tcase, utc_ecore_evas_manual_render_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_manual_render_get ecore_evas_manual_render_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ * @step 3 Call ecore_evas_manual_render_set() to set manual-render property to TRUE
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_manual_render_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_manual_render_get() retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ * @procedure
+ * @step 1 Call ecore_evas_manual_render_set() to set manual-render property in EINA_TRUE.
+ * @step 2 Call ecore_evas_manual_render_get() to retrieve current manual-render property; use eb1 variable for saving the retrieved value.
+ * @step 3 Call ecore_evas_manual_render_set() to set manual-render property in EINA_FALSE.
+ * @step 4 Call ecore_evas_manual_render_get() to retrieve current manual-render property; use eb2 variable for saving the retrieved value.
+ * @step 5 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_manual_render_get() must be equal to the value which was set by ecore_evas_manual_render_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_manual_render_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 eb1, eb2;
+
+ ecore_evas_manual_render_set(ee, EINA_TRUE);
+ eb1 = ecore_evas_manual_render_get(ee);
+ ecore_evas_manual_render_set(ee, EINA_FALSE);
+ eb2 = ecore_evas_manual_render_get(ee);
+
+ if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
+ {
+ 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 ecore_evas_manual_render_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * Function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_manual_render_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, ecore_evas_manual_render_get, ee) == 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 ecore_evas_manual_render_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li iconified status (EINA_TRUE).
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_manual_render_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(ecore_evas_manual_render_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_manual_render_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_manual_render_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_manual_render_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_manual_render_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_manual_render_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_manual_render_set ecore_evas_manual_render_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_manual_render_set
- * @{
- * @objective The positive test case checks that ecore_evas_manual_render_set() sets correct values in all cases.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li manual-render property (EINA_TRUE or EINA_FALSE).
- * @procedure
- * @step 1 Call ecore_evas_manual_render_set() to set manual-render property in EINA_TRUE.
- * @step 2 Call ecore_evas_manual_render_get() to retrieve current manual-render property; use eb1 variable for saving the retrieved value.
- * @step 3 Call ecore_evas_manual_render_set() to set manual-render property in EINA_FALSE.
- * @step 4 Call ecore_evas_manual_render_get() to retrieve current manual-render property; use eb2 variable for saving the retrieved value.
- * @step 5 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_manual_render_get() must be equal to the value which was set by ecore_evas_manual_render_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_manual_render_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 eb1, eb2;
-
- ecore_evas_manual_render_set(ee, EINA_TRUE);
- eb1 = ecore_evas_manual_render_get(ee);
- ecore_evas_manual_render_set(ee, EINA_FALSE);
- eb2 = ecore_evas_manual_render_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_manual_render_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li iconified status (EINA_TRUE).
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_manual_render_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(ecore_evas_manual_render_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_manual_render_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_manual_render_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_manual_render_set_p);
- tcase_add_test(tcase, utc_ecore_evas_manual_render_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_maximized_get ecore_evas_maximized_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_maximized_get
- * @{
- * @objective The positive test case checks that ecore_evas_maximized_get() retrieves current state (it is maximized or it is not maximized) of the given Ecore_Evas window.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Call ecore_evas_maximized_set() to maximize the given Ecore_Evas window.
- * @step 2 Wait a one second for window state changes using the timer.
- * @step 3 Call ecore_evas_maximized_get() to define the window status (window must be maximized); use eb1 variable for saving the window status.
- * @step 4 Call ecore_evas_maximized_set() to restore normal state of the given Ecore_Evas window.
- * @step 5 Wait a one second for window state changes using the timer.
- * @step 6 Call ecore_evas_maximized_get() to define the window status (window must not be maximized); use eb2 variable for saving the window status.
- * @step 7 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_maximized_get() must be equal to the value which was set by ecore_evas_maximized_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_maximized_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 eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_maximized_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_maximized_get(ee);
- ecore_evas_maximized_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_maximized_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_maximized_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_maximized_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, ecore_evas_maximized_get, ee) == 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_ecore_evas_maximized_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_maximized_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_maximized_get_p);
- tcase_add_test(tcase, utc_ecore_evas_maximized_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_maximized_get ecore_evas_maximized_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_maximized_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_maximized_get() retrieves current state (it is maximized or it is not maximized) of the given Ecore_Evas window.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ * @procedure
+ * @step 1 Call ecore_evas_maximized_set() to maximize the given Ecore_Evas window.
+ * @step 2 Wait a one second for window state changes using the timer.
+ * @step 3 Call ecore_evas_maximized_get() to define the window status (window must be maximized); use eb1 variable for saving the window status.
+ * @step 4 Call ecore_evas_maximized_set() to restore normal state of the given Ecore_Evas window.
+ * @step 5 Wait a one second for window state changes using the timer.
+ * @step 6 Call ecore_evas_maximized_get() to define the window status (window must not be maximized); use eb2 variable for saving the window status.
+ * @step 7 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_maximized_get() must be equal to the value which was set by ecore_evas_maximized_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_maximized_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 eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_maximized_set(ee, EINA_TRUE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_maximized_get(ee);
+ ecore_evas_maximized_set(ee, EINA_FALSE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_maximized_get(ee);
+
+ if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
+ {
+ 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 ecore_evas_maximized_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_maximized_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, ecore_evas_maximized_get, ee) == 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 ecore_evas_maximized_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li flag of the window maximization (EINA_TRUE).
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_maximized_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(ecore_evas_maximized_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_maximized_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_maximized_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_maximized_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_maximized_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_maximized_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_maximized_set ecore_evas_maximized_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL)? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_maximized_set
- * @{
- * @objective The positive test case checks that ecore_evas_maximized_set() maximize and restore the given Ecore_Evas window correctly.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li flag of the window maximization (EINA_TRUE or EINA_FALSE).
- * @procedure
- * @step 1 Call ecore_evas_maximized_set() to maximize the given Ecore_Evas window.
- * @step 2 Wait a one second for window state changes using the timer.
- * @step 3 Call ecore_evas_maximized_get() to define the window status (window must be maximized); use eb1 variable for saving the window status.
- * @step 4 Call ecore_evas_maximized_set() to restore normal state of the given Ecore_Evas window.
- * @step 5 Wait a one second for window state changes using the timer.
- * @step 6 Call ecore_evas_maximized_get() to define the window status (window must not be maximized); use eb2 variable for saving the window status.
- * @step 7 Compare eb1 and eb2 with EINA_TRUE and EINA_FALSE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_maximized_get() must be equal to the value which was set by ecore_evas_maximized_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_maximized_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 eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_maximized_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_maximized_get(ee);
- ecore_evas_maximized_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_maximized_get(ee);
-
- if ((EINA_TRUE != eb1) || (EINA_FALSE != eb2))
- {
- 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 ecore_evas_maximized_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li flag of the window maximization (EINA_TRUE).
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_maximized_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(ecore_evas_maximized_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_maximized_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_maximized_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_maximized_set_p);
- tcase_add_test(tcase, utc_ecore_evas_maximized_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_modal_get ecore_evas_modal_get()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_modal_get
- * @{
- * @objective The positive test case checks that ecore_evas_modal_get retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_modal_set() to set modal property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_modal_get() to retrieve current modal property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_modal_set() to set modal property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_modal_get() to retrieve modal property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_modal_get() must be equal to the value which was set by ecore_evas_modal_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_modal_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_modal_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_modal_get(ee);
-
- ecore_evas_modal_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_modal_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_modal_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_modal_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_modal_get, ee) == 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_ecore_evas_modal_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_modal_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_modal_get_p);
- tcase_add_test(tcase, utc_ecore_evas_modal_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_modal_get ecore_evas_modal_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_modal_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_modal_get retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ *
+ * @procedure
+ * @step 1 all ecore_evas_show().
+ * @step 2 Call ecore_evas_modal_set() to set modal property in EINA_TRUE.
+ * @step 3 Wait for 0.5 sec using timer.
+ * @step 4 Call ecore_evas_modal_get() to retrieve current modal property; use eb1 variable for saving the retrieved value.
+ * @step 5 Call ecore_evas_modal_set() to set modal property in EINA_FALSE.
+ * @step 6 Wait for 0.5 sec using timer.
+ * @step 7 Call ecore_evas_modal_get() to retrieve modal property; use eb2 variable for saving the retrieved value.
+ * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_modal_get() must be equal to the value which was set by ecore_evas_modal_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_modal_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_modal_set(ee, EINA_TRUE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_modal_get(ee);
+
+ ecore_evas_modal_set(ee, EINA_FALSE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_modal_get(ee);
+
+ if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
+ {
+ 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 ecore_evas_modal_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_modal_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_modal_get, ee) == 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 ecore_evas_modal_set
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_modal_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_modal_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_modal_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_modal_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_modal_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_modal_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_modal_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_modal_set ecore_evas_modal_set()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_modal_set
- * @{
- * @objective The positive test case checks that ecore_evas_modal_set sets correct values in all cases.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable.
- * @li EINA_TRUE/EINA_FALSE
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_modal_set() to set modal property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_modal_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_modal_set() to set modal property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_modal_get() to retrieve modal property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_modal_get() must be equal to the value which was set by ecore_evas_modal_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_modal_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_modal_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_modal_get(ee);
-
- ecore_evas_modal_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_modal_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_modal_set
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_modal_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_modal_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_modal_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_modal_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_modal_set_p);
- tcase_add_test(tcase, utc_ecore_evas_modal_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <string.h>
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-static const char *itsName = "NAME", *itsClass = "CLASS";
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_name_class_get ecore_evas_name_class_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
-}
-
-/**
- * @addtogroup ecore_evas_name_class_get
- * @{
- * @objective The positive test case checks that ecore_evas_name_class_get() retrieves name and new class of the given Ecore_Evas window correctly.
- * @n Input Data:
- * @li Ecore_Evas window specified by ee variable;
- * @li address of window name;
- * @li address of window class.
- *
- * @procedure
- * @step 1 Call ecore_evas_name_class_set() to set target name and target class of the given Ecore_Evas window.
- * @step 2 Call ecore_evas_name_class_get() to retrieve the new name and new class of this window.
- * @step 3 Check that target name and class are equal to new name and class which were retrieved after call of ecore_evas_name_class_set().
- *
- * @passcondition
- * Target window name must be equal to new window name which was after call of ecore_evas_name_class_set(). Also, Also, target window class must be equal to new window class which was after call of ecore_evas_name_class_set(). Besides, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_name_class_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- char *newItsName = NULL, *newItsClass = NULL;
- Eina_Bool ok;
-
- ecore_evas_name_class_set(ee, itsName, itsClass);
- ecore_evas_name_class_get(ee, &newItsName, &newItsClass);
- if ((newItsName == NULL) || (newItsClass == NULL))
- {
- ok = EINA_FALSE;
- }
- else
- {
- ok = (((strcmp(itsName, newItsName) == 0) && (strcmp(itsClass, newItsClass) == 0)) ? EINA_TRUE : EINA_FALSE);
- }
-
- if (ok == 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 ecore_evas_name_class_get
- * @{
- * @objective The negative test case checks if the arguments of tested function are NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li address of window name (it will be replaced by NULL in the universal macro);
- * @li address of window class (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_name_class_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- char *newItsName = NULL, *newItsClass = NULL;
-
- UNITEST_FUNC_NEG(ecore_evas_name_class_get, ee, &newItsName, &newItsClass);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_name_class_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_name_class_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_name_class_get_p);
- tcase_add_test(tcase, utc_ecore_evas_name_class_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <string.h>
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+static const char *itsName = "NAME", *itsClass = "CLASS";
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_name_class_get ecore_evas_name_class_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+}
+
+/**
+ * @addtogroup ecore_evas_name_class_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_name_class_get() retrieves name and new class of the given Ecore_Evas window correctly.
+ * @n Input Data:
+ * @li Ecore_Evas window specified by ee variable;
+ * @li address of window name;
+ * @li address of window class.
+ *
+ * @procedure
+ * @step 1 Call ecore_evas_name_class_set() to set target name and target class of the given Ecore_Evas window.
+ * @step 2 Call ecore_evas_name_class_get() to retrieve the new name and new class of this window.
+ * @step 3 Check that target name and class are equal to new name and class which were retrieved after call of ecore_evas_name_class_set().
+ *
+ * @passcondition
+ * Target window name must be equal to new window name which was after call of ecore_evas_name_class_set(). Also, Also, target window class must be equal to new window class which was after call of ecore_evas_name_class_set(). Besides, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_name_class_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ char *newItsName = NULL, *newItsClass = NULL;
+ Eina_Bool ok;
+
+ ecore_evas_name_class_set(ee, itsName, itsClass);
+ ecore_evas_name_class_get(ee, &newItsName, &newItsClass);
+ if ((newItsName == NULL) || (newItsClass == NULL))
+ {
+ ok = EINA_FALSE;
+ }
+ else
+ {
+ ok = (((strcmp(itsName, newItsName) == 0) && (strcmp(itsClass, newItsClass) == 0)) ? EINA_TRUE : EINA_FALSE);
+ }
+
+ if (ok == 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 ecore_evas_name_class_get
+ * @{
+ * @objective The negative test case checks if the arguments of tested function are NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li address of window name (it will be replaced by NULL in the universal macro);
+ * @li address of window class (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_name_class_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ char *newItsName = NULL, *newItsClass = NULL;
+
+ UNITEST_FUNC_NEG(ecore_evas_name_class_get, ee, &newItsName, &newItsClass);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_name_class_set
+ * @{
+ * @objective The negative test case checks if the arguments of tested function are NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li new name of window (it will be replaced by NULL in the universal macro);
+ * @li new class of window (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_name_class_set_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ UNITEST_FUNC_NEG(ecore_evas_name_class_set, ee, itsName, itsClass);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_name_class_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_name_class_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_name_class_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_name_class_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_name_class_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <string.h>
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-static const char *itsName = "NAME", *itsClass = "CLASS";
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_name_class_set ecore_evas_name_class_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
-}
-
-/**
- * @addtogroup ecore_evas_name_class_set
- * @{
- * @objective The positive test case checks that ecore_evas_name_class_set() sets new name and new class of the given Ecore_Evas window correctly.
- * @n Input Data:
- * @li Ecore_Evas window specified by ee variable;
- * @li new name of window ("NAME");
- * @li new class of window ("CLASS").
- *
- * @procedure
- * @step 1 Call ecore_evas_name_class_set() to set target name and target class of the given Ecore_Evas window.
- * @step 2 Call ecore_evas_name_class_get() to retrieve the new name and new class of this window.
- * @step 3 Check that target name and class are equal to new name and class which were retrieved after call of ecore_evas_name_class_set().
- *
- * @passcondition
- * Target window name must be equal to new window name which was after call of ecore_evas_name_class_set(). Also, Also, target window class must be equal to new window class which was after call of ecore_evas_name_class_set(). Besides, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_name_class_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- char *newItsName = NULL, *newItsClass = NULL;
- Eina_Bool ok;
-
- ecore_evas_name_class_set(ee, itsName, itsClass);
- ecore_evas_name_class_get(ee, &newItsName, &newItsClass);
- if ((newItsName == NULL) || (newItsClass == NULL))
- {
- ok = EINA_FALSE;
- }
- else
- {
- ok = (((strcmp(itsName, newItsName) == 0) && (strcmp(itsClass, newItsClass) == 0)) ? EINA_TRUE : EINA_FALSE);
- }
-
- if (ok == 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 ecore_evas_name_class_set
- * @{
- * @objective The negative test case checks if the arguments of tested function are NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li new name of window (it will be replaced by NULL in the universal macro);
- * @li new class of window (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_name_class_set_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- UNITEST_FUNC_NEG(ecore_evas_name_class_set, ee, itsName, itsClass);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_name_class_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_name_class_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_name_class_set_p);
- tcase_add_test(tcase, utc_ecore_evas_name_class_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_override_get ecore_evas_override_get()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_override_get
- * @{
- * @objective The positive test case checks that ecore_evas_override_get retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_override_set() to set override property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_override_get() to retrieve current override property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_override_set() to set override property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_override_get() to retrieve override property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_override_get() must be equal to the value which was set by ecore_evas_override_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_override_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_override_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_override_get(ee);
-
- ecore_evas_override_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_override_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_override_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_override_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_override_get, ee) == 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_ecore_evas_override_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_override_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_override_get_p);
- tcase_add_test(tcase, utc_ecore_evas_override_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_override_get ecore_evas_override_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_override_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_override_get retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ *
+ * @procedure
+ * @step 1 all ecore_evas_show().
+ * @step 2 Call ecore_evas_override_set() to set override property in EINA_TRUE.
+ * @step 3 Wait for 0.5 sec using timer.
+ * @step 4 Call ecore_evas_override_get() to retrieve current override property; use eb1 variable for saving the retrieved value.
+ * @step 5 Call ecore_evas_override_set() to set override property in EINA_FALSE.
+ * @step 6 Wait for 0.5 sec using timer.
+ * @step 7 Call ecore_evas_override_get() to retrieve override property; use eb2 variable for saving the retrieved value.
+ * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_override_get() must be equal to the value which was set by ecore_evas_override_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_override_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_override_set(ee, EINA_TRUE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_override_get(ee);
+
+ ecore_evas_override_set(ee, EINA_FALSE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_override_get(ee);
+
+ if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
+ {
+ 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 ecore_evas_override_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_override_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_override_get, ee) == 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 ecore_evas_override_set
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_override_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_override_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_override_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_override_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_override_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_override_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_override_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_override_set ecore_evas_override_set()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_override_set
- * @{
- * @objective The positive test case checks that ecore_evas_override_set sets correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_override_set() to set override property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_override_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_override_set() to set override property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_override_get() to retrieve override property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_override_get() must be equal to the value which was set by ecore_evas_override_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_override_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_override_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_override_get(ee);
-
- ecore_evas_override_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_override_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_override_set
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_override_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_override_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_override_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_override_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_override_set_p);
- tcase_add_test(tcase, utc_ecore_evas_override_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define ROTATION_ANGLE 90
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_rotation_get ecore_evas_rotation_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- * @step 3 Call ecore_evas_rotation_set() to set the rotation of ecore_evas created in a previous step
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_rotation_get
- * @{
- * @objective The positive test case checks that ecore_evas_rotation_get() returns correct value which was set earlier.
- * @n Input Data: Ecore_Evas window specified by ee variable.
- *
- * @procedure
- * @step 1 Call ecore_evas_rotation_set() to set the required rotation angle of the given Ecore_Evas window.
- * @step 2 Call ecore_evas_rotation_get() to retrieve the current rotation angle.
- * @step 3 Compare retrieved value with required angle. They must be equal.
- *
- * @passcondition
- * The function must return angle which was set by ecore_evas_rotation_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_rotation_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int angle;
-
- ecore_evas_rotation_set(ee, ROTATION_ANGLE);
- angle = ecore_evas_rotation_get(ee);
-
- if (ROTATION_ANGLE != angle)
- {
- 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 ecore_evas_rotation_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The function must return 0, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_rotation_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- ecore_evas_rotation_set(ee, ROTATION_ANGLE);
- if (UNITEST_FUNC_NEG_RET(0, ecore_evas_rotation_get, ee) == 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_ecore_evas_rotation_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_rotation_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_rotation_get_p);
- tcase_add_test(tcase, utc_ecore_evas_rotation_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+#define ROTATION_ANGLE 90
+static Ecore_Evas *ee = NULL;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_rotation_get ecore_evas_rotation_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ * @step 3 Call ecore_evas_rotation_set() to set the rotation of ecore_evas created in a previous step
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_rotation_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_rotation_get() returns correct value which was set earlier.
+ * @n Input Data: Ecore_Evas window specified by ee variable.
+ *
+ * @procedure
+ * @step 1 Call ecore_evas_rotation_set() to set the required rotation angle of the given Ecore_Evas window.
+ * @step 2 Call ecore_evas_rotation_get() to retrieve the current rotation angle.
+ * @step 3 Compare retrieved value with required angle. They must be equal.
+ *
+ * @passcondition
+ * The function must return angle which was set by ecore_evas_rotation_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_rotation_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int angle;
+
+ ecore_evas_rotation_set(ee, ROTATION_ANGLE);
+ angle = ecore_evas_rotation_get(ee);
+
+ if (ROTATION_ANGLE != angle)
+ {
+ 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 ecore_evas_rotation_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The function must return 0, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_rotation_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ ecore_evas_rotation_set(ee, ROTATION_ANGLE);
+ if (UNITEST_FUNC_NEG_RET(0, ecore_evas_rotation_get, ee) == 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 ecore_evas_rotation_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li rotation angle which is equal to 90 degrees.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_rotation_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_rotation_set, ee, ROTATION_ANGLE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_rotation_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_rotation_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_rotation_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_rotation_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_rotation_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define ROTATION_ANGLE 90
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_rotation_set ecore_evas_rotation_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_rotation_set
- * @{
- * @objective The positive test case checks that ecore_evas_rotation_set() sets correct value of rotation angle.
- * @n Input Data:
- * @li Ecore_Evas window specified by ee variable;
- * @li rotation angle which is equal to 90 degrees.
- *
- * @procedure
- * @step 1 Call ecore_evas_rotation_set() to set the required rotation angle of the given Ecore_Evas window.
- * @step 2 Call ecore_evas_rotation_get() to retrieve the current rotation angle.
- * @step 3 Compare retrieved value with required angle. They must be equal.
- *
- * @passcondition
- * The angle retrieved by ecore_evas_rotation_get() is equal to angle which was set by ecore_evas_rotation_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_rotation_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int angle;
-
- ecore_evas_rotation_set(ee, ROTATION_ANGLE);
- angle = ecore_evas_rotation_get(ee);
-
- if (ROTATION_ANGLE != angle)
- {
- 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 ecore_evas_rotation_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li rotation angle which is equal to 90 degrees.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_rotation_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_rotation_set, ee, ROTATION_ANGLE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_rotation_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_rotation_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_rotation_set_p);
- tcase_add_test(tcase, utc_ecore_evas_rotation_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_shaped_get ecore_evas_shaped_get()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_shaped_get
- * @{
- * @objective The positive test case checks that ecore_evas_shaped_get retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_shaped_set() to set shaped property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_shaped_get() to retrieve current shaped property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_shaped_set() to set shaped property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_shaped_get() to retrieve shaped property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_shaped_get() must be equal to the value which was set by ecore_evas_shaped_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_shaped_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_shaped_set(ee, EINA_TRUE);
- if (ecore_timer_add(3.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_shaped_get(ee);
-
- ecore_evas_shaped_set(ee, EINA_FALSE);
- if (ecore_timer_add(3.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_shaped_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_shaped_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_shaped_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_shaped_get, ee) == 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_ecore_evas_shaped_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_shaped_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_shaped_get_p);
- tcase_add_test(tcase, utc_ecore_evas_shaped_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_shaped_get ecore_evas_shaped_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_shaped_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_shaped_get retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ *
+ * @procedure
+ * @step 1 all ecore_evas_show().
+ * @step 2 Call ecore_evas_shaped_set() to set shaped property in EINA_TRUE.
+ * @step 3 Wait for 0.5 sec using timer.
+ * @step 4 Call ecore_evas_shaped_get() to retrieve current shaped property; use eb1 variable for saving the retrieved value.
+ * @step 5 Call ecore_evas_shaped_set() to set shaped property in EINA_FALSE.
+ * @step 6 Wait for 0.5 sec using timer.
+ * @step 7 Call ecore_evas_shaped_get() to retrieve shaped property; use eb2 variable for saving the retrieved value.
+ * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_shaped_get() must be equal to the value which was set by ecore_evas_shaped_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_shaped_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_shaped_set(ee, EINA_TRUE);
+ if (ecore_timer_add(3.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_shaped_get(ee);
+
+ ecore_evas_shaped_set(ee, EINA_FALSE);
+ if (ecore_timer_add(3.0, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_shaped_get(ee);
+
+ if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
+ {
+ 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 ecore_evas_shaped_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_shaped_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_shaped_get, ee) == 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 ecore_evas_shaped_set
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_shaped_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_shaped_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_shaped_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_shaped_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_shaped_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_shaped_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_shaped_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_shaped_set ecore_evas_shaped_set()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_shaped_set
- * @{
- * @objective The positive test case checks that ecore_evas_shaped_set sets correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_shaped_set() to set shaped property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_shaped_get() to retrieve current shaped property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_shaped_set() to set shaped property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_shaped_get() to retrieve shaped property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_shaped_get() must be equal to the value which was set by ecore_evas_shaped_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_shaped_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_shaped_set(ee, EINA_TRUE);
- if (ecore_timer_add(3.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_shaped_get(ee);
-
- ecore_evas_shaped_set(ee, EINA_FALSE);
- if (ecore_timer_add(3.0, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_shaped_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_shaped_set
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_shaped_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_shaped_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_shaped_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_shaped_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_shaped_set_p);
- tcase_add_test(tcase, utc_ecore_evas_shaped_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define BASE_WIDTH 100
-#define BASE_HEIGHT 100
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_size_base_get ecore_evas_size_base_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_size_base_get
- * @{
- * @objective The positive test case checks that ecore_evas_size_base_get really retrieves base size for a given Ecore_Evas window.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li address of integer variable which defines base width of window;
- * @li address of integer variable which defines base height of window.
- *
- * @procedure
- * @step 1 Call ecore_evas_size_base_set() with target values of base width and base height as arguments.
- * @step 2 Call ecore_evas_size_base_get() for retrieving current base width and height.
- * @step 3 Compare retrieved values with target values.
- *
- * @passcondition
- * The retrieved base width and base height must be equal to base width and base height which were set by ecore_evas_size_base_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_base_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_size_base_set(ee, BASE_WIDTH, BASE_HEIGHT);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ecore_evas_size_base_get(ee, &width, &height);
- if ((width == BASE_WIDTH) && (height == BASE_HEIGHT))
- {
- ok = EINA_TRUE;
- }
-
- if (ok == 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 ecore_evas_size_base_get
- * @{
- * @objective The negative test case 1 checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li address of integer variable which defines base width of window (optional);
- * @li address of integer variable which defines base height of window (optional).
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * The width and height must not change, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_base_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_base_get, ee, &width, &height);
-
- if ((width != 0) || (height != 0))
- {
- 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 ecore_evas_size_base_get
- * @{
- * @objective The negative test case 2 checks situation if all arguments of tested function except first argument became NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (optional);
- * @li address of integer variable which defines base width of window (it will be replaced by NULL in the universal macro);
- * @li address of integer variable which defines base height of window (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_base_get_n2)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
-
- CREATE_CHECKED_ARGS_ARRAY(0, 1, 1);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_base_get, ee, &width, &height);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_size_base_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_size_base_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_size_base_get_p);
- tcase_add_test(tcase, utc_ecore_evas_size_base_get_n);
- tcase_add_test(tcase, utc_ecore_evas_size_base_get_n2);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+#define BASE_WIDTH 100
+#define BASE_HEIGHT 100
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_size_base_get ecore_evas_size_base_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_size_base_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_size_base_get really retrieves base size for a given Ecore_Evas window.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @li address of integer variable which defines base width of window;
+ * @li address of integer variable which defines base height of window.
+ *
+ * @procedure
+ * @step 1 Call ecore_evas_size_base_set() with target values of base width and base height as arguments.
+ * @step 2 Call ecore_evas_size_base_get() for retrieving current base width and height.
+ * @step 3 Compare retrieved values with target values.
+ *
+ * @passcondition
+ * The retrieved base width and base height must be equal to base width and base height which were set by ecore_evas_size_base_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_base_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+ Eina_Bool ok = EINA_FALSE;
+
+ ecore_evas_show(ee);
+ ecore_evas_size_base_set(ee, BASE_WIDTH, BASE_HEIGHT);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ecore_evas_size_base_get(ee, &width, &height);
+ if ((width == BASE_WIDTH) && (height == BASE_HEIGHT))
+ {
+ ok = EINA_TRUE;
+ }
+
+ if (ok == 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 ecore_evas_size_base_get
+ * @{
+ * @objective The negative test case 1 checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li address of integer variable which defines base width of window (optional);
+ * @li address of integer variable which defines base height of window (optional).
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * The width and height must not change, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_base_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_base_get, ee, &width, &height);
+
+ if ((width != 0) || (height != 0))
+ {
+ 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 ecore_evas_size_base_get
+ * @{
+ * @objective The negative test case 2 checks situation if all arguments of tested function except first argument became NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (optional);
+ * @li address of integer variable which defines base width of window (it will be replaced by NULL in the universal macro);
+ * @li address of integer variable which defines base height of window (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_base_get_n2)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+
+ CREATE_CHECKED_ARGS_ARRAY(0, 1, 1);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_base_get, ee, &width, &height);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_size_base_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li base width of window;
+ * @li base height of window.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ * @step 3 Call ecore_evas_size_base_set() with -10 as second argument and third argument in turn.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_base_set_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_base_set, ee, BASE_WIDTH, BASE_HEIGHT);
+ ecore_evas_size_base_set(ee, -10, BASE_HEIGHT);
+ ecore_evas_size_base_set(ee, BASE_WIDTH, -10);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_size_base_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_size_base_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_size_base_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_size_base_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_size_base_get_n2);
+ tcase_add_test(tcase, utc_ecore_evas_size_base_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define BASE_WIDTH 100
-#define BASE_HEIGHT 100
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_size_base_set ecore_evas_size_base_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_size_base_set
- * @{
- * @objective The positive test case checks that ecore_evas_size_base_set really sets base size for a given Ecore_Evas window.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li base width of window;
- * @li base height of window.
- *
- * @procedure
- * @step 1 Call ecore_evas_size_base_set() with target values of base width and base height as arguments.
- * @step 2 Call ecore_evas_size_base_get() for retrieving current base width and height.
- * @step 3 Compare retrieved values with target values.
- *
- * @passcondition
- * The retrieved base width and base height must be equal to base width and base height which were set by ecore_evas_size_base_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_base_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_size_base_set(ee, BASE_WIDTH, BASE_HEIGHT);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ecore_evas_size_base_get(ee, &width, &height);
- if ((width == BASE_WIDTH) && (height == BASE_HEIGHT))
- {
- ok = EINA_TRUE;
- }
-
- if (ok == 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 ecore_evas_size_base_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li base width of window;
- * @li base height of window.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- * @step 3 Call ecore_evas_size_base_set() with -10 as second argument and third argument in turn.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_base_set_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_base_set, ee, BASE_WIDTH, BASE_HEIGHT);
- ecore_evas_size_base_set(ee, -10, BASE_HEIGHT);
- ecore_evas_size_base_set(ee, BASE_WIDTH, -10);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_size_base_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_size_base_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_size_base_set_p);
- tcase_add_test(tcase, utc_ecore_evas_size_base_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define MAX_WIDTH 200
-#define MAX_HEIGHT 200
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_size_max_get ecore_evas_size_max_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_size_max_get
- * @{
- * @objective The positive test case checks that ecore_evas_size_max_get really retrieves maximal size for a given Ecore_Evas window.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li address of integer variable which defines maximal width of window;
- * @li address of integer variable which defines maximal height of window.
- *
- * @procedure
- * @step 1 Call ecore_evas_size_max_set() with target values of maximal width and maximal height as arguments.
- * @step 2 Call ecore_evas_size_max_get() for retrieving current maximal width and height.
- * @step 3 Compare retrieved values with target values.
- *
- * @passcondition
- * The retrieved maximal width and maximal height must be equal to maximal width and maximal height which were set by ecore_evas_size_max_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_max_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_size_max_set(ee, MAX_WIDTH, MAX_HEIGHT);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ecore_evas_size_max_get(ee, &width, &height);
- if ((width == MAX_WIDTH) && (height == MAX_HEIGHT))
- {
- ok = EINA_TRUE;
- }
-
- if (ok == 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 ecore_evas_size_max_get
- * @{
- * @objective The negative test case 1 checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li address of integer variable which defines maximal width of window (optional);
- * @li address of integer variable which defines maximal height of window (optional).
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * The width and height must not change, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_max_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_max_get, ee, &width, &height);
-
- if ((width != 0) || (height != 0))
- {
- 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 ecore_evas_size_max_get
- * @{
- * @objective The negative test case 2 checks situation if all arguments of tested function except first argument became NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (optional);
- * @li address of integer variable which defines maximal width of window (it will be replaced by NULL in the universal macro);
- * @li address of integer variable which defines maximal height of window (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_max_get_n2)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
-
- CREATE_CHECKED_ARGS_ARRAY(0, 1, 1);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_max_get, ee, &width, &height);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_size_max_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_size_max_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_size_max_get_p);
- tcase_add_test(tcase, utc_ecore_evas_size_max_get_n);
- tcase_add_test(tcase, utc_ecore_evas_size_max_get_n2);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+#define MAX_WIDTH 200
+#define MAX_HEIGHT 200
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_size_max_get ecore_evas_size_max_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_size_max_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_size_max_get really retrieves maximal size for a given Ecore_Evas window.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @li address of integer variable which defines maximal width of window;
+ * @li address of integer variable which defines maximal height of window.
+ *
+ * @procedure
+ * @step 1 Call ecore_evas_size_max_set() with target values of maximal width and maximal height as arguments.
+ * @step 2 Call ecore_evas_size_max_get() for retrieving current maximal width and height.
+ * @step 3 Compare retrieved values with target values.
+ *
+ * @passcondition
+ * The retrieved maximal width and maximal height must be equal to maximal width and maximal height which were set by ecore_evas_size_max_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_max_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+ Eina_Bool ok = EINA_FALSE;
+
+ ecore_evas_show(ee);
+ ecore_evas_size_max_set(ee, MAX_WIDTH, MAX_HEIGHT);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ecore_evas_size_max_get(ee, &width, &height);
+ if ((width == MAX_WIDTH) && (height == MAX_HEIGHT))
+ {
+ ok = EINA_TRUE;
+ }
+
+ if (ok == 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 ecore_evas_size_max_get
+ * @{
+ * @objective The negative test case 1 checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li address of integer variable which defines maximal width of window (optional);
+ * @li address of integer variable which defines maximal height of window (optional).
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * The width and height must not change, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_max_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_max_get, ee, &width, &height);
+
+ if ((width != 0) || (height != 0))
+ {
+ 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 ecore_evas_size_max_get
+ * @{
+ * @objective The negative test case 2 checks situation if all arguments of tested function except first argument became NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (optional);
+ * @li address of integer variable which defines maximal width of window (it will be replaced by NULL in the universal macro);
+ * @li address of integer variable which defines maximal height of window (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_max_get_n2)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+
+ CREATE_CHECKED_ARGS_ARRAY(0, 1, 1);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_max_get, ee, &width, &height);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_size_max_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li maximal width of window;
+ * @li maximal height of window.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ * @step 3 Call ecore_evas_size_max_set() with -10 as second argument and third argument in turn.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_max_set_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_max_set, ee, MAX_WIDTH, MAX_HEIGHT);
+ ecore_evas_size_max_set(ee, MAX_WIDTH, -10);
+ ecore_evas_size_max_set(ee, -10, MAX_HEIGHT);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_size_max_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_size_max_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_size_max_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_size_max_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_size_max_get_n2);
+ tcase_add_test(tcase, utc_ecore_evas_size_max_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define MAX_WIDTH 200
-#define MAX_HEIGHT 200
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_size_max_set ecore_evas_size_max_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_size_max_set
- * @{
- * @objective The positive test case checks that ecore_evas_size_max_set really sets maximal size for a given Ecore_Evas window.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li maximal width of window;
- * @li maximal height of window.
- *
- * @procedure
- * @step 1 Call ecore_evas_size_max_set() with target values of maximal width and maximal height as arguments.
- * @step 2 Call ecore_evas_size_max_get() for retrieving current maximal width and height.
- * @step 3 Compare retrieved values with target values.
- *
- * @passcondition
- * The retrieved maximal width and maximal height must be equal to maximal width and maximal height which were set by ecore_evas_size_max_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_max_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_size_max_set(ee, MAX_WIDTH, MAX_HEIGHT);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ecore_evas_size_max_get(ee, &width, &height);
- if ((width == MAX_WIDTH) && (height == MAX_HEIGHT))
- {
- ok = EINA_TRUE;
- }
-
- if (ok == 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 ecore_evas_size_max_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li maximal width of window;
- * @li maximal height of window.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- * @step 3 Call ecore_evas_size_max_set() with -10 as second argument and third argument in turn.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_max_set_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_max_set, ee, MAX_WIDTH, MAX_HEIGHT);
- ecore_evas_size_max_set(ee, MAX_WIDTH, -10);
- ecore_evas_size_max_set(ee, -10, MAX_HEIGHT);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_size_max_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_size_max_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_size_max_set_p);
- tcase_add_test(tcase, utc_ecore_evas_size_max_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define MIN_WIDTH 50
-#define MIN_HEIGHT 50
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_size_min_get ecore_evas_size_min_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_size_min_get
- * @{
- * @objective The positive test case checks that ecore_evas_size_min_get really retrieves minimal size for a given Ecore_Evas window.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li address of integer variable which defines minimal width of window;
- * @li address of integer variable which defines minimal height of window.
- *
- * @procedure
- * @step 1 Call ecore_evas_size_min_set() with target values of minimal width and minimal height as arguments.
- * @step 2 Call ecore_evas_size_min_get() for retrieving current minimal width and height.
- * @step 3 Compare retrieved values with target values.
- *
- * @passcondition
- * The retrieved minimal width and minimal height must be equal to minimal width and minimal height which were set by ecore_evas_size_min_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_min_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_size_min_set(ee, MIN_WIDTH, MIN_HEIGHT);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ecore_evas_size_min_get(ee, &width, &height);
- if ((width == MIN_WIDTH) && (height == MIN_HEIGHT))
- {
- ok = EINA_TRUE;
- }
-
- if (ok == 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 ecore_evas_size_min_get
- * @{
- * @objective The negative test case 1 checks situation if all arguments of tested function except first argument became NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li address of integer variable which defines minimal width of window (optional);
- * @li address of integer variable which defines minimal height of window (optional).
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * The width and height must not change, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_min_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_min_get, ee, &width, &height);
-
- if ((width != 0) || (height != 0))
- {
- 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 ecore_evas_size_min_get
- * @{
- * @objective The negative test case 2 checks situation if all arguments of tested function except first argument became NULL in turn.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (optional);
- * @li address of integer variable which defines minimal width of window (it will be replaced by NULL in the universal macro);
- * @li address of integer variable which defines minimal height of window (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_min_get_n2)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
-
- CREATE_CHECKED_ARGS_ARRAY(0, 1, 1);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_min_get, ee, &width, &height);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_size_min_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_size_min_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_size_min_get_p);
- tcase_add_test(tcase, utc_ecore_evas_size_min_get_n);
- tcase_add_test(tcase, utc_ecore_evas_size_min_get_n2);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+#define MIN_WIDTH 50
+#define MIN_HEIGHT 50
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_size_min_get ecore_evas_size_min_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_size_min_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_size_min_get really retrieves minimal size for a given Ecore_Evas window.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable;
+ * @li address of integer variable which defines minimal width of window;
+ * @li address of integer variable which defines minimal height of window.
+ *
+ * @procedure
+ * @step 1 Call ecore_evas_size_min_set() with target values of minimal width and minimal height as arguments.
+ * @step 2 Call ecore_evas_size_min_get() for retrieving current minimal width and height.
+ * @step 3 Compare retrieved values with target values.
+ *
+ * @passcondition
+ * The retrieved minimal width and minimal height must be equal to minimal width and minimal height which were set by ecore_evas_size_min_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_min_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+ Eina_Bool ok = EINA_FALSE;
+
+ ecore_evas_show(ee);
+ ecore_evas_size_min_set(ee, MIN_WIDTH, MIN_HEIGHT);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ecore_evas_size_min_get(ee, &width, &height);
+ if ((width == MIN_WIDTH) && (height == MIN_HEIGHT))
+ {
+ ok = EINA_TRUE;
+ }
+
+ if (ok == 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 ecore_evas_size_min_get
+ * @{
+ * @objective The negative test case 1 checks situation if all arguments of tested function except first argument became NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li address of integer variable which defines minimal width of window (optional);
+ * @li address of integer variable which defines minimal height of window (optional).
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * The width and height must not change, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_min_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_min_get, ee, &width, &height);
+
+ if ((width != 0) || (height != 0))
+ {
+ 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 ecore_evas_size_min_get
+ * @{
+ * @objective The negative test case 2 checks situation if all arguments of tested function except first argument became NULL in turn.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (optional);
+ * @li address of integer variable which defines minimal width of window (it will be replaced by NULL in the universal macro);
+ * @li address of integer variable which defines minimal height of window (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_min_get_n2)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ int width = 0, height = 0;
+
+ CREATE_CHECKED_ARGS_ARRAY(0, 1, 1);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_min_get, ee, &width, &height);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_size_min_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li minimal width of window;
+ * @li minimal height of window.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ * @step 3 Call ecore_evas_size_min_set() with -10 as second argument and third argument in turn.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_size_min_set_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
+ UNITEST_FUNC_NEG_CA(ecore_evas_size_min_set, ee, MIN_WIDTH, MIN_HEIGHT);
+ ecore_evas_size_min_set(ee, MIN_WIDTH, -10);
+ ecore_evas_size_min_set(ee, -10, MIN_HEIGHT);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_size_min_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_size_min_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_size_min_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_size_min_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_size_min_get_n2);
+ tcase_add_test(tcase, utc_ecore_evas_size_min_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define MIN_WIDTH 50
-#define MIN_HEIGHT 50
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_size_min_set ecore_evas_size_min_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_size_min_set
- * @{
- * @objective The positive test case checks that ecore_evas_size_min_set really sets minimal size for a given Ecore_Evas window.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable;
- * @li minimal width of window;
- * @li minimal height of window.
- *
- * @procedure
- * @step 1 Call ecore_evas_size_min_set() with target values of minimal width and minimal height as arguments.
- * @step 2 Call ecore_evas_size_min_get() for retrieving current minimal width and height.
- * @step 3 Compare retrieved values with target values.
- *
- * @passcondition
- * The retrieved minimal width and minimal height must be equal to minimal width and minimal height which were set by ecore_evas_size_min_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_min_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- int width = 0, height = 0;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_size_min_set(ee, MIN_WIDTH, MIN_HEIGHT);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ecore_evas_size_min_get(ee, &width, &height);
- if ((width == MIN_WIDTH) && (height == MIN_HEIGHT))
- {
- ok = EINA_TRUE;
- }
-
- if (ok == 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 ecore_evas_size_min_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li minimal width of window;
- * @li minimal height of window.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- * @step 3 Call ecore_evas_size_min_set() with -10 as second argument and third argument in turn.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_size_min_set_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- CREATE_CHECKED_ARGS_ARRAY(1, 0, 0);
- UNITEST_FUNC_NEG_CA(ecore_evas_size_min_set, ee, MIN_WIDTH, MIN_HEIGHT);
- ecore_evas_size_min_set(ee, MIN_WIDTH, -10);
- ecore_evas_size_min_set(ee, -10, MIN_HEIGHT);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_size_min_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_size_min_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_size_min_set_p);
- tcase_add_test(tcase, utc_ecore_evas_size_min_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_sticky_get ecore_evas_sticky_get()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_sticky_get
- * @{
- * @objective The positive test case checks that ecore_evas_sticky_get retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_sticky_set() to set sticky property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_sticky_get() to retrieve current sticky property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_sticky_set() to set sticky property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_sticky_get() to retrieve sticky property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_sticky_get() must be equal to the value which was set by ecore_evas_sticky_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_sticky_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_sticky_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_sticky_get(ee);
-
- ecore_evas_sticky_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_sticky_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_sticky_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_sticky_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_sticky_get, ee) == 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_ecore_evas_sticky_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_sticky_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_sticky_get_p);
- tcase_add_test(tcase, utc_ecore_evas_sticky_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_sticky_get ecore_evas_sticky_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_sticky_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_sticky_get retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ *
+ * @procedure
+ * @step 1 all ecore_evas_show().
+ * @step 2 Call ecore_evas_sticky_set() to set sticky property in EINA_TRUE.
+ * @step 3 Wait for 0.5 sec using timer.
+ * @step 4 Call ecore_evas_sticky_get() to retrieve current sticky property; use eb1 variable for saving the retrieved value.
+ * @step 5 Call ecore_evas_sticky_set() to set sticky property in EINA_FALSE.
+ * @step 6 Wait for 0.5 sec using timer.
+ * @step 7 Call ecore_evas_sticky_get() to retrieve sticky property; use eb2 variable for saving the retrieved value.
+ * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_sticky_get() must be equal to the value which was set by ecore_evas_sticky_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_sticky_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_sticky_set(ee, EINA_TRUE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_sticky_get(ee);
+
+ ecore_evas_sticky_set(ee, EINA_FALSE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_sticky_get(ee);
+
+ if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
+ {
+ 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 ecore_evas_sticky_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_sticky_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_sticky_get, ee) == 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 ecore_evas_sticky_set
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_sticky_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_sticky_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_sticky_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_sticky_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_sticky_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_sticky_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_sticky_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_sticky_set ecore_evas_sticky_set()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_sticky_set
- * @{
- * @objective The positive test case checks that ecore_evas_sticky_set sets correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_sticky_set() to set sticky property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_sticky_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_sticky_set() to set sticky property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_sticky_get() to retrieve sticky property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_sticky_get() must be equal to the value which was set by ecore_evas_sticky_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_sticky_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_sticky_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_sticky_get(ee);
-
- ecore_evas_sticky_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_sticky_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_sticky_set
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_sticky_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_sticky_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_sticky_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_sticky_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_sticky_set_p);
- tcase_add_test(tcase, utc_ecore_evas_sticky_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define TITLE_STR "title"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_title_get ecore_evas_title_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_title_get
- * @{
- * @objective The positive test case checks that ecore_evas_title_get really retrieves title of the given Ecore_Evas window.
- * @n Input Data: Ecore_Evas window specified by ee variable.
- *
- * @procedure
- * @step 1 Call ecore_evas_title_set() with target value of window title as arguments.
- * @step 2 Call ecore_evas_title_get() for retrieving current title of window.
- * @step 3 Compare retrieved value with target value.
- *
- * @passcondition
- * The retrieved window title must be equal to window title which was set by ecore_evas_title_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_title_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- const char *title = NULL;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_title_set(ee, TITLE_STR);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- title = ecore_evas_title_get(ee);
- if (title != NULL)
- {
- if (strcmp(title, TITLE_STR) == 0)
- {
- ok = EINA_TRUE;
- }
- }
-
- if (ok == 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 ecore_evas_title_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas window specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_title_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(NULL, ecore_evas_title_get, ee) == 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_ecore_evas_title_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_title_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_title_get_p);
- tcase_add_test(tcase, utc_ecore_evas_title_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+
+#define TITLE_STR "title"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_title_get ecore_evas_title_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_title_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_title_get really retrieves title of the given Ecore_Evas window.
+ * @n Input Data: Ecore_Evas window specified by ee variable.
+ *
+ * @procedure
+ * @step 1 Call ecore_evas_title_set() with target value of window title as arguments.
+ * @step 2 Call ecore_evas_title_get() for retrieving current title of window.
+ * @step 3 Compare retrieved value with target value.
+ *
+ * @passcondition
+ * The retrieved window title must be equal to window title which was set by ecore_evas_title_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_title_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ const char *title = NULL;
+ Eina_Bool ok = EINA_FALSE;
+
+ ecore_evas_show(ee);
+ ecore_evas_title_set(ee, TITLE_STR);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ title = ecore_evas_title_get(ee);
+ if (title != NULL)
+ {
+ if (strcmp(title, TITLE_STR) == 0)
+ {
+ ok = EINA_TRUE;
+ }
+ }
+
+ if (ok == 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 ecore_evas_title_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas window specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_title_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(NULL, ecore_evas_title_get, ee) == 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 ecore_evas_title_set
+ * @{
+ * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas window specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li title of this window.
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_title_set_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ UNITEST_FUNC_NEG(ecore_evas_title_set, ee, TITLE_STR);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_title_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_title_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_title_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_title_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_title_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-
-#define TITLE_STR "title"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_title_set ecore_evas_title_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_title_set
- * @{
- * @objective The positive test case checks that ecore_evas_title_set really sets title of the given Ecore_Evas window.
- * @n Input Data:
- * @li Ecore_Evas window specified by ee variable;
- * @li title of this window.
- *
- * @procedure
- * @step 1 Call ecore_evas_title_set() with target value of window title as arguments.
- * @step 2 Call ecore_evas_title_get() for retrieving current title of window.
- * @step 3 Compare retrieved value with target value.
- *
- * @passcondition
- * The retrieved window title must be equal to window title which was set by ecore_evas_title_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_title_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- const char *title = NULL;
- Eina_Bool ok = EINA_FALSE;
-
- ecore_evas_show(ee);
- ecore_evas_title_set(ee, TITLE_STR);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- title = ecore_evas_title_get(ee);
- if (title != NULL)
- {
- if (strcmp(title, TITLE_STR) == 0)
- {
- ok = EINA_TRUE;
- }
- }
-
- if (ok == 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 ecore_evas_title_set
- * @{
- * @objective The negative test case checks if the first argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas window specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li title of this window.
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_title_set_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- UNITEST_FUNC_NEG(ecore_evas_title_set, ee, TITLE_STR);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_title_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_title_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_title_set_p);
- tcase_add_test(tcase, utc_ecore_evas_title_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_transparent_get ecore_evas_transparent_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_transparent_get
- * @{
- * @objective The positive test case checks that the function really gets transaprency of the given Ecore_Evas.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable.
- * @procedure
- * @step 1 Set transparency to EINA_TRUE in the given Ecore_Evas by ecore_evas_transparent_set().
- * @step 2 Call ecore_evas_transparent_get() to retrieve transparency property.
- * @step 3 Compare the result with the expected value.
- * @step 4 Set transparency to EINA_FALSE in the given Ecore_Evas by ecore_evas_transparent_set().
- * @step 5 Call ecore_evas_transparent_get() to retrieve transparency property.
- * @step 6 Compare the result with the expected value.
- *
- * @passcondition
- * Function must get transparency to the given Ecore_Evas (EINA_TRUE and EINA_FALSE respectively).
- * @}
- */
-
-START_TEST(utc_ecore_evas_transparent_get_p)
-{
-
- if (!startup_status)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- Eina_Bool eb;
-
- ecore_evas_transparent_set(ee, EINA_TRUE);
- eb = ecore_evas_transparent_get(ee);
-
- if (EINA_FALSE == eb)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_evas_transparent_set(ee, EINA_FALSE);
- eb = ecore_evas_transparent_get(ee);
-
- if (EINA_TRUE == eb)
- {
- 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 ecore_evas_transparent_get
- * @{
- * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing
- *
- * @passcondition
- * There is no segmentation fault and function must return EINA_FALSE.
- * @}
- */
-
-START_TEST(utc_ecore_evas_transparent_get_n)
-{
- if (!startup_status)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_transparent_get, ee) == 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_ecore_evas_transparent_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_transparent_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_transparent_get_p);
- tcase_add_test(tcase, utc_ecore_evas_transparent_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool startup_status = EINA_FALSE;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_transparent_get ecore_evas_transparent_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+ startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_transparent_get
+ * @{
+ * @objective The positive test case checks that the function really gets transaprency of the given Ecore_Evas.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable.
+ * @procedure
+ * @step 1 Set transparency to EINA_TRUE in the given Ecore_Evas by ecore_evas_transparent_set().
+ * @step 2 Call ecore_evas_transparent_get() to retrieve transparency property.
+ * @step 3 Compare the result with the expected value.
+ * @step 4 Set transparency to EINA_FALSE in the given Ecore_Evas by ecore_evas_transparent_set().
+ * @step 5 Call ecore_evas_transparent_get() to retrieve transparency property.
+ * @step 6 Compare the result with the expected value.
+ *
+ * @passcondition
+ * Function must get transparency to the given Ecore_Evas (EINA_TRUE and EINA_FALSE respectively).
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_transparent_get_p)
+{
+
+ if (!startup_status)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
+ }
+
+ Eina_Bool eb;
+
+ ecore_evas_transparent_set(ee, EINA_TRUE);
+ eb = ecore_evas_transparent_get(ee);
+
+ if (EINA_FALSE == eb)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ ecore_evas_transparent_set(ee, EINA_FALSE);
+ eb = ecore_evas_transparent_get(ee);
+
+ if (EINA_TRUE == eb)
+ {
+ 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 ecore_evas_transparent_get
+ * @{
+ * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing
+ *
+ * @passcondition
+ * There is no segmentation fault and function must return EINA_FALSE.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_transparent_get_n)
+{
+ if (!startup_status)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_transparent_get, ee) == 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 ecore_evas_transparent_set
+ * @{
+ * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_transparent_set_n)
+{
+ if (!startup_status)
+ {
+ 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(ecore_evas_transparent_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+*@}
+*/
+
+TCase * _utc_ecore_evas_transparent_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_transparent_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_transparent_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_transparent_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_transparent_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool startup_status = EINA_FALSE;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_transparent_set ecore_evas_transparent_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
- startup_status = ((ee == NULL) ? EINA_FALSE : EINA_TRUE);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_transparent_set
- * @{
- * @objective The positive test case checks that the function really sets transaprency of the given Ecore_Evas.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable.
- * @li EINA_TRUE/EINA_FALSE.
- * @procedure
- * @step 1 Set transparency to EINA_TRUE in the given Ecore_Evas by ecore_evas_transparent_set().
- * @step 2 Call ecore_evas_transparent_get() to retrieve transparency property.
- * @step 3 Compare the result with the expected value.
- * @step 4 Set transparency to EINA_FALSE in the given Ecore_Evas by ecore_evas_transparent_set().
- * @step 5 Call ecore_evas_transparent_get() to retrieve transparency property.
- * @step 6 Compare the result with the expected value.
- *
- * @passcondition
- * Function must set transparency to the given Ecore_Evas.
- * @}
- */
-
-START_TEST(utc_ecore_evas_transparent_set_p)
-{
-
- if (!startup_status)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__,__LINE__);
- }
-
- Eina_Bool eb;
-
- ecore_evas_transparent_set(ee, EINA_TRUE);
- eb = ecore_evas_transparent_get(ee);
-
- if (EINA_FALSE == eb)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_evas_transparent_set(ee, EINA_FALSE);
- eb = ecore_evas_transparent_get(ee);
-
- if (EINA_TRUE == eb)
- {
- 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 ecore_evas_transparent_set
- * @{
- * @objective The negative test case checks if first argument (Ecore_Evas object) is NULL. In this test case the universal macro is used.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY() macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_transparent_set_n)
-{
- if (!startup_status)
- {
- 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(ecore_evas_transparent_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
-*@}
-*/
-
-TCase * _utc_ecore_evas_transparent_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_transparent_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_transparent_set_p);
- tcase_add_test(tcase, utc_ecore_evas_transparent_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_urgent_get ecore_evas_urgent_get()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_urgent_get
- * @{
- * @objective The positive test case checks that ecore_evas_urgent_get retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_urgent_set() to set urgent property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_urgent_get() to retrieve current urgent property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_urgent_set() to set urgent property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_urgent_get() to retrieve urgent property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_urgent_get() must be equal to the value which was set by ecore_evas_urgent_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_urgent_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_urgent_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_urgent_get(ee);
-
- ecore_evas_urgent_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_urgent_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_urgent_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_urgent_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_urgent_get, ee) == 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_ecore_evas_urgent_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_urgent_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_urgent_get_p);
- tcase_add_test(tcase, utc_ecore_evas_urgent_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_urgent_get ecore_evas_urgent_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_urgent_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_urgent_get retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ *
+ * @procedure
+ * @step 1 all ecore_evas_show().
+ * @step 2 Call ecore_evas_urgent_set() to set urgent property in EINA_TRUE.
+ * @step 3 Wait for 0.5 sec using timer.
+ * @step 4 Call ecore_evas_urgent_get() to retrieve current urgent property; use eb1 variable for saving the retrieved value.
+ * @step 5 Call ecore_evas_urgent_set() to set urgent property in EINA_FALSE.
+ * @step 6 Wait for 0.5 sec using timer.
+ * @step 7 Call ecore_evas_urgent_get() to retrieve urgent property; use eb2 variable for saving the retrieved value.
+ * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_urgent_get() must be equal to the value which was set by ecore_evas_urgent_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_urgent_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_urgent_set(ee, EINA_TRUE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_urgent_get(ee);
+
+ ecore_evas_urgent_set(ee, EINA_FALSE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_urgent_get(ee);
+
+ if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
+ {
+ 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 ecore_evas_urgent_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_urgent_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_urgent_get, ee) == 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 ecore_evas_urgent_set
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_urgent_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_urgent_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_urgent_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_urgent_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_urgent_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_urgent_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_urgent_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_urgent_set ecore_evas_urgent_set()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_urgent_set
- * @{
- * @objective The positive test case checks that ecore_evas_urgent_set sets correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_urgent_set() to set urgent property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_urgent_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_urgent_set() to set urgent property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_urgent_get() to retrieve urgent property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_urgent_get() must be equal to the value which was set by ecore_evas_urgent_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_urgent_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_urgent_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_urgent_get(ee);
-
- ecore_evas_urgent_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_urgent_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_urgent_set
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_urgent_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_urgent_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_urgent_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_urgent_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_urgent_set_p);
- tcase_add_test(tcase, utc_ecore_evas_urgent_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Evas.h>
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_window_available_profiles_get ecore_evas_window_available_profiles_get()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas with ecore_evas_new() because we need to create Ecore_Evas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas_window_available_profiles_get
- * @{
- * @objective The positive test case checks that ecore_evas_window_available_profiles_get retrieves test profiles list.
- * @n Input Data:
- * @li ee Ecore_Evas object
- * @li &profiles Address of char ** to store result
- * @li &profiles_count Address of int to store result count
- *
- * @procedure
- * @step 1 Set test profiles list with ecore_evas_window_available_profiles_set()
- * @step 2 Set timer with _set_timer_cb_p
- * @step 3 Launch ecore main loop
- * @step 4 Quit from main loop in timer
- * @step 5 Get profiles list with ecore_evas_window_available_profiles_get()
- * @step 6 Free memory
- * @step 7 Check profiles_count value
- *
- * @passcondition
- * profiles_count must be equal t_profiles_count, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_window_available_profiles_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
- char **profiles = NULL;
- int profiles_count = 0;
-
- const char **t_profiles = {"test-profile-1","test-profile-2",};
- const int t_profiles_count = 2;
-
- ecore_evas_window_available_profiles_set(ee, t_profiles, t_profiles_count);
- ecore_timer_add(2, _set_timer_cb_p, NULL);
- ecore_main_loop_begin();
-
- ecore_evas_window_available_profiles_get(ee, &profiles, &profiles_count);
- int i = 0;
- Eina_Bool res = EINA_TRUE;
- for(; i < profiles_count; ++profiles_count)
- {
- res &= profiles[i] && !strcmp(t_profiles[i], profiles[i]);
- free(profiles[i]);
- }
- free(profiles);
- if (profiles_count != t_profiles_count || res == 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 ecore_evas_window_available_profiles_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li ee Ecore_Evas object (it will be replaced by NULL in the universal macro)
- * @li NULL as result array address
- * @li NULL as result array size address
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_CA_RET for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_window_available_profiles_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
- CREATE_CHECKED_ARGS_ARRAY(1,0,0);
- UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, ecore_evas_window_available_profiles_get, ee, NULL, NULL);
- if (result_of_testing != TEST_PASS)
- {
- 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_ecore_evas_window_available_profiles_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_window_available_profiles_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_window_available_profiles_get_p);
- tcase_add_test(tcase, utc_ecore_evas_window_available_profiles_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+#include <Ecore_Evas.h>
+#include <string.h>
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_window_available_profiles_set ecore_evas_window_available_profiles_set()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize with ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas with ecore_evas_new() because we need to create Ecore_Evas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+static Eina_Bool _set_timer_cb_p(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas_window_available_profiles_set
+ * @{
+ * @objective The positive test case checks that ecore_evas_window_available_profiles_set writes test profiles list to ecore object.
+ * @n Input Data:
+ * @li ee Ecore_Evas object
+ * @li t_profiles Array with test profiles
+ * @li t_profiles_count Array size
+ *
+ * @procedure
+ * @step 1 Set test profiles list with ecore_evas_window_available_profiles_set()
+ * @step 2 Set timer with _set_timer_cb_p
+ * @step 3 Launch ecore main loop
+ * @step 4 Quit from main loop in timer
+ * @step 5 Get profiles list with ecore_evas_window_available_profiles_get()
+ * @step 6 Check each retrieved profile with t_profiles
+ * @step 7 Free memory
+ * @step 8 Check profiles_count value
+ *
+ * @passcondition
+ * Each value in profiles mush be equals to value in t_profiles, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_window_available_profiles_set_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+ char **profiles = NULL;
+ int profiles_count = 0;
+
+ const char **t_profiles = {"test-profile-1","test-profile-2",};
+ const int t_profiles_count = 2;
+
+
+ ecore_evas_window_available_profiles_set(ee, t_profiles, t_profiles_count);
+ ecore_timer_add(2, _set_timer_cb_p, NULL);
+ ecore_main_loop_begin();
+
+ ecore_evas_window_available_profiles_get(ee, &profiles, &profiles_count);
+ int i = 0;
+ Eina_Bool res = EINA_TRUE;
+ for(; i < profiles_count; ++profiles_count)
+ {
+ res &= profiles[i] && !strcmp(t_profiles[i], profiles[i]);
+ free(profiles[i]);
+ }
+ free(profiles);
+ if (profiles_count != t_profiles_count || res == 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 ecore_evas_window_available_profiles_set
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li ee Ecore_Evas object (it will be replaced by NULL in the universal macro)
+ * @li NULL as profiles array
+ * @li 0 as array size
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_CA_RET for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_window_available_profiles_set_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+ CREATE_CHECKED_ARGS_ARRAY(1,0,0);
+ UNITEST_FUNC_NEG_CA(ecore_evas_window_available_profiles_set, ee, NULL, 0);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup ecore_evas_window_available_profiles_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li ee Ecore_Evas object (it will be replaced by NULL in the universal macro)
+ * @li NULL as result array address
+ * @li NULL as result array size address
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_CA_RET for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_window_available_profiles_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+ CREATE_CHECKED_ARGS_ARRAY(1,0,0);
+ UNITEST_FUNC_NEG_CA_RET(EINA_FALSE, ecore_evas_window_available_profiles_get, ee, NULL, NULL);
+ if (result_of_testing != TEST_PASS)
+ {
+ 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_ecore_evas_window_available_profiles_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_window_available_profiles_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_window_available_profiles_set_p);
+ tcase_add_test(tcase, utc_ecore_evas_window_available_profiles_set_n);
+ tcase_add_test(tcase, utc_ecore_evas_window_available_profiles_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-#include <Ecore_Evas.h>
-#include <string.h>
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_window_available_profiles_set ecore_evas_window_available_profiles_set()
- *
- *
- * @precondition
- * @step 1 Initialize with ecore_evas_init()
- * @step 2 Create new ecore_evas canvas with ecore_evas_new() because we need to create Ecore_Evas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas_window_available_profiles_set
- * @{
- * @objective The positive test case checks that ecore_evas_window_available_profiles_set writes test profiles list to ecore object.
- * @n Input Data:
- * @li ee Ecore_Evas object
- * @li t_profiles Array with test profiles
- * @li t_profiles_count Array size
- *
- * @procedure
- * @step 1 Set test profiles list with ecore_evas_window_available_profiles_set()
- * @step 2 Set timer with _set_timer_cb_p
- * @step 3 Launch ecore main loop
- * @step 4 Quit from main loop in timer
- * @step 5 Get profiles list with ecore_evas_window_available_profiles_get()
- * @step 6 Check each retrieved profile with t_profiles
- * @step 7 Free memory
- * @step 8 Check profiles_count value
- *
- * @passcondition
- * Each value in profiles mush be equals to value in t_profiles, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_window_available_profiles_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
- char **profiles = NULL;
- int profiles_count = 0;
-
- const char **t_profiles = {"test-profile-1","test-profile-2",};
- const int t_profiles_count = 2;
-
-
- ecore_evas_window_available_profiles_set(ee, t_profiles, t_profiles_count);
- ecore_timer_add(2, _set_timer_cb_p, NULL);
- ecore_main_loop_begin();
-
- ecore_evas_window_available_profiles_get(ee, &profiles, &profiles_count);
- int i = 0;
- Eina_Bool res = EINA_TRUE;
- for(; i < profiles_count; ++profiles_count)
- {
- res &= profiles[i] && !strcmp(t_profiles[i], profiles[i]);
- free(profiles[i]);
- }
- free(profiles);
- if (profiles_count != t_profiles_count || res == 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 ecore_evas_window_available_profiles_set
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li ee Ecore_Evas object (it will be replaced by NULL in the universal macro)
- * @li NULL as profiles array
- * @li 0 as array size
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_CA_RET for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_window_available_profiles_set_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
- CREATE_CHECKED_ARGS_ARRAY(1,0,0);
- UNITEST_FUNC_NEG_CA(ecore_evas_window_available_profiles_set, ee, NULL, 0);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_window_available_profiles_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_window_available_profiles_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_window_available_profiles_set_p);
- tcase_add_test(tcase, utc_ecore_evas_window_available_profiles_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_withdrawn_get ecore_evas_withdrawn_get()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_withdrawn_get
- * @{
- * @objective The positive test case checks that ecore_evas_withdrawn_get retrieves correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_withdrawn_set() to set withdrawn property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_withdrawn_get() to retrieve current withdrawn property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_withdrawn_set() to set withdrawn property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_withdrawn_get() to retrieve withdrawn property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_withdrawn_get() must be equal to the value which was set by ecore_evas_withdrawn_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_withdrawn_get_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_withdrawn_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_withdrawn_get(ee);
-
- ecore_evas_withdrawn_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_withdrawn_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_withdrawn_get
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
- *
- * @procedure
- * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
- *
- * @passcondition
- * The tested function must return EINA_FALSE, and there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_withdrawn_get_n)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_withdrawn_get, ee) == 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_ecore_evas_withdrawn_get()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_withdrawn_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_withdrawn_get_p);
- tcase_add_test(tcase, utc_ecore_evas_withdrawn_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Eina.h>
+#include <Evas.h>
+#include <Ecore_Evas.h>
+#include <Ecore.h>
+#include "../utc_ecore_common.h"
+
+#include "../../utc_negative_unitest.h"
+static Ecore_Evas *ee = NULL;
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup ecore_evas
+ * @{
+ * @defgroup ecore_evas_withdrawn_get ecore_evas_withdrawn_get()
+ *
+ *
+ * @precondition
+ * @step 1 Initialize ecore_evas_init()
+ * @step 2 Create new ecore_evas canvas
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ECORE_INIT();
+ ecore_evas_init();
+ ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+}
+
+static void
+teardown(void)
+{
+ printf(" ============ Cleanup ============ \n");
+ if (ee != NULL)
+ {
+ ecore_evas_free(ee);
+ }
+ ecore_evas_shutdown();
+}
+
+/**
+ * @addtogroup ecore_evas_withdrawn_get
+ * @{
+ * @objective The positive test case checks that ecore_evas_withdrawn_get retrieves correct values in all cases.
+ * @n Input Data: Ecore_Evas object specified by ee variable.
+ *
+ * @procedure
+ * @step 1 all ecore_evas_show().
+ * @step 2 Call ecore_evas_withdrawn_set() to set withdrawn property in EINA_TRUE.
+ * @step 3 Wait for 0.5 sec using timer.
+ * @step 4 Call ecore_evas_withdrawn_get() to retrieve current withdrawn property; use eb1 variable for saving the retrieved value.
+ * @step 5 Call ecore_evas_withdrawn_set() to set withdrawn property in EINA_FALSE.
+ * @step 6 Wait for 0.5 sec using timer.
+ * @step 7 Call ecore_evas_withdrawn_get() to retrieve withdrawn property; use eb2 variable for saving the retrieved value.
+ * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
+ *
+ * @passcondition
+ * In all cases the value retrieved by ecore_evas_withdrawn_get() must be equal to the value which was set by ecore_evas_withdrawn_set(). Also, there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_withdrawn_get_p)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ Eina_Bool eb1, eb2;
+
+ ecore_evas_show(ee);
+ ecore_evas_withdrawn_set(ee, EINA_TRUE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb1 = ecore_evas_withdrawn_get(ee);
+
+ ecore_evas_withdrawn_set(ee, EINA_FALSE);
+ if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ eb2 = ecore_evas_withdrawn_get(ee);
+
+ if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
+ {
+ 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 ecore_evas_withdrawn_get
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data: Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro).
+ *
+ * @procedure
+ * @step 1 Use UNITEST_FUNC_NEG_RET for negative testing.
+ *
+ * @passcondition
+ * The tested function must return EINA_FALSE, and there is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_withdrawn_get_n)
+{
+ if (ee == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
+ }
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, ecore_evas_withdrawn_get, ee) == 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 ecore_evas_withdrawn_set
+ * @{
+ * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
+ * @n Input Data:
+ * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
+ * @li EINA_TRUE.
+ *
+ * @procedure
+ * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
+ * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
+ *
+ * @passcondition
+ * There is no segmentation fault.
+ * @}
+ */
+
+START_TEST(utc_ecore_evas_withdrawn_set_n)
+{
+ if (ee == NULL)
+ {
+ 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(ecore_evas_withdrawn_set, ee, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_ecore_evas_withdrawn_get_set()
+{
+ TCase *tcase = tcase_create("utc_ecore_evas_withdrawn_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_ecore_evas_withdrawn_get_p);
+ tcase_add_test(tcase, utc_ecore_evas_withdrawn_get_n);
+ tcase_add_test(tcase, utc_ecore_evas_withdrawn_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Eina.h>
-#include <Evas.h>
-#include <Ecore_Evas.h>
-#include <Ecore.h>
-#include "../utc_ecore_common.h"
-
-#include "../../utc_negative_unitest.h"
-static Ecore_Evas *ee = NULL;
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup ecore_evas
- * @{
- * @defgroup ecore_evas_withdrawn_set ecore_evas_withdrawn_set()
- *
- *
- * @precondition
- * @step 1 Initialize ecore_evas_init()
- * @step 2 Create new ecore_evas canvas
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ECORE_INIT();
- ecore_evas_init();
- ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
-}
-
-static void
-teardown(void)
-{
- printf(" ============ Cleanup ============ \n");
- if (ee != NULL)
- {
- ecore_evas_free(ee);
- }
- ecore_evas_shutdown();
-}
-
-/**
- * @addtogroup ecore_evas_withdrawn_set
- * @{
- * @objective The positive test case checks that ecore_evas_withdrawn_set sets correct values in all cases.
- * @n Input Data: Ecore_Evas object specified by ee variable.
- *
- * @procedure
- * @step 1 all ecore_evas_show().
- * @step 2 Call ecore_evas_withdrawn_set() to set withdrawn property in EINA_TRUE.
- * @step 3 Wait for 0.5 sec using timer.
- * @step 4 Call ecore_evas_withdrawn_get() to retrieve current iconified property; use eb1 variable for saving the retrieved value.
- * @step 5 Call ecore_evas_withdrawn_set() to set withdrawn property in EINA_FALSE.
- * @step 6 Wait for 0.5 sec using timer.
- * @step 7 Call ecore_evas_withdrawn_get() to retrieve withdrawn property; use eb2 variable for saving the retrieved value.
- * @step 8 Compare eb1 and eb2 with EINA_FALSE and EINA_TRUE, accordingly.
- *
- * @passcondition
- * In all cases the value retrieved by ecore_evas_withdrawn_get() must be equal to the value which was set by ecore_evas_withdrawn_set(). Also, there is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_withdrawn_set_p)
-{
- if (ee == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (startup was been executed unsuccessfully)..", __FILE__, __LINE__);
- }
-
- Eina_Bool eb1, eb2;
-
- ecore_evas_show(ee);
- ecore_evas_withdrawn_set(ee, EINA_TRUE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb1 = ecore_evas_withdrawn_get(ee);
-
- ecore_evas_withdrawn_set(ee, EINA_FALSE);
- if (ecore_timer_add(0.5, _quit_timer_cb, NULL) == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- eb2 = ecore_evas_withdrawn_get(ee);
-
- if ((EINA_FALSE == eb1) || (EINA_TRUE == eb2))
- {
- 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 ecore_evas_withdrawn_set
- * @{
- * @objective The negative test case checks if the argument of tested function (Ecore_Evas object) is NULL.
- * @n Input Data:
- * @li Ecore_Evas object specified by ee variable (it will be replaced by NULL in the universal macro);
- * @li EINA_TRUE.
- *
- * @procedure
- * @step 1 Use CREATE_CHECKED_ARGS_ARRAY macro for defining arguments of tested function which are subject to substitution for NULL.
- * @step 2 Use UNITEST_FUNC_NEG_CA for negative testing.
- *
- * @passcondition
- * There is no segmentation fault.
- * @}
- */
-
-START_TEST(utc_ecore_evas_withdrawn_set_n)
-{
- if (ee == NULL)
- {
- 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(ecore_evas_withdrawn_set, ee, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_ecore_evas_withdrawn_set()
-{
- TCase *tcase = tcase_create("utc_ecore_evas_withdrawn_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_ecore_evas_withdrawn_set_p);
- tcase_add_test(tcase, utc_ecore_evas_withdrawn_set_n);
- return tcase;
-}