utc_elm_win_activate.c
utc_elm_win_add.c
-utc_elm_win_alpha_get.c
-utc_elm_win_alpha_set.c
-utc_elm_win_aspect_get.c
-utc_elm_win_aspect_set.c
-utc_elm_win_autodel_get.c
-utc_elm_win_autodel_set.c
+utc_elm_win_alpha_get_set.c
+utc_elm_win_aspect_get_set.c
+utc_elm_win_autodel_get_set.c
utc_elm_win_autohide.c
#utc_elm_win_available_profiles.c
-utc_elm_win_borderless_get.c
-utc_elm_win_borderless_set.c
+utc_elm_win_borderless_get_set.c
utc_elm_win_center.c
-utc_elm_win_conformant_get.c
-utc_elm_win_conformant_set.c
-utc_elm_win_demand_attention_get.c
-utc_elm_win_demand_attention_set.c
+utc_elm_win_conformant_get_set.c
+utc_elm_win_demand_attention_get_set.c
utc_elm_win_fake.c
-utc_elm_win_floating_mode_get.c
-utc_elm_win_floating_mode_set.c
+utc_elm_win_floating_mode_get_set.c
utc_elm_win_focus_get.c
utc_elm_win_focus_highlight_animate.c
-utc_elm_win_focus_highlight_enabled_get.c
-utc_elm_win_focus_highlight_enabled_set.c
-utc_elm_win_focus_highlight_style_get.c
-utc_elm_win_focus_highlight_style_set.c
-utc_elm_win_fullscreen_get.c
-utc_elm_win_fullscreen_set.c
-utc_elm_win_icon_name_get.c
-utc_elm_win_icon_name_set.c
-utc_elm_win_icon_object_get.c
-utc_elm_win_icon_object_set.c
-utc_elm_win_iconified_get.c
-utc_elm_win_iconified_set.c
+utc_elm_win_focus_highlight_enabled_get_set.c
+utc_elm_win_focus_highlight_style_get_set.c
+utc_elm_win_fullscreen_get_set.c
+utc_elm_win_icon_name_get_set.c
+utc_elm_win_icon_object_get_set.c
+utc_elm_win_iconified_get_set.c
utc_elm_win_illume_command_send.c
-utc_elm_win_indicator_mode_get.c
-utc_elm_win_indicator_mode_set.c
-utc_elm_win_indicator_opacity_get.c
-utc_elm_win_indicator_opacity_set.c
+utc_elm_win_indicator_mode_get_set.c
+utc_elm_win_indicator_opacity_get_set.c
utc_elm_win_inlined_image_object_get.c
utc_elm_win_inwin_activate.c
utc_elm_win_inwin_add.c
-utc_elm_win_inwin_content_get.c
-utc_elm_win_inwin_content_set.c
+utc_elm_win_inwin_content_get_set.c
utc_elm_win_inwin_content_unset.c
-utc_elm_win_keyboard_mode_get.c
-utc_elm_win_keyboard_mode_set.c
-utc_elm_win_keyboard_win_get.c
-utc_elm_win_keyboard_win_set.c
+utc_elm_win_keyboard_mode_get_set.c
+utc_elm_win_keyboard_win_get_set.c
utc_elm_win_keygrab_set.c
utc_elm_win_keygrab_unset.c
-utc_elm_win_layer_get.c
-utc_elm_win_layer_set.c
+utc_elm_win_layer_get_set.c
utc_elm_win_lower.c
-utc_elm_win_maximized_get.c
-utc_elm_win_maximized_set.c
-utc_elm_win_modal_get.c
-utc_elm_win_modal_set.c
+utc_elm_win_maximized_get_set.c
+utc_elm_win_modal_get_set.c
utc_elm_win_name_set.c
utc_elm_win_noblank.c
utc_elm_win_norender_get.c
-utc_elm_win_norender_pop.c
-utc_elm_win_norender_push.c
+utc_elm_win_norender_push_pop.c
#utc_elm_win_override_get.c
#utc_elm_win_override_set.c
-utc_elm_win_profile_get.c
-utc_elm_win_profile_set.c
+utc_elm_win_profile_get_set.c
#utc_elm_win_profiles_set.c
utc_elm_win_prop_focus_skip_set.c
utc_elm_win_quickpanel_get.c
-utc_elm_win_quickpanel_priority_major_get.c
-utc_elm_win_quickpanel_priority_major_set.c
-utc_elm_win_quickpanel_priority_minor_get.c
-utc_elm_win_quickpanel_priority_minor_set.c
+utc_elm_win_quickpanel_priority_major_get_set.c
+utc_elm_win_quickpanel_priority_minor_get_set.c
utc_elm_win_quickpanel_set.c
-utc_elm_win_quickpanel_zone_get.c
-utc_elm_win_quickpanel_zone_set.c
+utc_elm_win_quickpanel_zone_get_set.c
utc_elm_win_raise.c
utc_elm_win_render.c
-utc_elm_win_resize_object_add.c
-utc_elm_win_resize_object_del.c
-utc_elm_win_role_get.c
-utc_elm_win_role_set.c
-utc_elm_win_rotation_get.c
-utc_elm_win_rotation_set.c
+utc_elm_win_resize_object_add_del.c
+utc_elm_win_role_get_set.c
+utc_elm_win_rotation_get_set.c
utc_elm_win_rotation_with_resize_set.c
-utc_elm_win_screen_constrain_get.c
-utc_elm_win_screen_constrain_set.c
+utc_elm_win_screen_constrain_get_set.c
utc_elm_win_screen_dpi_get.c
utc_elm_win_screen_position_get.c
utc_elm_win_screen_size_get.c
#utc_elm_win_shaped_get.c
#utc_elm_win_shaped_set.c
-utc_elm_win_size_base_get.c
-utc_elm_win_size_base_set.c
-utc_elm_win_size_step_get.c
-utc_elm_win_size_step_set.c
+utc_elm_win_size_base_get_set.c
+utc_elm_win_size_step_get_set.c
utc_elm_win_socket_listen.c
#utc_elm_win_sticky_get.c
#utc_elm_win_sticky_set.c
-utc_elm_win_title_get.c
-utc_elm_win_title_set.c
+utc_elm_win_title_get_set.c
utc_elm_win_trap_data_get.c
utc_elm_win_trap_set.c
utc_elm_win_type_get.c
utc_elm_win_type_set.c
utc_elm_win_util_dialog_add.c
utc_elm_win_util_standard_add.c
-utc_elm_win_urgent_get.c
-utc_elm_win_urgent_set.c
-utc_elm_win_withdrawn_get.c
-utc_elm_win_withdrawn_set.c
-utc_elm_win_wm_rotation_available_rotations_get.c
-utc_elm_win_wm_rotation_available_rotations_set.c
+utc_elm_win_urgent_get_set.c
+utc_elm_win_withdrawn_get_set.c
+utc_elm_win_wm_rotation_available_rotations_get_set.c
utc_elm_win_wm_rotation_manual_rotation_done.c
-utc_elm_win_wm_rotation_manual_rotation_done_get.c
-utc_elm_win_wm_rotation_manual_rotation_done_set.c
-utc_elm_win_wm_rotation_preferred_rotation_get.c
-utc_elm_win_wm_rotation_preferred_rotation_set.c
+utc_elm_win_wm_rotation_manual_rotation_done_get_set.c
+utc_elm_win_wm_rotation_preferred_rotation_get_set.c
utc_elm_win_wm_rotation_supported_get.c
utc_elm_win_xwindow_get.c
utc_elm_win_window_id_get.c
utc_elm_win_activate.c
utc_elm_win_add.c
-utc_elm_win_alpha_get.c
-utc_elm_win_alpha_set.c
-utc_elm_win_aspect_get.c
-utc_elm_win_aspect_set.c
-utc_elm_win_autodel_get.c
-utc_elm_win_autodel_set.c
+utc_elm_win_alpha_get_set.c
+utc_elm_win_aspect_get_set.c
+utc_elm_win_autodel_get_set.c
utc_elm_win_autohide.c
#utc_elm_win_available_profiles.c
-utc_elm_win_borderless_get.c
-utc_elm_win_borderless_set.c
+utc_elm_win_borderless_get_set.c
utc_elm_win_center.c
-utc_elm_win_conformant_get.c
-utc_elm_win_conformant_set.c
-utc_elm_win_demand_attention_get.c
-utc_elm_win_demand_attention_set.c
+utc_elm_win_conformant_get_set.c
+utc_elm_win_demand_attention_get_set.c
utc_elm_win_fake.c
-utc_elm_win_floating_mode_get.c
-utc_elm_win_floating_mode_set.c
+utc_elm_win_floating_mode_get_set.c
utc_elm_win_focus_get.c
utc_elm_win_focus_highlight_animate.c
-utc_elm_win_focus_highlight_enabled_get.c
-utc_elm_win_focus_highlight_enabled_set.c
-utc_elm_win_focus_highlight_style_get.c
-utc_elm_win_focus_highlight_style_set.c
-utc_elm_win_fullscreen_get.c
-utc_elm_win_fullscreen_set.c
-utc_elm_win_icon_name_get.c
-utc_elm_win_icon_name_set.c
-utc_elm_win_icon_object_get.c
-utc_elm_win_icon_object_set.c
-utc_elm_win_iconified_get.c
-utc_elm_win_iconified_set.c
+utc_elm_win_focus_highlight_enabled_get_set.c
+utc_elm_win_focus_highlight_style_get_set.c
+utc_elm_win_fullscreen_get_set.c
+utc_elm_win_icon_name_get_set.c
+utc_elm_win_icon_object_get_set.c
+utc_elm_win_iconified_get_set.c
utc_elm_win_illume_command_send.c
-utc_elm_win_indicator_mode_get.c
-utc_elm_win_indicator_mode_set.c
-utc_elm_win_indicator_opacity_get.c
-utc_elm_win_indicator_opacity_set.c
+utc_elm_win_indicator_mode_get_set.c
+utc_elm_win_indicator_opacity_get_set.c
utc_elm_win_inlined_image_object_get.c
utc_elm_win_inwin_activate.c
utc_elm_win_inwin_add.c
-utc_elm_win_inwin_content_get.c
-utc_elm_win_inwin_content_set.c
+utc_elm_win_inwin_content_get_set.c
utc_elm_win_inwin_content_unset.c
-utc_elm_win_keyboard_mode_get.c
-utc_elm_win_keyboard_mode_set.c
-utc_elm_win_keyboard_win_get.c
-utc_elm_win_keyboard_win_set.c
+utc_elm_win_keyboard_mode_get_set.c
+utc_elm_win_keyboard_win_get_set.c
utc_elm_win_keygrab_set.c
utc_elm_win_keygrab_unset.c
-utc_elm_win_layer_get.c
-utc_elm_win_layer_set.c
+utc_elm_win_layer_get_set.c
utc_elm_win_lower.c
-utc_elm_win_maximized_get.c
-utc_elm_win_maximized_set.c
-utc_elm_win_modal_get.c
-utc_elm_win_modal_set.c
+utc_elm_win_maximized_get_set.c
+utc_elm_win_modal_get_set.c
utc_elm_win_name_set.c
utc_elm_win_noblank.c
utc_elm_win_norender_get.c
-utc_elm_win_norender_pop.c
-utc_elm_win_norender_push.c
+utc_elm_win_norender_push_pop.c
#utc_elm_win_override_get.c
#utc_elm_win_override_set.c
-utc_elm_win_profile_get.c
-utc_elm_win_profile_set.c
+utc_elm_win_profile_get_set.c
#utc_elm_win_profiles_set.c
utc_elm_win_prop_focus_skip_set.c
utc_elm_win_quickpanel_get.c
-utc_elm_win_quickpanel_priority_major_get.c
-utc_elm_win_quickpanel_priority_major_set.c
-utc_elm_win_quickpanel_priority_minor_get.c
-utc_elm_win_quickpanel_priority_minor_set.c
+utc_elm_win_quickpanel_priority_major_get_set.c
+utc_elm_win_quickpanel_priority_minor_get_set.c
utc_elm_win_quickpanel_set.c
-utc_elm_win_quickpanel_zone_get.c
-utc_elm_win_quickpanel_zone_set.c
+utc_elm_win_quickpanel_zone_get_set.c
utc_elm_win_raise.c
utc_elm_win_render.c
-utc_elm_win_resize_object_add.c
-utc_elm_win_resize_object_del.c
-utc_elm_win_role_get.c
-utc_elm_win_role_set.c
-utc_elm_win_rotation_get.c
-utc_elm_win_rotation_set.c
+utc_elm_win_resize_object_add_del.c
+utc_elm_win_role_get_set.c
+utc_elm_win_rotation_get_set.c
utc_elm_win_rotation_with_resize_set.c
-utc_elm_win_screen_constrain_get.c
-utc_elm_win_screen_constrain_set.c
+utc_elm_win_screen_constrain_get_set.c
utc_elm_win_screen_dpi_get.c
utc_elm_win_screen_position_get.c
utc_elm_win_screen_size_get.c
#utc_elm_win_shaped_get.c
#utc_elm_win_shaped_set.c
-utc_elm_win_size_base_get.c
-utc_elm_win_size_base_set.c
-utc_elm_win_size_step_get.c
-utc_elm_win_size_step_set.c
+utc_elm_win_size_base_get_set.c
+utc_elm_win_size_step_get_set.c
utc_elm_win_socket_listen.c
#utc_elm_win_sticky_get.c
#utc_elm_win_sticky_set.c
-utc_elm_win_title_get.c
-utc_elm_win_title_set.c
+utc_elm_win_title_get_set.c
utc_elm_win_trap_data_get.c
utc_elm_win_trap_set.c
utc_elm_win_type_get.c
utc_elm_win_type_set.c
utc_elm_win_util_dialog_add.c
utc_elm_win_util_standard_add.c
-utc_elm_win_urgent_get.c
-utc_elm_win_urgent_set.c
-utc_elm_win_withdrawn_get.c
-utc_elm_win_withdrawn_set.c
-utc_elm_win_wm_rotation_available_rotations_get.c
-utc_elm_win_wm_rotation_available_rotations_set.c
+utc_elm_win_urgent_get_set.c
+utc_elm_win_withdrawn_get_set.c
+utc_elm_win_wm_rotation_available_rotations_get_set.c
utc_elm_win_wm_rotation_manual_rotation_done.c
-utc_elm_win_wm_rotation_manual_rotation_done_get.c
-utc_elm_win_wm_rotation_manual_rotation_done_set.c
-utc_elm_win_wm_rotation_preferred_rotation_get.c
-utc_elm_win_wm_rotation_preferred_rotation_set.c
+utc_elm_win_wm_rotation_manual_rotation_done_get_set.c
+utc_elm_win_wm_rotation_preferred_rotation_get_set.c
utc_elm_win_wm_rotation_supported_get.c
utc_elm_win_xwindow_get.c
utc_elm_win_window_id_get.c
utc_elm_win_activate.c
utc_elm_win_add.c
-utc_elm_win_alpha_get.c
-utc_elm_win_alpha_set.c
-utc_elm_win_aspect_get.c
-utc_elm_win_aspect_set.c
-utc_elm_win_autodel_get.c
-utc_elm_win_autodel_set.c
+utc_elm_win_alpha_get_set.c
+utc_elm_win_aspect_get_set.c
+utc_elm_win_autodel_get_set.c
#utc_elm_win_autohide.c
#utc_elm_win_available_profiles.c
-utc_elm_win_borderless_get.c
-utc_elm_win_borderless_set.c
+utc_elm_win_borderless_get_set.c
#utc_elm_win_center.c
-utc_elm_win_conformant_get.c
-utc_elm_win_conformant_set.c
-utc_elm_win_demand_attention_get.c
-utc_elm_win_demand_attention_set.c
+utc_elm_win_conformant_get_set.c
+utc_elm_win_demand_attention_get_set.c
#utc_elm_win_fake.c
-utc_elm_win_floating_mode_get.c
-utc_elm_win_floating_mode_set.c
+utc_elm_win_floating_mode_get_set.c
utc_elm_win_focus_get.c
#utc_elm_win_focus_highlight_animate.c
-utc_elm_win_focus_highlight_enabled_get.c
-utc_elm_win_focus_highlight_enabled_set.c
-utc_elm_win_focus_highlight_style_get.c
-utc_elm_win_focus_highlight_style_set.c
-#utc_elm_win_fullscreen_get.c
-#utc_elm_win_fullscreen_set.c
-utc_elm_win_icon_name_get.c
-utc_elm_win_icon_name_set.c
-utc_elm_win_icon_object_get.c
-utc_elm_win_icon_object_set.c
-#utc_elm_win_iconified_get.c
-#utc_elm_win_iconified_set.c
+utc_elm_win_focus_highlight_enabled_get_set.c
+utc_elm_win_focus_highlight_style_get_set.c
+#utc_elm_win_fullscreen_get_set.c
+utc_elm_win_icon_name_get_set.c
+utc_elm_win_icon_object_get_set.c
+#utc_elm_win_iconified_get_set.c
utc_elm_win_illume_command_send.c
-utc_elm_win_indicator_mode_get.c
-utc_elm_win_indicator_mode_set.c
-utc_elm_win_indicator_opacity_get.c
-utc_elm_win_indicator_opacity_set.c
+utc_elm_win_indicator_mode_get_set.c
+utc_elm_win_indicator_opacity_get_set.c
utc_elm_win_inlined_image_object_get.c
utc_elm_win_inwin_activate.c
utc_elm_win_inwin_add.c
-utc_elm_win_inwin_content_get.c
-utc_elm_win_inwin_content_set.c
+utc_elm_win_inwin_content_get_set.c
utc_elm_win_inwin_content_unset.c
-utc_elm_win_keyboard_mode_get.c
-utc_elm_win_keyboard_mode_set.c
-#utc_elm_win_keyboard_win_get.c
-#utc_elm_win_keyboard_win_set.c
+utc_elm_win_keyboard_mode_get_set.c
+#utc_elm_win_keyboard_win_get_set.c
utc_elm_win_keygrab_set.c
utc_elm_win_keygrab_unset.c
-utc_elm_win_layer_get.c
-utc_elm_win_layer_set.c
+utc_elm_win_layer_get_set.c
utc_elm_win_lower.c
-utc_elm_win_maximized_get.c
-utc_elm_win_maximized_set.c
-utc_elm_win_modal_get.c
-utc_elm_win_modal_set.c
+utc_elm_win_maximized_get_set.c
+utc_elm_win_modal_get_set.c
#utc_elm_win_name_set.c
#utc_elm_win_noblank.c
utc_elm_win_norender_get.c
-utc_elm_win_norender_pop.c
-utc_elm_win_norender_push.c
+utc_elm_win_norender_push_pop.c
#utc_elm_win_override_get.c
#utc_elm_win_override_set.c
-utc_elm_win_profile_get.c
-utc_elm_win_profile_set.c
+utc_elm_win_profile_get_set.c
#utc_elm_win_profiles_set.c
utc_elm_win_prop_focus_skip_set.c
#utc_elm_win_quickpanel_get.c
-#utc_elm_win_quickpanel_priority_major_get.c
-#utc_elm_win_quickpanel_priority_major_set.c
-#utc_elm_win_quickpanel_priority_minor_get.c
-#utc_elm_win_quickpanel_priority_minor_set.c
+#utc_elm_win_quickpanel_priority_major_get_set.c
+#utc_elm_win_quickpanel_priority_minor_get_set.c
#utc_elm_win_quickpanel_set.c
-#utc_elm_win_quickpanel_zone_get.c
-#utc_elm_win_quickpanel_zone_set.c
+#utc_elm_win_quickpanel_zone_get_set.c
utc_elm_win_raise.c
utc_elm_win_render.c
-utc_elm_win_resize_object_add.c
-utc_elm_win_resize_object_del.c
-utc_elm_win_role_get.c
-utc_elm_win_role_set.c
-utc_elm_win_rotation_get.c
-utc_elm_win_rotation_set.c
+utc_elm_win_resize_object_add_del.c
+utc_elm_win_role_get_set.c
+utc_elm_win_rotation_get_set.c
utc_elm_win_rotation_with_resize_set.c
-utc_elm_win_screen_constrain_get.c
-utc_elm_win_screen_constrain_set.c
+utc_elm_win_screen_constrain_get_set.c
utc_elm_win_screen_dpi_get.c
utc_elm_win_screen_position_get.c
utc_elm_win_screen_size_get.c
#utc_elm_win_shaped_get.c
#utc_elm_win_shaped_set.c
-utc_elm_win_size_base_get.c
-utc_elm_win_size_base_set.c
-utc_elm_win_size_step_get.c
-utc_elm_win_size_step_set.c
+utc_elm_win_size_base_get_set.c
+utc_elm_win_size_step_get_set.c
utc_elm_win_socket_listen.c
#utc_elm_win_sticky_get.c
#utc_elm_win_sticky_set.c
-utc_elm_win_title_get.c
-utc_elm_win_title_set.c
+utc_elm_win_title_get_set.c
#utc_elm_win_trap_data_get.c
utc_elm_win_trap_set.c
utc_elm_win_type_get.c
#utc_elm_win_type_set.c
#utc_elm_win_util_dialog_add.c
utc_elm_win_util_standard_add.c
-utc_elm_win_urgent_get.c
-utc_elm_win_urgent_set.c
-utc_elm_win_withdrawn_get.c
-utc_elm_win_withdrawn_set.c
-utc_elm_win_wm_rotation_available_rotations_get.c
-utc_elm_win_wm_rotation_available_rotations_set.c
+utc_elm_win_urgent_get_set.c
+utc_elm_win_withdrawn_get_set.c
+utc_elm_win_wm_rotation_available_rotations_get_set.c
utc_elm_win_wm_rotation_manual_rotation_done.c
-utc_elm_win_wm_rotation_manual_rotation_done_get.c
-utc_elm_win_wm_rotation_manual_rotation_done_set.c
-utc_elm_win_wm_rotation_preferred_rotation_get.c
-utc_elm_win_wm_rotation_preferred_rotation_set.c
+utc_elm_win_wm_rotation_manual_rotation_done_get_set.c
+utc_elm_win_wm_rotation_preferred_rotation_get_set.c
utc_elm_win_wm_rotation_supported_get.c
utc_elm_win_xwindow_get.c
utc_elm_win_window_id_get.c
utc_elm_win_activate.c
utc_elm_win_add.c
-utc_elm_win_alpha_get.c
-utc_elm_win_alpha_set.c
-utc_elm_win_aspect_get.c
-utc_elm_win_aspect_set.c
-utc_elm_win_autodel_get.c
-utc_elm_win_autodel_set.c
+utc_elm_win_alpha_get_set.c
+utc_elm_win_aspect_get_set.c
+utc_elm_win_autodel_get_set.c
#utc_elm_win_autohide.c
#utc_elm_win_available_profiles.c
-utc_elm_win_borderless_get.c
-utc_elm_win_borderless_set.c
+utc_elm_win_borderless_get_set.c
#utc_elm_win_center.c
-utc_elm_win_conformant_get.c
-utc_elm_win_conformant_set.c
-utc_elm_win_demand_attention_get.c
-utc_elm_win_demand_attention_set.c
+utc_elm_win_conformant_get_set.c
+utc_elm_win_demand_attention_get_set.c
#utc_elm_win_fake.c
-utc_elm_win_floating_mode_get.c
-utc_elm_win_floating_mode_set.c
+utc_elm_win_floating_mode_get_set.c
utc_elm_win_focus_get.c
#utc_elm_win_focus_highlight_animate.c
-utc_elm_win_focus_highlight_enabled_get.c
-utc_elm_win_focus_highlight_enabled_set.c
-utc_elm_win_focus_highlight_style_get.c
-utc_elm_win_focus_highlight_style_set.c
-#utc_elm_win_fullscreen_get.c
-#utc_elm_win_fullscreen_set.c
-utc_elm_win_icon_name_get.c
-utc_elm_win_icon_name_set.c
-utc_elm_win_icon_object_get.c
-utc_elm_win_icon_object_set.c
-#utc_elm_win_iconified_get.c
-#utc_elm_win_iconified_set.c
+utc_elm_win_focus_highlight_enabled_get_set.c
+utc_elm_win_focus_highlight_style_get_set.c
+#utc_elm_win_fullscreen_get_set.c
+utc_elm_win_icon_name_get_set.c
+utc_elm_win_icon_object_get_set.c
+#utc_elm_win_iconified_get_set.c
utc_elm_win_illume_command_send.c
-utc_elm_win_indicator_mode_get.c
-utc_elm_win_indicator_mode_set.c
-utc_elm_win_indicator_opacity_get.c
-utc_elm_win_indicator_opacity_set.c
+utc_elm_win_indicator_mode_get_set.c
+utc_elm_win_indicator_opacity_get_set.c
utc_elm_win_inlined_image_object_get.c
utc_elm_win_inwin_activate.c
utc_elm_win_inwin_add.c
-utc_elm_win_inwin_content_get.c
-utc_elm_win_inwin_content_set.c
+utc_elm_win_inwin_content_get_set.c
utc_elm_win_inwin_content_unset.c
-utc_elm_win_keyboard_mode_get.c
-utc_elm_win_keyboard_mode_set.c
-#utc_elm_win_keyboard_win_get.c
-#utc_elm_win_keyboard_win_set.c
+utc_elm_win_keyboard_mode_get_set.c
+#utc_elm_win_keyboard_win_get_set.c
utc_elm_win_keygrab_set.c
utc_elm_win_keygrab_unset.c
-utc_elm_win_layer_get.c
-utc_elm_win_layer_set.c
+utc_elm_win_layer_get_set.c
utc_elm_win_lower.c
-utc_elm_win_maximized_get.c
-utc_elm_win_maximized_set.c
-utc_elm_win_modal_get.c
-utc_elm_win_modal_set.c
+utc_elm_win_maximized_get_set.c
+utc_elm_win_modal_get_set.c
#utc_elm_win_name_set.c
#utc_elm_win_noblank.c
utc_elm_win_norender_get.c
-utc_elm_win_norender_pop.c
-utc_elm_win_norender_push.c
+utc_elm_win_norender_push_pop.c
#utc_elm_win_override_get.c
#utc_elm_win_override_set.c
-utc_elm_win_profile_get.c
-#utc_elm_win_profile_set.c
+#utc_elm_win_profile_get_set.c
#utc_elm_win_profiles_set.c
utc_elm_win_prop_focus_skip_set.c
#utc_elm_win_quickpanel_get.c
-#utc_elm_win_quickpanel_priority_major_get.c
-#utc_elm_win_quickpanel_priority_major_set.c
-#utc_elm_win_quickpanel_priority_minor_get.c
-#utc_elm_win_quickpanel_priority_minor_set.c
+#utc_elm_win_quickpanel_priority_major_get_set.c
+#utc_elm_win_quickpanel_priority_minor_get_set.c
#utc_elm_win_quickpanel_set.c
-#utc_elm_win_quickpanel_zone_get.c
-#utc_elm_win_quickpanel_zone_set.c
+#utc_elm_win_quickpanel_zone_get_set.c
utc_elm_win_raise.c
utc_elm_win_render.c
-utc_elm_win_resize_object_add.c
-utc_elm_win_resize_object_del.c
-utc_elm_win_role_get.c
-utc_elm_win_role_set.c
-utc_elm_win_rotation_get.c
-utc_elm_win_rotation_set.c
+utc_elm_win_resize_object_add_del.c
+utc_elm_win_role_get_set.c
+utc_elm_win_rotation_get_set.c
utc_elm_win_rotation_with_resize_set.c
-utc_elm_win_screen_constrain_get.c
-utc_elm_win_screen_constrain_set.c
+utc_elm_win_screen_constrain_get_set.c
utc_elm_win_screen_dpi_get.c
utc_elm_win_screen_position_get.c
utc_elm_win_screen_size_get.c
#utc_elm_win_shaped_get.c
#utc_elm_win_shaped_set.c
-utc_elm_win_size_base_get.c
-utc_elm_win_size_base_set.c
-utc_elm_win_size_step_get.c
-utc_elm_win_size_step_set.c
+utc_elm_win_size_base_get_set.c
+utc_elm_win_size_step_get_set.c
utc_elm_win_socket_listen.c
#utc_elm_win_sticky_get.c
#utc_elm_win_sticky_set.c
-utc_elm_win_title_get.c
-utc_elm_win_title_set.c
+utc_elm_win_title_get_set.c
#utc_elm_win_trap_data_get.c
utc_elm_win_trap_set.c
utc_elm_win_type_get.c
#utc_elm_win_type_set.c
#utc_elm_win_util_dialog_add.c
utc_elm_win_util_standard_add.c
-utc_elm_win_urgent_get.c
-utc_elm_win_urgent_set.c
-utc_elm_win_withdrawn_get.c
-utc_elm_win_withdrawn_set.c
-utc_elm_win_wm_rotation_available_rotations_get.c
-utc_elm_win_wm_rotation_available_rotations_set.c
+utc_elm_win_urgent_get_set.c
+utc_elm_win_withdrawn_get_set.c
+utc_elm_win_wm_rotation_available_rotations_get_set.c
utc_elm_win_wm_rotation_manual_rotation_done.c
-utc_elm_win_wm_rotation_manual_rotation_done_get.c
-utc_elm_win_wm_rotation_manual_rotation_done_set.c
-utc_elm_win_wm_rotation_preferred_rotation_get.c
-utc_elm_win_wm_rotation_preferred_rotation_set.c
+utc_elm_win_wm_rotation_manual_rotation_done_get_set.c
+utc_elm_win_wm_rotation_preferred_rotation_get_set.c
utc_elm_win_wm_rotation_supported_get.c
utc_elm_win_xwindow_get.c
utc_elm_win_window_id_get.c
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_alpha_get elm_win_alpha_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_alpha_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * alpha channel state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's alpha channel state to EINA_TRUE
- * @step 2 Call elm_win_alpha_get with valid value
- * @step 3 Set the window's alpha channel state to EINA_FALSE
- * @step 4 Call elm_win_alpha_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_alpha_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_alpha_set(main_win, EINA_TRUE);
- ret = elm_win_alpha_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_alpha_set(main_win, EINA_FALSE);
- ret = elm_win_alpha_get(main_win);
- 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 elm_win_alpha_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * alpha channel state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_alpha_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_alpha_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_alpha_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_alpha_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_alpha_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_alpha_get_p);
- tcase_add_test(tcase, utc_elm_win_alpha_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_alpha_get elm_win_alpha_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_alpha_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * alpha channel state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's alpha channel state to EINA_TRUE
+ * @step 2 Call elm_win_alpha_get with valid value
+ * @step 3 Set the window's alpha channel state to EINA_FALSE
+ * @step 4 Call elm_win_alpha_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_alpha_get_p)
+{
+
+
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_win_alpha_set(main_win, EINA_TRUE);
+ ret = elm_win_alpha_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_alpha_set(main_win, EINA_FALSE);
+ ret = elm_win_alpha_get(main_win);
+ 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 elm_win_alpha_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * alpha channel state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_alpha_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_alpha_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_alpha_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_alpha_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * alpha channel state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's alpha channel state
+ *
+ * @procedure
+ * @step 1 Call elm_win_alpha_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_alpha_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_alpha_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_alpha_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_alpha_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_alpha_get_p);
+ tcase_add_test(tcase, utc_elm_win_alpha_get_n);
+ tcase_add_test(tcase, utc_elm_win_alpha_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_alpha_set elm_win_alpha_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_alpha_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * alpha channel state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's alpha channel state
- *
- * @procedure
- * @step 1 Call elm_win_alpha_set with EINA_TRUE as the window's alpha channel state
- * @step 2 Get the window's alpha channel state
- * @step 3 Call elm_win_alpha_set with with EINA_FALSE as the window's alpha channel state
- * @step 4 Get the window's alpha channel state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_alpha_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_alpha_set(main_win, EINA_TRUE);
- ret = elm_win_alpha_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_alpha_set(main_win, EINA_FALSE);
- ret = elm_win_alpha_get(main_win);
- 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 elm_win_alpha_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * alpha channel state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's alpha channel state
- *
- * @procedure
- * @step 1 Call elm_win_alpha_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_alpha_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_alpha_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_alpha_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_alpha_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_alpha_set_p);
- tcase_add_test(tcase, utc_elm_win_alpha_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_aspect_get elm_win_aspect_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_aspect_get
- * @{
- * @objective Positive test case
- * Test checks if function call with valid values to get the aspect of the window works properly.
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Get default value of aspect ratio of the window and add value 1.1
- * @step 2 Set the aspect new ratio value
- * @step 3 Get aspect ration of the window
- * @step 4 Check returned value
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_aspect_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int aspect, ret;
- aspect = elm_win_aspect_get(main_win) + 1.1;
- elm_win_aspect_set(main_win, aspect);
- ret = elm_win_aspect_get(main_win);
-
- if (fabs(ret - aspect) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_aspect_get
- * @{
- * @objective Negative test case
- * Test checks if function call with invalid value to get the aspect ratio
- * of the window works properly.
- * @n Input Data:
- * @li NULL, the window object
- *
- * @procedure
- * @step 1 Call elm_win_aspect_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is 0.0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_aspect_get_n)
-{
-
- if (fabs(elm_win_aspect_get(NULL)) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_aspect_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_aspect_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_aspect_get_p);
- tcase_add_test(tcase, utc_elm_win_aspect_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_aspect_set elm_win_aspect_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_aspect_set
+ * @{
+ * @objective Positive test case
+ * Test checks if function call with valid values to set the aspect ratio of the window works properly.
+ * @n Input Data:
+ * @li the window object
+ * @li (default value + 1.1) as the aspect of the window
+ *
+ * @procedure
+ * @step 1 Get default value of aspect ratio of the window and add value 1.1
+ * @step 2 Set new aspect ratio value
+ * @step 3 Get aspect ration of the window
+ * @step 4 Check returned value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as value was set before.
+ * @}
+ */
+START_TEST(utc_elm_win_aspect_set_p)
+{
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ int aspect, ret;
+ aspect = elm_win_aspect_get(main_win) + 1.1;
+ elm_win_aspect_set(main_win, aspect);
+ ret = elm_win_aspect_get(main_win);
+
+ if (fabs(ret - aspect) > DBL_EPSILON)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_aspect_set
+ * @{
+ * @objective Negative test case 1
+ * Test checks if function call with NULL instead of window object to set the aspect ratio
+ * of the window works without segmentation fault
+ * @n Input Data:
+ * @li NULL as the window object
+ * @li 1.33 as the aspect of the window
+ *
+ * @procedure
+ * @step 1 Call elm_win_aspect_set with NULL instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_aspect_set_n_1)
+{
+
+ elm_win_aspect_set(NULL, 1.33);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_aspect_set
+ * @{
+ * @objective Negative test case 2
+ * Test checks if function call with negative value aspect ratio to set the aspect ratio
+ * of the window works without segmentation fault
+ * @n Input Data:
+ * @li main_win as the window object
+ * @li -2.0 as the aspect of the window
+ *
+ * @procedure
+ * @step 1 Call elm_win_aspect_set with negative value instead of the aspect ratio of the window
+ * @step 2 Call elm_win_aspect_get for get aspect ratio and check returned value
+ *
+ * @passcondition
+ * @li Test passes if negative value not set like aspect ration and there is no segmentation fault
+ * @}
+ */
+#ifdef NOT_APPROVED_FOR_BUILD
+START_TEST(utc_elm_win_aspect_set_n_2)
+{
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_aspect_set(main_win, -2.0);
+ if (elm_win_aspect_get(main_win) < 0.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
+#endif
+
+/**
+ * @addtogroup elm_win_aspect_get
+ * @{
+ * @objective Negative test case
+ * Test checks if function call with invalid value to get the aspect ratio
+ * of the window works properly.
+ * @n Input Data:
+ * @li NULL, the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_aspect_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is 0.0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_aspect_get_n)
+{
+
+ if (fabs(elm_win_aspect_get(NULL)) > DBL_EPSILON)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_aspect_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_aspect_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_aspect_set_p);
+ tcase_add_test(tcase, utc_elm_win_aspect_set_n_1);
+#ifdef NOT_APPROVED_FOR_BUILD
+ tcase_add_test(tcase, utc_elm_win_aspect_set_n_2);
+#endif
+ tcase_add_test(tcase, utc_elm_win_aspect_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_aspect_set elm_win_aspect_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_aspect_set
- * @{
- * @objective Positive test case
- * Test checks if function call with valid values to set the aspect ratio of the window works properly.
- * @n Input Data:
- * @li the window object
- * @li (default value + 1.1) as the aspect of the window
- *
- * @procedure
- * @step 1 Get default value of aspect ratio of the window and add value 1.1
- * @step 2 Set new aspect ratio value
- * @step 3 Get aspect ration of the window
- * @step 4 Check returned value
- *
- * @passcondition
- * @li Test passes if returned value is same as value was set before.
- * @}
- */
-START_TEST(utc_elm_win_aspect_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int aspect, ret;
- aspect = elm_win_aspect_get(main_win) + 1.1;
- elm_win_aspect_set(main_win, aspect);
- ret = elm_win_aspect_get(main_win);
-
- if (fabs(ret - aspect) > DBL_EPSILON)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_aspect_set
- * @{
- * @objective Negative test case 1
- * Test checks if function call with NULL instead of window object to set the aspect ratio
- * of the window works without segmentation fault
- * @n Input Data:
- * @li NULL as the window object
- * @li 1.33 as the aspect of the window
- *
- * @procedure
- * @step 1 Call elm_win_aspect_set with NULL instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_aspect_set_n_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_aspect_set(NULL, 1.33);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_aspect_set
- * @{
- * @objective Negative test case 2
- * Test checks if function call with negative value aspect ratio to set the aspect ratio
- * of the window works without segmentation fault
- * @n Input Data:
- * @li main_win as the window object
- * @li -2.0 as the aspect of the window
- *
- * @procedure
- * @step 1 Call elm_win_aspect_set with negative value instead of the aspect ratio of the window
- * @step 2 Call elm_win_aspect_get for get aspect ratio and check returned value
- *
- * @passcondition
- * @li Test passes if negative value not set like aspect ration and there is no segmentation fault
- * @}
- */
-#ifdef NOT_APPROVED_FOR_BUILD
-START_TEST(utc_elm_win_aspect_set_n_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_aspect_set(main_win, -2.0);
- if (elm_win_aspect_get(main_win) < 0.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
-#endif
-/**
- *@}
- */
-
-TCase * _utc_elm_win_aspect_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_aspect_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
-#ifdef NOT_APPROVED_FOR_BUILD
-#endif
- tcase_add_test(tcase, utc_elm_win_aspect_set_p);
- tcase_add_test(tcase, utc_elm_win_aspect_set_n_1);
-#ifdef NOT_APPROVED_FOR_BUILD
- tcase_add_test(tcase, utc_elm_win_aspect_set_n_2);
-#endif
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_autodel_get elm_win_autodel_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_autodel_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * autodel state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's autodel state
- * @step 2 Get the window's autodel state
- * @step 3 Unset the window's autodel state
- * @step 4 Get the window's autodel state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_autodel_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_autodel_set(main_win, EINA_TRUE);
- ret = elm_win_autodel_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_autodel_set(main_win, EINA_FALSE);
- ret = elm_win_autodel_get(main_win);
- 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 elm_win_autodel_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * autodel state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_autodel_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_autodel_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_autodel_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_autodel_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_autodel_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_autodel_get_p);
- tcase_add_test(tcase, utc_elm_win_autodel_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_autodel_get elm_win_autodel_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_autodel_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the window's
+ * autodel state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's autodel state
+ * @step 2 Get the window's autodel state
+ * @step 3 Unset the window's autodel state
+ * @step 4 Get the window's autodel state
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_autodel_get_p)
+{
+
+
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_win_autodel_set(main_win, EINA_TRUE);
+ ret = elm_win_autodel_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_autodel_set(main_win, EINA_FALSE);
+ ret = elm_win_autodel_get(main_win);
+ 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 elm_win_autodel_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * autodel state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_autodel_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_autodel_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_autodel_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_autodel_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * autodel state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's autodel state
+ *
+ * @procedure
+ * @step 1 Call elm_win_autodel_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_autodel_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_autodel_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_autodel_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_autodel_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_autodel_get_p);
+ tcase_add_test(tcase, utc_elm_win_autodel_get_n);
+ tcase_add_test(tcase, utc_elm_win_autodel_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_autodel_set elm_win_autodel_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_autodel_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * autodel state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's autodel state
- *
- * @procedure
- * @step 1 Call elm_win_autodel_set with EINA_TRUE as the window's autodel state
- * @step 2 Get the window's autodel state
- * @step 3 Call elm_win_autodel_set with EINA_FALSE as the window's autodel state
- * @step 4 Get the window's autodel state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_autodel_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_autodel_set(main_win, EINA_TRUE);
- ret = elm_win_autodel_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_autodel_set(main_win, EINA_FALSE);
- ret = elm_win_autodel_get(main_win);
- 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 elm_win_autodel_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * autodel state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's autodel state
- *
- * @procedure
- * @step 1 Call elm_win_autodel_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_autodel_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_autodel_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_autodel_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_autodel_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_autodel_set_p);
- tcase_add_test(tcase, utc_elm_win_autodel_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_borderless_get elm_win_borderless_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_borderless_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * borderless state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's borderless state to EINA_TRUE
- * @step 2 Call elm_win_borderless_get with valid value
- * @step 3 Set the window's borderless state to EINA_FALSE
- * @step 4 Call elm_win_borderless_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_borderless_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_borderless_set(main_win, EINA_TRUE);
- ret = elm_win_borderless_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_borderless_set(main_win, EINA_FALSE);
- ret = elm_win_borderless_get(main_win);
- 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 elm_win_borderless_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * borderless state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_borderless_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_borderless_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_borderless_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_borderless_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_borderless_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_borderless_get_p);
- tcase_add_test(tcase, utc_elm_win_borderless_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_borderless_get elm_win_borderless_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_borderless_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * borderless state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's borderless state to EINA_TRUE
+ * @step 2 Call elm_win_borderless_get with valid value
+ * @step 3 Set the window's borderless state to EINA_FALSE
+ * @step 4 Call elm_win_borderless_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_borderless_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_win_borderless_set(main_win, EINA_TRUE);
+ ret = elm_win_borderless_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_borderless_set(main_win, EINA_FALSE);
+ ret = elm_win_borderless_get(main_win);
+ 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 elm_win_borderless_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * borderless state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_borderless_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_borderless_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_borderless_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_borderless_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * borderless state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's borderless state
+ *
+ * @procedure
+ * @step 1 Call elm_win_borderless_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_borderless_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_borderless_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_borderless_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_borderless_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_borderless_get_p);
+ tcase_add_test(tcase, utc_elm_win_borderless_get_n);
+ tcase_add_test(tcase, utc_elm_win_borderless_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_borderless_set elm_win_borderless_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_borderless_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * borderless state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's borderless state
- *
- * @procedure
- * @step 1 Call elm_win_borderless_set with EINA_TRUE as the window's borderless state
- * @step 2 Get the window's borderless state
- * @step 3 Call elm_win_borderless_set with EINA_FALSE as the window's borderless state
- * @step 4 Get the window's borderless state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_borderless_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_borderless_set(main_win, EINA_TRUE);
- ret = elm_win_borderless_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_borderless_set(main_win, EINA_FALSE);
- ret = elm_win_borderless_get(main_win);
- 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 elm_win_borderless_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * borderless state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's borderless state
- *
- * @procedure
- * @step 1 Call elm_win_borderless_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_borderless_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_borderless_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_borderless_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_borderless_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_borderless_set_p);
- tcase_add_test(tcase, utc_elm_win_borderless_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_conformant_get elm_win_conformant_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_conformant_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * conformant flag works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set if this window is an illume conformant window to EINA_TRUE
- * @step 2 Call elm_win_conformant_get with valid value
- * @step 3 Set if this window is an illume conformant window to EINA_FALSE
- * @step 4 Call elm_win_conformant_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_conformant_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_conformant_set(main_win, EINA_TRUE);
- ret = elm_win_conformant_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_conformant_set(main_win, EINA_FALSE);
- ret = elm_win_conformant_get(main_win);
- 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 elm_win_conformant_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * conformant flag works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_conformant_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_conformant_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_conformant_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_conformant_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_conformant_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_conformant_get_p);
- tcase_add_test(tcase, utc_elm_win_conformant_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_conformant_get elm_win_conformant_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_conformant_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * conformant flag works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set if this window is an illume conformant window to EINA_TRUE
+ * @step 2 Call elm_win_conformant_get with valid value
+ * @step 3 Set if this window is an illume conformant window to EINA_FALSE
+ * @step 4 Call elm_win_conformant_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_conformant_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_win_conformant_set(main_win, EINA_TRUE);
+ ret = elm_win_conformant_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_conformant_set(main_win, EINA_FALSE);
+ ret = elm_win_conformant_get(main_win);
+ 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 elm_win_conformant_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * conformant flag works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_conformant_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_conformant_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_conformant_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_conformant_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * conformant flag works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's conformant flag
+ *
+ * @procedure
+ * @step 1 Call elm_win_conformant_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_conformant_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_conformant_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_conformant_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_conformant_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_conformant_get_p);
+ tcase_add_test(tcase, utc_elm_win_conformant_get_n);
+ tcase_add_test(tcase, utc_elm_win_conformant_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_conformant_set elm_win_conformant_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_conformant_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * conformant flag works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's conformant flag
- *
- * @procedure
- * @step 1 Call elm_win_conformant_set with EINA_TRUE as the window's conformant flag
- * @step 2 Get if this window is an illume conformant window
- * @step 3 Call elm_win_conformant_set with EINA_FALSE as the window's conformant flag
- * @step 4 Get if this window is an illume conformant window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_conformant_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_conformant_set(main_win, EINA_TRUE);
- ret = elm_win_conformant_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_conformant_set(main_win, EINA_FALSE);
- ret = elm_win_conformant_get(main_win);
- 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 elm_win_conformant_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * conformant flag works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's conformant flag
- *
- * @procedure
- * @step 1 Call elm_win_conformant_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_conformant_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_conformant_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_conformant_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_conformant_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_conformant_set_p);
- tcase_add_test(tcase, utc_elm_win_conformant_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_demand_attention_get elm_win_demand_attention_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_demand_attention_get
- * @{
- * @objective Positive test case
- * Test checks if function call with valid value to get the demand attention of the window works properly.
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Get default value of demand attention of the window
- * @step 2 Invert value and set it like a demand attantion
- * @step 3 Get value of demand attention
- * @step 4 Check returned value
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_demand_attention_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool da;
- da = elm_win_demand_attention_get(main_win);
- elm_win_demand_attention_set(main_win, !da);
- elm_win_demand_attention_get(main_win);
-
- if (elm_win_demand_attention_get(main_win) == da)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_demand_attention_get
- * @{
- * @objective Negative test case
- * Test checks if function call with invalid values to get the demand attention
- * of the window works properly.
- * @n Input Data:
- * @li NULL, the window object
- *
- * @procedure
- * @step 1 Call elm_win_demand_attention_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_demand_attention_get_n)
-{
-
- if (elm_win_demand_attention_get(NULL))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_demand_attention_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_demand_attention_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_demand_attention_get_p);
- tcase_add_test(tcase, utc_elm_win_demand_attention_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_demand_attention_get elm_win_demand_attention_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_demand_attention_get
+ * @{
+ * @objective Positive test case
+ * Test checks if function call with valid value to get the demand attention of the window works properly.
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Get default value of demand attention of the window
+ * @step 2 Invert value and set it like a demand attantion
+ * @step 3 Get value of demand attention
+ * @step 4 Check returned value
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_demand_attention_get_p)
+{
+
+ Eina_Bool da;
+ da = elm_win_demand_attention_get(main_win);
+ elm_win_demand_attention_set(main_win, !da);
+ elm_win_demand_attention_get(main_win);
+
+ if (elm_win_demand_attention_get(main_win) == da)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_demand_attention_get
+ * @{
+ * @objective Negative test case
+ * Test checks if function call with invalid values to get the demand attention
+ * of the window works properly.
+ * @n Input Data:
+ * @li NULL, the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_demand_attention_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_demand_attention_get_n)
+{
+
+ if (elm_win_demand_attention_get(NULL))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_demand_attention_set
+ * @{
+ * @objective Positive test case 02
+ * Test checks if function unset the demand attention property of the window works properly.
+ * @n Input Data:
+ * @li the window object
+ * @li EINA_FALSE as the demand attention of the window
+ *
+ * @procedure
+ * @step 1 Unset demand attention of the window
+ * @step 2 Check returned value
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE.
+ * @}
+ */
+START_TEST(utc_elm_win_demand_attention_set_p_2)
+{
+
+ elm_win_demand_attention_set(main_win, EINA_FALSE);
+
+ if (elm_win_demand_attention_get(main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ * @addtogroup elm_win_demand_attention_set
+ * @{
+ * @objective Negative test case
+ * Test checks if function call with invalid values to set the demand attention
+ * of the window works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window objecti
+ * @li EINA_TRUE as value of demand attantion
+ *
+ * @procedure
+ * @step 1 Call elm_win_demand_attention_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_demand_attention_set_n)
+{
+
+ elm_win_demand_attention_set(NULL, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+
+TCase * _utc_elm_win_demand_attention_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_demand_attention_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_demand_attention_get_p);
+ tcase_add_test(tcase, utc_elm_win_demand_attention_get_n);
+ tcase_add_test(tcase, utc_elm_win_demand_attention_set_p_2);
+ tcase_add_test(tcase, utc_elm_win_demand_attention_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_demand_attention_set elm_win_demand_attention_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_demand_attention_set
- * @{
- * @objective Positive test case 01
- * Test checks if function set the demand attention property of the window works properly.
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE as the demand attention of the window
- *
- * @procedure
- * @step 1 Set demand attention of the window
- * @step 2 Check returned value
- * @passcondition
- * @li Test passes if returned value is EINA_TRUE.
- * @}
- */
-START_TEST(utc_elm_win_demand_attention_set_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_demand_attention_set(main_win, EINA_TRUE);
-
- if (!elm_win_demand_attention_get(main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_demand_attention_set
- * @{
- * @objective Positive test case 02
- * Test checks if function unset the demand attention property of the window works properly.
- * @n Input Data:
- * @li the window object
- * @li EINA_FALSE as the demand attention of the window
- *
- * @procedure
- * @step 1 Unset demand attention of the window
- * @step 2 Check returned value
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE.
- * @}
- */
-START_TEST(utc_elm_win_demand_attention_set_p_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_demand_attention_set(main_win, EINA_FALSE);
-
- if (elm_win_demand_attention_get(main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @addtogroup elm_win_demand_attention_set
- * @{
- * @objective Negative test case
- * Test checks if function call with invalid values to set the demand attention
- * of the window works without segmentation fault
- * @n Input Data:
- * @li NULL, the window objecti
- * @li EINA_TRUE as value of demand attantion
- *
- * @procedure
- * @step 1 Call elm_win_demand_attention_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_demand_attention_set_n)
-{
-
- elm_win_demand_attention_set(NULL, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_demand_attention_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_demand_attention_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_demand_attention_set_p_1);
- tcase_add_test(tcase, utc_elm_win_demand_attention_set_p_2);
- tcase_add_test(tcase, utc_elm_win_demand_attention_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_floating_mode_get elm_win_floating_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_floating_mode_get
- * @{
- * @objective Positive test case checks if function call with valid values works
- * properly and without segmentation fault
- * @n Input data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the floating mode of a window.
- * @step 2 Get the floating mode of a window.
- *
- * @passcondition Test success if get values equals to prevoiusly set values.
- * @}
- */
-START_TEST(utc_elm_win_floating_mode_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret;
-
- elm_win_floating_mode_set(main_win, EINA_TRUE);
- ret = elm_win_floating_mode_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_floating_mode_set(main_win, EINA_FALSE);
- ret = elm_win_floating_mode_get(main_win);
- 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 elm_win_floating_mode_get
- * @{
- * @objective Negative test case checks if function call with NULL as window object
- * works without segmentation fault
- * @n Input data:
- * @li NULL as window object
- *
- * @procedure
- * @step 1 Call elm_win_floating_mode_get with invalid value instead of the window object
- *
- * @passcondition Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_floating_mode_get_n)
-{
- elm_win_floating_mode_get(NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_floating_mode_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_floating_mode_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_floating_mode_get_p);
- tcase_add_test(tcase, utc_elm_win_floating_mode_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_floating_mode_set elm_win_floating_mode_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_floating_mode_set
+ * @{
+ * @objective Positive test case 01 checks if function call with valid value
+ * to activate/deactivate the floating mode of window
+ * object works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li EINA_TRUE, EINA_FALSE as the window's floating mode state
+ *
+ * @procedure
+ * @step 1 Call elm_win_floating_mode_set with EINA_TRUE value
+ * @step 2 Get the window floating mode state
+ * @step 3 Call elm_win_floating_mode_set with EINA_FALSE value
+ * @step 4 Get the window floating mode state
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_floating_mode_set_p1)
+{
+
+ elm_win_floating_mode_set(main_win, EINA_TRUE);
+ if (elm_win_floating_mode_get(main_win) != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_floating_mode_set(main_win, EINA_FALSE);
+ if (elm_win_floating_mode_get(main_win) != EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_floating_mode_set
+ * @{
+ * @objective Positive test case 02 checks if function call with valid value
+ * to activate/deactivate the floating mode of window
+ * object works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li EINA_TRUE as the window's floating mode state
+ *
+ * @procedure
+ * @step 1 Disable borderless for main window
+ * @step 2 Call elm_win_floating_mode_set with EINA_TRUE value
+ * @step 3 Get the window floating mode state
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_floating_mode_set_p2)
+{
+ Eina_Bool border = EINA_TRUE;
+ Eina_Bool fmode = EINA_FALSE;
+
+
+ elm_win_borderless_set(main_win, EINA_FALSE);
+ border = elm_win_borderless_get(main_win);
+ if (border == EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_floating_mode_set(main_win, EINA_TRUE);
+ fmode = elm_win_floating_mode_get(main_win);
+ if (fmode == EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_floating_mode_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * floating mode state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_FALSE as the window's floating mode state
+ *
+ * @procedure
+ * @step 1 Call elm_win_floating_mode_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_floating_mode_set_n)
+{
+ elm_win_floating_mode_set(NULL, EINA_FALSE);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_floating_mode_get
+ * @{
+ * @objective Negative test case checks if function call with NULL as window object
+ * works without segmentation fault
+ * @n Input data:
+ * @li NULL as window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_floating_mode_get with invalid value instead of the window object
+ *
+ * @passcondition Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_floating_mode_get_n)
+{
+ elm_win_floating_mode_get(NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_floating_mode_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_floating_mode_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_floating_mode_set_p1);
+ tcase_add_test(tcase, utc_elm_win_floating_mode_set_p2);
+ tcase_add_test(tcase, utc_elm_win_floating_mode_set_n);
+ tcase_add_test(tcase, utc_elm_win_floating_mode_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_floating_mode_set elm_win_floating_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_floating_mode_set
- * @{
- * @objective Positive test case 01 checks if function call with valid value
- * to activate/deactivate the floating mode of window
- * object works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's floating mode state
- *
- * @procedure
- * @step 1 Call elm_win_floating_mode_set with EINA_TRUE value
- * @step 2 Get the window floating mode state
- * @step 3 Call elm_win_floating_mode_set with EINA_FALSE value
- * @step 4 Get the window floating mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_floating_mode_set_p1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_floating_mode_set(main_win, EINA_TRUE);
- if (elm_win_floating_mode_get(main_win) != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_floating_mode_set(main_win, EINA_FALSE);
- if (elm_win_floating_mode_get(main_win) != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_floating_mode_set
- * @{
- * @objective Positive test case 02 checks if function call with valid value
- * to activate/deactivate the floating mode of window
- * object works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE as the window's floating mode state
- *
- * @procedure
- * @step 1 Disable borderless for main window
- * @step 2 Call elm_win_floating_mode_set with EINA_TRUE value
- * @step 3 Get the window floating mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_floating_mode_set_p2)
-{
- Eina_Bool border = EINA_TRUE;
- Eina_Bool fmode = EINA_FALSE;
-
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_borderless_set(main_win, EINA_FALSE);
- border = elm_win_borderless_get(main_win);
- if (border == EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_floating_mode_set(main_win, EINA_TRUE);
- fmode = elm_win_floating_mode_get(main_win);
- if (fmode == EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_floating_mode_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * floating mode state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_FALSE as the window's floating mode state
- *
- * @procedure
- * @step 1 Call elm_win_floating_mode_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_floating_mode_set_n)
-{
- elm_win_floating_mode_set(NULL, EINA_FALSE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_floating_mode_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_floating_mode_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_floating_mode_set_p1);
- tcase_add_test(tcase, utc_elm_win_floating_mode_set_p2);
- tcase_add_test(tcase, utc_elm_win_floating_mode_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_focus_highlight_enabled_get elm_win_focus_highlight_enabled_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_focus_highlight_enabled_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the
- * enabled status for the focus highlight in a window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the enabled status for the focus highlight in a window
- * @step 2 Get the enabled status for the focus highlight in a window
- * @step 3 Unset the enabled status for the focus highlight in a window
- * @step 4 Get the enabled status for the focus highlight in a window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_enabled_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_focus_highlight_enabled_set(main_win, EINA_TRUE);
- ret = elm_win_focus_highlight_enabled_get(main_win);
- if (ret == EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_focus_highlight_enabled_set(main_win, EINA_FALSE);
- ret = elm_win_focus_highlight_enabled_get(main_win);
- if (ret == EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_focus_highlight_enabled_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the
- * enabled status for the focus highlight in a window works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_focus_highlight_enabled_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_enabled_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_focus_highlight_enabled_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_focus_highlight_enabled_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_focus_highlight_enabled_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_enabled_get_p);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_enabled_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_focus_highlight_enabled_get elm_win_focus_highlight_enabled_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_focus_highlight_enabled_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the
+ * enabled status for the focus highlight in a window works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the enabled status for the focus highlight in a window
+ * @step 2 Get the enabled status for the focus highlight in a window
+ * @step 3 Unset the enabled status for the focus highlight in a window
+ * @step 4 Get the enabled status for the focus highlight in a window
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_focus_highlight_enabled_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_win_focus_highlight_enabled_set(main_win, EINA_TRUE);
+ ret = elm_win_focus_highlight_enabled_get(main_win);
+ if (ret == EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_focus_highlight_enabled_set(main_win, EINA_FALSE);
+ ret = elm_win_focus_highlight_enabled_get(main_win);
+ if (ret == EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_focus_highlight_enabled_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the
+ * enabled status for the focus highlight in a window works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_focus_highlight_enabled_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_focus_highlight_enabled_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_focus_highlight_enabled_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_focus_highlight_enabled_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the
+ * enabled status for the focus highlight in a window works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the enabled status for the focus highlight in a window
+ *
+ * @procedure
+ * @step 1 Call elm_win_focus_highlight_enabled_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_focus_highlight_enabled_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_focus_highlight_enabled_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_focus_highlight_enabled_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_focus_highlight_enabled_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_focus_highlight_enabled_get_p);
+ tcase_add_test(tcase, utc_elm_win_focus_highlight_enabled_get_n);
+ tcase_add_test(tcase, utc_elm_win_focus_highlight_enabled_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_focus_highlight_enabled_set elm_win_focus_highlight_enabled_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_focus_highlight_enabled_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the
- * enabled status for the focus highlight in a window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the enabled status for the focus highlight in a window
- *
- * @procedure
- * @step 1 Call elm_win_focus_highlight_enabled_set with EINA_TRUE as the enabled status for the focus highlight in a window
- * @step 2 Get the enabled status for the focus highlight in a window
- * @step 3 Call elm_win_focus_highlight_enabled_set with EINA_FALSE as the enabled status for the focus highlight in a window
- * @step 4 Get the enabled status for the focus highlight in a window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_enabled_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_focus_highlight_enabled_set(main_win, EINA_TRUE);
- ret = elm_win_focus_highlight_enabled_get(main_win);
- if (ret == EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_focus_highlight_enabled_set(main_win, EINA_FALSE);
- ret = elm_win_focus_highlight_enabled_get(main_win);
- if (ret == EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_focus_highlight_enabled_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the
- * enabled status for the focus highlight in a window works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the enabled status for the focus highlight in a window
- *
- * @procedure
- * @step 1 Call elm_win_focus_highlight_enabled_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_enabled_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_focus_highlight_enabled_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_focus_highlight_enabled_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_focus_highlight_enabled_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_enabled_set_p);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_enabled_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#define STYLE "three color"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_focus_highlight_style_get elm_win_focus_highlight_style_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_focus_highlight_style_get
- * @{
- * @objective Positive test case
- * Test checks if function call with valid value to get the highlight style of the window works properly.
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the highlight_style value as "three color"
- * @step 2 Get highlight_style the window
- * @step 3 Check returned value
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_style_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_focus_highlight_style_set(main_win, STYLE);
- const char *style = elm_win_focus_highlight_style_get(main_win);
-
- if (!style || strcmp(style, STYLE))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_focus_highlight_style_get
- * @{
- * @objective Negative test case
- * Test checks if function call with invalid values to get the highlight_style
- * of the window works properly
- * @n Input Data:
- * @li NULL as the window object
- *
- * @procedure
- * @step 1 Call elm_win_focus_highlight_style_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_style_get_n)
-{
-
- if (elm_win_focus_highlight_style_get(NULL))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_win_focus_highlight_style_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_focus_highlight_style_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_style_get_p);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_style_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#define STYLE "three color"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_focus_highlight_style_set elm_win_focus_highlight_style_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_focus_highlight_style_set
+ * @{
+ * @objective Positive test case 01
+ * Test checks if function call with valid value to set the highlight style of the window works properly.
+ * @n Input Data:
+ * @li the window object
+ * @li "three color" as highlight style the of the window
+ *
+ * @procedure
+ * @step 1 Set the highlight_style value as "three color"
+ * @step 2 Get highlight_style the window
+ * @step 3 Check returned value
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_focus_highlight_style_set_p_1)
+{
+
+ elm_win_focus_highlight_style_set(main_win, STYLE);
+ const char *style = elm_win_focus_highlight_style_get(main_win);
+
+ if (!style || strcmp(style, STYLE))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_focus_highlight_style_set
+ * @{
+ * @objective Positive test case 02
+ * Test checks if function call with invalid values to set the highlight style
+ * of the window works properly
+ * @n Input Data:
+ * @li the window object
+ * @li NULL as highlight style
+ *
+ * @procedure
+ * @step 1 Call elm_win_focus_highlight_style_set with invalid value instead of highlight style
+ * @step 2 Get highlight style and check returned value
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_focus_highlight_style_set_p_2)
+{
+
+
+ elm_win_focus_highlight_style_set(main_win, NULL);
+
+ if (elm_win_focus_highlight_style_get(main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_focus_highlight_style_set
+ * @{
+ * @objective Negative test case
+ * Test checks if function call with invalid values to set the highlight style
+ * of the window works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li "three color" as highlight style
+ *
+ * @procedure
+ * @step 1 Call elm_win_focus_highlight_style_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_focus_highlight_style_set_n)
+{
+
+ elm_win_focus_highlight_style_set(NULL, STYLE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_focus_highlight_style_get
+ * @{
+ * @objective Negative test case
+ * Test checks if function call with invalid values to get the highlight_style
+ * of the window works properly
+ * @n Input Data:
+ * @li NULL as the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_focus_highlight_style_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_focus_highlight_style_get_n)
+{
+
+ if (elm_win_focus_highlight_style_get(NULL))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_focus_highlight_style_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_focus_highlight_style_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_focus_highlight_style_set_p_1);
+ tcase_add_test(tcase, utc_elm_win_focus_highlight_style_set_p_2);
+ tcase_add_test(tcase, utc_elm_win_focus_highlight_style_set_n);
+ tcase_add_test(tcase, utc_elm_win_focus_highlight_style_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#define STYLE "three color"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_focus_highlight_style_set elm_win_focus_highlight_style_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_focus_highlight_style_set
- * @{
- * @objective Positive test case 01
- * Test checks if function call with valid value to set the highlight style of the window works properly.
- * @n Input Data:
- * @li the window object
- * @li "three color" as highlight style the of the window
- *
- * @procedure
- * @step 1 Set the highlight_style value as "three color"
- * @step 2 Get highlight_style the window
- * @step 3 Check returned value
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_style_set_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_focus_highlight_style_set(main_win, STYLE);
- const char *style = elm_win_focus_highlight_style_get(main_win);
-
- if (!style || strcmp(style, STYLE))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_focus_highlight_style_set
- * @{
- * @objective Positive test case 02
- * Test checks if function call with invalid values to set the highlight style
- * of the window works properly
- * @n Input Data:
- * @li the window object
- * @li NULL as highlight style
- *
- * @procedure
- * @step 1 Call elm_win_focus_highlight_style_set with invalid value instead of highlight style
- * @step 2 Get highlight style and check returned value
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_style_set_p_2)
-{
-
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_focus_highlight_style_set(main_win, NULL);
-
- if (elm_win_focus_highlight_style_get(main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @addtogroup elm_win_focus_highlight_style_set
- * @{
- * @objective Negative test case
- * Test checks if function call with invalid values to set the highlight style
- * of the window works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li "three color" as highlight style
- *
- * @procedure
- * @step 1 Call elm_win_focus_highlight_style_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_focus_highlight_style_set_n)
-{
-
- elm_win_focus_highlight_style_set(NULL, STYLE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_focus_highlight_style_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_focus_highlight_style_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_style_set_p_1);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_style_set_p_2);
- tcase_add_test(tcase, utc_elm_win_focus_highlight_style_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_fullscreen_get elm_win_fullscreen_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup elm_win_fullscreen_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * fullscreen state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's fullscreen state to EINA_TRUE
- * @step 2 Run the application main loop
- * @step 3 Call elm_win_fullscreen_get with valid value
- * @step 4 Set the window's fullscreen state to EINA_FALSE
- * @step 5 Run the application main loop
- * @step 6 Call elm_win_fullscreen_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_fullscreen_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
- Ecore_Timer *quit_timer = NULL;
-
- elm_win_fullscreen_set(main_win, EINA_TRUE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_fullscreen_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_fullscreen_set(main_win, EINA_FALSE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_fullscreen_get(main_win);
- 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 elm_win_fullscreen_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * fullscreen state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_fullscreen_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_fullscreen_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_fullscreen_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_fullscreen_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_fullscreen_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_fullscreen_get_p);
- tcase_add_test(tcase, utc_elm_win_fullscreen_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_fullscreen_get elm_win_fullscreen_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return EINA_FALSE;
+}
+
+/**
+ * @addtogroup elm_win_fullscreen_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * fullscreen state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's fullscreen state to EINA_TRUE
+ * @step 2 Run the application main loop
+ * @step 3 Call elm_win_fullscreen_get with valid value
+ * @step 4 Set the window's fullscreen state to EINA_FALSE
+ * @step 5 Run the application main loop
+ * @step 6 Call elm_win_fullscreen_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_fullscreen_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+ Ecore_Timer *quit_timer = NULL;
+
+ elm_win_fullscreen_set(main_win, EINA_TRUE);
+ quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
+ if (quit_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ret = elm_win_fullscreen_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_fullscreen_set(main_win, EINA_FALSE);
+ quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
+ if (quit_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ret = elm_win_fullscreen_get(main_win);
+ 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 elm_win_fullscreen_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * fullscreen state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_fullscreen_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_fullscreen_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_fullscreen_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_fullscreen_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * fullscreen state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's fullscreen state
+ *
+ * @procedure
+ * @step 1 Call elm_win_fullscreen_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_fullscreen_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_fullscreen_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_fullscreen_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_fullscreen_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_fullscreen_get_p);
+ tcase_add_test(tcase, utc_elm_win_fullscreen_get_n);
+ tcase_add_test(tcase, utc_elm_win_fullscreen_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_fullscreen_set elm_win_fullscreen_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup elm_win_fullscreen_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * fullscreen state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's fullscreen state
- *
- * @procedure
- * @step 1 Call elm_win_fullscreen_set with EINA_TRUE as the window's fullscreen state
- * @step 2 Run the application main loop
- * @step 3 Get the window's fullscreen state
- * @step 4 Call elm_win_conformant_set with EINA_FALSE as the window's fullscreen state
- * @step 5 Run the application main loop
- * @step 6 Get the window's fullscreen state
- *
- * @passcondition Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_fullscreen_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
- Ecore_Timer *quit_timer = NULL;
-
- elm_win_fullscreen_set(main_win, EINA_TRUE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_fullscreen_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_fullscreen_set(main_win, EINA_FALSE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_fullscreen_get(main_win);
- 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 elm_win_fullscreen_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * fullscreen state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's fullscreen state
- *
- * @procedure
- * @step 1 Call elm_win_fullscreen_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_fullscreen_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_fullscreen_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_fullscreen_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_fullscreen_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_fullscreen_set_p);
- tcase_add_test(tcase, utc_elm_win_fullscreen_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#define NAME "true icon"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_icon_name_get elm_win_icon_name_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_icon_name_get
- * @{
- * @objective Positive test case
- * Test checks if function call with valid value to get the icon name of the window works properly.
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the "true icon" as icon name value
- * @step 2 Get icon name of the window
- * @step 3 Check returned value
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_name_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_icon_name_set(main_win, NAME);
- const char *name = elm_win_icon_name_get(main_win);
-
- if (!name || strcmp(name, NAME))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_icon_name_get
- * @{
- * @objective Negative test case
- * Test checks if function call with invalid values to get the icon name
- * of the window works properly
- * @n Input Data:
- * @li NULL as the window object
- *
- * @procedure
- * @step 1 Call elm_win_icon_name_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned NULL value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_name_get_n)
-{
-
- if (elm_win_icon_name_get(NULL))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_win_icon_name_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_icon_name_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_icon_name_get_p);
- tcase_add_test(tcase, utc_elm_win_icon_name_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#define NAME "true icon"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_icon_name_set elm_win_icon_name_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_icon_name_set
+ * @{
+ * @objective Positive test case
+ * Test checks if function call with valid value to set the icon name of the window works properly.
+ * @n Input Data:
+ * @li the window object
+ * @li "true icon" as icon name the of the window
+ *
+ * @procedure
+ * @step 1 Set the "true icon" as icon name value
+ * @step 2 Get icon name of the window
+ * @step 3 Check returned value
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_icon_name_set_p)
+{
+
+ elm_win_icon_name_set(main_win, NAME);
+ const char *name = elm_win_icon_name_get(main_win);
+
+ if (!name || strcmp(name, NAME))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_icon_name_set
+ * @{
+ * @objective Negative test case 01
+ * Test checks if function call with invalid values to set the icon name
+ * of the window works without segmentation fault
+ * @n Input Data:
+ * @li NULL as the window object
+ * @li "true icon" as highlight_style
+ *
+ * @procedure
+ * @step 1 Call elm_win_icon_name_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_icon_name_set_n_1)
+{
+
+ elm_win_icon_name_set(NULL, NAME);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ * @addtogroup elm_win_icon_name_set
+ * @{
+ * @objective Negative test case 02
+ * Test checks if function call with invalid values to set the highlight_style
+ * of the window works properly
+ * @n Input Data:
+ * @li the window object
+ * @li NULL as icon name
+ *
+ * @procedure
+ * @step 1 Set the "true icon" as icon name value
+ * @step 2 Call elm_win_icon_name_set with NULL value instead of icon name
+ * @step 3 Get icon name and check returned value
+ * @passcondition
+ * @li Test passes if returned value is not NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_icon_name_set_n_2)
+{
+
+
+ elm_win_icon_name_set(main_win, NAME);
+ elm_win_icon_name_set(main_win, NULL);
+
+ if (!elm_win_icon_name_get(main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_icon_name_get
+ * @{
+ * @objective Negative test case
+ * Test checks if function call with invalid values to get the icon name
+ * of the window works properly
+ * @n Input Data:
+ * @li NULL as the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_icon_name_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned NULL value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_icon_name_get_n)
+{
+
+ if (elm_win_icon_name_get(NULL))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_icon_name_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_icon_name_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_icon_name_set_p);
+ tcase_add_test(tcase, utc_elm_win_icon_name_set_n_1);
+ tcase_add_test(tcase, utc_elm_win_icon_name_set_n_2);
+ tcase_add_test(tcase, utc_elm_win_icon_name_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#define NAME "true icon"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_icon_name_set elm_win_icon_name_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_icon_name_set
- * @{
- * @objective Positive test case
- * Test checks if function call with valid value to set the icon name of the window works properly.
- * @n Input Data:
- * @li the window object
- * @li "true icon" as icon name the of the window
- *
- * @procedure
- * @step 1 Set the "true icon" as icon name value
- * @step 2 Get icon name of the window
- * @step 3 Check returned value
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_name_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_icon_name_set(main_win, NAME);
- const char *name = elm_win_icon_name_get(main_win);
-
- if (!name || strcmp(name, NAME))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_icon_name_set
- * @{
- * @objective Negative test case 01
- * Test checks if function call with invalid values to set the icon name
- * of the window works without segmentation fault
- * @n Input Data:
- * @li NULL as the window object
- * @li "true icon" as highlight_style
- *
- * @procedure
- * @step 1 Call elm_win_icon_name_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_name_set_n_1)
-{
-
- elm_win_icon_name_set(NULL, NAME);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- * @addtogroup elm_win_icon_name_set
- * @{
- * @objective Negative test case 02
- * Test checks if function call with invalid values to set the highlight_style
- * of the window works properly
- * @n Input Data:
- * @li the window object
- * @li NULL as icon name
- *
- * @procedure
- * @step 1 Set the "true icon" as icon name value
- * @step 2 Call elm_win_icon_name_set with NULL value instead of icon name
- * @step 3 Get icon name and check returned value
- * @passcondition
- * @li Test passes if returned value is not NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_name_set_n_2)
-{
-
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_icon_name_set(main_win, NAME);
- elm_win_icon_name_set(main_win, NULL);
-
- if (!elm_win_icon_name_get(main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_win_icon_name_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_icon_name_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_icon_name_set_p);
- tcase_add_test(tcase, utc_elm_win_icon_name_set_n_1);
- tcase_add_test(tcase, utc_elm_win_icon_name_set_n_2);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-
-#define ICON "image_home.png"
-static Evas_Object *main_win = NULL, *icon = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_icon_object_get elm_win_icon_object_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window and resize main window
- * @step 3 Create a icon object and set graphic file like source for icon
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- evas_object_resize(main_win, 32, 32);
-
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-
- icon = evas_object_image_add(evas_object_evas_get(main_win));
-
- if (icon == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a icon object..", __FILE__, __LINE__);
- }
-
- evas_object_image_file_set(icon, ICON, NULL);
-
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_icon_object_get
- * @{
- * @objective Positive test case
- * Test checks if function call with valid value to get the icon object of the window works properly.
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set window icon object
- * @step 2 Show main window and icon
- * @step 3 Get window icon object
- * @step 4 Check returned value
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_object_get_p)
-{
- if (main_win == NULL || icon == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *ret = NULL;
- elm_win_icon_object_set(main_win, icon);
- evas_object_show(main_win);
- evas_object_show(icon);
-
- ret = elm_win_icon_object_get(main_win);
-
- if (!ret || ret != icon)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_icon_object_get
- * @{
- * @objective Negative test case
- * Test checks if function call with invalid values to get the icon object
- * of the window works properly.
- * @n Input Data:
- * @li NULL, the window object
- *
- * @procedure
- * @step 1 Call elm_win_icon_object_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned NULL value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_object_get_n)
-{
-
- if (elm_win_icon_object_get(NULL))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_win_icon_object_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_icon_object_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_icon_object_get_p);
- tcase_add_test(tcase, utc_elm_win_icon_object_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+
+#define ICON "image_home.png"
+static Evas_Object *main_win = NULL, *icon = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_icon_object_get elm_win_icon_object_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window and resize main window
+ * @step 3 Create a icon object and set graphic file like source for icon
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ evas_object_resize(main_win, 32, 32);
+
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+
+ icon = evas_object_image_add(evas_object_evas_get(main_win));
+
+ if (icon == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a icon object..", __FILE__, __LINE__);
+ }
+
+ evas_object_image_file_set(icon, ICON, NULL);
+
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_icon_object_get
+ * @{
+ * @objective Positive test case
+ * Test checks if function call with valid value to get the icon object of the window works properly.
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set window icon object
+ * @step 2 Show main window and icon
+ * @step 3 Get window icon object
+ * @step 4 Check returned value
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_icon_object_get_p)
+{
+
+ Evas_Object *ret = NULL;
+ elm_win_icon_object_set(main_win, icon);
+ evas_object_show(main_win);
+ evas_object_show(icon);
+
+ ret = elm_win_icon_object_get(main_win);
+
+ if (!ret || ret != icon)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_icon_object_get
+ * @{
+ * @objective Negative test case
+ * Test checks if function call with invalid values to get the icon object
+ * of the window works properly.
+ * @n Input Data:
+ * @li NULL, the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_icon_object_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned NULL value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_icon_object_get_n)
+{
+
+ if (elm_win_icon_object_get(NULL))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_icon_object_set
+ * @{
+ * @objective Negative test case checks if function call with invalid values works without segmentation fault
+ * @n Input Data:
+ * @li NULL or the window object
+ * @li NULL or the image object
+ *
+ * @procedure
+ * @step 1 Call elm_win_icon_object_set with NULL value instead of the image object
+ * @step 2 Call elm_win_icon_object_set with NULL value instead of the window object
+ * @step 3 Call elm_win_icon_object_set with NULL values instead of the both parameters
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_icon_object_set_n)
+{
+ Evas_Object* icon = NULL;
+ icon = evas_object_image_add(evas_object_evas_get(main_win));
+ evas_object_image_file_set(icon, "./image_home.png", NULL);
+
+
+ elm_win_icon_object_set(main_win, NULL);
+ elm_win_icon_object_set(NULL, icon);
+ elm_win_icon_object_set(NULL, NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_icon_object_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_icon_object_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_icon_object_get_p);
+ tcase_add_test(tcase, utc_elm_win_icon_object_get_n);
+ tcase_add_test(tcase, utc_elm_win_icon_object_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_icon_object_set elm_win_icon_object_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_icon_object_set
- * @{
- * @objective Positive test case checks if function call with valid value
- * to set a image as icon of a window object
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li the image object
- *
- * @procedure
- * @step 1 Creates a new image object on the canvas of the window object.
- * @step 2 Loads the image data from a file
- * @step 3 Sets the image as icon of the window
- * @step 4 Gets the icon of the window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_object_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object* icon = NULL;
-
-
- icon = evas_object_image_add(evas_object_evas_get(main_win));
- evas_object_image_file_set(icon, "./image_home.png", NULL);
- elm_win_icon_object_set(main_win, icon);
- evas_object_show(icon);
-
- if (elm_win_icon_object_get(main_win) != icon)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_icon_object_set
- * @{
- * @objective Negative test case checks if function call with invalid values works without segmentation fault
- * @n Input Data:
- * @li NULL or the window object
- * @li NULL or the image object
- *
- * @procedure
- * @step 1 Call elm_win_icon_object_set with NULL value instead of the image object
- * @step 2 Call elm_win_icon_object_set with NULL value instead of the window object
- * @step 3 Call elm_win_icon_object_set with NULL values instead of the both parameters
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_icon_object_set_n)
-{
- Evas_Object* icon = NULL;
- icon = evas_object_image_add(evas_object_evas_get(main_win));
- evas_object_image_file_set(icon, "./image_home.png", NULL);
-
-
- elm_win_icon_object_set(main_win, NULL);
- elm_win_icon_object_set(NULL, icon);
- elm_win_icon_object_set(NULL, NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_icon_object_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_icon_object_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_icon_object_set_p);
- tcase_add_test(tcase, utc_elm_win_icon_object_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_iconified_get elm_win_iconified_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static void _main_win_focus_cb(void *data, Evas_Object *obj, void *event)
-{
- elm_win_iconified_set(main_win, EINA_FALSE);
-}
-
-static void _main_win_focus_cb2(void *data, Evas_Object *obj, void *event)
-{
- elm_win_iconified_set(main_win, EINA_TRUE);
-}
-
-static Eina_Bool _call_timer_cb(void* data)
-{
- evas_object_smart_callback_call(main_win, "focus,in", NULL);
- return EINA_FALSE;
-}
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup elm_win_iconified_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * iconified state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Add (register) the 1st callback function to the "focus,in" smart event on the main window
- * @step 2 Create a timer to call "focus,in" smart event using evas_object_smart_callback_call function
- * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
- * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
- * @step 3 Run the application main loop
- * @step 4 Set the window's iconified state to EINA_FALSE while event/processing loop for Elementary is running
- * Note! If the window is iconified, elm_win_iconified_set call with EINA_FALSE does not change the window's iconified state
- * @step 5 Call elm_win_iconified_get with valid value
- * @step 6 Add (register) the 2nd callback function to the "focus,in" smart event on the main window
- * @step 7 Create a timer to call "focus,in" smart event using evas_object_smart_callback_call function
- * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
- * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
- * @step 8 Run the application main loop
- * @step 9 Set the window's iconified state to EINA_TRUE while event/processing loop for Elementary is running
- * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
- * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
- * @step 10 Call elm_win_iconified_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_iconified_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
- int ret_cb = 0;
- Ecore_Timer *call_timer = NULL, *quit_timer = NULL;
-
- evas_object_smart_callback_add(main_win, "focus,in", _main_win_focus_cb, (void*)(int)1);
- call_timer = ecore_timer_add(2.0, _call_timer_cb, NULL);
- if (call_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the callback function..", __FILE__, __LINE__);
- }
- quit_timer = ecore_timer_add(4.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_iconified_get(main_win);
- if (ret != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- ret_cb = (int)evas_object_smart_callback_del(main_win, "focus,in", _main_win_focus_cb);
- if (ret_cb != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to delete (unregister) a callback function..", __FILE__, __LINE__);
- }
- evas_object_smart_callback_add(main_win, "focus,in", _main_win_focus_cb2, (void*)(int)1);
- call_timer = ecore_timer_add(2.0, _call_timer_cb, NULL);
- if (call_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the callback function..", __FILE__, __LINE__);
- }
- quit_timer = ecore_timer_add(4.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_iconified_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- ret_cb = (int)evas_object_smart_callback_del(main_win, "focus,in", _main_win_focus_cb2);
- if (ret_cb != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to delete (unregister) a callback function..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_iconified_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * iconified state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_iconified_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_iconified_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_iconified_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_iconified_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_iconified_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_iconified_get_p);
- tcase_add_test(tcase, utc_elm_win_iconified_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_iconified_get elm_win_iconified_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+static void _main_win_focus_cb(void *data, Evas_Object *obj, void *event)
+{
+ elm_win_iconified_set(main_win, EINA_FALSE);
+}
+
+static void _main_win_focus_cb2(void *data, Evas_Object *obj, void *event)
+{
+ elm_win_iconified_set(main_win, EINA_TRUE);
+}
+
+static Eina_Bool _call_timer_cb(void* data)
+{
+ evas_object_smart_callback_call(main_win, "focus,in", NULL);
+ return EINA_FALSE;
+}
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return EINA_FALSE;
+}
+
+/**
+ * @addtogroup elm_win_iconified_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * iconified state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Add (register) the 1st callback function to the "focus,in" smart event on the main window
+ * @step 2 Create a timer to call "focus,in" smart event using evas_object_smart_callback_call function
+ * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
+ * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
+ * @step 3 Run the application main loop
+ * @step 4 Set the window's iconified state to EINA_FALSE while event/processing loop for Elementary is running
+ * Note! If the window is iconified, elm_win_iconified_set call with EINA_FALSE does not change the window's iconified state
+ * @step 5 Call elm_win_iconified_get with valid value
+ * @step 6 Add (register) the 2nd callback function to the "focus,in" smart event on the main window
+ * @step 7 Create a timer to call "focus,in" smart event using evas_object_smart_callback_call function
+ * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
+ * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
+ * @step 8 Run the application main loop
+ * @step 9 Set the window's iconified state to EINA_TRUE while event/processing loop for Elementary is running
+ * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
+ * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
+ * @step 10 Call elm_win_iconified_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_iconified_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+ int ret_cb = 0;
+ Ecore_Timer *call_timer = NULL, *quit_timer = NULL;
+
+ evas_object_smart_callback_add(main_win, "focus,in", _main_win_focus_cb, (void*)(int)1);
+ call_timer = ecore_timer_add(2.0, _call_timer_cb, NULL);
+ if (call_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the callback function..", __FILE__, __LINE__);
+ }
+ quit_timer = ecore_timer_add(4.0, _quit_timer_cb, NULL);
+ if (quit_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ret = elm_win_iconified_get(main_win);
+ if (ret != EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ ret_cb = (int)evas_object_smart_callback_del(main_win, "focus,in", _main_win_focus_cb);
+ if (ret_cb != 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to delete (unregister) a callback function..", __FILE__, __LINE__);
+ }
+ evas_object_smart_callback_add(main_win, "focus,in", _main_win_focus_cb2, (void*)(int)1);
+ call_timer = ecore_timer_add(2.0, _call_timer_cb, NULL);
+ if (call_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the callback function..", __FILE__, __LINE__);
+ }
+ quit_timer = ecore_timer_add(4.0, _quit_timer_cb, NULL);
+ if (quit_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ret = elm_win_iconified_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ ret_cb = (int)evas_object_smart_callback_del(main_win, "focus,in", _main_win_focus_cb2);
+ if (ret_cb != 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to delete (unregister) a callback function..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_iconified_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * iconified state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_iconified_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_iconified_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_iconified_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_iconified_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * iconified state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's iconified state
+ *
+ * @procedure
+ * @step 1 Call elm_win_iconified_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_iconified_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_iconified_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_iconified_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_iconified_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_iconified_get_p);
+ tcase_add_test(tcase, utc_elm_win_iconified_get_n);
+ tcase_add_test(tcase, utc_elm_win_iconified_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_iconified_set elm_win_iconified_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static void _main_win_focus_cb(void *data, Evas_Object *obj, void *event)
-{
- elm_win_iconified_set(main_win, EINA_FALSE);
-}
-
-static void _main_win_focus_cb2(void *data, Evas_Object *obj, void *event)
-{
- elm_win_iconified_set(main_win, EINA_TRUE);
-}
-
-static Eina_Bool _call_timer_cb(void* data)
-{
- evas_object_smart_callback_call(main_win, "focus,in", NULL);
- return EINA_FALSE;
-}
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup elm_win_iconified_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * iconified state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's iconified state
- *
- * @step 1 Add (register) the 1st callback function to the "focus,in" smart event on the main window
- * @step 2 Create a timer to call "focus,in" smart event using evas_object_smart_callback_call function
- * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
- * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
- * @step 3 Run the application main loop
- * @step 4 Call elm_win_iconified_set with EINA_FALSE as the window's iconified state while event/processing loop for Elementary is running
- * Note! If the window is iconified, elm_win_iconified_set call with EINA_FALSE does not change the window's iconified state
- * @step 5 Get the window's iconified state
- * @step 6 Add (register) the 2nd _main_win_focus_cb callback function to the "focus,in" smart event on the main window
- * @step 7 Create a timer to call "focus,in" smart event using evas_object_smart_callback_call function
- * Note! Direct "focus,in" event call is required to pass the test on the device, because, when the device is in
- * standby mode, there is a splash window that does not allow the window of the test to get the focus on startup
- * @step 8 Run the application main loop
- * @step 9 Call elm_win_iconified_set with EINA_TRUE as the window's iconified state while event/processing loop for Elementary is running
- * @step 10 Get the window's iconified state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_iconified_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
- int ret_cb = 0;
- Ecore_Timer *call_timer = NULL, *quit_timer = NULL;
-
- evas_object_smart_callback_add(main_win, "focus,in", _main_win_focus_cb, (void*)(int)1);
- call_timer = ecore_timer_add(2.0, _call_timer_cb, NULL);
- if (call_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the callback function..", __FILE__, __LINE__);
- }
- quit_timer = ecore_timer_add(4.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_iconified_get(main_win);
- if (ret != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- ret_cb = (int)evas_object_smart_callback_del(main_win, "focus,in", _main_win_focus_cb);
- if (ret_cb != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to delete (unregister) a callback function..", __FILE__, __LINE__);
- }
- evas_object_smart_callback_add(main_win, "focus,in", _main_win_focus_cb2, (void*)(int)1);
- call_timer = ecore_timer_add(2.0, _call_timer_cb, NULL);
- if (call_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the callback function..", __FILE__, __LINE__);
- }
- quit_timer = ecore_timer_add(4.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_iconified_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- ret_cb = (int)evas_object_smart_callback_del(main_win, "focus,in", _main_win_focus_cb2);
- if (ret_cb != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to delete (unregister) a callback function..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_iconified_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * iconified state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's iconified state
- *
- * @procedure
- * @step 1 Call elm_win_iconified_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_iconified_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_iconified_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_iconified_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_iconified_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_iconified_set_p);
- tcase_add_test(tcase, utc_elm_win_iconified_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_illume_command_send_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
elm_win_illume_command_send(main_win, ELM_ILLUME_COMMAND_FOCUS_HOME, NULL);
*/
START_TEST(utc_elm_win_illume_command_send_n_1)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *btn = elm_button_add(main_win);
*/
START_TEST(utc_elm_win_illume_command_send_n_2)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
+
elm_win_illume_command_send(NULL, ELM_ILLUME_COMMAND_FOCUS_HOME, NULL);
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_indicator_mode_get elm_win_indicator_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_indicator_mode_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * indicator mode works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's indicator mode
- * @step 2 Call elm_win_indicator_mode_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_mode_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Elm_Win_Indicator_Opacity_Mode ret = ELM_WIN_INDICATOR_UNKNOWN;
-
- elm_win_indicator_mode_set(main_win, ELM_WIN_INDICATOR_SHOW);
- ret = elm_win_indicator_mode_get(main_win);
- if (ret != ELM_WIN_INDICATOR_SHOW)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_mode_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * indicator mode works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_indicator_mode_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is ELM_WIN_INDICATOR_UNKNOWN and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_mode_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(ELM_WIN_INDICATOR_UNKNOWN, elm_win_indicator_mode_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_indicator_mode_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_indicator_mode_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_indicator_mode_get_p);
- tcase_add_test(tcase, utc_elm_win_indicator_mode_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_indicator_mode_get elm_win_indicator_mode_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_indicator_mode_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * indicator mode works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's indicator mode
+ * @step 2 Call elm_win_indicator_mode_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_mode_get_p)
+{
+ Elm_Win_Indicator_Opacity_Mode ret = ELM_WIN_INDICATOR_UNKNOWN;
+
+ elm_win_indicator_mode_set(main_win, ELM_WIN_INDICATOR_SHOW);
+ ret = elm_win_indicator_mode_get(main_win);
+ if (ret != ELM_WIN_INDICATOR_SHOW)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_indicator_mode_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * indicator mode works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_mode_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is ELM_WIN_INDICATOR_UNKNOWN and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_mode_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(ELM_WIN_INDICATOR_UNKNOWN, elm_win_indicator_mode_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_indicator_mode_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value
+ * to set the window's indicator mode works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li ELM_WIN_INDICATOR_SHOW, ELM_WIN_INDICATOR_UNKNOWN - 1 as the window's indicator mode
+ * Note! ELM_WIN_INDICATOR_UNKNOWN is the min value of Elm_Win_Indicator_Mode enum type
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_mode_set with invalid value instead of the window object
+ * @step 2 Call elm_win_indicator_mode_set with invalid value instead of the window's indicator mode
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_mode_set_n)
+{
+
+ elm_win_indicator_mode_set(NULL, ELM_WIN_INDICATOR_SHOW);
+ elm_win_indicator_mode_set(main_win, ELM_WIN_INDICATOR_UNKNOWN - 1);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_indicator_mode_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_indicator_mode_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_indicator_mode_get_p);
+ tcase_add_test(tcase, utc_elm_win_indicator_mode_get_n);
+ tcase_add_test(tcase, utc_elm_win_indicator_mode_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_indicator_mode_set elm_win_indicator_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_indicator_mode_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * indicator mode works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li ELM_WIN_INDICATOR_SHOW as the window's indicator mode
- *
- * @procedure
- * @step 1 Call elm_win_indicator_mode_set with valid values
- * @step 2 Gets the window's indicator mode
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_mode_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Elm_Win_Indicator_Opacity_Mode ret = ELM_WIN_INDICATOR_UNKNOWN;
-
- elm_win_indicator_mode_set(main_win, ELM_WIN_INDICATOR_SHOW);
- ret = elm_win_indicator_mode_get(main_win);
- if (ret != ELM_WIN_INDICATOR_SHOW)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_mode_set
- * @{
- * @objective Negative test case checks if function call with invalid value
- * to set the window's indicator mode works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li ELM_WIN_INDICATOR_SHOW, ELM_WIN_INDICATOR_UNKNOWN - 1 as the window's indicator mode
- * Note! ELM_WIN_INDICATOR_UNKNOWN is the min value of Elm_Win_Indicator_Mode enum type
- *
- * @procedure
- * @step 1 Call elm_win_indicator_mode_set with invalid value instead of the window object
- * @step 2 Call elm_win_indicator_mode_set with invalid value instead of the window's indicator mode
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_mode_set_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_mode_set(NULL, ELM_WIN_INDICATOR_SHOW);
- elm_win_indicator_mode_set(main_win, ELM_WIN_INDICATOR_UNKNOWN - 1);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_indicator_mode_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_indicator_mode_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_indicator_mode_set_p);
- tcase_add_test(tcase, utc_elm_win_indicator_mode_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_indicator_opacity_get elm_win_indicator_opacity_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_indicator_opacity_get
- * @{
- * @objective Positive test case 01 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_TRANSPARENT value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_get_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSPARENT);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_TRANSPARENT)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_get
- * @{
- * @objective Positive test case 02 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_OPACITY_UNKNOWN value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_get_p_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_OPACITY_UNKNOWN);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_OPACITY_UNKNOWN)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_get
- * @{
- * @objective Positive test case 03 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_OPAQUE value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_get_p_3)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_OPAQUE);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_OPAQUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_get
- * @{
- * @objective Positive test case 04 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_TRANSLUCENT value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_get_p_4)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSLUCENT);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_TRANSLUCENT)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_get
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault and returned value is ELM_WIN_INDICATOR_OPACITY_UNKNOWN
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_get_n)
-{
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSPARENT);
- if (ELM_WIN_INDICATOR_OPACITY_UNKNOWN != elm_win_indicator_opacity_get(NULL))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_indicator_opacity_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_indicator_opacity_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_1);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_2);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_3);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_4);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_indicator_opacity_get elm_win_indicator_opacity_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_indicator_opacity_get
+ * @{
+ * @objective Positive test case 01 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_TRANSPARENT value
+ * @step 2 Get the indicator opacity mode state
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_opacity_get_p_1)
+{
+
+ elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSPARENT);
+ if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_TRANSPARENT)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_indicator_opacity_get
+ * @{
+ * @objective Positive test case 02 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_OPACITY_UNKNOWN value
+ * @step 2 Get the indicator opacity mode state
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_opacity_get_p_2)
+{
+
+ elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_OPACITY_UNKNOWN);
+ if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_OPACITY_UNKNOWN)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_indicator_opacity_get
+ * @{
+ * @objective Positive test case 03 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_OPAQUE value
+ * @step 2 Get the indicator opacity mode state
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_opacity_get_p_3)
+{
+
+ elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_OPAQUE);
+ if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_OPAQUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_indicator_opacity_get
+ * @{
+ * @objective Positive test case 04 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_TRANSLUCENT value
+ * @step 2 Get the indicator opacity mode state
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_opacity_get_p_4)
+{
+
+ elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSLUCENT);
+ if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_TRANSLUCENT)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_indicator_opacity_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_opacity_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault and returned value is ELM_WIN_INDICATOR_OPACITY_UNKNOWN
+ * @}
+ */
+START_TEST(utc_elm_win_indicator_opacity_get_n)
+{
+
+ elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSPARENT);
+ if (ELM_WIN_INDICATOR_OPACITY_UNKNOWN != elm_win_indicator_opacity_get(NULL))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_indicator_opacity_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li any valid value of the indicator opacity mode
+ *
+ * @procedure
+ * @step 1 Call elm_win_indicator_opacity_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_win_indicator_opacity_set_n)
+{
+
+ elm_win_indicator_opacity_set(NULL, ELM_WIN_INDICATOR_TRANSPARENT);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_indicator_opacity_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_indicator_opacity_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_1);
+ tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_2);
+ tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_3);
+ tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_p_4);
+ tcase_add_test(tcase, utc_elm_win_indicator_opacity_get_n);
+ tcase_add_test(tcase, utc_elm_win_indicator_opacity_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_indicator_opacity_set elm_win_indicator_opacity_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_indicator_opacity_set
- * @{
- * @objective Positive test case 01 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li ELM_WIN_INDICATOR_TRANSPARENT as the indicator opacity mode of the window.
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_TRANSPARENT value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_set_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSPARENT);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_TRANSPARENT)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_set
- * @{
- * @objective Positive test case 02 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li ELM_WIN_INDICATOR_OPACITY_UNKNOWN as the indicator opacity mode of the window.
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_OPACITY_UNKNOWN value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_set_p_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_OPACITY_UNKNOWN);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_OPACITY_UNKNOWN)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_set
- * @{
- * @objective Positive test case 03 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li ELM_WIN_INDICATOR_OPAQUE as the indicator opacity mode of the window.
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_OPAQUE value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_set_p_3)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_OPAQUE);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_OPAQUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_set
- * @{
- * @objective Positive test case 04 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li ELM_WIN_INDICATOR_TRANSLUCENT as the indicator opacity mode of the window.
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with ELM_WIN_INDICATOR_TRANSLUCENT value
- * @step 2 Get the indicator opacity mode state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_indicator_opacity_set_p_4)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_indicator_opacity_set(main_win, ELM_WIN_INDICATOR_TRANSLUCENT);
- if (elm_win_indicator_opacity_get(main_win) != ELM_WIN_INDICATOR_TRANSLUCENT)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_indicator_opacity_set
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li any valid value of the indicator opacity mode
- *
- * @procedure
- * @step 1 Call elm_win_indicator_opacity_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_win_indicator_opacity_set_n)
-{
-
- elm_win_indicator_opacity_set(NULL, ELM_WIN_INDICATOR_TRANSPARENT);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_indicator_opacity_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_indicator_opacity_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_set_p_1);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_set_p_2);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_set_p_3);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_set_p_4);
- tcase_add_test(tcase, utc_elm_win_indicator_opacity_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_inlined_image_object_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *win = NULL, *obj = NULL;
*/
START_TEST(utc_elm_win_inlined_image_object_get_n)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *win = NULL, *obj = NULL;
*/
START_TEST(utc_elm_win_inwin_activate_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *inwin = NULL;
*/
START_TEST(utc_elm_win_inwin_activate_n)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *inwin = NULL;
*/
START_TEST(utc_elm_win_inwin_add_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *inwin = NULL;
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_inwin_content_get elm_win_inwin_content_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./win/inwin.edj");
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_inwin_content_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the content
- * of an inwin object works properly and without segmentation fault
- * @n Input Data:
- * @li the inwin object
- *
- * @procedure
- * @step 1 Add an inwin object to the main window
- * @step 2 Add a box object to the main window
- * @step 3 Set the box object as the content of the inwin object
- * @step 4 Call elm_win_inwin_content_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_inwin_content_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
-
- inwin = elm_win_inwin_add(main_win);
- if (inwin == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an inwin to the main window..", __FILE__, __LINE__);
- }
- box = elm_box_add(main_win);
- if (box == NULL)
- {
- evas_object_del(inwin);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
- }
- elm_win_inwin_content_set(inwin, box);
- content = elm_win_inwin_content_get(inwin);
- evas_object_del(inwin);
- if (content == NULL)
- {
- evas_object_del(box);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to get a content of an inwin object..", __FILE__, __LINE__);
- }
- if (content != box)
- {
- evas_object_del(content);
- evas_object_del(box);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(content);
- evas_object_del(box);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_inwin_content_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the content
- * of an inwin object works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the inwin object
- *
- * @procedure
- * @step 1 Add an inwin object to the main window
- * @step 2 Add a box object to the main window
- * @step 3 Set the box object as the content of the inwin object
- * @step 4 Call elm_win_inwin_content_get with invalid value instead of the inwin object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_inwin_content_get_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
-
- inwin = elm_win_inwin_add(main_win);
- if (inwin == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an inwin to the main window..", __FILE__, __LINE__);
- }
- box = elm_box_add(main_win);
- if (box == NULL)
- {
- evas_object_del(inwin);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
- }
- elm_win_inwin_content_set(inwin, box);
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_win_inwin_content_get, inwin))
- {
- evas_object_del(inwin);
- evas_object_del(box);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(inwin);
- evas_object_del(box);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_inwin_content_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_inwin_content_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_inwin_content_get_p);
- tcase_add_test(tcase, utc_elm_win_inwin_content_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_inwin_content_get elm_win_inwin_content_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ elm_theme_extension_add(NULL, "./win/inwin.edj");
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_inwin_content_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the content
+ * of an inwin object works properly and without segmentation fault
+ * @n Input Data:
+ * @li the inwin object
+ *
+ * @procedure
+ * @step 1 Add an inwin object to the main window
+ * @step 2 Add a box object to the main window
+ * @step 3 Set the box object as the content of the inwin object
+ * @step 4 Call elm_win_inwin_content_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_inwin_content_get_p)
+{
+
+ Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
+
+ inwin = elm_win_inwin_add(main_win);
+ if (inwin == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an inwin to the main window..", __FILE__, __LINE__);
+ }
+ box = elm_box_add(main_win);
+ if (box == NULL)
+ {
+ evas_object_del(inwin);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
+ }
+ elm_win_inwin_content_set(inwin, box);
+ content = elm_win_inwin_content_get(inwin);
+ evas_object_del(inwin);
+ if (content == NULL)
+ {
+ evas_object_del(box);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to get a content of an inwin object..", __FILE__, __LINE__);
+ }
+ if (content != box)
+ {
+ evas_object_del(content);
+ evas_object_del(box);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ evas_object_del(content);
+ evas_object_del(box);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_inwin_content_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the content
+ * of an inwin object works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the inwin object
+ *
+ * @procedure
+ * @step 1 Add an inwin object to the main window
+ * @step 2 Add a box object to the main window
+ * @step 3 Set the box object as the content of the inwin object
+ * @step 4 Call elm_win_inwin_content_get with invalid value instead of the inwin object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_inwin_content_get_n)
+{
+
+ Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
+
+ inwin = elm_win_inwin_add(main_win);
+ if (inwin == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an inwin to the main window..", __FILE__, __LINE__);
+ }
+ box = elm_box_add(main_win);
+ if (box == NULL)
+ {
+ evas_object_del(inwin);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
+ }
+ elm_win_inwin_content_set(inwin, box);
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_win_inwin_content_get, inwin))
+ {
+ evas_object_del(inwin);
+ evas_object_del(box);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ evas_object_del(inwin);
+ evas_object_del(box);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_inwin_content_set
+ * @{
+ * @objective Negative test case checks if function call with invalid values to set the content
+ * of an inwin object works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the inwin object
+ * @li NULL, the box object as the object to set as content
+ *
+ * @procedure
+ * @step 1 Add an inwin object to the main window
+ * @step 2 Add a box object to the main window
+ * @step 3 Call elm_win_inwin_content_set with invalid value instead of the inwin object
+ * @step 4 Call elm_win_inwin_content_set with invalid value instead of the object to set as content
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_inwin_content_set_n)
+{
+
+ Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
+
+ inwin = elm_win_inwin_add(main_win);
+ if (inwin == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an inwin to the main window..", __FILE__, __LINE__);
+ }
+ box = elm_box_add(main_win);
+ if (box == NULL)
+ {
+ evas_object_del(inwin);
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
+ }
+ UNITEST_FUNC_NEG(elm_win_inwin_content_set, inwin, box)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ evas_object_del(inwin);
+ evas_object_del(box);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_inwin_content_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_inwin_content_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_inwin_content_get_p);
+ tcase_add_test(tcase, utc_elm_win_inwin_content_get_n);
+ tcase_add_test(tcase, utc_elm_win_inwin_content_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_inwin_content_set elm_win_inwin_content_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- elm_theme_extension_add(NULL, "./win/inwin.edj");
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_inwin_content_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the content
- * of an inwin object works properly and without segmentation fault
- * @n Input Data:
- * @li the inwin object
- * @li the box object as the object to set as content
- *
- * @procedure
- * @step 1 Add an inwin object to the main window
- * @step 2 Add a box object to the main window
- * @step 3 Call elm_win_inwin_content_set with valid values
- * @step 4 Get the content of the inwin object
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_inwin_content_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
-
- inwin = elm_win_inwin_add(main_win);
- if (inwin == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an inwin to the main window..", __FILE__, __LINE__);
- }
- box = elm_box_add(main_win);
- if (box == NULL)
- {
- evas_object_del(inwin);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
- }
- elm_win_inwin_content_set(inwin, box);
- content = elm_win_inwin_content_get(inwin);
- evas_object_del(inwin);
- if (content == NULL)
- {
- evas_object_del(box);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to get a content of an inwin object..", __FILE__, __LINE__);
- }
- if (content != box)
- {
- evas_object_del(content);
- evas_object_del(box);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(content);
- evas_object_del(box);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_inwin_content_set
- * @{
- * @objective Negative test case checks if function call with invalid values to set the content
- * of an inwin object works without segmentation fault
- * @n Input Data:
- * @li NULL, the inwin object
- * @li NULL, the box object as the object to set as content
- *
- * @procedure
- * @step 1 Add an inwin object to the main window
- * @step 2 Add a box object to the main window
- * @step 3 Call elm_win_inwin_content_set with invalid value instead of the inwin object
- * @step 4 Call elm_win_inwin_content_set with invalid value instead of the object to set as content
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_inwin_content_set_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
-
- inwin = elm_win_inwin_add(main_win);
- if (inwin == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add an inwin to the main window..", __FILE__, __LINE__);
- }
- box = elm_box_add(main_win);
- if (box == NULL)
- {
- evas_object_del(inwin);
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a box to the main window..", __FILE__, __LINE__);
- }
- UNITEST_FUNC_NEG(elm_win_inwin_content_set, inwin, box)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(inwin);
- evas_object_del(box);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_inwin_content_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_inwin_content_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_inwin_content_set_p);
- tcase_add_test(tcase, utc_elm_win_inwin_content_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_inwin_content_unset_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *inwin = NULL, *box = NULL, *content = NULL, *is_content = NULL;
*/
START_TEST(utc_elm_win_inwin_content_unset_n)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *inwin = NULL, *box = NULL, *content = NULL;
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_keyboard_mode_get elm_win_keyboard_mode_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_keyboard_mode_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * keyboard mode properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Get default window's keyboard mode
- * @step 2 Set different window's keyboard mode
- * @step 3 Get new window's keyboard mode
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_mode_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- ret = elm_win_keyboard_mode_get(main_win);
- if (ret != ELM_WIN_KEYBOARD_UNKNOWN)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_keyboard_mode_set(main_win, ELM_WIN_KEYBOARD_PIN);
- ret = elm_win_keyboard_mode_get(main_win);
- if (ret != ELM_WIN_KEYBOARD_PIN)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_keyboard_mode_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * keyboard mode works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_keyboard_mode_get with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_mode_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(0, elm_win_keyboard_mode_get, main_win) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_keyboard_mode_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_keyboard_mode_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_keyboard_mode_get_p);
- tcase_add_test(tcase, utc_elm_win_keyboard_mode_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_keyboard_mode_set elm_win_keyboard_mode_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_keyboard_mode_set
+ * @{
+ * @objective Positive test case 01: checks if function call with valid values to set the window's
+ * keyboard mode properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li keyboard mode
+ *
+ * @procedure
+ * @step 1 Set the window's mode state
+ * @step 2 Check that mode was successfully set
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_keyboard_mode_set_p_1)
+{
+
+ int ret = 0;
+
+ elm_win_keyboard_mode_set(main_win, ELM_WIN_KEYBOARD_URL);
+ ret = elm_win_keyboard_mode_get(main_win);
+ if (ret != ELM_WIN_KEYBOARD_URL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_keyboard_mode_set
+ * @{
+ * @objective Positive test case 02: checks if function call with valid values to set the window's
+ * keyboard mode with wrong value properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li wrong keyboard mode value
+ *
+ * @procedure
+ * @step 1 Set the window's mode state with wrong value (ELM_WIN_KEYBOARD_OFF)
+ * @step 2 Check that mode was successfully set
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_keyboard_mode_set_p_2)
+{
+
+ elm_win_keyboard_mode_set(main_win, ELM_WIN_KEYBOARD_OFF);
+ if (elm_win_keyboard_mode_get(main_win) != ELM_WIN_KEYBOARD_OFF)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_keyboard_mode_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * keyboard mode works without segmentation fault
+ * @n Input Data:
+ * @li button/NULL instead of the window object
+ * @li keyboard mode value
+ *
+ * @procedure
+ * @step 1 Call elm_win_keyboard_mode_set with not window object (button) as first value
+ * @step 2 Call elm_win_keyboard_mode_set with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_keyboard_mode_set_n)
+{
+
+ Evas_Object *btn = elm_button_add(main_win);
+
+ elm_win_keyboard_mode_set(btn, ELM_WIN_INDICATOR_TRANSPARENT);
+ elm_win_keyboard_mode_set(NULL, ELM_WIN_INDICATOR_TRANSPARENT);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_keyboard_mode_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * keyboard mode works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_keyboard_mode_get with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_keyboard_mode_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(0, elm_win_keyboard_mode_get, main_win) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_keyboard_mode_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_keyboard_mode_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_keyboard_mode_set_p_1);
+ tcase_add_test(tcase, utc_elm_win_keyboard_mode_set_p_2);
+ tcase_add_test(tcase, utc_elm_win_keyboard_mode_set_n);
+ tcase_add_test(tcase, utc_elm_win_keyboard_mode_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_keyboard_mode_set elm_win_keyboard_mode_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_keyboard_mode_set
- * @{
- * @objective Positive test case 01: checks if function call with valid values to set the window's
- * keyboard mode properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li keyboard mode
- *
- * @procedure
- * @step 1 Set the window's mode state
- * @step 2 Check that mode was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_mode_set_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_keyboard_mode_set(main_win, ELM_WIN_KEYBOARD_URL);
- ret = elm_win_keyboard_mode_get(main_win);
- if (ret != ELM_WIN_KEYBOARD_URL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_keyboard_mode_set
- * @{
- * @objective Positive test case 02: checks if function call with valid values to set the window's
- * keyboard mode with wrong value properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li wrong keyboard mode value
- *
- * @procedure
- * @step 1 Set the window's mode state with wrong value (ELM_WIN_KEYBOARD_OFF)
- * @step 2 Check that mode was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_mode_set_p_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_keyboard_mode_set(main_win, ELM_WIN_KEYBOARD_OFF);
- if (elm_win_keyboard_mode_get(main_win) != ELM_WIN_KEYBOARD_OFF)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_keyboard_mode_set
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * keyboard mode works without segmentation fault
- * @n Input Data:
- * @li button/NULL instead of the window object
- * @li keyboard mode value
- *
- * @procedure
- * @step 1 Call elm_win_keyboard_mode_set with not window object (button) as first value
- * @step 2 Call elm_win_keyboard_mode_set with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_mode_set_n)
-{
-
- Evas_Object *btn = elm_button_add(main_win);
-
- elm_win_keyboard_mode_set(btn, ELM_WIN_INDICATOR_TRANSPARENT);
- elm_win_keyboard_mode_set(NULL, ELM_WIN_INDICATOR_TRANSPARENT);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_keyboard_mode_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_keyboard_mode_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_keyboard_mode_set_p_1);
- tcase_add_test(tcase, utc_elm_win_keyboard_mode_set_p_2);
- tcase_add_test(tcase, utc_elm_win_keyboard_mode_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_keyboard_win_get elm_win_keyboard_win_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_keyboard_win_get
- * @{
- * @objective Positive test case checks if function call with valid values to get whether the window
- * is a virtual keyboard works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_win_keyboard_win_set with EINA_TRUE as the flag to set whether the window is a virtual keyboard
- * @step 2 Get whether the window is a keyboard
- * @step 3 Call elm_win_keyboard_win_set with EINA_FALSE as the flag to set whether the window is a virtual keyboard
- * @step 4 Get whether the window is a keyboard
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_win_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_keyboard_win_set(main_win, EINA_TRUE);
- ret = elm_win_keyboard_win_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != EINA_TRUE)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- elm_win_keyboard_win_set(main_win, EINA_FALSE);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- ret = elm_win_keyboard_win_get(main_win);
- if (ret != EINA_FALSE)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_keyboard_win_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get whether the window
- * is a virtual keyboard works properly without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_keyboard_win_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_win_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_keyboard_win_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_keyboard_win_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_keyboard_win_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_keyboard_win_get_p);
- tcase_add_test(tcase, utc_elm_win_keyboard_win_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_keyboard_win_get elm_win_keyboard_win_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_keyboard_win_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get whether the window
+ * is a virtual keyboard works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_keyboard_win_set with EINA_TRUE as the flag to set whether the window is a virtual keyboard
+ * @step 2 Get whether the window is a keyboard
+ * @step 3 Call elm_win_keyboard_win_set with EINA_FALSE as the flag to set whether the window is a virtual keyboard
+ * @step 4 Get whether the window is a keyboard
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_keyboard_win_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_win_keyboard_win_set(main_win, EINA_TRUE);
+ ret = elm_win_keyboard_win_get(main_win);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ if (ret != EINA_TRUE)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+ elm_win_keyboard_win_set(main_win, EINA_FALSE);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ ret = elm_win_keyboard_win_get(main_win);
+ if (ret != EINA_FALSE)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_keyboard_win_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get whether the window
+ * is a virtual keyboard works properly without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_keyboard_win_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_keyboard_win_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_keyboard_win_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_keyboard_win_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set whether the window
+ * is a virtual keyboard works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the flag to set whether the window is a virtual keyboard
+ *
+ * @procedure
+ * @step 1 Call elm_win_keyboard_win_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation faultt
+ * @}
+ */
+START_TEST(utc_elm_win_keyboard_win_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_keyboard_win_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_keyboard_win_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_keyboard_win_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_keyboard_win_get_p);
+ tcase_add_test(tcase, utc_elm_win_keyboard_win_get_n);
+ tcase_add_test(tcase, utc_elm_win_keyboard_win_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_keyboard_win_set elm_win_keyboard_win_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_keyboard_win_set
- * @{
- * @objective Positive test case checks if function call with valid values to set whether the window
- * is a virtual keyboard works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the flag to set whether the window is a virtual keyboard
- *
- * @procedure
- * @step 1 Call elm_win_keyboard_win_set with EINA_TRUE as the flag to set whether the window is a virtual keyboard
- * @step 2 Get whether the window is a keyboard
- * @step 3 Call elm_win_keyboard_win_set with EINA_FALSE as the flag to set whether the window is a virtual keyboard
- * @step 4 Get whether the window is a keyboard
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_keyboard_win_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_keyboard_win_set(main_win, EINA_TRUE);
- ret = elm_win_keyboard_win_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != EINA_TRUE)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- elm_win_keyboard_win_set(main_win, EINA_FALSE);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- ret = elm_win_keyboard_win_get(main_win);
- if (ret != EINA_FALSE)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_keyboard_win_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set whether the window
- * is a virtual keyboard works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the flag to set whether the window is a virtual keyboard
- *
- * @procedure
- * @step 1 Call elm_win_keyboard_win_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation faultt
- * @}
- */
-START_TEST(utc_elm_win_keyboard_win_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_keyboard_win_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_keyboard_win_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_keyboard_win_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_keyboard_win_set_p);
- tcase_add_test(tcase, utc_elm_win_keyboard_win_set_n);
- return tcase;
-}
{
Ecore_Timer *timer = NULL;
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
timer = ecore_timer_add(0.5, _run_timer_cb, main_win);
if (timer == NULL)
START_TEST(utc_elm_win_keygrab_unset_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Ecore_Timer *timer = NULL;
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_layer_get elm_win_layer_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_layer_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * layer properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's layer value to 4
- * @step 2 Get the window's layer
- * @step 3 Set the window's layer value to 1
- * @step 4 Get the window's layer
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_layer_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_layer_set(main_win, 4);
- ret = elm_win_layer_get(main_win);
- if (ret != 4)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_layer_set(main_win, 1);
- ret = elm_win_layer_get(main_win);
- if (ret != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_layer_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * layer works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_layer_get with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_layer_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(0, elm_win_layer_get, main_win) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_win_layer_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_layer_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_layer_get_p);
- tcase_add_test(tcase, utc_elm_win_layer_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_layer_set elm_win_layer_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_layer_set
+ * @{
+ * @objective Positive test case 01: checks if function call with valid values to set the window's
+ * layer properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li layer value (2)
+ *
+ * @procedure
+ * @step 1 Set the window's layer
+ * @step 2 Check that layer was successfully set
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_layer_set_p_1)
+{
+
+ int ret = 0;
+
+ elm_win_layer_set(main_win, 2);
+ ret = elm_win_layer_get(main_win);
+ if (ret != 2)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_layer_set
+ * @{
+ * @objective Positive test case 02: checks if function call with valid values to set the window's
+ * layer with wrong value properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li wrong layer value
+ *
+ * @procedure
+ * @step 1 Set the window's layer with wrong value lower than 1
+ * @step 2 Check that layer was successfully set into 1
+ * @step 3 Set the window's layer with wrong value higher than 255
+ * @step 4 Check that layer was successfully set into 255
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_layer_set_p_2)
+{
+
+ int ret = 0;
+
+ elm_win_layer_set(main_win, -100);
+ ret = elm_win_layer_get(main_win);
+ if (ret != 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_layer_set(main_win, 777);
+ ret = elm_win_layer_get(main_win);
+ if (ret != 255)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_layer_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * layer works without segmentation fault
+ * @n Input Data:
+ * @li button/NULL instead of the window object
+ * @li layer value
+ *
+ * @procedure
+ * @step 1 Call elm_win_layer_set with not window object (button) as first value
+ * @step 2 Call elm_win_layer_set with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li There is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_layer_set_n)
+{
+
+ Evas_Object *btn = elm_button_add(main_win);
+
+ elm_win_layer_set(btn, 3);
+ elm_win_layer_set(NULL, 3);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_layer_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * layer works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_layer_get with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_layer_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(0, elm_win_layer_get, main_win) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_layer_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_layer_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_layer_set_p_1);
+ tcase_add_test(tcase, utc_elm_win_layer_set_p_2);
+ tcase_add_test(tcase, utc_elm_win_layer_set_n);
+ tcase_add_test(tcase, utc_elm_win_layer_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_layer_set elm_win_layer_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_layer_set
- * @{
- * @objective Positive test case 01: checks if function call with valid values to set the window's
- * layer properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li layer value (2)
- *
- * @procedure
- * @step 1 Set the window's layer
- * @step 2 Check that layer was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_layer_set_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_layer_set(main_win, 2);
- ret = elm_win_layer_get(main_win);
- if (ret != 2)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_layer_set
- * @{
- * @objective Positive test case 02: checks if function call with valid values to set the window's
- * layer with wrong value properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li wrong layer value
- *
- * @procedure
- * @step 1 Set the window's layer with wrong value lower than 1
- * @step 2 Check that layer was successfully set into 1
- * @step 3 Set the window's layer with wrong value higher than 255
- * @step 4 Check that layer was successfully set into 255
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_layer_set_p_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_layer_set(main_win, -100);
- ret = elm_win_layer_get(main_win);
- if (ret != 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_layer_set(main_win, 777);
- ret = elm_win_layer_get(main_win);
- if (ret != 255)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_layer_set
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * layer works without segmentation fault
- * @n Input Data:
- * @li button/NULL instead of the window object
- * @li layer value
- *
- * @procedure
- * @step 1 Call elm_win_layer_set with not window object (button) as first value
- * @step 2 Call elm_win_layer_set with NULL value instead of the window object
- *
- * @passcondition
- * @li There is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_layer_set_n)
-{
-
- Evas_Object *btn = elm_button_add(main_win);
-
- elm_win_layer_set(btn, 3);
- elm_win_layer_set(NULL, 3);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_layer_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_layer_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_layer_set_p_1);
- tcase_add_test(tcase, utc_elm_win_layer_set_p_2);
- tcase_add_test(tcase, utc_elm_win_layer_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_maximized_get elm_win_maximized_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup elm_win_maximized_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * maximized state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's maximized state to EINA_TRUE
- * @step 2 Run the application main loop
- * @step 3 Call elm_win_maximized_get with valid value
- * @step 4 Set the window's maximized state to EINA_FALSE
- * @step 5 Run the application main loop
- * @step 6 Call elm_win_maximized_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_maximized_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
- Ecore_Timer *quit_timer = NULL;
-
- elm_win_maximized_set(main_win, EINA_TRUE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_maximized_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_maximized_set(main_win, EINA_FALSE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_maximized_get(main_win);
- 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 elm_win_maximized_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * maximized state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_maximized_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_maximized_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_maximized_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_maximized_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_maximized_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_maximized_get_p);
- tcase_add_test(tcase, utc_elm_win_maximized_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_maximized_get elm_win_maximized_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create and show main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+static Eina_Bool _quit_timer_cb(void* data)
+{
+ ecore_main_loop_quit();
+ return EINA_FALSE;
+}
+
+/**
+ * @addtogroup elm_win_maximized_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * maximized state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's maximized state to EINA_TRUE
+ * @step 2 Run the application main loop
+ * @step 3 Call elm_win_maximized_get with valid value
+ * @step 4 Set the window's maximized state to EINA_FALSE
+ * @step 5 Run the application main loop
+ * @step 6 Call elm_win_maximized_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_maximized_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+ Ecore_Timer *quit_timer = NULL;
+
+ elm_win_maximized_set(main_win, EINA_TRUE);
+ quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
+ if (quit_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ret = elm_win_maximized_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_maximized_set(main_win, EINA_FALSE);
+ quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
+ if (quit_timer == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
+ }
+ ecore_main_loop_begin();
+ ret = elm_win_maximized_get(main_win);
+ 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 elm_win_maximized_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * maximized state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_maximized_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_maximized_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_maximized_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_maximized_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * maximized state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's maximized state
+ *
+ * @procedure
+ * @step 1 Call elm_win_maximized_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_maximized_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_maximized_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_maximized_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_maximized_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_maximized_get_p);
+ tcase_add_test(tcase, utc_elm_win_maximized_get_n);
+ tcase_add_test(tcase, utc_elm_win_maximized_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_maximized_set elm_win_maximized_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create and show main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _quit_timer_cb(void* data)
-{
- ecore_main_loop_quit();
- return EINA_FALSE;
-}
-
-/**
- * @addtogroup elm_win_maximized_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * maximized state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's maximized state
- *
- * @procedure
- * @step 1 Call elm_win_maximized_set with EINA_TRUE as the window's maximized state
- * @step 2 Run the application main loop
- * @step 3 Get the window's maximized state
- * @step 4 Call elm_win_maximized_set with EINA_FALSE as the window's maximized state
- * @step 5 Run the application main loop
- * @step 6 Get the window's maximized state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_maximized_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
- Ecore_Timer *quit_timer = NULL;
-
- elm_win_maximized_set(main_win, EINA_TRUE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_maximized_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_maximized_set(main_win, EINA_FALSE);
- quit_timer = ecore_timer_add(2.0, _quit_timer_cb, NULL);
- if (quit_timer == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a timer to call the function to quit from the main loop..", __FILE__, __LINE__);
- }
- ecore_main_loop_begin();
- ret = elm_win_maximized_get(main_win);
- 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 elm_win_maximized_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * maximized state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's maximized state
- *
- * @procedure
- * @step 1 Call elm_win_maximized_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_maximized_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_maximized_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_maximized_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_maximized_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_maximized_set_p);
- tcase_add_test(tcase, utc_elm_win_maximized_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_modal_get elm_win_modal_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_modal_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * modal properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's modal to true
- * @step 2 Get the window's modal
- * @step 3 Set the window's modal to false
- * @step 4 Get the window's modal
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_modal_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = 0;
-
- elm_win_modal_set(main_win, EINA_TRUE);
- ret = elm_win_modal_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_modal_set(main_win, EINA_FALSE);
- ret = elm_win_modal_get(main_win);
- 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 elm_win_modal_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * modal works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_modal_get with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_modal_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_modal_get, main_win) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_modal_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_modal_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_modal_get_p);
- tcase_add_test(tcase, utc_elm_win_modal_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_modal_get elm_win_modal_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_modal_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the window's
+ * modal properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's modal to true
+ * @step 2 Get the window's modal
+ * @step 3 Set the window's modal to false
+ * @step 4 Get the window's modal
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_modal_get_p)
+{
+
+ Eina_Bool ret = 0;
+
+ elm_win_modal_set(main_win, EINA_TRUE);
+ ret = elm_win_modal_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_modal_set(main_win, EINA_FALSE);
+ ret = elm_win_modal_get(main_win);
+ 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 elm_win_modal_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * modal works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_modal_get with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_modal_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_modal_get, main_win) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_modal_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * modal works without segmentation fault
+ * @n Input Data:
+ * @li button/NULL instead of the window object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call elm_win_modal_set with not window object (button) as first value
+ * @step 2 Call elm_win_modal_set with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_modal_set_n)
+{
+
+ Evas_Object *btn = elm_button_add(main_win);
+
+ elm_win_modal_set(btn, EINA_TRUE);
+ elm_win_modal_set(NULL, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+
+TCase * _utc_elm_win_modal_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_modal_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_modal_get_p);
+ tcase_add_test(tcase, utc_elm_win_modal_get_n);
+ tcase_add_test(tcase, utc_elm_win_modal_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_modal_set elm_win_modal_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_modal_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * modal properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Set the window's modal
- * @step 2 Check that modal was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_modal_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_modal_set(main_win, EINA_TRUE);
- ret = elm_win_modal_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_modal_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * modal works without segmentation fault
- * @n Input Data:
- * @li button/NULL instead of the window object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call elm_win_modal_set with not window object (button) as first value
- * @step 2 Call elm_win_modal_set with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_modal_set_n)
-{
-
- Evas_Object *btn = elm_button_add(main_win);
-
- elm_win_modal_set(btn, EINA_TRUE);
- elm_win_modal_set(NULL, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_modal_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_modal_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_modal_set_p);
- tcase_add_test(tcase, utc_elm_win_modal_set_n);
- return tcase;
-}
{
int norender = 0;
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
norender = elm_win_norender_get(main_win);
if (norender < 0)
{
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_norender_pop elm_win_norender_pop()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_norender_pop
- * @{
- * @objective Positive test case checks if function call with valid value works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Push a window once
- * @step 2 Pop the window once
- * @step 3 Get how many times norender has been pushed on the window
- * @step 4 Pop the window two times
- * @step 5 Get how many times norender has been pushed on the window
- * @step 6 Push a window two times
- * @step 7 Pop the window once
- * @step 8 Get how many times norender has been pushed on the window
- *
- * @passcondition
- * @li Test passes if returned value is same as expected value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_norender_pop_p)
-{
- int norender = 0;
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- norender = elm_win_norender_get(main_win);
- if (norender < 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_norender_push(main_win);
- elm_win_norender_pop(main_win);
-
- if (elm_win_norender_get(main_win) != norender)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_norender_pop(main_win);
- elm_win_norender_pop(main_win);
-
- norender = (norender - 2 > 0) ? norender : 0;
- if (elm_win_norender_get(main_win) != norender)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_norender_push(main_win);
- elm_win_norender_push(main_win);
- elm_win_norender_pop(main_win);
-
- if (elm_win_norender_get(main_win) != norender + 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_norender_pop(main_win);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_norender_pop
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_norender_pop with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-
-START_TEST(utc_elm_win_norender_pop_n)
-{
-
- elm_win_norender_pop(NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_norender_pop()
-{
- TCase *tcase = tcase_create("utc_elm_win_norender_pop");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_norender_pop_p);
- tcase_add_test(tcase, utc_elm_win_norender_pop_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_norender_push elm_win_norender_push()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_norender_push
- * @{
- * @objective Positive test case checks if function call with valid value works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Get how many times norender has been pushed on the window
- * @step 2 Push a window once
- * @step 3 Get how many times norender has been pushed on the window
- * @step 4 Pop the window once
- * @step 5 Get how many times norender has been pushed on the window
- * @step 6 Push a window two times
- * @step 7 Get how many times norender has been pushed on the window
- *
- * @passcondition
- * @li Test passes if returned value is same as expected value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_norender_push_p)
-{
- int norender = 0;
-
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- norender = elm_win_norender_get(main_win);
- if (norender < 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_norender_push(main_win);
- if (elm_win_norender_get(main_win) != norender + 1)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_norender_pop(main_win);
-
- if (elm_win_norender_get(main_win) != norender)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_norender_push(main_win);
- elm_win_norender_push(main_win);
- if (elm_win_norender_get(main_win) != norender + 2)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_norender_push
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_norender_push with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_norender_push_n)
-{
-
- elm_win_norender_push(NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_norender_push()
-{
- TCase *tcase = tcase_create("utc_elm_win_norender_push");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_norender_push_p);
- tcase_add_test(tcase, utc_elm_win_norender_push_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_norender_pop elm_win_norender_pop()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_norender_pop
+ * @{
+ * @objective Positive test case checks if function call with valid value works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Push a window once
+ * @step 2 Pop the window once
+ * @step 3 Get how many times norender has been pushed on the window
+ * @step 4 Pop the window two times
+ * @step 5 Get how many times norender has been pushed on the window
+ * @step 6 Push a window two times
+ * @step 7 Pop the window once
+ * @step 8 Get how many times norender has been pushed on the window
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as expected value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_norender_pop_p)
+{
+ int norender = 0;
+
+
+ norender = elm_win_norender_get(main_win);
+ if (norender < 0)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_norender_push(main_win);
+
+ if (elm_win_norender_get(main_win) != norender + 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_norender_pop(main_win);
+
+ if (elm_win_norender_get(main_win) != norender)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_norender_pop(main_win);
+ elm_win_norender_pop(main_win);
+
+ norender = (norender - 2 > 0) ? norender : 0;
+ if (elm_win_norender_get(main_win) != norender)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_norender_push(main_win);
+ elm_win_norender_push(main_win);
+
+ if (elm_win_norender_get(main_win) != norender + 2)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_norender_pop(main_win);
+
+ if (elm_win_norender_get(main_win) != norender + 1)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_norender_pop(main_win);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_norender_pop
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_norender_pop with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+
+START_TEST(utc_elm_win_norender_pop_n)
+{
+
+ elm_win_norender_pop(NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_norender_push
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_norender_push with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_norender_push_n)
+{
+
+ elm_win_norender_push(NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_norender_push_pop()
+{
+ TCase *tcase = tcase_create("utc_elm_win_norender_push_pop");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_norender_pop_p);
+ tcase_add_test(tcase, utc_elm_win_norender_pop_n);
+ tcase_add_test(tcase, utc_elm_win_norender_push_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *win = NULL;
-
-static const char *ret = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_profile_get elm_win_profile_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
-}
-
-static void
-teardown(void)
-{
- if (win != NULL)
- {
- evas_object_del(win);
- win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
- ret = elm_win_profile_get(win);
-
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_win_profile_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * profile properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 create window object
- * @step 2 Add profile "efl-test-suite" to available profiles
- * @step 3 Set profile to "efl-test-suite"
- * @step 4 Set the window's profile
- * @step 5 start main loop
- * @step 6 Restore available profiles
- * @step 7 Check that profile was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_profile_get_p)
-{
- const char *profile_str = "efl-test-suite";
- int profile_count;
- char **profiles;
- char *new_profiles[1] = {profile_str};
-
-
- win = elm_win_util_standard_add("config", "Configuration");
- if (win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..Win wasn't created", __FILE__, __LINE__);
- }
- elm_win_autodel_set(win, EINA_TRUE);
- elm_win_available_profiles_get(win, &profiles, &profile_count);
- elm_win_available_profiles_set(win, new_profiles, 1);
- elm_win_profile_set(win, profile_str);
-
- evas_object_resize(win, 480, 400);
- evas_object_show(win);
-
- ecore_timer_add(2, _set_timer_cb_p, NULL);
- ecore_main_loop_begin();
- elm_win_available_profiles_set(win, profiles, profile_count);
-
- if (strcmp(ret, profile_str))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..%s_%s", __FILE__, __LINE__, profile_str, ret);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_profile_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * profile works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_profile_get with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_profile_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(NULL, elm_win_profile_get, win) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_profile_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_profile_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_profile_get_p);
- tcase_add_test(tcase, utc_elm_win_profile_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *win = NULL;
+
+static const char *ret = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_profile_get elm_win_profile_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+}
+
+static void
+teardown(void)
+{
+ if (win != NULL)
+ {
+ evas_object_del(win);
+ win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+static Eina_Bool _set_timer_cb_p(void* data)
+{
+ ret = elm_win_profile_get(win);
+
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup elm_win_profile_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the window's
+ * profile properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 create window object
+ * @step 2 Add profile "efl-test-suite" to available profiles
+ * @step 3 Set profile to "efl-test-suite"
+ * @step 4 Set the window's profile
+ * @step 5 start main loop
+ * @step 6 Restore available profiles
+ * @step 7 Check that profile was successfully set
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_profile_get_p)
+{
+ const char *profile_str = "efl-test-suite";
+ int profile_count;
+ char **profiles;
+ char *new_profiles[1] = {profile_str};
+
+
+ win = elm_win_util_standard_add("config", "Configuration");
+ elm_win_autodel_set(win, EINA_TRUE);
+ elm_win_available_profiles_get(win, &profiles, &profile_count);
+ elm_win_available_profiles_set(win, new_profiles, 1);
+ elm_win_profile_set(win, profile_str);
+
+ evas_object_resize(win, 480, 400);
+ evas_object_show(win);
+
+ ecore_timer_add(2, _set_timer_cb_p, NULL);
+ ecore_main_loop_begin();
+ elm_win_available_profiles_set(win, profiles, profile_count);
+
+ if (strcmp(ret, profile_str))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..%s_%s", __FILE__, __LINE__, profile_str, ret);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_profile_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * profile works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_profile_get with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_profile_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(NULL, elm_win_profile_get, win) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_profile_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * profile works without segmentation fault
+ * @n Input Data:
+ * @li button/NULL instead of the window object
+ * @li "profile"
+ *
+ * @procedure
+ * @step 1 Call elm_win_profile_set with not window object (button) as first value
+ * @step 2 Call elm_win_profile_set with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_profile_set_n)
+{
+ const char *profile = "profile";
+
+ Evas_Object *btn = elm_button_add(win);
+
+ elm_win_profile_set(btn, profile);
+ elm_win_profile_set(NULL, profile);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_profile_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_profile_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_profile_get_p);
+ tcase_add_test(tcase, utc_elm_win_profile_get_n);
+ tcase_add_test(tcase, utc_elm_win_profile_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *win = NULL;
-
-static const char *ret = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_profile_set elm_win_profile_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
-}
-
-static void
-teardown(void)
-{
- if (win != NULL)
- {
- evas_object_del(win);
- win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
- ret = elm_win_profile_get(win);
-
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_win_profile_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * profile properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li "const"
- *
- * @procedure
- * @step 1 create window object
- * @step 2 Add profile "efl-test-suite" to available profiles
- * @step 3 Set profile to "efl-test-suite"
- * @step 4 Set the window's profile
- * @step 5 start main loop
- * @step 6 Restore available profiles
- * @step 7 Check that profile was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_profile_set_p)
-{
- const char *profile_str = "efl-test-suite";
- int profile_count;
- char **profiles;
- char *new_profiles[1] = {profile_str};
-
-
- win = elm_win_util_standard_add("config", "Configuration");
- if (win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..Win wasn't created", __FILE__, __LINE__);
- }
- elm_win_autodel_set(win, EINA_TRUE);
- elm_win_available_profiles_get(win, &profiles, &profile_count);
- elm_win_available_profiles_set(win, new_profiles, 1);
- elm_win_profile_set(win, profile_str);
-
- evas_object_resize(win, 480, 400);
- evas_object_show(win);
-
- ecore_timer_add(2, _set_timer_cb_p, NULL);
- ecore_main_loop_begin();
- elm_win_available_profiles_set(win, profiles, profile_count);
-
- if (strcmp(ret, profile_str))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..%s_%s", __FILE__, __LINE__, profile_str, ret);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_profile_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * profile works without segmentation fault
- * @n Input Data:
- * @li button/NULL instead of the window object
- * @li "profile"
- *
- * @procedure
- * @step 1 Call elm_win_profile_set with not window object (button) as first value
- * @step 2 Call elm_win_profile_set with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_profile_set_n)
-{
- const char *profile = "profile";
-
- Evas_Object *btn = elm_button_add(win);
-
- elm_win_profile_set(btn, profile);
- elm_win_profile_set(NULL, profile);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_win_profile_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_profile_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_profile_set_p);
- tcase_add_test(tcase, utc_elm_win_profile_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_quickpanel_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Eina_Bool ret = EINA_FALSE;
*
* @passcondition
* @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
-
-
* @}
*/
START_TEST(utc_elm_win_quickpanel_get_n)
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_quickpanel_priority_major_get elm_win_quickpanel_priority_major_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_quickpanel_priority_major_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the major priority
- * of a quickpanel window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set a main window to be an illume quickpanel window
- * @step 2 Call elm_win_quickpanel_priority_major_set with valid values
- * @step 3 Get the major priority of a quickpanel window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_major_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_quickpanel_set(main_win, EINA_TRUE);
- elm_win_quickpanel_priority_major_set(main_win, 3);
- ret = elm_win_quickpanel_priority_major_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != 3)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_quickpanel_priority_major_get
- * @{
- * @objective Negative test case checks if function call with invalid values to get the major priority
- * of a quickpanel window works properly and without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- *
- * @procedure
- * @step 1 Call elm_win_quickpanel_priority_major_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is -1 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_major_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_quickpanel_priority_major_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_quickpanel_priority_major_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_quickpanel_priority_major_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_major_get_p);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_major_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_quickpanel_priority_major_get elm_win_quickpanel_priority_major_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_quickpanel_priority_major_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the major priority
+ * of a quickpanel window works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set a main window to be an illume quickpanel window
+ * @step 2 Call elm_win_quickpanel_priority_major_set with valid values
+ * @step 3 Get the major priority of a quickpanel window
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_priority_major_get_p)
+{
+
+ int ret = 0;
+
+ elm_win_quickpanel_set(main_win, EINA_TRUE);
+ elm_win_quickpanel_priority_major_set(main_win, 3);
+ ret = elm_win_quickpanel_priority_major_get(main_win);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ if (ret != 3)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_quickpanel_priority_major_get
+ * @{
+ * @objective Negative test case checks if function call with invalid values to get the major priority
+ * of a quickpanel window works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_quickpanel_priority_major_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is -1 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_priority_major_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_quickpanel_priority_major_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_quickpanel_priority_major_set
+ * @{
+ * @objective Negative test case checks if function call with invalid values to set the major priority
+ * of a quickpanel window works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li NULL, -1 as the major priority of a quickpanel window
+ *
+ * @procedure
+ * @step 1 Call elm_win_quickpanel_priority_major_set with invalid value instead of the window object
+ * @step 2 Call elm_win_quickpanel_priority_major_set with invalid value instead of the major priority of a quickpanel window
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_priority_major_set_n)
+{
+
+ UNITEST_FUNC_NEG(elm_win_quickpanel_priority_major_set, main_win, -1)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_quickpanel_priority_major_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_quickpanel_priority_major_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_priority_major_get_p);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_priority_major_get_n);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_priority_major_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_quickpanel_priority_major_set elm_win_quickpanel_priority_major_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_quickpanel_priority_major_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the major priority
- * of a quickpanel window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li 3 as the major priority of a quickpanel window
- *
- * @procedure
- * @step 1 Set a main window to be an illume quickpanel window
- * @step 2 Call elm_win_quickpanel_priority_major_set with valid values
- * @step 3 Get the major priority of a quickpanel window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_major_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_quickpanel_set(main_win, EINA_TRUE);
- elm_win_quickpanel_priority_major_set(main_win, 3);
- ret = elm_win_quickpanel_priority_major_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != 3)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_quickpanel_priority_major_set
- * @{
- * @objective Negative test case checks if function call with invalid values to set the major priority
- * of a quickpanel window works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li NULL, -1 as the major priority of a quickpanel window
- *
- * @procedure
- * @step 1 Call elm_win_quickpanel_priority_major_set with invalid value instead of the window object
- * @step 2 Call elm_win_quickpanel_priority_major_set with invalid value instead of the major priority of a quickpanel window
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_major_set_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- UNITEST_FUNC_NEG(elm_win_quickpanel_priority_major_set, main_win, -1)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_quickpanel_priority_major_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_quickpanel_priority_major_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_major_set_p);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_major_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_quickpanel_priority_minor_get elm_win_quickpanel_priority_minor_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_quickpanel_priority_minor_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the minor priority
- * of a quickpanel window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set a main window to be an illume quickpanel window
- * @step 2 Call elm_win_quickpanel_priority_minor_set with valid values
- * @step 3 Get the minor priority of a quickpanel window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_minor_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_quickpanel_set(main_win, EINA_TRUE);
- elm_win_quickpanel_priority_minor_set(main_win, 3);
- ret = elm_win_quickpanel_priority_minor_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != 3)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_quickpanel_priority_minor_get
- * @{
- * @objective Negative test case checks if function call with invalid values to get the minor priority
- * of a quickpanel window works properly and without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- *
- * @procedure
- * @step 1 Call elm_win_quickpanel_priority_minor_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is -1 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_minor_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_quickpanel_priority_minor_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_quickpanel_priority_minor_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_quickpanel_priority_minor_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_minor_get_p);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_minor_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_quickpanel_priority_minor_get elm_win_quickpanel_priority_minor_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_quickpanel_priority_minor_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the minor priority
+ * of a quickpanel window works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set a main window to be an illume quickpanel window
+ * @step 2 Call elm_win_quickpanel_priority_minor_set with valid values
+ * @step 3 Get the minor priority of a quickpanel window
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_priority_minor_get_p)
+{
+
+ int ret = 0;
+
+ elm_win_quickpanel_set(main_win, EINA_TRUE);
+ elm_win_quickpanel_priority_minor_set(main_win, 3);
+ ret = elm_win_quickpanel_priority_minor_get(main_win);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ if (ret != 3)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_quickpanel_priority_minor_get
+ * @{
+ * @objective Negative test case checks if function call with invalid values to get the minor priority
+ * of a quickpanel window works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_quickpanel_priority_minor_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is -1 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_priority_minor_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_quickpanel_priority_minor_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_quickpanel_priority_minor_set
+ * @{
+ * @objective Negative test case checks if function call with invalid values to set the minor priority
+ * of a quickpanel window works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li NULL, -1 as the minor priority of a quickpanel window
+ *
+ * @procedure
+ * @step 1 Call elm_win_quickpanel_priority_minor_set with invalid value instead of the window object
+ * @step 2 Call elm_win_quickpanel_priority_minor_set with invalid value instead of the minor priority of a quickpanel window
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_priority_minor_set_n)
+{
+ elm_win_quickpanel_priority_minor_set(main_win, -1);
+ elm_win_quickpanel_priority_minor_set(NULL, -1);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_quickpanel_priority_minor_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_quickpanel_priority_minor_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_priority_minor_get_p);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_priority_minor_get_n);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_priority_minor_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_quickpanel_priority_minor_set elm_win_quickpanel_priority_minor_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_quickpanel_priority_minor_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the minor priority
- * of a quickpanel window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li 3 as the minor priority of a quickpanel window
- *
- * @procedure
- * @step 1 Set a main window to be an illume quickpanel window
- * @step 2 Call elm_win_quickpanel_priority_minor_set with valid values
- * @step 3 Get the minor priority of a quickpanel window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_minor_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_quickpanel_set(main_win, EINA_TRUE);
- elm_win_quickpanel_priority_minor_set(main_win, 3);
- ret = elm_win_quickpanel_priority_minor_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != 3)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_quickpanel_priority_minor_set
- * @{
- * @objective Negative test case checks if function call with invalid values to set the minor priority
- * of a quickpanel window works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li NULL, -1 as the minor priority of a quickpanel window
- *
- * @procedure
- * @step 1 Call elm_win_quickpanel_priority_minor_set with invalid value instead of the window object
- * @step 2 Call elm_win_quickpanel_priority_minor_set with invalid value instead of the minor priority of a quickpanel window
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_priority_minor_set_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_quickpanel_priority_minor_set(main_win, -1);
- elm_win_quickpanel_priority_minor_set(NULL, -1);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_quickpanel_priority_minor_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_quickpanel_priority_minor_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_minor_set_p);
- tcase_add_test(tcase, utc_elm_win_quickpanel_priority_minor_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_quickpanel_set_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Eina_Bool ret = EINA_FALSE;
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_quickpanel_zone_get elm_win_quickpanel_zone_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_quickpanel_zone_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * quickpanel zone properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's quickpanel zone to 5
- * @step 2 Get the window's quickpanel zone
- * @step 3 Set the window's quickpanel zone to -5
- * @step 4 Get the window's quickpanel zone
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_zone_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_quickpanel_zone_set(main_win, 5);
- ret = elm_win_quickpanel_zone_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != 5)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- elm_win_quickpanel_zone_set(main_win, -5);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- ret = elm_win_quickpanel_zone_get(main_win);
- if (ret != -5)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_quickpanel_zone_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * quickpanel zone works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_quickpanel_zone get with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is -1 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_zone_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(NULL, elm_win_quickpanel_zone_get, main_win) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_quickpanel_zone_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_quickpanel_zone_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_quickpanel_zone_get_p);
- tcase_add_test(tcase, utc_elm_win_quickpanel_zone_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_quickpanel_zone_set elm_win_quickpanel_zone_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_quickpanel_zone_set
+ * @{
+ * @objective Positive test case 01: checks if function call with valid values to set the window's
+ * quickpanel zone properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li 5
+ *
+ * @procedure
+ * @step 1 Set the window's quickpanel_zone to 5
+ * @step 2 Check that quickpanel zone was successfully set
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_zone_set_p_1)
+{
+
+ int ret = 0;
+
+ elm_win_quickpanel_zone_set(main_win, 5);
+ ret = elm_win_quickpanel_zone_get(main_win);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ if (ret != 5)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+
+ elm_win_quickpanel_zone_set(main_win, -5);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ ret = elm_win_quickpanel_zone_get(main_win);
+ if (ret != -5)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_quickpanel_zone_set
+ * @{
+ * @objective Positive test case 02: checks if function call with valid values to set the window's
+ * quickpanel_zone with wrong value properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li -100/777
+ *
+ * @procedure
+ * @step 1 Set the window's quickpanel_zone with wrong value (-100)
+ * @step 2 Check that quickpanel_zone was successfully set into -100
+ * @step 3 Set the window's quickpanel_zone with wrong value (777)
+ * @step 4 Check that quickpanel_zone was successfully set into 777
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_zone_set_p_2)
+{
+
+ int ret = 0;
+
+ elm_win_quickpanel_zone_set(main_win, -100);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ ret = elm_win_quickpanel_zone_get(main_win);
+ if (ret != -100)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+
+ elm_win_quickpanel_zone_set(main_win, 777);
+ /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
+ ret = elm_win_quickpanel_zone_get(main_win);
+ if (ret != 777)
+ {
+ printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_quickpanel_zone_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * quickpanel_zone works without segmentation fault
+ * @n Input Data:
+ * @li button/NULL instead of the window object
+ * @li 3
+ *
+ * @procedure
+ * @step 1 Call elm_win_quickpanel_zone_set with not window object (button) as first value
+ * @step 2 Call elm_win_quickpanel_zone_set with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_zone_set_n)
+{
+
+ Evas_Object *btn = elm_button_add(main_win);
+
+ elm_win_quickpanel_zone_set(btn, 3);
+ elm_win_quickpanel_zone_set(NULL, 3);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_quickpanel_zone_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * quickpanel zone works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_quickpanel_zone get with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is -1 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_quickpanel_zone_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(NULL, elm_win_quickpanel_zone_get, main_win) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_quickpanel_zone_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_quickpanel_zone_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_zone_set_p_1);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_zone_set_p_2);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_zone_set_n);
+ tcase_add_test(tcase, utc_elm_win_quickpanel_zone_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_quickpanel_zone_set elm_win_quickpanel_zone_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_quickpanel_zone_set
- * @{
- * @objective Positive test case 01: checks if function call with valid values to set the window's
- * quickpanel zone properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li 5
- *
- * @procedure
- * @step 1 Set the window's quickpanel_zone to 5
- * @step 2 Check that quickpanel zone was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_zone_set_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_quickpanel_zone_set(main_win, 5);
- ret = elm_win_quickpanel_zone_get(main_win);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- if (ret != 5)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_quickpanel_zone_set
- * @{
- * @objective Positive test case 02: checks if function call with valid values to set the window's
- * quickpanel_zone with wrong value properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li -100/777
- *
- * @procedure
- * @step 1 Set the window's quickpanel_zone with wrong value (-100)
- * @step 2 Check that quickpanel_zone was successfully set into -100
- * @step 3 Set the window's quickpanel_zone with wrong value (777)
- * @step 4 Check that quickpanel_zone was successfully set into 777
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_zone_set_p_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int ret = 0;
-
- elm_win_quickpanel_zone_set(main_win, -100);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- ret = elm_win_quickpanel_zone_get(main_win);
- if (ret != -100)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
-
- elm_win_quickpanel_zone_set(main_win, 777);
- /*TODO: test is failed because method realized only under X. Replace printf on abort_msg after realization under wayland */
- ret = elm_win_quickpanel_zone_get(main_win);
- if (ret != 777)
- {
- printf("[TEST]:: %s[%d] : Test had been executed for the backward compatibility..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_quickpanel_zone_set
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * quickpanel_zone works without segmentation fault
- * @n Input Data:
- * @li button/NULL instead of the window object
- * @li 3
- *
- * @procedure
- * @step 1 Call elm_win_quickpanel_zone_set with not window object (button) as first value
- * @step 2 Call elm_win_quickpanel_zone_set with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_quickpanel_zone_set_n)
-{
-
- Evas_Object *btn = elm_button_add(main_win);
-
- elm_win_quickpanel_zone_set(btn, 3);
- elm_win_quickpanel_zone_set(NULL, 3);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_quickpanel_zone_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_quickpanel_zone_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_quickpanel_zone_set_p_1);
- tcase_add_test(tcase, utc_elm_win_quickpanel_zone_set_p_2);
- tcase_add_test(tcase, utc_elm_win_quickpanel_zone_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_raise_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
elm_win_raise(main_win);
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
*/
START_TEST(utc_elm_win_render_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
elm_win_render(main_win);
*/
START_TEST(utc_elm_win_render_n)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Evas_Object *btn = elm_button_add(main_win);
elm_win_render(btn);
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_resize_object_add elm_win_resize_object_add()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_resize_object_add
- * @{
- * @objective Positive test case checks if function call with valid values to add subobject
- * as a resize object of window object works without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li the background object as the resize object to add
- *
- * @procedure
- * @step 1 Add the background object to the window object
- * @step 2 Call elm_win_resize_object_add with valid values
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_resize_object_add_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *bg = NULL;
-
- bg = elm_bg_add(main_win);
- if (bg == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a background to the main window..", __FILE__, __LINE__);
- }
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(main_win, bg);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(bg);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_resize_object_add
- * @{
- * @objective Negative test case checks if function call with invalid values to add subobject
- * as a resize object of window object works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li NULL, the background object as the resize object to add
- *
- * @procedure
- * @step 1 Add the background object to the window object
- * @step 2 Call elm_win_resize_object_add with invalid value instead of the window object
- * @step 3 Call elm_win_resize_object_add with invalid value instead of the resize object to add
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_resize_object_add_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *bg = NULL;
-
- bg = elm_bg_add(main_win);
- if (bg == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a background to the main window..", __FILE__, __LINE__);
- }
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- UNITEST_FUNC_NEG(elm_win_resize_object_add, main_win, bg)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(bg);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_resize_object_add()
-{
- TCase *tcase = tcase_create("utc_elm_win_resize_object_add");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_resize_object_add_p);
- tcase_add_test(tcase, utc_elm_win_resize_object_add_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_resize_object_del elm_win_resize_object_del()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_resize_object_del
+ * @{
+ * @objective Positive test case checks if function call with valid values to del subobject
+ * as a resize object of window object works without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li the background object as the resize object to del
+ *
+ * @procedure
+ * @step 1 Add the background object to the window object
+ * @step 2 Add the background object as the resize object of window object
+ * @step 3 Call elm_win_resize_object_del with valid values
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_resize_object_del_p)
+{
+
+ Evas_Object *bg = NULL;
+
+ bg = elm_bg_add(main_win);
+ if (bg == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a background to the main window..", __FILE__, __LINE__);
+ }
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(main_win, bg);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ elm_win_resize_object_del(main_win, bg);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ evas_object_del(bg);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_resize_object_del
+ * @{
+ * @objective Negative test case checks if function call with invalid values to del subobject
+ * as a resize object of window object works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li NULL, the background object as the resize object to del
+ *
+ * @procedure
+ * @step 1 Add the background object to the window object
+ * @step 2 Add the background object as the resize object of window object
+ * @step 3 Call elm_win_resize_object_del with invalid value instead of the window object
+ * @step 4 Call elm_win_resize_object_del with invalid value instead of the resize object to del
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_resize_object_del_n)
+{
+
+ Evas_Object *bg = NULL;
+
+ bg = elm_bg_add(main_win);
+ if (bg == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a background to the main window..", __FILE__, __LINE__);
+ }
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(main_win, bg);
+ UNITEST_FUNC_NEG(elm_win_resize_object_del, main_win, bg)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ evas_object_del(bg);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_resize_object_add
+ * @{
+ * @objective Negative test case checks if function call with invalid values to add subobject
+ * as a resize object of window object works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li NULL, the background object as the resize object to add
+ *
+ * @procedure
+ * @step 1 Add the background object to the window object
+ * @step 2 Call elm_win_resize_object_add with invalid value instead of the window object
+ * @step 3 Call elm_win_resize_object_add with invalid value instead of the resize object to add
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_resize_object_add_n)
+{
+
+ Evas_Object *bg = NULL;
+
+ bg = elm_bg_add(main_win);
+ if (bg == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a background to the main window..", __FILE__, __LINE__);
+ }
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ UNITEST_FUNC_NEG(elm_win_resize_object_add, main_win, bg)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+ evas_object_del(bg);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_resize_object_add_del()
+{
+ TCase *tcase = tcase_create("utc_elm_win_resize_object_add_del");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_resize_object_del_p);
+ tcase_add_test(tcase, utc_elm_win_resize_object_del_n);
+ tcase_add_test(tcase, utc_elm_win_resize_object_add_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_resize_object_del elm_win_resize_object_del()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_resize_object_del
- * @{
- * @objective Positive test case checks if function call with valid values to del subobject
- * as a resize object of window object works without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li the background object as the resize object to del
- *
- * @procedure
- * @step 1 Add the background object to the window object
- * @step 2 Add the background object as the resize object of window object
- * @step 3 Call elm_win_resize_object_del with valid values
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_resize_object_del_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *bg = NULL;
-
- bg = elm_bg_add(main_win);
- if (bg == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a background to the main window..", __FILE__, __LINE__);
- }
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(main_win, bg);
- elm_win_resize_object_del(main_win, bg);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(bg);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_resize_object_del
- * @{
- * @objective Negative test case checks if function call with invalid values to del subobject
- * as a resize object of window object works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li NULL, the background object as the resize object to del
- *
- * @procedure
- * @step 1 Add the background object to the window object
- * @step 2 Add the background object as the resize object of window object
- * @step 3 Call elm_win_resize_object_del with invalid value instead of the window object
- * @step 4 Call elm_win_resize_object_del with invalid value instead of the resize object to del
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_resize_object_del_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Evas_Object *bg = NULL;
-
- bg = elm_bg_add(main_win);
- if (bg == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a background to the main window..", __FILE__, __LINE__);
- }
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(main_win, bg);
- UNITEST_FUNC_NEG(elm_win_resize_object_del, main_win, bg)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
- evas_object_del(bg);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_resize_object_del()
-{
- TCase *tcase = tcase_create("utc_elm_win_resize_object_del");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_resize_object_del_p);
- tcase_add_test(tcase, utc_elm_win_resize_object_del_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_role_get elm_win_role_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_role_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * role properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Get the window's role
- * @step 2 Set the role to the window
- * @step 3 Get the window's role
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_role_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- const char* ret = NULL;
-
- ret = elm_win_role_get(main_win);
- if (ret != NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_role_set(main_win, "role");
- ret = elm_win_role_get(main_win);
- if (ret == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- if (strcmp(ret, "role") != 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 elm_win_role_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * role works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_role_get with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_role_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(NULL, elm_win_role_get, main_win) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_role_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_role_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_role_get_p);
- tcase_add_test(tcase, utc_elm_win_role_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_role_set elm_win_role_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_role_set
+ * @{
+ * @objective Positive test case checks if function call with valid values to set the window's
+ * role properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li "const"
+ *
+ * @procedure
+ * @step 1 Set the window's role to "const"
+ * @step 2 Check that role was successfully set
+ * @step 3 Set the window's role with NULL
+ * @step 4 Check that role wasn't set
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_role_set_p)
+{
+
+ const char *ret = NULL;
+
+ elm_win_role_set(main_win, "const");
+ ret = elm_win_role_get(main_win);
+ if (ret == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ if (strcmp(ret, "const") != 0)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_role_set(main_win, NULL);
+ ret = elm_win_role_get(main_win);
+ if (ret == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ if (strcmp(ret, "const") != 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 elm_win_role_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * role works without segmentation fault
+ * @n Input Data:
+ * @li button/NULL instead of the window object
+ * @li "role"
+ *
+ * @procedure
+ * @step 1 Call elm_win_role_set with not window object (button) as first value
+ * @step 2 Call elm_win_role_set with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_role_set_n)
+{
+
+ Evas_Object *btn = elm_button_add(main_win);
+
+ elm_win_role_set(btn, "role");
+ elm_win_role_set(NULL, "role");
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_role_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * role works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_role_get with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_role_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(NULL, elm_win_role_get, main_win) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_role_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_role_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_role_set_p);
+ tcase_add_test(tcase, utc_elm_win_role_set_n);
+ tcase_add_test(tcase, utc_elm_win_role_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_role_set elm_win_role_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_role_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * role properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li "const"
- *
- * @procedure
- * @step 1 Set the window's role to "const"
- * @step 2 Check that role was successfully set
- * @step 3 Set the window's role with NULL
- * @step 4 Check that role wasn't set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_role_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- const char *ret = NULL;
-
- elm_win_role_set(main_win, "const");
- ret = elm_win_role_get(main_win);
- if (ret == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- if (strcmp(ret, "const") != 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_role_set(main_win, NULL);
- ret = elm_win_role_get(main_win);
- if (ret == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- if (strcmp(ret, "const") != 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 elm_win_role_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * role works without segmentation fault
- * @n Input Data:
- * @li button/NULL instead of the window object
- * @li "role"
- *
- * @procedure
- * @step 1 Call elm_win_role_set with not window object (button) as first value
- * @step 2 Call elm_win_role_set with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_role_set_n)
-{
-
- Evas_Object *btn = elm_button_add(main_win);
-
- elm_win_role_set(btn, "role");
- elm_win_role_set(NULL, "role");
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_role_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_role_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_role_set_p);
- tcase_add_test(tcase, utc_elm_win_role_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_rotation_get elm_win_rotation_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_rotation_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the rotation
- * of the window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the rotation of the window to 90 degrees
- * @step 2 Call elm_win_rotation_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_rotation_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int rotation = 0;
-
- elm_win_rotation_set(main_win, 90);
- rotation = elm_win_rotation_get(main_win);
- if (rotation != 90)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_rotation_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the rotation
- * of the window works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_rotation_get with valid invalue instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_rotation_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_rotation_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_rotation_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_rotation_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_rotation_get_p);
- tcase_add_test(tcase, utc_elm_win_rotation_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_rotation_get elm_win_rotation_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_rotation_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the rotation
+ * of the window works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the rotation of the window to 90 degrees
+ * @step 2 Call elm_win_rotation_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_rotation_get_p)
+{
+
+ int rotation = 0;
+
+ elm_win_rotation_set(main_win, 90);
+ rotation = elm_win_rotation_get(main_win);
+ if (rotation != 90)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_rotation_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the rotation
+ * of the window works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_rotation_get with valid invalue instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_rotation_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_rotation_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_rotation_set
+ * @{
+ * @objective Negative test case checks if function call with invalid values to set the rotation
+ * of the window works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li NULL, -1 as the rotation of the window, in degrees (0-360), counter-clockwise
+ *
+ * @procedure
+ * @step 1 Call elm_win_rotation_set with invalid value instead of the window object
+ * @step 2 Call elm_win_rotation_set with invalid value instead of the rotation of the window
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_rotation_set_n)
+{
+
+ UNITEST_FUNC_NEG(elm_win_rotation_set, main_win, -1)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_rotation_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_rotation_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_rotation_get_p);
+ tcase_add_test(tcase, utc_elm_win_rotation_get_n);
+ tcase_add_test(tcase, utc_elm_win_rotation_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_rotation_set elm_win_rotation_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_rotation_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the rotation
- * of the window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li 90 as the rotation of the window, in degrees (0-360), counter-clockwise
- *
- * @procedure
- * @step 1 Call elm_win_rotation_set with valid values
- * @step 2 Get the rotation of the window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_rotation_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int rotation = 0;
-
- elm_win_rotation_set(main_win, 90);
- rotation = elm_win_rotation_get(main_win);
- if (rotation != 90)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_rotation_set
- * @{
- * @objective Negative test case checks if function call with invalid values to set the rotation
- * of the window works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li NULL, -1 as the rotation of the window, in degrees (0-360), counter-clockwise
- *
- * @procedure
- * @step 1 Call elm_win_rotation_set with invalid value instead of the window object
- * @step 2 Call elm_win_rotation_set with invalid value instead of the rotation of the window
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_rotation_set_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- UNITEST_FUNC_NEG(elm_win_rotation_set, main_win, -1)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_rotation_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_rotation_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_rotation_set_p);
- tcase_add_test(tcase, utc_elm_win_rotation_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_rotation_with_resize_set_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
int rotation = 0;
*/
START_TEST(utc_elm_win_rotation_with_resize_set_n)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
UNITEST_FUNC_NEG(elm_win_rotation_with_resize_set, main_win, -1)
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_screen_constrain_get elm_win_screen_constrain_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_screen_constrain_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * screen constrain properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's screen constrain to EINA_TRUE
- * @step 2 Get the window's screen constrain
- * @step 3 Set the window's screen constrain to EINA_FALSE
- * @step 4 Get the window's screen constrain
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_screen_constrain_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = 0;
-
- elm_win_screen_constrain_set(main_win, EINA_TRUE);
- ret = elm_win_screen_constrain_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_screen_constrain_set(main_win, EINA_FALSE);
- ret = elm_win_screen_constrain_get(main_win);
- 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 elm_win_screen_constrain_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * screen constrain works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_screen_constrain_get with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_screen_constrain_get_n)
-{
-
- if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_screen_constrain_get, main_win) == TEST_FAIL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_screen_constrain_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_screen_constrain_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_screen_constrain_get_p);
- tcase_add_test(tcase, utc_elm_win_screen_constrain_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_screen_constrain_get elm_win_screen_constrain_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_screen_constrain_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the window's
+ * screen constrain properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's screen constrain to EINA_TRUE
+ * @step 2 Get the window's screen constrain
+ * @step 3 Set the window's screen constrain to EINA_FALSE
+ * @step 4 Get the window's screen constrain
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_screen_constrain_get_p)
+{
+
+ Eina_Bool ret = 0;
+
+ elm_win_screen_constrain_set(main_win, EINA_TRUE);
+ ret = elm_win_screen_constrain_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_screen_constrain_set(main_win, EINA_FALSE);
+ ret = elm_win_screen_constrain_get(main_win);
+ 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 elm_win_screen_constrain_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * screen constrain works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_screen_constrain_get with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_screen_constrain_get_n)
+{
+
+ if (UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_screen_constrain_get, main_win) == TEST_FAIL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_screen_constrain_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * screen constrain works without segmentation fault
+ * @n Input Data:
+ * @li button/NULL instead of the window object
+ * @li EINA_TRUE
+ *
+ * @procedure
+ * @step 1 Call elm_win_screen_constrain_set with not window object (button) as first value
+ * @step 2 Call elm_win_screen_constrain_set with NULL value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_screen_constrain_set_n)
+{
+
+ Evas_Object *btn = elm_button_add(main_win);
+
+ elm_win_screen_constrain_set(btn, EINA_TRUE);
+ elm_win_screen_constrain_set(NULL, EINA_TRUE);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_screen_constrain_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_screen_constrain_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_screen_constrain_get_p);
+ tcase_add_test(tcase, utc_elm_win_screen_constrain_get_n);
+ tcase_add_test(tcase, utc_elm_win_screen_constrain_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_screen_constrain_set elm_win_screen_constrain_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_screen_constrain_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * screen constrain properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Set the window's screen_constrain to EINA_TRUE
- * @step 2 Check that screen constrain was successfully set
- *
- * @passcondition
- * @li Test passes if returned value is same as the value set by tested function and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_screen_constrain_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_screen_constrain_set(main_win, EINA_TRUE);
- ret = elm_win_screen_constrain_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_screen_constrain_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * screen constrain works without segmentation fault
- * @n Input Data:
- * @li button/NULL instead of the window object
- * @li EINA_TRUE
- *
- * @procedure
- * @step 1 Call elm_win_screen_constrain_set with not window object (button) as first value
- * @step 2 Call elm_win_screen_constrain_set with NULL value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_screen_constrain_set_n)
-{
-
- Evas_Object *btn = elm_button_add(main_win);
-
- elm_win_screen_constrain_set(btn, EINA_TRUE);
- elm_win_screen_constrain_set(NULL, EINA_TRUE);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_screen_constrain_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_screen_constrain_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_screen_constrain_set_p);
- tcase_add_test(tcase, utc_elm_win_screen_constrain_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_screen_dpi_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
int x = 0, y = 0, x1 = 0, y1 = 0;
*/
START_TEST(utc_elm_win_screen_position_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
int x = 10, y = 10;
*/
START_TEST(utc_elm_win_screen_position_get_n_2)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
int x = 10, y = 10;
*/
START_TEST(utc_elm_win_screen_size_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
int x = -1;
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_size_base_get elm_win_size_base_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_size_base_get
- * @{
- * @objective Positive test case checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li NULL or pointer to int as the horizontal offset value
- * @li NULL or pointer to int as the vertical offset value
- *
- * @procedure
- * @step 1 Call elm_win_size_base_get with x pointer as NULL, but y as variable
- * @step 2 Call elm_win_size_base_get with y pointer as NULL, but x as variable
- * @step 3 Call elm_win_size_base_get with not NULL parameters
- * @step 4 Compare returned values with the default value
- * @step 5 Change default size base to real values (x = 1300, y = 1300)
- * @step 6 Call elm_win_size_base_get
- * @step 7 Compare returned values
- *
- * @passcondition
- * @li Test passes if returned values is same as expected values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_base_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int x = 0;
- int y = 0;
-
- elm_win_size_base_get(main_win, NULL, &y);
- elm_win_size_base_get(main_win, &x, NULL);
- elm_win_size_base_get(main_win, &x, &y);
- if ((x != 0) || (y != 0))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_size_base_set(main_win, 1300, 1300);
- elm_win_size_base_get(main_win, &x, &y);
- if ((x != 1300) || (y != 1300))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_size_base_get
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li NULL or pointer to int as the horizontal offset value
- * @li NULL or pointer to int as the vertical offset value
- *
- * @procedure
- * @step 1 Call elm_win_size_base_get with invalid value instead of the window object and valid values of the other parameters
- * @step 2 Call elm_win_size_base_get with invalid value instead of the window object and NULL as value of the other parameters
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_base_get_n)
-{
- int x = 0;
- int y = 0;
-
- elm_win_size_base_get(NULL, &x, &y);
- elm_win_size_base_get(NULL, NULL, NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_size_base_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_size_base_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_size_base_get_p);
- tcase_add_test(tcase, utc_elm_win_size_base_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_size_base_get elm_win_size_base_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_size_base_get
+ * @{
+ * @objective Positive test case checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li NULL or pointer to int as the horizontal offset value
+ * @li NULL or pointer to int as the vertical offset value
+ *
+ * @procedure
+ * @step 1 Call elm_win_size_base_get with x pointer as NULL, but y as variable
+ * @step 2 Call elm_win_size_base_get with y pointer as NULL, but x as variable
+ * @step 3 Call elm_win_size_base_get with not NULL parameters
+ * @step 4 Compare returned values with the default value
+ * @step 5 Change default size base to real values (x = 1300, y = 1300)
+ * @step 6 Call elm_win_size_base_get
+ * @step 7 Compare returned values
+ *
+ * @passcondition
+ * @li Test passes if returned values is same as expected values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_size_base_get_p)
+{
+
+ int x = 0;
+ int y = 0;
+
+ elm_win_size_base_get(main_win, NULL, &y);
+ elm_win_size_base_get(main_win, &x, NULL);
+ elm_win_size_base_get(main_win, &x, &y);
+ if ((x != 0) || (y != 0))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_size_base_set(main_win, 1300, 1300);
+ elm_win_size_base_get(main_win, &x, &y);
+ if ((x != 1300) || (y != 1300))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_size_base_set(main_win, -876, 275);
+ elm_win_size_base_get(main_win, &x, &y);
+ if ((x != -876) || (y != 275))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_size_base_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li NULL or pointer to int as the horizontal offset value
+ * @li NULL or pointer to int as the vertical offset value
+ *
+ * @procedure
+ * @step 1 Call elm_win_size_base_get with invalid value instead of the window object and valid values of the other parameters
+ * @step 2 Call elm_win_size_base_get with invalid value instead of the window object and NULL as value of the other parameters
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_size_base_get_n)
+{
+ int x = 0;
+ int y = 0;
+
+ elm_win_size_base_get(NULL, &x, &y);
+ elm_win_size_base_get(NULL, NULL, NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_size_base_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li horizontal offset value (1300)
+ * @li vertical offset value (1300)
+ *
+ * @procedure
+ * @step 1 Call elm_win_size_base_set with NULL instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_size_base_set_n)
+{
+ int x = 0;
+ int y = 0;
+
+
+ elm_win_size_base_set(NULL, 1300, 1300);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_size_base_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_size_base_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_size_base_get_p);
+ tcase_add_test(tcase, utc_elm_win_size_base_get_n);
+ tcase_add_test(tcase, utc_elm_win_size_base_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_size_base_set elm_win_size_base_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_size_base_set
- * @{
- * @objective Positive test case checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li horizontal offset value (1300/-876)
- * @li vertical offset value (1300/275/-275)
- *
- * @procedure
- * @step 1 Change default size base to real values (1300, 1300)
- * @step 2 Call elm_win_size_base_set
- * @step 3 Compare returned values
- * @step 4 Change default size base to not real values (1300, -275)
- * @step 5 Call elm_win_size_base_set
- * @step 6 Compare returned values
- * @step 7 Change default size base to not real values (-876, 275)
- * @step 8 Call elm_win_size_base_set
- * @step 9 Compare returned values
- *
- * @passcondition
- * @li Test passes if returned values is same as expected values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_base_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- int x = 0;
- int y = 0;
-
- elm_win_size_base_set(main_win, 1300, 1300);
- elm_win_size_base_get(main_win, &x, &y);
- if ((x != 1300) || (y != 1300))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_size_base_set(main_win, 1300, -275);
- elm_win_size_base_get(main_win, &x, &y);
- if ((x != 1300) || (y != -275))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_size_base_set(main_win, -876, 275);
- elm_win_size_base_get(main_win, &x, &y);
- if ((x != -876) || (y != 275))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_size_base_set
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li horizontal offset value (1300)
- * @li vertical offset value (1300)
- *
- * @procedure
- * @step 1 Call elm_win_size_base_set with NULL instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_base_set_n)
-{
- int x = 0;
- int y = 0;
-
-
- elm_win_size_base_set(NULL, 1300, 1300);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_size_base_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_size_base_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_size_base_set_p);
- tcase_add_test(tcase, utc_elm_win_size_base_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_size_step_get elm_win_size_step_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_size_step_get
- * @{
- * @objective Positive test case checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li NULL or pointer to int as the horizontal offset value
- * @li NULL or pointer to int as the vertical offset value
- *
- * @procedure
- * @step 1 Call elm_win_size_step_get with second (x) parameter as NULL
- * @step 2 Call elm_win_size_step_get with third (y) parameter as NULL
- * @step 3 Call elm_win_size_step_get with not NULL parameters
- * @step 4 Compare returned values with the default value
- * @step 5 Change default size base to real values (1300, 1300)
- * @step 6 Call elm_win_size_step_get
- * @step 7 Compare returned values
- *
- * @passcondition
- * @li Test passes if returned values is same as expected values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_step_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int x = 0;
- int y = 0;
-
- elm_win_size_step_get(main_win, NULL, &y);
- elm_win_size_step_get(main_win, &x, NULL);
- elm_win_size_step_get(main_win, &x, &y);
- if ((x != 0) || (y != 0))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_size_step_set(main_win, 1300, 1300);
- elm_win_size_step_get(main_win, &x, &y);
- if ((x != 1300) || (y != 1300))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_size_step_get
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li NULL or pointer to int as the horizontal offset value
- * @li NULL or pointer to int as the vertical offset value
- *
- * @procedure
- * @step 1 Call elm_win_size_step_get with invalid value instead of the window object and valid values of the other parameters
- * @step 2 Call elm_win_size_step_get with invalid value instead of the window object and NULL as value of the other parameters
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_step_get_n)
-{
- int x = 0;
- int y = 0;
-
-
- elm_win_size_step_get(NULL, &x, &y);
- elm_win_size_step_get(NULL, NULL, NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_size_step_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_size_step_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_size_step_get_p);
- tcase_add_test(tcase, utc_elm_win_size_step_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_size_step_get elm_win_size_step_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_size_step_get
+ * @{
+ * @objective Positive test case checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li NULL or pointer to int as the horizontal offset value
+ * @li NULL or pointer to int as the vertical offset value
+ *
+ * @procedure
+ * @step 1 Call elm_win_size_step_get with second (x) parameter as NULL
+ * @step 2 Call elm_win_size_step_get with third (y) parameter as NULL
+ * @step 3 Call elm_win_size_step_get with not NULL parameters
+ * @step 4 Compare returned values with the default value
+ * @step 5 Change default size base to real values (1300, 1300)
+ * @step 6 Call elm_win_size_step_get
+ * @step 7 Compare returned values
+ *
+ * @passcondition
+ * @li Test passes if returned values is same as expected values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_size_step_get_p)
+{
+
+ int x = 0;
+ int y = 0;
+
+ elm_win_size_step_get(main_win, NULL, &y);
+ elm_win_size_step_get(main_win, &x, NULL);
+ elm_win_size_step_get(main_win, &x, &y);
+ if ((x != 0) || (y != 0))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_size_step_set(main_win, 1300, 1300);
+ elm_win_size_step_get(main_win, &x, &y);
+ if ((x != 1300) || (y != 1300))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_size_step_set(main_win, 1300, -275);
+ elm_win_size_step_get(main_win, &x, &y);
+ if ((x != 1300) || (y != -275))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_size_step_set(main_win, -1000, 275);
+ elm_win_size_step_get(main_win, &x, &y);
+ if ((x != -1000) || (y != 275))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_size_step_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li NULL or pointer to int as the horizontal offset value
+ * @li NULL or pointer to int as the vertical offset value
+ *
+ * @procedure
+ * @step 1 Call elm_win_size_step_get with invalid value instead of the window object and valid values of the other parameters
+ * @step 2 Call elm_win_size_step_get with invalid value instead of the window object and NULL as value of the other parameters
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_size_step_get_n)
+{
+ int x = 0;
+ int y = 0;
+
+
+ elm_win_size_step_get(NULL, &x, &y);
+ elm_win_size_step_get(NULL, NULL, NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_size_step_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li horizontal offset value (50)
+ * @li vertical offset value (50)
+ *
+ * @procedure
+ * @step 1 Call elm_win_size_step_set with NULL instead of first argument
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_size_step_set_n)
+{
+ int x = 0;
+ int y = 0;
+
+
+ elm_win_size_step_set(NULL, 50, 50);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_size_step_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_size_step_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_size_step_get_p);
+ tcase_add_test(tcase, utc_elm_win_size_step_get_n);
+ tcase_add_test(tcase, utc_elm_win_size_step_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_size_step_set elm_win_size_step_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_size_step_set
- * @{
- * @objective Positive test case checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li horizontal offset value (1300/-1000)
- * @li vertical offset value (1300/-275/275)
- *
- * @procedure
- * @step 1 Change default size step to real values (1300, 1300)
- * @step 2 Call elm_win_size_step_set
- * @step 3 Compare returned values
- * @step 4 Change default size step to not real values (1300, -275)
- * @step 5 Call elm_win_size_step_set
- * @step 6 Compare returned values
- * @step 7 Change default size step to not real values (-1000, 275)
- * @step 8 Call elm_win_size_step_set
- * @step 9 Compare returned values
- *
- * @passcondition
- * @li Test passes if returned values is same as expected values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_step_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int x = 0;
- int y = 0;
-
- elm_win_size_step_set(main_win, 1300, 1300);
- elm_win_size_step_get(main_win, &x, &y);
- if ((x != 1300) || (y != 1300))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_size_step_set(main_win, 1300, -275);
- elm_win_size_step_get(main_win, &x, &y);
- if ((x != 1300) || (y != -275))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_size_step_set(main_win, -1000, 275);
- elm_win_size_step_get(main_win, &x, &y);
- if ((x != -1000) || (y != 275))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_size_step_set
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li horizontal offset value (50)
- * @li vertical offset value (50)
- *
- * @procedure
- * @step 1 Call elm_win_size_step_set with NULL instead of first argument
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_size_step_set_n)
-{
- int x = 0;
- int y = 0;
-
-
- elm_win_size_step_set(NULL, 50, 50);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_size_step_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_size_step_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_size_step_set_p);
- tcase_add_test(tcase, utc_elm_win_size_step_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_socket_listen_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
if (!elm_win_socket_listen(main_win, "name", 0, EINA_FALSE))
{
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_title_get elm_win_title_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_title_get
- * @{
- * @objective Positive test case checks if function call with valid values to get the window's
- * title works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Call elm_win_title_set with valid values
- * @step 2 Get the window's title
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_title_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- const char *ret = NULL;
-
- elm_win_title_set(main_win, "Child window");
- ret = elm_win_title_get(main_win);
- if (ret == NULL || strcmp(ret, "Child window"))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_title_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * title works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- *
- * @procedure
- * @step 1 Call elm_win_title_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is NULL and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_title_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_win_title_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_title_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_title_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_title_get_p);
- tcase_add_test(tcase, utc_elm_win_title_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_title_get elm_win_title_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_title_get
+ * @{
+ * @objective Positive test case checks if function call with valid values to get the window's
+ * title works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_title_set with valid values
+ * @step 2 Get the window's title
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_title_get_p)
+{
+
+ const char *ret = NULL;
+
+ elm_win_title_set(main_win, "Child window");
+ ret = elm_win_title_get(main_win);
+ if (ret == NULL || strcmp(ret, "Child window"))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_title_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * title works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_title_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is NULL and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_title_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_win_title_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_title_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * title works without segmentation fault
+ * @n Input Data:
+ * @li NULL, the window object
+ * @li NULL, "Child window" as the window's title
+ *
+ * @procedure
+ * @step 1 Call elm_win_title_set with invalid value instead of the window object
+ * @step 2 Call elm_win_title_set with invalid value instead of the window's title
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_title_set_n)
+{
+
+ UNITEST_FUNC_NEG(elm_win_title_set, main_win, "Child window")
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_title_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_title_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_title_get_p);
+ tcase_add_test(tcase, utc_elm_win_title_get_n);
+ tcase_add_test(tcase, utc_elm_win_title_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_title_set elm_win_title_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_title_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * title works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li "Child window" as the window's title
- *
- * @procedure
- * @step 1 Call elm_win_title_set with valid values
- * @step 2 Get the window's title
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_title_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- const char *ret = NULL;
-
- elm_win_title_set(main_win, "Child window");
- ret = elm_win_title_get(main_win);
- if (ret == NULL || strcmp(ret, "Child window"))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_title_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * title works without segmentation fault
- * @n Input Data:
- * @li NULL, the window object
- * @li NULL, "Child window" as the window's title
- *
- * @procedure
- * @step 1 Call elm_win_title_set with invalid value instead of the window object
- * @step 2 Call elm_win_title_set with invalid value instead of the window's title
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_title_set_n)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- UNITEST_FUNC_NEG(elm_win_title_set, main_win, "Child window")
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_title_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_title_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_title_set_p);
- tcase_add_test(tcase, utc_elm_win_title_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_trap_set_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Elm_Win_Trap *trap = malloc(sizeof(*trap));
if (trap == NULL)
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_urgent_get elm_win_urgent_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_urgent_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * urgent state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's urgent state to EINA_TRUE
- * @step 2 Call elm_win_urgent_get with valid value
- * @step 3 Set the window's urgent state to EINA_FALSE
- * @step 4 Call elm_win_urgent_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_urgent_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_urgent_set(main_win, EINA_TRUE);
- ret = elm_win_urgent_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_urgent_set(main_win, EINA_FALSE);
- ret = elm_win_urgent_get(main_win);
- 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 elm_win_urgent_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * urgent state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_urgent_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_urgent_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_urgent_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_urgent_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_urgent_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_urgent_get_p);
- tcase_add_test(tcase, utc_elm_win_urgent_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_urgent_get elm_win_urgent_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_urgent_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * urgent state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's urgent state to EINA_TRUE
+ * @step 2 Call elm_win_urgent_get with valid value
+ * @step 3 Set the window's urgent state to EINA_FALSE
+ * @step 4 Call elm_win_urgent_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_urgent_get_p)
+{
+
+ Eina_Bool ret = EINA_FALSE;
+
+ elm_win_urgent_set(main_win, EINA_TRUE);
+ ret = elm_win_urgent_get(main_win);
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_urgent_set(main_win, EINA_FALSE);
+ ret = elm_win_urgent_get(main_win);
+ 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 elm_win_urgent_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * urgent state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_urgent_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_urgent_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_urgent_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_urgent_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * urgent state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's urgent state
+ *
+ * @procedure
+ * @step 1 Call elm_win_urgent_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_urgent_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_urgent_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_urgent_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_urgent_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_urgent_get_p);
+ tcase_add_test(tcase, utc_elm_win_urgent_get_n);
+ tcase_add_test(tcase, utc_elm_win_urgent_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_urgent_set elm_win_urgent_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_urgent_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * urgent state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's urgent state
- *
- * @procedure
- * @step 1 Call elm_win_urgent_set with EINA_TRUE as the window's urgent state
- * @step 2 Get the window's urgent state
- * @step 3 Call elm_win_urgent_set with with EINA_FALSE as the window's urgent state
- * @step 4 Get the window's urgent state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_urgent_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- Eina_Bool ret = EINA_FALSE;
-
- elm_win_urgent_set(main_win, EINA_TRUE);
- ret = elm_win_urgent_get(main_win);
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- elm_win_urgent_set(main_win, EINA_FALSE);
- ret = elm_win_urgent_get(main_win);
- 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 elm_win_urgent_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * urgent state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's urgent state
- *
- * @procedure
- * @step 1 Call elm_win_urgent_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_urgent_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_urgent_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_urgent_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_urgent_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_urgent_set_p);
- tcase_add_test(tcase, utc_elm_win_urgent_set_n);
- return tcase;
-}
*/
START_TEST(utc_elm_win_window_id_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Ecore_Window *ewin = NULL;
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-static Eina_Bool ret = EINA_FALSE;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_withdrawn_get elm_win_withdrawn_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
- elm_win_withdrawn_set(main_win, EINA_TRUE);
- return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _set_timer_cb_p2(void* data)
-{
- elm_win_withdrawn_set(main_win, EINA_FALSE);
- return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _get_and_quit_timer_cb_p(void *data)
-{
- ret = elm_win_withdrawn_get(main_win);
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_win_withdrawn_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the window's
- * withdrawn state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window's withdrawn state to EINA_TRUE
- * @step 2 Call elm_win_withdrawn_get with valid value
- * @step 3 Set the window's withdrawn state to EINA_FALSE
- * @step 4 Call elm_win_withdrawn_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_withdrawn_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_timer_add(2, _set_timer_cb_p, NULL);
- ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
- ecore_main_loop_begin();
-
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_timer_add(2, _set_timer_cb_p2, NULL);
- ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
- ecore_main_loop_begin();
-
- 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 elm_win_withdrawn_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the window's
- * withdrawn state works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_withdrawn_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_withdrawn_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_withdrawn_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_withdrawn_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_withdrawn_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_withdrawn_get_p);
- tcase_add_test(tcase, utc_elm_win_withdrawn_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+static Eina_Bool ret = EINA_FALSE;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_withdrawn_get elm_win_withdrawn_get()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+static Eina_Bool _set_timer_cb_p(void* data)
+{
+ elm_win_withdrawn_set(main_win, EINA_TRUE);
+ return ECORE_CALLBACK_CANCEL;
+}
+
+static Eina_Bool _set_timer_cb_p2(void* data)
+{
+ elm_win_withdrawn_set(main_win, EINA_FALSE);
+ return ECORE_CALLBACK_CANCEL;
+}
+
+static Eina_Bool _get_and_quit_timer_cb_p(void *data)
+{
+ ret = elm_win_withdrawn_get(main_win);
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup elm_win_withdrawn_get
+ * @{
+ * @objective Positive test case checks if function call with valid value to get the window's
+ * withdrawn state works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ *
+ * @procedure
+ * @step 1 Set the window's withdrawn state to EINA_TRUE
+ * @step 2 Call elm_win_withdrawn_get with valid value
+ * @step 3 Set the window's withdrawn state to EINA_FALSE
+ * @step 4 Call elm_win_withdrawn_get with valid value
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_withdrawn_get_p)
+{
+
+ ecore_timer_add(2, _set_timer_cb_p, NULL);
+ ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
+ ecore_main_loop_begin();
+
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ ecore_timer_add(2, _set_timer_cb_p2, NULL);
+ ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
+ ecore_main_loop_begin();
+
+ 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 elm_win_withdrawn_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the window's
+ * withdrawn state works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_withdrawn_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is EINA_FALSE and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_withdrawn_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_win_withdrawn_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_withdrawn_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value to set the window's
+ * withdrawn state works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_TRUE as the window's withdrawn state
+ *
+ * @procedure
+ * @step 1 Call elm_win_withdrawn_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_withdrawn_set_n)
+{
+ CREATE_CHECKED_ARGS_ARRAY(1, 0)
+ UNITEST_FUNC_NEG_CA(elm_win_withdrawn_set, main_win, EINA_TRUE)
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_withdrawn_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_withdrawn_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_withdrawn_get_p);
+ tcase_add_test(tcase, utc_elm_win_withdrawn_get_n);
+ tcase_add_test(tcase, utc_elm_win_withdrawn_set_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-static Eina_Bool ret = EINA_FALSE;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_withdrawn_set elm_win_withdrawn_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
- elm_win_withdrawn_set(main_win, EINA_TRUE);
- return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _set_timer_cb_p2(void* data)
-{
- elm_win_withdrawn_set(main_win, EINA_FALSE);
- return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _get_and_quit_timer_cb_p(void *data)
-{
- ret = elm_win_withdrawn_get(main_win);
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_win_withdrawn_set
- * @{
- * @objective Positive test case checks if function call with valid values to set the window's
- * withdrawn state works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li EINA_TRUE, EINA_FALSE as the window's withdrawn state
- *
- * @procedure
- * @step 1 Call elm_win_withdrawn_set with EINA_TRUE as the window's withdrawn state
- * @step 2 Get the window's withdrawn state
- * @step 3 Call elm_win_withdrawn_set with with EINA_FALSE as the window's withdrawn state
- * @step 4 Get the window's withdrawn state
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_withdrawn_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- ecore_timer_add(2, _set_timer_cb_p, NULL);
- ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
- ecore_main_loop_begin();
-
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- ecore_timer_add(2, _set_timer_cb_p2, NULL);
- ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
- ecore_main_loop_begin();
-
- 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 elm_win_withdrawn_set
- * @{
- * @objective Negative test case checks if function call with invalid value to set the window's
- * withdrawn state works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_TRUE as the window's withdrawn state
- *
- * @procedure
- * @step 1 Call elm_win_withdrawn_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_withdrawn_set_n)
-{
- CREATE_CHECKED_ARGS_ARRAY(1, 0)
- UNITEST_FUNC_NEG_CA(elm_win_withdrawn_set, main_win, EINA_TRUE)
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_withdrawn_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_withdrawn_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_withdrawn_set_p);
- tcase_add_test(tcase, utc_elm_win_withdrawn_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_wm_rotation_available_rotations_get elm_win_wm_rotation_available_rotations_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the valiable rotations
- * of the window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li pointer to array of the available rotations
- * @li pointer to array size
- *
- * @procedure
- * @step 1 Set 5 available rotations
- * @step 2 Call elm_win_wm_rotation_available_rotations_get to get available rotations
- * @step 3 Compare two arrays
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int rotations[] = {0, 90, 180, 270};
-
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 4);
-
- int* get_rotations = NULL;
- unsigned int cnt = 0;
- if (!elm_win_wm_rotation_available_rotations_get(main_win, &get_rotations, &cnt))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- if ( (cnt != 4) ||
- (get_rotations[0] != 0) || (get_rotations[1] != 90) || (get_rotations[2] != 180) ||
- (get_rotations[3] != 270)) {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_get
- * @{
- * @objective Negative test case 1 checks if function call with NULL instead of the window object
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li pointer to array of the available rotations
- * @li pointer to array size
- *
- * @procedure
- * @step 1 Set 3 available rotations
- * @step 2 Call elm_win_wm_rotation_available_rotations_get with valid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_get_n_1)
-{
-
- int rotations[] = {0, 90, 180};
- int* get_rotations = NULL;
- unsigned int cnt = 0;
-
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
- elm_win_wm_rotation_available_rotations_get(NULL, &get_rotations, &cnt);
- if ((get_rotations != NULL) || (cnt != 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 elm_win_wm_rotation_available_rotations_get
- * @{
- * @objective Negative test case 2 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li NULL instead of the array of the available rotations
- * @li pointer to array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_get with valid value instead of the array of the available rotations
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_get_n_2)
-{
-
- unsigned int cnt = 0;
- elm_win_wm_rotation_available_rotations_get(main_win, NULL, &cnt);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_get
- * @{
- * @objective Negative test case 3 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li array of the available rotations
- * @li NULL instead of array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_get with invalid value of array size
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_get_n_3)
-{
-
- int rotations[] = {0, 90, 180};
- int* get_rotations = NULL;
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
- elm_win_wm_rotation_available_rotations_get(main_win, &get_rotations, NULL);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_wm_rotation_available_rotations_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_wm_rotation_available_rotations_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_get_p);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_get_n_1);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_get_n_2);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_get_n_3);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_wm_rotation_available_rotations_set elm_win_wm_rotation_available_rotations_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_set
+ * @{
+ * @objective Positive test case 1 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li array of the available rotations
+ * @li array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_set with 5 available rotations
+ * @step 2 Get set of available rotations
+ * @step 3 Compare two arrays
+ *
+ * @passcondition
+ * @li Test passes if returned values is same as expected values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_set_p_1)
+{
+
+ int rotations[] = {0, 90, 180, 270};
+
+ elm_win_wm_rotation_available_rotations_set(main_win, rotations, 4);
+
+ int* get_rotations = NULL;
+ unsigned int cnt = 0;
+ if (!elm_win_wm_rotation_available_rotations_get(main_win, &get_rotations, &cnt))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ if ( (cnt != 4) ||
+ (get_rotations[0] != 0) || (get_rotations[1] != 90) || (get_rotations[2] != 180) ||
+ (get_rotations[3] != 270)){
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_set
+ * @{
+ * @objective Positive test case 2 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li array of the available rotations
+ * @li array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_set with 3 available rotations
+ * @step 2 Rotate window at specified angles
+ * @step 3 Get window rotations
+ *
+ * @passcondition
+ * @li Test passes if returned values is same as specified values and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_set_p_2)
+{
+
+ int rotations[] = {0, 90, 180};
+
+ elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
+
+ elm_win_wm_rotation_manual_rotation_done_set(main_win, 0);
+ if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 0)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_wm_rotation_manual_rotation_done_set(main_win, 90);
+ if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 90)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_wm_rotation_manual_rotation_done_set(main_win, 90);
+ if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 90)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_set
+ * @{
+ * @objective Negative test case 1 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li array of the available rotations
+ * @li array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_set with 3 available rotations
+ * @step 2 Rotate window at angle that are not available
+ * @step 3 Get window rotation
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as last available value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_1)
+{
+
+ int rotations[] = {0, 90, 180};
+
+ elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
+ elm_win_wm_rotation_manual_rotation_done_set(main_win, 90);
+
+ if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 90)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_set
+ * @{
+ * @objective Negative test case 2 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li array of the available rotations
+ * @li array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_2)
+{
+
+ int rotations[] = {0, 90, 180};
+
+ elm_win_wm_rotation_available_rotations_set(NULL, rotations, 3);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_set
+ * @{
+ * @objective Negative test case 3 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li NULL instead of the array of the available rotations
+ * @li array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_set with invalid value instead of the array of the available rotations
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_3)
+{
+
+ elm_win_wm_rotation_available_rotations_set(main_win, NULL, 0);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_set
+ * @{
+ * @objective Negative test case 4 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li array of the available rotations
+ * @li negative value as array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_set with invalid value of array size
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_4)
+{
+
+ int rotations[] = {0, 90, 180};
+ elm_win_wm_rotation_available_rotations_set(main_win, rotations, -10);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_get
+ * @{
+ * @objective Negative test case 1 checks if function call with NULL instead of the window object
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li pointer to array of the available rotations
+ * @li pointer to array size
+ *
+ * @procedure
+ * @step 1 Set 3 available rotations
+ * @step 2 Call elm_win_wm_rotation_available_rotations_get with valid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_get_n_1)
+{
+
+ int rotations[] = {0, 90, 180};
+ int* get_rotations = NULL;
+ unsigned int cnt = 0;
+
+ elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
+ elm_win_wm_rotation_available_rotations_get(NULL, &get_rotations, &cnt);
+ if ((get_rotations != NULL) || (cnt != 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 elm_win_wm_rotation_available_rotations_get
+ * @{
+ * @objective Negative test case 2 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li NULL instead of the array of the available rotations
+ * @li pointer to array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_get with valid value instead of the array of the available rotations
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_get_n_2)
+{
+
+ unsigned int cnt = 0;
+ elm_win_wm_rotation_available_rotations_get(main_win, NULL, &cnt);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_available_rotations_get
+ * @{
+ * @objective Negative test case 3 checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li array of the available rotations
+ * @li NULL instead of array size
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_available_rotations_get with invalid value of array size
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_available_rotations_get_n_3)
+{
+
+ int rotations[] = {0, 90, 180};
+ int* get_rotations = NULL;
+ elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
+ elm_win_wm_rotation_available_rotations_get(main_win, &get_rotations, NULL);
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_wm_rotation_available_rotations_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_wm_rotation_available_rotations_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_p_1);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_p_2);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_1);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_2);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_3);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_4);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_get_n_1);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_get_n_2);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_get_n_3);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_wm_rotation_available_rotations_set elm_win_wm_rotation_available_rotations_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_set
- * @{
- * @objective Positive test case 1 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li array of the available rotations
- * @li array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_set with 5 available rotations
- * @step 2 Get set of available rotations
- * @step 3 Compare two arrays
- *
- * @passcondition
- * @li Test passes if returned values is same as expected values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_set_p_1)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int rotations[] = {0, 90, 180, 270};
-
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 4);
-
- int* get_rotations = NULL;
- int cnt = 0;
- elm_win_wm_rotation_available_rotations_get(main_win, &get_rotations, &cnt);
-
- if ( (cnt != 4) ||
- (get_rotations[0] != 0) || (get_rotations[1] != 90) || (get_rotations[2] != 180) ||
- (get_rotations[3] != 270)){
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_set
- * @{
- * @objective Positive test case 2 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li array of the available rotations
- * @li array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_set with 3 available rotations
- * @step 2 Rotate window at specified angles
- * @step 3 Get window rotations
- *
- * @passcondition
- * @li Test passes if returned values is same as specified values and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_set_p_2)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int rotations[] = {0, 90, 180};
-
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
-
- elm_win_wm_rotation_manual_rotation_done_set(main_win, 0);
- if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_wm_rotation_manual_rotation_done_set(main_win, 90);
- if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 90)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_wm_rotation_manual_rotation_done_set(main_win, 90);
- if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 90)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_set
- * @{
- * @objective Negative test case 1 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li array of the available rotations
- * @li array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_set with 3 available rotations
- * @step 2 Rotate window at angle that are not available
- * @step 3 Get window rotation
- *
- * @passcondition
- * @li Test passes if returned value is same as last available value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_1)
-{
-
- int rotations[] = {0, 90, 180};
-
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 3);
- elm_win_wm_rotation_manual_rotation_done_set(main_win, 90);
-
- if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != 90)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_set
- * @{
- * @objective Negative test case 2 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li array of the available rotations
- * @li array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_2)
-{
-
- int rotations[] = {0, 90, 180};
-
- elm_win_wm_rotation_available_rotations_set(NULL, rotations, 3);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_set
- * @{
- * @objective Negative test case 3 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li NULL instead of the array of the available rotations
- * @li array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_set with invalid value instead of the array of the available rotations
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_3)
-{
-
- elm_win_wm_rotation_available_rotations_set(main_win, NULL, 0);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_available_rotations_set
- * @{
- * @objective Negative test case 4 checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li array of the available rotations
- * @li negative value as array size
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_available_rotations_set with invalid value of array size
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_available_rotations_set_n_4)
-{
-
- int rotations[] = {0, 90, 180};
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, -10);
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_wm_rotation_available_rotations_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_wm_rotation_available_rotations_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_p_1);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_p_2);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_1);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_2);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_3);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_available_rotations_set_n_4);
- return tcase;
-}
*/
START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
elm_win_wm_rotation_manual_rotation_done(ecore_evas_object_ecore_evas_get(main_win));
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_wm_rotation_manual_rotation_done_get elm_win_wm_rotation_manual_rotation_done_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_wm_rotation_manual_rotation_done_get
- * @{
- * @objective Positive test case checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the window rotations
- * @step 2 Call elm_win_wm_rotation_manual_rotation_done_get to get a rotation for specified window
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- int rotations[] = {0, 90, 180, -100, 400};
-
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 5);
-
- elm_win_wm_rotation_manual_rotation_done_set(main_win, EINA_TRUE);
- if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_wm_rotation_manual_rotation_done_set(main_win, EINA_FALSE);
- if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_manual_rotation_done_get
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_manual_rotation_done_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_get_n)
-{
-
- if (elm_win_wm_rotation_manual_rotation_done_get(NULL) != 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_elm_win_wm_rotation_manual_rotation_done_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_wm_rotation_manual_rotation_done_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_manual_rotation_done_get_p);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_manual_rotation_done_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+static Evas_Object *main_win = NULL;
+
+static Eina_Bool ret = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_wm_rotation_manual_rotation_done_set elm_win_wm_rotation_manual_rotation_done_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+ evas_object_show(main_win);
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+static Eina_Bool _set_timer_cb_p(void* data)
+{
+ elm_win_wm_rotation_manual_rotation_done_set(main_win, EINA_TRUE);
+ return ECORE_CALLBACK_CANCEL;
+}
+
+static Eina_Bool _get_and_quit_timer_cb_p(void *data)
+{
+ ret = elm_win_wm_rotation_manual_rotation_done_get(main_win);
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
+}
+
+/**
+ * @addtogroup elm_win_wm_rotation_manual_rotation_done_set
+ * @{
+ * @objective Positive test case checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li rotation angle
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_manual_rotation_done_set with available values
+ * @step 2 Get the window rotations
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_set_p)
+{
+
+
+ int rotations[] = {0, 90, 180, -100, 400};
+
+ elm_win_wm_rotation_available_rotations_set(main_win, rotations, 5);
+
+
+ ecore_timer_add(2, _set_timer_cb_p, NULL);
+ ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
+ ecore_main_loop_begin();
+
+ if (ret != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_wm_rotation_manual_rotation_done_set(main_win, EINA_TRUE);
+ if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != EINA_TRUE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_wm_rotation_manual_rotation_done_set(main_win, EINA_FALSE);
+ if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != EINA_FALSE)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_manual_rotation_done_set
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li EINA_FALSE
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_manual_rotation_done_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_set_n)
+{
+
+ elm_win_wm_rotation_manual_rotation_done_set(NULL, EINA_FALSE);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_manual_rotation_done_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_manual_rotation_done_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_get_n)
+{
+
+ if (elm_win_wm_rotation_manual_rotation_done_get(NULL) != 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_elm_win_wm_rotation_manual_rotation_done_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_wm_rotation_manual_rotation_done_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_manual_rotation_done_set_p);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_manual_rotation_done_set_n);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_manual_rotation_done_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-static Eina_Bool ret = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_wm_rotation_manual_rotation_done_set elm_win_wm_rotation_manual_rotation_done_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
- evas_object_show(main_win);
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-static Eina_Bool _set_timer_cb_p(void* data)
-{
- elm_win_wm_rotation_manual_rotation_done_set(main_win, EINA_TRUE);
- return ECORE_CALLBACK_CANCEL;
-}
-
-static Eina_Bool _get_and_quit_timer_cb_p(void *data)
-{
- ret = elm_win_wm_rotation_manual_rotation_done_get(main_win);
- ecore_main_loop_quit();
- return ECORE_CALLBACK_CANCEL;
-}
-
-/**
- * @addtogroup elm_win_wm_rotation_manual_rotation_done_set
- * @{
- * @objective Positive test case checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li rotation angle
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_manual_rotation_done_set with available values
- * @step 2 Get the window rotations
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- int rotations[] = {0, 90, 180, -100, 400};
-
- elm_win_wm_rotation_available_rotations_set(main_win, rotations, 5);
-
- ecore_timer_add(2, _set_timer_cb_p, NULL);
- ecore_timer_add(4, _get_and_quit_timer_cb_p, NULL);
- ecore_main_loop_begin();
-
- if (ret != EINA_TRUE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_wm_rotation_manual_rotation_done_set(main_win, EINA_FALSE);
- if (elm_win_wm_rotation_manual_rotation_done_get(main_win) != EINA_FALSE)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_manual_rotation_done_set
- * @{
- * @objective Negative test case checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li EINA_FALSE
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_manual_rotation_done_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_manual_rotation_done_set_n)
-{
-
- elm_win_wm_rotation_manual_rotation_done_set(NULL, EINA_FALSE);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_wm_rotation_manual_rotation_done_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_wm_rotation_manual_rotation_done_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_manual_rotation_done_set_p);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_manual_rotation_done_set_n);
- return tcase;
-}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-#include "../../utc_negative_unitest.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_wm_rotation_preferred_rotation_get elm_win_wm_rotation_preferred_rotation_get()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_wm_rotation_preferred_rotation_get
- * @{
- * @objective Positive test case checks if function call with valid value to get the preferred rotation
- * of the window works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- *
- * @procedure
- * @step 1 Set the preferred rotation of the window to 90 degrees
- * @step 2 Call elm_win_wm_rotation_preferred_rotation_get with valid value
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_preferred_rotation_get_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- int rotation = 0;
-
- elm_win_wm_rotation_preferred_rotation_set(main_win, 90);
- rotation = elm_win_wm_rotation_preferred_rotation_get(main_win);
- if (rotation != 90)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_preferred_rotation_get
- * @{
- * @objective Negative test case checks if function call with invalid value to get the preferred rotation
- * of the window works properly and without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_preferred_rotation_get with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if returned value is 0 and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_preferred_rotation_get_n)
-{
- if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_wm_rotation_preferred_rotation_get, main_win))
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..%i", __FILE__, __LINE__, elm_win_wm_rotation_preferred_rotation_get(NULL));
- }
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-/**
- *@}
- */
-
-TCase * _utc_elm_win_wm_rotation_preferred_rotation_get()
-{
- TCase *tcase = tcase_create("utc_elm_win_wm_rotation_preferred_rotation_get");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_get_p);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_get_n);
- return tcase;
-}
--- /dev/null
+#include <check.h>
+#include <Elementary.h>
+#include "../utc_elm_common.h"
+#include "../../utc_negative_unitest.h"
+static Evas_Object *main_win = NULL;
+
+/**
+ * @addtogroup elm_win
+ * @{
+ * @defgroup elm_win_wm_rotation_preferred_rotation_set elm_win_wm_rotation_preferred_rotation_set()
+ *
+ * @precondition
+ * @step 1 Initialize Elementary
+ * @step 2 Create a main window
+ */
+static void
+setup(void)
+{
+ printf(" ============ Startup ============ \n");
+ UTC_ELM_INIT();
+ main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
+ if (main_win == NULL)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
+ }
+}
+
+static void
+teardown(void)
+{
+ if (main_win != NULL)
+ {
+ evas_object_del(main_win);
+ main_win = NULL;
+ }
+ elm_shutdown();
+ printf(" ============ Cleanup ============ \n");
+}
+
+/**
+ * @addtogroup elm_win_wm_rotation_preferred_rotation_set
+ * @{
+ * @objective Positive test case checks if function call with valid value
+ * works properly and without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li rotation angle
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_preferred_rotation_set with valid values of rotation
+ * @step 2 Get the window rotations
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as specified value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_preferred_rotation_set_p)
+{
+
+ int rotation = 0;
+ elm_win_wm_rotation_preferred_rotation_set(main_win, 90);
+ rotation = elm_win_wm_rotation_preferred_rotation_get(main_win);
+ if (rotation != 90)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+ elm_win_wm_rotation_preferred_rotation_set(main_win, 0);
+ if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 0)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_wm_rotation_preferred_rotation_set(main_win, 180);
+ if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 180)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_wm_rotation_preferred_rotation_set(main_win, 360);
+ if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 360)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_preferred_rotation_set
+ * @{
+ * @objective Negative test case 1 checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li the window object
+ * @li negative value or value that greater than 360
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_preferred_rotation_set with invalid value of rotation
+ *
+ * @passcondition
+ * @li Test passes if returned value is same as expected value and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_preferred_rotation_set_n_1)
+{
+
+ elm_win_wm_rotation_preferred_rotation_set(main_win, -180);
+ if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 180)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ elm_win_wm_rotation_preferred_rotation_set(main_win, 400);
+ if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 40)
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
+ }
+
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_preferred_rotation_set
+ * @{
+ * @objective Negative test case 2 checks if function call with invalid value works without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ * @li rotation angle
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_preferred_rotation_set with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_preferred_rotation_set_n_2)
+{
+
+ elm_win_wm_rotation_preferred_rotation_set(NULL, 180);
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+
+/**
+ * @addtogroup elm_win_wm_rotation_preferred_rotation_get
+ * @{
+ * @objective Negative test case checks if function call with invalid value to get the preferred rotation
+ * of the window works properly and without segmentation fault
+ * @n Input Data:
+ * @li NULL instead of the window object
+ *
+ * @procedure
+ * @step 1 Call elm_win_wm_rotation_preferred_rotation_get with invalid value instead of the window object
+ *
+ * @passcondition
+ * @li Test passes if returned value is 0 and there is no segmentation fault
+ * @}
+ */
+START_TEST(utc_elm_win_wm_rotation_preferred_rotation_get_n)
+{
+ if (TEST_FAIL == UNITEST_FUNC_NEG_RET(-1, elm_win_wm_rotation_preferred_rotation_get, main_win))
+ {
+ ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..%i", __FILE__, __LINE__, elm_win_wm_rotation_preferred_rotation_get(NULL));
+ }
+ printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
+}
+END_TEST
+/**
+ *@}
+ */
+
+TCase * _utc_elm_win_wm_rotation_preferred_rotation_get_set()
+{
+ TCase *tcase = tcase_create("utc_elm_win_wm_rotation_preferred_rotation_get_set");
+ tcase_set_timeout(tcase, 30);
+ tcase_add_checked_fixture(tcase, setup, teardown);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_set_p);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_set_n_1);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_set_n_2);
+ tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_get_n);
+ return tcase;
+}
+++ /dev/null
-#include <check.h>
-#include <Elementary.h>
-#include "../utc_elm_common.h"
-static Evas_Object *main_win = NULL;
-
-/**
- * @addtogroup elm_win
- * @{
- * @defgroup elm_win_wm_rotation_preferred_rotation_set elm_win_wm_rotation_preferred_rotation_set()
- *
- * @precondition
- * @step 1 Initialize Elementary
- * @step 2 Create a main window
- */
-static void
-setup(void)
-{
- printf(" ============ Startup ============ \n");
- UTC_ELM_INIT();
- main_win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- }
-}
-
-static void
-teardown(void)
-{
- if (main_win != NULL)
- {
- evas_object_del(main_win);
- main_win = NULL;
- }
- elm_shutdown();
- printf(" ============ Cleanup ============ \n");
-}
-
-/**
- * @addtogroup elm_win_wm_rotation_preferred_rotation_set
- * @{
- * @objective Positive test case checks if function call with valid value
- * works properly and without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li rotation angle
- *
- * @procedure
- * @step 1 Call elm_win_wm_rotation_preferred_rotation_set with valid values of rotation
- * @step 2 Get the window rotations
- *
- * @passcondition
- * @li Test passes if returned value is same as specified value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_preferred_rotation_set_p)
-{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
-
- elm_win_wm_rotation_preferred_rotation_set(main_win, 0);
- if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 0)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_wm_rotation_preferred_rotation_set(main_win, 180);
- if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 180)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_wm_rotation_preferred_rotation_set(main_win, 360);
- if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 360)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_preferred_rotation_set
- * @{
- * @objective Negative test case 1 checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li the window object
- * @li negative value or value that greater than 360
- * @procedure
- * @step 1 Call elm_win_wm_rotation_preferred_rotation_set with invalid value of rotation
- *
- * @passcondition
- * @li Test passes if returned value is same as expected value and there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_preferred_rotation_set_n_1)
-{
-
- elm_win_wm_rotation_preferred_rotation_set(main_win, -180);
- if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 180)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- elm_win_wm_rotation_preferred_rotation_set(main_win, 400);
- if (elm_win_wm_rotation_preferred_rotation_get(main_win) != 40)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- * @addtogroup elm_win_wm_rotation_preferred_rotation_set
- * @{
- * @objective Negative test case 2 checks if function call with invalid value works without segmentation fault
- * @n Input Data:
- * @li NULL instead of the window object
- * @li rotation angle
- * @procedure
- * @step 1 Call elm_win_wm_rotation_preferred_rotation_set with invalid value instead of the window object
- *
- * @passcondition
- * @li Test passes if there is no segmentation fault
- * @}
- */
-START_TEST(utc_elm_win_wm_rotation_preferred_rotation_set_n_2)
-{
-
- elm_win_wm_rotation_preferred_rotation_set(NULL, 180);
- printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
-}
-END_TEST
-
-/**
- *@}
- */
-
-TCase * _utc_elm_win_wm_rotation_preferred_rotation_set()
-{
- TCase *tcase = tcase_create("utc_elm_win_wm_rotation_preferred_rotation_set");
- tcase_set_timeout(tcase, 30);
- tcase_add_checked_fixture(tcase, setup, teardown);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_set_p);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_set_n_1);
- tcase_add_test(tcase, utc_elm_win_wm_rotation_preferred_rotation_set_n_2);
- return tcase;
-}
*/
START_TEST(utc_elm_win_wm_rotation_supported_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
-
//if (elm_win_wm_rotation_supported_get(main_win) != EINA_FALSE) { //Under Ubuntu
if (elm_win_wm_rotation_supported_get(main_win) != EINA_TRUE)
*/
START_TEST(utc_elm_win_xwindow_get_p)
{
- if (main_win == NULL)
- {
- ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- }
Ecore_X_Window ewin = NULL;