From: hyunho Date: Thu, 11 Apr 2019 06:06:53 +0000 (+0900) Subject: [UTC][notification][ACR-1384][Add test cases for notification-ex] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf8a2ead81be69c7ff8abbf5d5c2fa25c606b86e;p=test%2Ftct%2Fnative%2Fapi.git [UTC][notification][ACR-1384][Add test cases for notification-ex] Change-Id: I6c6687c08b7082b60571a62c206e4a8493283fa7 Signed-off-by: hyunho Signed-off-by: mk5004.lee --- diff --git a/src/utc/notification/CMakeLists.txt b/src/utc/notification/CMakeLists.txt index e774bfafa..90ff2e856 100644 --- a/src/utc/notification/CMakeLists.txt +++ b/src/utc/notification/CMakeLists.txt @@ -6,6 +6,22 @@ SET(RPM_NAME "core-${PKG_NAME}-tests") SET(CAPI_LIB "notification") SET(TC_SOURCES utc-notification.c + utc-notification-ex-manager.c + utc-notification-ex-reporter.c + utc-notification-ex-item.c + utc-notification-ex-image.c + utc-notification-ex-input_selector.c + utc-notification-ex-progress.c + utc-notification-ex-text.c + utc-notification-ex-time.c + utc-notification-ex-visibility_action.c + utc-notification-ex-app_control_action.c + utc-notification-ex-button.c + utc-notification-ex-chat_message.c + utc-notification-ex-checkbox.c + utc-notification-ex-entry.c + utc-notification-ex-event_info.c + utc-notification-ex-group.c ) PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED @@ -13,7 +29,7 @@ PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED capi-appfw-application capi-system-info glib-2.0 - dlog + dlog ) INCLUDE_DIRECTORIES( diff --git a/src/utc/notification/tct-notification-core.c b/src/utc/notification/tct-notification-core.c index 7e86e902a..ef7364414 100644 --- a/src/utc/notification/tct-notification-core.c +++ b/src/utc/notification/tct-notification-core.c @@ -22,9 +22,10 @@ #include #include #include -#include "tct_common.h" #include #include +#include "tct_common.h" +#include "utc-notification.h" @@ -40,14 +41,14 @@ #include "tct-notification-core_tv.h" #endif -#ifdef TIZENIOT +#ifdef TIZENIOT #include "tct-notification-core_tizeniot.h" #endif //TIZENIOT - - - + + + static bool app_create(void *data) @@ -93,9 +94,7 @@ static void app_control(app_control_h app_control, void *data) tc_array[i].cleanup(); } dlog_print(DLOG_INFO, "NativeTCT", "%s : Cleanup end", pszGetTCName); - CLOSE_UTC_ERRLOG(); - PRINT_TC_RESULT("%d",result); FREE_MEMORY_TC(pszGetTCName); return; } @@ -116,7 +115,7 @@ static void app_terminate(void *data) int main(int argc, char *argv[]) { int ret = 0; - + ui_app_lifecycle_callback_s event_callback = {0,}; event_callback.create = app_create; @@ -136,6 +135,7 @@ int main(int argc, char *argv[]) PRINT_TC_RESULT("%d",1); return ret; } + PRINT_TC_RESULT("%d", __result); dlog_print(DLOG_INFO, "NativeTCT", "[%s:%d] Application Package is Terminated", __FUNCTION__, __LINE__); return ret; diff --git a/src/utc/notification/tct-notification-core_mobile.h b/src/utc/notification/tct-notification-core_mobile.h index 439c9a7cc..ef2dc71f2 100644 --- a/src/utc/notification/tct-notification-core_mobile.h +++ b/src/utc/notification/tct-notification-core_mobile.h @@ -13,14 +13,46 @@ // See the License for the specific language governing permissions and // limitations under the License. // -#ifndef __TCT_NOTIFICATION-NATIVE_H__ -#define __TCT_NOTIFICATION-NATIVE_H__ +#ifndef __TCT_NOTIFICATION_NATIVE_H__ +#define __TCT_NOTIFICATION_NATIVE_H__ #include "testcase.h" #include "tct_common.h" extern void utc_notification_startup(void); extern void utc_notification_cleanup(void); +extern void utc_notification_ex_item_startup(void); +extern void utc_notification_ex_item_cleanup(void); +extern void utc_notification_ex_manager_startup(void); +extern void utc_notification_ex_manager_cleanup(void); +extern void utc_notification_ex_reporter_startup(void); +extern void utc_notification_ex_reporter_cleanup(void); +extern void utc_notification_ex_image_startup(void); +extern void utc_notification_ex_image_cleanup(void); +extern void utc_notification_ex_input_selector_startup(void); +extern void utc_notification_ex_input_selector_cleanup(void); +extern void utc_notification_ex_progress_startup(void); +extern void utc_notification_ex_progress_cleanup(void); +extern void utc_notification_ex_text_startup(void); +extern void utc_notification_ex_text_cleanup(void); +extern void utc_notification_ex_time_startup(void); +extern void utc_notification_ex_time_cleanup(void); +extern void utc_notification_ex_visibility_action_startup(void); +extern void utc_notification_ex_visibility_action_cleanup(void); +extern void utc_notification_ex_app_control_action_startup(void); +extern void utc_notification_ex_app_control_action_cleanup(void); +extern void utc_notification_ex_button_startup(void); +extern void utc_notification_ex_button_cleanup(void); +extern void utc_notification_ex_chat_message_startup(void); +extern void utc_notification_ex_chat_message_cleanup(void); +extern void utc_notification_ex_checkbox_startup(void); +extern void utc_notification_ex_checkbox_cleanup(void); +extern void utc_notification_ex_entry_startup(void); +extern void utc_notification_ex_entry_cleanup(void); +extern void utc_notification_ex_event_info_startup(void); +extern void utc_notification_ex_event_info_cleanup(void); +extern void utc_notification_ex_group_startup(void); +extern void utc_notification_ex_group_cleanup(void); extern int utc_notification_create_1_n(void); extern int utc_notification_create_2_n(void); @@ -283,6 +315,284 @@ extern int utc_notification_set_extension_image_size_n(void); extern int utc_notification_set_extension_image_size_p(void); extern int utc_notification_get_extension_image_size_n(void); extern int utc_notification_get_extension_image_size_p(void); +extern int utc_noti_ex_color_create_p(void); +extern int utc_noti_ex_color_create_n(void); +extern int utc_noti_ex_color_destroy_p(void); +extern int utc_noti_ex_color_destroy_n(void); +extern int utc_noti_ex_color_get_alpha_p(void); +extern int utc_noti_ex_color_get_alpha_n(void); +extern int utc_noti_ex_color_get_red_p(void); +extern int utc_noti_ex_color_get_red_n(void); +extern int utc_noti_ex_color_get_green_p(void); +extern int utc_noti_ex_color_get_green_n(void); +extern int utc_noti_ex_color_get_blue_p(void); +extern int utc_noti_ex_color_get_blue_n(void); +extern int utc_noti_ex_padding_create_p(void); +extern int utc_noti_ex_padding_create_n(void); +extern int utc_noti_ex_padding_destroy_p(void); +extern int utc_noti_ex_padding_destroy_n(void); +extern int utc_noti_ex_padding_get_left_p(void); +extern int utc_noti_ex_padding_get_left_n(void); +extern int utc_noti_ex_padding_get_top_p(void); +extern int utc_noti_ex_padding_get_top_n(void); +extern int utc_noti_ex_padding_get_right_p(void); +extern int utc_noti_ex_padding_get_right_n(void); +extern int utc_noti_ex_padding_get_bottom_p(void); +extern int utc_noti_ex_padding_get_bottom_n(void); +extern int utc_noti_ex_geometry_create_p(void); +extern int utc_noti_ex_geometry_create_n(void); +extern int utc_noti_ex_geometry_destroy_p(void); +extern int utc_noti_ex_geometry_destroy_n(void); +extern int utc_noti_ex_geometry_get_x_p(void); +extern int utc_noti_ex_geometry_get_x_n(void); +extern int utc_noti_ex_geometry_get_y_p(void); +extern int utc_noti_ex_geometry_get_y_n(void); +extern int utc_noti_ex_geometry_get_width_p(void); +extern int utc_noti_ex_geometry_get_width_n(void); +extern int utc_noti_ex_geometry_get_height_p(void); +extern int utc_noti_ex_geometry_get_height_n(void); +extern int utc_noti_ex_style_create_p(void); +extern int utc_noti_ex_style_create_n(void); +extern int utc_noti_ex_style_destroy_p(void); +extern int utc_noti_ex_style_destroy_n(void); +extern int utc_noti_ex_style_get_padding_p(void); +extern int utc_noti_ex_style_get_padding_n(void); +extern int utc_noti_ex_style_get_color_p(void); +extern int utc_noti_ex_style_get_color_n(void); +extern int utc_noti_ex_style_get_geometry_p(void); +extern int utc_noti_ex_style_get_geometry_n(void); +extern int utc_noti_ex_led_info_create_p(void); +extern int utc_noti_ex_led_info_create_n(void); +extern int utc_noti_ex_led_info_destroy_p(void); +extern int utc_noti_ex_led_info_destroy_n(void); +extern int utc_noti_ex_led_info_set_on_period_p(void); +extern int utc_noti_ex_led_info_set_on_period_n(void); +extern int utc_noti_ex_led_info_get_on_period_p(void); +extern int utc_noti_ex_led_info_get_on_period_n(void); +extern int utc_noti_ex_led_info_set_off_period_p(void); +extern int utc_noti_ex_led_info_set_off_period_n(void); +extern int utc_noti_ex_led_info_get_off_period_p(void); +extern int utc_noti_ex_led_info_get_off_period_n(void); +extern int utc_noti_ex_led_info_get_color_p(void); +extern int utc_noti_ex_led_info_get_color_n(void); +extern int utc_noti_ex_action_destroy_p(void); +extern int utc_noti_ex_action_destroy_n(void); +extern int utc_noti_ex_action_get_type_p(void); +extern int utc_noti_ex_action_get_type_n(void); +extern int utc_noti_ex_action_is_local_p(void); +extern int utc_noti_ex_action_is_local_n(void); +extern int utc_noti_ex_action_execute_p(void); +extern int utc_noti_ex_action_execute_n(void); +extern int utc_noti_ex_action_get_extra_p(void); +extern int utc_noti_ex_action_get_extra_n(void); +extern int utc_noti_ex_item_info_get_hide_time_p(void); +extern int utc_noti_ex_item_info_get_hide_time_n(void); +extern int utc_noti_ex_item_info_set_hide_time_p(void); +extern int utc_noti_ex_item_info_set_hide_time_n(void); +extern int utc_noti_ex_item_info_get_delete_time_p(void); +extern int utc_noti_ex_item_info_get_delete_time_n(void); +extern int utc_noti_ex_item_info_set_delete_time_p(void); +extern int utc_noti_ex_item_info_set_delete_time_n(void); +extern int utc_noti_ex_item_info_get_time_p(void); +extern int utc_noti_ex_item_info_get_time_n(void); +extern int utc_noti_ex_item_destroy_p(void); +extern int utc_noti_ex_item_destroy_p_n(void); +extern int utc_noti_ex_item_find_by_id_p(void); +extern int utc_noti_ex_item_find_by_id_n(void); +extern int utc_noti_ex_item_get_type_p(void); +extern int utc_noti_ex_item_get_type_n(void); +extern int utc_noti_ex_item_get_shared_paths_p(void); +extern int utc_noti_ex_item_get_shared_paths_n(void); +extern int utc_noti_ex_item_get_id_p(void); +extern int utc_noti_ex_item_get_id_n(void); +extern int utc_noti_ex_item_set_id_p(void); +extern int utc_noti_ex_item_set_id_n(void); +extern int utc_noti_ex_item_get_action_p(void); +extern int utc_noti_ex_item_get_action_n(void); +extern int utc_noti_ex_item_set_action_p(void); +extern int utc_noti_ex_item_set_action_n(void); +extern int utc_noti_ex_item_get_style_p(void); +extern int utc_noti_ex_item_get_style_n(void); +extern int utc_noti_ex_item_set_style_p(void); +extern int utc_noti_ex_item_set_style_n(void); +extern int utc_noti_ex_item_set_visible_p(void); +extern int utc_noti_ex_item_set_visible_n(void); +extern int utc_noti_ex_item_get_visible_p(void); +extern int utc_noti_ex_item_get_visible_n(void); +extern int utc_noti_ex_item_set_enable_p(void); +extern int utc_noti_ex_item_set_enable_n(void); +extern int utc_noti_ex_item_get_enable_p(void); +extern int utc_noti_ex_item_get_enable_n(void); +extern int utc_noti_ex_item_add_receiver_p(void); +extern int utc_noti_ex_item_add_receiver_n(void); +extern int utc_noti_ex_item_get_receiver_list_p(void); +extern int utc_noti_ex_item_get_receiver_list_n(void); +extern int utc_noti_ex_item_remove_receiver_p(void); +extern int utc_noti_ex_item_remove_receiver_n(void); +extern int utc_noti_ex_item_set_policy_p(void); +extern int utc_noti_ex_item_set_policy_n(void); +extern int utc_noti_ex_item_get_policy_p(void); +extern int utc_noti_ex_item_get_policy_n(void); +extern int utc_noti_ex_item_set_channel_p(void); +extern int utc_noti_ex_item_set_channel_n(void); +extern int utc_noti_ex_item_get_channel_p(void); +extern int utc_noti_ex_item_get_channel_n(void); +extern int utc_noti_ex_item_set_led_info_p(void); +extern int utc_noti_ex_item_set_led_info_n(void); +extern int utc_noti_ex_item_get_led_info_p(void); +extern int utc_noti_ex_item_get_led_info_n(void); +extern int utc_noti_ex_item_set_sound_path_p(void); +extern int utc_noti_ex_item_set_sound_path_n(void); +extern int utc_noti_ex_item_get_sound_path_p(void); +extern int utc_noti_ex_item_get_sound_path_n(void); +extern int utc_noti_ex_item_set_vibration_path_p(void); +extern int utc_noti_ex_item_set_vibration_path_n(void); +extern int utc_noti_ex_item_get_vibration_path_p(void); +extern int utc_noti_ex_item_get_vibration_path_n(void); +extern int utc_noti_ex_item_get_info_p(void); +extern int utc_noti_ex_item_get_info_n(void); +extern int utc_noti_ex_item_get_sender_app_id_p(void); +extern int utc_noti_ex_item_get_sender_app_id_n(void); +extern int utc_noti_ex_item_set_tag_p(void); +extern int utc_noti_ex_item_set_tag_n(void); +extern int utc_noti_ex_item_get_tag_p(void); +extern int utc_noti_ex_item_get_tag_n(void); +extern int utc_noti_ex_manager_create_p(void); +extern int utc_noti_ex_manager_create_n(void); +extern int utc_noti_ex_manager_destroy_p(void); +extern int utc_noti_ex_manager_destroy_n(void); +extern int utc_noti_ex_manager_get_p(void); +extern int utc_noti_ex_manager_get_n(void); +extern int utc_noti_ex_manager_update_p(void); +extern int utc_noti_ex_manager_update_n(void); +extern int utc_noti_ex_manager_delete_p(void); +extern int utc_noti_ex_manager_delete_n(void); +extern int utc_noti_ex_manager_delete_all_p(void); +extern int utc_noti_ex_manager_delete_all_n(void); +extern int utc_noti_ex_manager_hide_p(void); +extern int utc_noti_ex_manager_hide_n(void); +extern int utc_noti_ex_manager_find_by_root_id_p(void); +extern int utc_noti_ex_manager_find_by_root_id_n(void); +extern int utc_noti_ex_manager_send_error_p(void); +extern int utc_noti_ex_manager_send_error_n(void); +extern int utc_noti_ex_manager_get_notification_count_p(void); +extern int utc_noti_ex_manager_get_notification_count_n(void); +extern int utc_noti_ex_reporter_create_p(void); +extern int utc_noti_ex_reporter_create_n(void); +extern int utc_noti_ex_reporter_destroy_p(void); +extern int utc_noti_ex_reporter_destroy_n(void); +extern int utc_noti_ex_reporter_send_error_p(void); +extern int utc_noti_ex_reporter_send_error_n(void); +extern int utc_noti_ex_reporter_post_p(void); +extern int utc_noti_ex_reporter_post_n(void); +extern int utc_noti_ex_reporter_post_list_p(void); +extern int utc_noti_ex_reporter_post_list_n(void); +extern int utc_noti_ex_reporter_update_p(void); +extern int utc_noti_ex_reporter_update_n(void); +extern int utc_noti_ex_reporter_delete_p(void); +extern int utc_noti_ex_reporter_delete_n(void); +extern int utc_noti_ex_reporter_delete_all_p(void); +extern int utc_noti_ex_reporter_delete_all_n(void); +extern int utc_noti_ex_reporter_find_by_root_id_p(void); +extern int utc_noti_ex_reporter_find_by_root_id_n(void); +extern int utc_noti_ex_item_image_create_p(void); +extern int utc_noti_ex_item_image_create_n(void); +extern int utc_noti_ex_item_image_get_image_path_p(void); +extern int utc_noti_ex_item_image_get_image_path_n(void); +extern int utc_noti_ex_item_input_selector_create_p(void); +extern int utc_noti_ex_item_input_selector_create_n(void); +extern int utc_noti_ex_item_input_selector_set_contents_p(void); +extern int utc_noti_ex_item_input_selector_set_contents_n(void); +extern int utc_noti_ex_item_input_selector_get_contents_p(void); +extern int utc_noti_ex_item_input_selector_get_contents_n(void); +extern int utc_noti_ex_item_progress_create_p(void); +extern int utc_noti_ex_item_progress_create_n(void); +extern int utc_noti_ex_item_progress_set_current_p(void); +extern int utc_noti_ex_item_progress_set_current_n(void); +extern int utc_noti_ex_item_progress_get_current_p(void); +extern int utc_noti_ex_item_progress_get_current_n(void); +extern int utc_noti_ex_item_progress_get_min_p(void); +extern int utc_noti_ex_item_progress_get_min_n(void); +extern int utc_noti_ex_item_progress_get_max_p(void); +extern int utc_noti_ex_item_progress_get_max_n(void); +extern int utc_noti_ex_item_text_create_p(void); +extern int utc_noti_ex_item_text_create_n(void); +extern int utc_noti_ex_item_text_set_contents_p(void); +extern int utc_noti_ex_item_text_set_contents_n(void); +extern int utc_noti_ex_item_text_get_contents_p(void); +extern int utc_noti_ex_item_text_get_contents_n(void); +extern int utc_noti_ex_item_text_get_hyperlink_p(void); +extern int utc_noti_ex_item_text_get_hyperlink_n(void); +extern int utc_noti_ex_item_time_create_p(void); +extern int utc_noti_ex_item_time_create_n(void); +extern int utc_noti_ex_item_time_get_time_p(void); +extern int utc_noti_ex_item_time_get_time_n(void); +extern int utc_noti_ex_action_visibility_create_p(void); +extern int utc_noti_ex_action_visibility_create_n(void); +extern int utc_noti_ex_action_visibility_set_p(void); +extern int utc_noti_ex_action_visibility_set_n(void); +extern int utc_noti_ex_action_app_control_create_p(void); +extern int utc_noti_ex_action_app_control_create_n(void); +extern int utc_noti_ex_action_app_control_set_p(void); +extern int utc_noti_ex_action_app_control_set_n(void); +extern int utc_noti_ex_action_app_control_get_p(void); +extern int utc_noti_ex_action_app_control_get_n(void); +extern int utc_noti_ex_item_button_create_p(void); +extern int utc_noti_ex_item_button_create_n(void); +extern int utc_noti_ex_item_button_get_title_p(void); +extern int utc_noti_ex_item_button_get_title_n(void); +extern int utc_noti_ex_item_chat_message_create_p(void); +extern int utc_noti_ex_item_chat_message_create_n(void); +extern int utc_noti_ex_item_chat_message_get_name_p(void); +extern int utc_noti_ex_item_chat_message_get_name_n(void); +extern int utc_noti_ex_item_chat_message_get_text_p(void); +extern int utc_noti_ex_item_chat_message_get_text_n(void); +extern int utc_noti_ex_item_chat_message_get_image_p(void); +extern int utc_noti_ex_item_chat_message_get_image_n(void); +extern int utc_noti_ex_item_chat_message_get_time_p(void); +extern int utc_noti_ex_item_chat_message_get_time_n(void); +extern int utc_noti_ex_item_chat_message_get_message_type_p(void); +extern int utc_noti_ex_item_chat_message_get_message_type_n(void); +extern int utc_noti_ex_item_checkbox_create_p(void); +extern int utc_noti_ex_item_checkbox_create_n(void); +extern int utc_noti_ex_item_checkbox_get_title_p(void); +extern int utc_noti_ex_item_checkbox_get_title_n(void); +extern int utc_noti_ex_item_checkbox_is_checked_p(void); +extern int utc_noti_ex_item_checkbox_is_checked_n(void); +extern int utc_noti_ex_item_entry_create_p(void); +extern int utc_noti_ex_item_entry_create_n(void); +extern int utc_noti_ex_item_entry_get_text_p(void); +extern int utc_noti_ex_item_entry_get_text_n(void); +extern int utc_noti_ex_item_entry_set_text_p(void); +extern int utc_noti_ex_item_entry_set_text_n(void); +extern int utc_noti_ex_event_info_clone_p(void); +extern int utc_noti_ex_event_info_clone_n(void); +extern int utc_noti_ex_event_info_destroy_p(void); +extern int utc_noti_ex_event_info_destroy_n(void); +extern int utc_noti_ex_event_info_get_event_type_p(void); +extern int utc_noti_ex_event_info_get_event_type_n(void); +extern int utc_noti_ex_event_info_get_owner_p(void); +extern int utc_noti_ex_event_info_get_owner_n(void); +extern int utc_noti_ex_event_info_get_channel_p(void); +extern int utc_noti_ex_event_info_get_channel_n(void); +extern int utc_noti_ex_event_info_get_item_id_p(void); +extern int utc_noti_ex_event_info_get_item_id_n(void); +extern int utc_noti_ex_event_info_get_request_id_p(void); +extern int utc_noti_ex_event_info_get_request_id_n(void); +extern int utc_noti_ex_item_group_create_p(void); +extern int utc_noti_ex_item_group_create_n(void); +extern int utc_noti_ex_item_group_set_direction_p(void); +extern int utc_noti_ex_item_group_set_direction_n(void); +extern int utc_noti_ex_item_group_is_vertical_p(void); +extern int utc_noti_ex_item_group_is_vertical_n(void); +extern int utc_noti_ex_item_group_get_app_label_p(void); +extern int utc_noti_ex_item_group_get_app_label_n(void); +extern int utc_noti_ex_item_group_add_child_p(void); +extern int utc_noti_ex_item_group_add_child_n(void); +extern int utc_noti_ex_item_group_remove_child_p(void); +extern int utc_noti_ex_item_group_remove_child_n(void); +extern int utc_noti_ex_item_group_foreach_child_p(void); +extern int utc_noti_ex_item_group_foreach_child_n(void); testcase tc_array[] = { {"utc_notification_create_1_n",utc_notification_create_1_n,utc_notification_startup,utc_notification_cleanup}, @@ -546,6 +856,284 @@ testcase tc_array[] = { {"utc_notification_set_extension_image_size_p",utc_notification_set_extension_image_size_p,utc_notification_startup,utc_notification_cleanup}, {"utc_notification_get_extension_image_size_n",utc_notification_get_extension_image_size_n,utc_notification_startup,utc_notification_cleanup}, {"utc_notification_get_extension_image_size_p",utc_notification_get_extension_image_size_p,utc_notification_startup,utc_notification_cleanup}, + {"utc_noti_ex_color_create_p",utc_noti_ex_color_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_create_n",utc_noti_ex_color_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_destroy_p",utc_noti_ex_color_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_destroy_n",utc_noti_ex_color_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_alpha_p",utc_noti_ex_color_get_alpha_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_alpha_n",utc_noti_ex_color_get_alpha_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_red_p",utc_noti_ex_color_get_red_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_red_n",utc_noti_ex_color_get_red_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_green_p",utc_noti_ex_color_get_green_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_green_n",utc_noti_ex_color_get_green_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_blue_p",utc_noti_ex_color_get_blue_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_blue_n",utc_noti_ex_color_get_blue_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_create_p",utc_noti_ex_padding_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_create_n",utc_noti_ex_padding_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_destroy_p",utc_noti_ex_padding_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_destroy_n",utc_noti_ex_padding_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_left_p",utc_noti_ex_padding_get_left_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_left_n",utc_noti_ex_padding_get_left_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_top_p",utc_noti_ex_padding_get_top_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_top_n",utc_noti_ex_padding_get_top_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_right_p",utc_noti_ex_padding_get_right_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_right_n",utc_noti_ex_padding_get_right_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_bottom_p",utc_noti_ex_padding_get_bottom_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_bottom_n",utc_noti_ex_padding_get_bottom_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_create_p",utc_noti_ex_geometry_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_create_n",utc_noti_ex_geometry_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_destroy_p",utc_noti_ex_geometry_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_destroy_n",utc_noti_ex_geometry_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_x_p",utc_noti_ex_geometry_get_x_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_x_n",utc_noti_ex_geometry_get_x_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_y_p",utc_noti_ex_geometry_get_y_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_y_n",utc_noti_ex_geometry_get_y_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_width_p",utc_noti_ex_geometry_get_width_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_width_n",utc_noti_ex_geometry_get_width_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_height_p",utc_noti_ex_geometry_get_height_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_height_n",utc_noti_ex_geometry_get_height_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_create_p",utc_noti_ex_style_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_create_n",utc_noti_ex_style_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_destroy_p",utc_noti_ex_style_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_destroy_n",utc_noti_ex_style_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_padding_p",utc_noti_ex_style_get_padding_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_padding_n",utc_noti_ex_style_get_padding_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_color_p",utc_noti_ex_style_get_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_color_n",utc_noti_ex_style_get_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_geometry_p",utc_noti_ex_style_get_geometry_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_geometry_n",utc_noti_ex_style_get_geometry_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_create_p",utc_noti_ex_led_info_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_create_n",utc_noti_ex_led_info_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_destroy_p",utc_noti_ex_led_info_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_destroy_n",utc_noti_ex_led_info_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_on_period_p",utc_noti_ex_led_info_set_on_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_on_period_n",utc_noti_ex_led_info_set_on_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_on_period_p",utc_noti_ex_led_info_get_on_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_on_period_n",utc_noti_ex_led_info_get_on_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_off_period_p",utc_noti_ex_led_info_set_off_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_off_period_n",utc_noti_ex_led_info_set_off_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_off_period_p",utc_noti_ex_led_info_get_off_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_off_period_n",utc_noti_ex_led_info_get_off_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_color_p",utc_noti_ex_led_info_get_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_color_n",utc_noti_ex_led_info_get_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_destroy_p",utc_noti_ex_action_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_destroy_n",utc_noti_ex_action_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_type_p",utc_noti_ex_action_get_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_type_n",utc_noti_ex_action_get_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_is_local_p",utc_noti_ex_action_is_local_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_is_local_n",utc_noti_ex_action_is_local_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_execute_p",utc_noti_ex_action_execute_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_execute_n",utc_noti_ex_action_execute_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_extra_p",utc_noti_ex_action_get_extra_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_extra_n",utc_noti_ex_action_get_extra_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_hide_time_p",utc_noti_ex_item_info_get_hide_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_hide_time_n",utc_noti_ex_item_info_get_hide_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_hide_time_p",utc_noti_ex_item_info_set_hide_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_hide_time_n",utc_noti_ex_item_info_set_hide_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_delete_time_p",utc_noti_ex_item_info_get_delete_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_delete_time_n",utc_noti_ex_item_info_get_delete_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_delete_time_p",utc_noti_ex_item_info_set_delete_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_delete_time_n",utc_noti_ex_item_info_set_delete_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_time_p",utc_noti_ex_item_info_get_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_time_n",utc_noti_ex_item_info_get_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_destroy_p",utc_noti_ex_item_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_destroy_p_n",utc_noti_ex_item_destroy_p_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_id_p",utc_noti_ex_item_find_by_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_id_n",utc_noti_ex_item_find_by_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_type_p",utc_noti_ex_item_get_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_type_n",utc_noti_ex_item_get_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_shared_paths_p",utc_noti_ex_item_get_shared_paths_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_shared_paths_n",utc_noti_ex_item_get_shared_paths_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_id_p",utc_noti_ex_item_get_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_id_n",utc_noti_ex_item_get_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_id_p",utc_noti_ex_item_set_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_id_n",utc_noti_ex_item_set_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_action_p",utc_noti_ex_item_get_action_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_action_n",utc_noti_ex_item_get_action_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_action_p",utc_noti_ex_item_set_action_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_action_n",utc_noti_ex_item_set_action_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_style_p",utc_noti_ex_item_get_style_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_style_n",utc_noti_ex_item_get_style_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_style_p",utc_noti_ex_item_set_style_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_style_n",utc_noti_ex_item_set_style_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_visible_p",utc_noti_ex_item_set_visible_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_visible_n",utc_noti_ex_item_set_visible_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_visible_p",utc_noti_ex_item_get_visible_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_visible_n",utc_noti_ex_item_get_visible_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_enable_p",utc_noti_ex_item_set_enable_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_enable_n",utc_noti_ex_item_set_enable_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_enable_p",utc_noti_ex_item_get_enable_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_enable_n",utc_noti_ex_item_get_enable_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_add_receiver_p",utc_noti_ex_item_add_receiver_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_add_receiver_n",utc_noti_ex_item_add_receiver_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_receiver_list_p",utc_noti_ex_item_get_receiver_list_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_receiver_list_n",utc_noti_ex_item_get_receiver_list_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_remove_receiver_p",utc_noti_ex_item_remove_receiver_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_remove_receiver_n",utc_noti_ex_item_remove_receiver_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_policy_p",utc_noti_ex_item_set_policy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_policy_n",utc_noti_ex_item_set_policy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_policy_p",utc_noti_ex_item_get_policy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_policy_n",utc_noti_ex_item_get_policy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_channel_p",utc_noti_ex_item_set_channel_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_channel_n",utc_noti_ex_item_set_channel_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_channel_p",utc_noti_ex_item_get_channel_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_channel_n",utc_noti_ex_item_get_channel_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_led_info_p",utc_noti_ex_item_set_led_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_led_info_n",utc_noti_ex_item_set_led_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_led_info_p",utc_noti_ex_item_get_led_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_led_info_n",utc_noti_ex_item_get_led_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_sound_path_p",utc_noti_ex_item_set_sound_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_sound_path_n",utc_noti_ex_item_set_sound_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sound_path_p",utc_noti_ex_item_get_sound_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sound_path_n",utc_noti_ex_item_get_sound_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_vibration_path_p",utc_noti_ex_item_set_vibration_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_vibration_path_n",utc_noti_ex_item_set_vibration_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_vibration_path_p",utc_noti_ex_item_get_vibration_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_vibration_path_n",utc_noti_ex_item_get_vibration_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_info_p",utc_noti_ex_item_get_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_info_n",utc_noti_ex_item_get_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sender_app_id_p",utc_noti_ex_item_get_sender_app_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sender_app_id_n",utc_noti_ex_item_get_sender_app_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_tag_p",utc_noti_ex_item_set_tag_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_tag_n",utc_noti_ex_item_set_tag_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_tag_p",utc_noti_ex_item_get_tag_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_tag_n",utc_noti_ex_item_get_tag_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_manager_create_p",utc_noti_ex_manager_create_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_create_n",utc_noti_ex_manager_create_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_destroy_p",utc_noti_ex_manager_destroy_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_destroy_n",utc_noti_ex_manager_destroy_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_p",utc_noti_ex_manager_get_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_n",utc_noti_ex_manager_get_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_update_p",utc_noti_ex_manager_update_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_update_n",utc_noti_ex_manager_update_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_p",utc_noti_ex_manager_delete_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_n",utc_noti_ex_manager_delete_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_all_p",utc_noti_ex_manager_delete_all_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_all_n",utc_noti_ex_manager_delete_all_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_hide_p",utc_noti_ex_manager_hide_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_hide_n",utc_noti_ex_manager_hide_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_find_by_root_id_p",utc_noti_ex_manager_find_by_root_id_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_find_by_root_id_n",utc_noti_ex_manager_find_by_root_id_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_send_error_p",utc_noti_ex_manager_send_error_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_send_error_n",utc_noti_ex_manager_send_error_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_notification_count_p",utc_noti_ex_manager_get_notification_count_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_notification_count_n",utc_noti_ex_manager_get_notification_count_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_reporter_create_p",utc_noti_ex_reporter_create_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_create_n",utc_noti_ex_reporter_create_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_destroy_p",utc_noti_ex_reporter_destroy_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_destroy_n",utc_noti_ex_reporter_destroy_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_send_error_p",utc_noti_ex_reporter_send_error_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_send_error_n",utc_noti_ex_reporter_send_error_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_p",utc_noti_ex_reporter_post_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_n",utc_noti_ex_reporter_post_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_list_p",utc_noti_ex_reporter_post_list_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_list_n",utc_noti_ex_reporter_post_list_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_update_p",utc_noti_ex_reporter_update_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_update_n",utc_noti_ex_reporter_update_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_p",utc_noti_ex_reporter_delete_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_n",utc_noti_ex_reporter_delete_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_all_p",utc_noti_ex_reporter_delete_all_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_all_n",utc_noti_ex_reporter_delete_all_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_find_by_root_id_p",utc_noti_ex_reporter_find_by_root_id_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_find_by_root_id_n",utc_noti_ex_reporter_find_by_root_id_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_item_image_create_p",utc_noti_ex_item_image_create_p,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_create_n",utc_noti_ex_item_image_create_n,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_get_image_path_p",utc_noti_ex_item_image_get_image_path_p,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_get_image_path_n",utc_noti_ex_item_image_get_image_path_n,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_input_selector_create_p",utc_noti_ex_item_input_selector_create_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_create_n",utc_noti_ex_item_input_selector_create_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_set_contents_p",utc_noti_ex_item_input_selector_set_contents_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_set_contents_n",utc_noti_ex_item_input_selector_set_contents_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_get_contents_p",utc_noti_ex_item_input_selector_get_contents_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_get_contents_n",utc_noti_ex_item_input_selector_get_contents_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_progress_create_p",utc_noti_ex_item_progress_create_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_create_n",utc_noti_ex_item_progress_create_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_current_p",utc_noti_ex_item_progress_set_current_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_current_n",utc_noti_ex_item_progress_set_current_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_current_p",utc_noti_ex_item_progress_get_current_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_current_n",utc_noti_ex_item_progress_get_current_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_min_p",utc_noti_ex_item_progress_get_min_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_min_n",utc_noti_ex_item_progress_get_min_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_max_p",utc_noti_ex_item_progress_get_max_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_max_n",utc_noti_ex_item_progress_get_max_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_text_create_p",utc_noti_ex_item_text_create_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_create_n",utc_noti_ex_item_text_create_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_set_contents_p",utc_noti_ex_item_text_set_contents_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_set_contents_n",utc_noti_ex_item_text_set_contents_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_contents_p",utc_noti_ex_item_text_get_contents_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_contents_n",utc_noti_ex_item_text_get_contents_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_hyperlink_p",utc_noti_ex_item_text_get_hyperlink_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_hyperlink_n",utc_noti_ex_item_text_get_hyperlink_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_time_create_p",utc_noti_ex_item_time_create_p,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_create_n",utc_noti_ex_item_time_create_n,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_get_time_p",utc_noti_ex_item_time_get_time_p,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_get_time_n",utc_noti_ex_item_time_get_time_n,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_action_visibility_create_p",utc_noti_ex_action_visibility_create_p,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_create_n",utc_noti_ex_action_visibility_create_n,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_set_p",utc_noti_ex_action_visibility_set_p,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_set_n",utc_noti_ex_action_visibility_set_n,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_app_control_create_p",utc_noti_ex_action_app_control_create_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_create_n",utc_noti_ex_action_app_control_create_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_set_p",utc_noti_ex_action_app_control_set_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_set_n",utc_noti_ex_action_app_control_set_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_get_p",utc_noti_ex_action_app_control_get_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_get_n",utc_noti_ex_action_app_control_get_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_item_button_create_p",utc_noti_ex_item_button_create_p,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_create_n",utc_noti_ex_item_button_create_n,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_get_title_p",utc_noti_ex_item_button_get_title_p,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_get_title_n",utc_noti_ex_item_button_get_title_n,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_chat_message_create_p",utc_noti_ex_item_chat_message_create_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_create_n",utc_noti_ex_item_chat_message_create_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_name_p",utc_noti_ex_item_chat_message_get_name_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_name_n",utc_noti_ex_item_chat_message_get_name_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_text_p",utc_noti_ex_item_chat_message_get_text_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_text_n",utc_noti_ex_item_chat_message_get_text_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_image_p",utc_noti_ex_item_chat_message_get_image_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_image_n",utc_noti_ex_item_chat_message_get_image_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_time_p",utc_noti_ex_item_chat_message_get_time_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_time_n",utc_noti_ex_item_chat_message_get_time_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_message_type_p",utc_noti_ex_item_chat_message_get_message_type_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_message_type_n",utc_noti_ex_item_chat_message_get_message_type_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_checkbox_create_p",utc_noti_ex_item_checkbox_create_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_create_n",utc_noti_ex_item_checkbox_create_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_title_p",utc_noti_ex_item_checkbox_get_title_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_title_n",utc_noti_ex_item_checkbox_get_title_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_is_checked_p",utc_noti_ex_item_checkbox_is_checked_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_is_checked_n",utc_noti_ex_item_checkbox_is_checked_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_entry_create_p",utc_noti_ex_item_entry_create_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_create_n",utc_noti_ex_item_entry_create_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_get_text_p",utc_noti_ex_item_entry_get_text_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_get_text_n",utc_noti_ex_item_entry_get_text_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_set_text_p",utc_noti_ex_item_entry_set_text_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_set_text_n",utc_noti_ex_item_entry_set_text_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_event_info_clone_p",utc_noti_ex_event_info_clone_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_clone_n",utc_noti_ex_event_info_clone_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_destroy_p",utc_noti_ex_event_info_destroy_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_destroy_n",utc_noti_ex_event_info_destroy_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_event_type_p",utc_noti_ex_event_info_get_event_type_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_event_type_n",utc_noti_ex_event_info_get_event_type_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_owner_p",utc_noti_ex_event_info_get_owner_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_owner_n",utc_noti_ex_event_info_get_owner_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_channel_p",utc_noti_ex_event_info_get_channel_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_channel_n",utc_noti_ex_event_info_get_channel_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_item_id_p",utc_noti_ex_event_info_get_item_id_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_item_id_n",utc_noti_ex_event_info_get_item_id_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_request_id_p",utc_noti_ex_event_info_get_request_id_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_request_id_n",utc_noti_ex_event_info_get_request_id_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_item_group_create_p",utc_noti_ex_item_group_create_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_create_n",utc_noti_ex_item_group_create_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_set_direction_p",utc_noti_ex_item_group_set_direction_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_set_direction_n",utc_noti_ex_item_group_set_direction_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_is_vertical_p",utc_noti_ex_item_group_is_vertical_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_is_vertical_n",utc_noti_ex_item_group_is_vertical_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_get_app_label_p",utc_noti_ex_item_group_get_app_label_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_get_app_label_n",utc_noti_ex_item_group_get_app_label_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_add_child_p",utc_noti_ex_item_group_add_child_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_add_child_n",utc_noti_ex_item_group_add_child_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_remove_child_p",utc_noti_ex_item_group_remove_child_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_remove_child_n",utc_noti_ex_item_group_remove_child_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_foreach_child_p",utc_noti_ex_item_group_foreach_child_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_foreach_child_n",utc_noti_ex_item_group_foreach_child_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, {NULL, NULL} }; -#endif // __TCT_NOTIFICATION-NATIVE_H__ +#endif // __TCT_NOTIFICATION_NATIVE_H__ diff --git a/src/utc/notification/tct-notification-core_tizeniot.h b/src/utc/notification/tct-notification-core_tizeniot.h index b31575ff9..e07ce4a5f 100644 --- a/src/utc/notification/tct-notification-core_tizeniot.h +++ b/src/utc/notification/tct-notification-core_tizeniot.h @@ -13,14 +13,46 @@ // See the License for the specific language governing permissions and // limitations under the License. // -#ifndef __TCT_NOTIFICATION-NATIVE_H__ -#define __TCT_NOTIFICATION-NATIVE_H__ +#ifndef __TCT_NOTIFICATION_NATIVE_H__ +#define __TCT_NOTIFICATION_NATIVE_H__ #include "testcase.h" #include "tct_common.h" extern void utc_notification_startup(void); extern void utc_notification_cleanup(void); +extern void utc_notification_ex_item_startup(void); +extern void utc_notification_ex_item_cleanup(void); +extern void utc_notification_ex_manager_startup(void); +extern void utc_notification_ex_manager_cleanup(void); +extern void utc_notification_ex_reporter_startup(void); +extern void utc_notification_ex_reporter_cleanup(void); +extern void utc_notification_ex_image_startup(void); +extern void utc_notification_ex_image_cleanup(void); +extern void utc_notification_ex_input_selector_startup(void); +extern void utc_notification_ex_input_selector_cleanup(void); +extern void utc_notification_ex_progress_startup(void); +extern void utc_notification_ex_progress_cleanup(void); +extern void utc_notification_ex_text_startup(void); +extern void utc_notification_ex_text_cleanup(void); +extern void utc_notification_ex_time_startup(void); +extern void utc_notification_ex_time_cleanup(void); +extern void utc_notification_ex_visibility_action_startup(void); +extern void utc_notification_ex_visibility_action_cleanup(void); +extern void utc_notification_ex_app_control_action_startup(void); +extern void utc_notification_ex_app_control_action_cleanup(void); +extern void utc_notification_ex_button_startup(void); +extern void utc_notification_ex_button_cleanup(void); +extern void utc_notification_ex_chat_message_startup(void); +extern void utc_notification_ex_chat_message_cleanup(void); +extern void utc_notification_ex_checkbox_startup(void); +extern void utc_notification_ex_checkbox_cleanup(void); +extern void utc_notification_ex_entry_startup(void); +extern void utc_notification_ex_entry_cleanup(void); +extern void utc_notification_ex_event_info_startup(void); +extern void utc_notification_ex_event_info_cleanup(void); +extern void utc_notification_ex_group_startup(void); +extern void utc_notification_ex_group_cleanup(void); extern int utc_notification_create_1_n(void); extern int utc_notification_create_2_n(void); @@ -283,7 +315,284 @@ extern int utc_notification_set_extension_image_size_n(void); extern int utc_notification_set_extension_image_size_p(void); extern int utc_notification_get_extension_image_size_n(void); extern int utc_notification_get_extension_image_size_p(void); -extern int utc_notification_get_text_19_p(void); +extern int utc_noti_ex_color_create_p(void); +extern int utc_noti_ex_color_create_n(void); +extern int utc_noti_ex_color_destroy_p(void); +extern int utc_noti_ex_color_destroy_n(void); +extern int utc_noti_ex_color_get_alpha_p(void); +extern int utc_noti_ex_color_get_alpha_n(void); +extern int utc_noti_ex_color_get_red_p(void); +extern int utc_noti_ex_color_get_red_n(void); +extern int utc_noti_ex_color_get_green_p(void); +extern int utc_noti_ex_color_get_green_n(void); +extern int utc_noti_ex_color_get_blue_p(void); +extern int utc_noti_ex_color_get_blue_n(void); +extern int utc_noti_ex_padding_create_p(void); +extern int utc_noti_ex_padding_create_n(void); +extern int utc_noti_ex_padding_destroy_p(void); +extern int utc_noti_ex_padding_destroy_n(void); +extern int utc_noti_ex_padding_get_left_p(void); +extern int utc_noti_ex_padding_get_left_n(void); +extern int utc_noti_ex_padding_get_top_p(void); +extern int utc_noti_ex_padding_get_top_n(void); +extern int utc_noti_ex_padding_get_right_p(void); +extern int utc_noti_ex_padding_get_right_n(void); +extern int utc_noti_ex_padding_get_bottom_p(void); +extern int utc_noti_ex_padding_get_bottom_n(void); +extern int utc_noti_ex_geometry_create_p(void); +extern int utc_noti_ex_geometry_create_n(void); +extern int utc_noti_ex_geometry_destroy_p(void); +extern int utc_noti_ex_geometry_destroy_n(void); +extern int utc_noti_ex_geometry_get_x_p(void); +extern int utc_noti_ex_geometry_get_x_n(void); +extern int utc_noti_ex_geometry_get_y_p(void); +extern int utc_noti_ex_geometry_get_y_n(void); +extern int utc_noti_ex_geometry_get_width_p(void); +extern int utc_noti_ex_geometry_get_width_n(void); +extern int utc_noti_ex_geometry_get_height_p(void); +extern int utc_noti_ex_geometry_get_height_n(void); +extern int utc_noti_ex_style_create_p(void); +extern int utc_noti_ex_style_create_n(void); +extern int utc_noti_ex_style_destroy_p(void); +extern int utc_noti_ex_style_destroy_n(void); +extern int utc_noti_ex_style_get_padding_p(void); +extern int utc_noti_ex_style_get_padding_n(void); +extern int utc_noti_ex_style_get_color_p(void); +extern int utc_noti_ex_style_get_color_n(void); +extern int utc_noti_ex_style_get_geometry_p(void); +extern int utc_noti_ex_style_get_geometry_n(void); +extern int utc_noti_ex_led_info_create_p(void); +extern int utc_noti_ex_led_info_create_n(void); +extern int utc_noti_ex_led_info_destroy_p(void); +extern int utc_noti_ex_led_info_destroy_n(void); +extern int utc_noti_ex_led_info_set_on_period_p(void); +extern int utc_noti_ex_led_info_set_on_period_n(void); +extern int utc_noti_ex_led_info_get_on_period_p(void); +extern int utc_noti_ex_led_info_get_on_period_n(void); +extern int utc_noti_ex_led_info_set_off_period_p(void); +extern int utc_noti_ex_led_info_set_off_period_n(void); +extern int utc_noti_ex_led_info_get_off_period_p(void); +extern int utc_noti_ex_led_info_get_off_period_n(void); +extern int utc_noti_ex_led_info_get_color_p(void); +extern int utc_noti_ex_led_info_get_color_n(void); +extern int utc_noti_ex_action_destroy_p(void); +extern int utc_noti_ex_action_destroy_n(void); +extern int utc_noti_ex_action_get_type_p(void); +extern int utc_noti_ex_action_get_type_n(void); +extern int utc_noti_ex_action_is_local_p(void); +extern int utc_noti_ex_action_is_local_n(void); +extern int utc_noti_ex_action_execute_p(void); +extern int utc_noti_ex_action_execute_n(void); +extern int utc_noti_ex_action_get_extra_p(void); +extern int utc_noti_ex_action_get_extra_n(void); +extern int utc_noti_ex_item_info_get_hide_time_p(void); +extern int utc_noti_ex_item_info_get_hide_time_n(void); +extern int utc_noti_ex_item_info_set_hide_time_p(void); +extern int utc_noti_ex_item_info_set_hide_time_n(void); +extern int utc_noti_ex_item_info_get_delete_time_p(void); +extern int utc_noti_ex_item_info_get_delete_time_n(void); +extern int utc_noti_ex_item_info_set_delete_time_p(void); +extern int utc_noti_ex_item_info_set_delete_time_n(void); +extern int utc_noti_ex_item_info_get_time_p(void); +extern int utc_noti_ex_item_info_get_time_n(void); +extern int utc_noti_ex_item_destroy_p(void); +extern int utc_noti_ex_item_destroy_p_n(void); +extern int utc_noti_ex_item_find_by_id_p(void); +extern int utc_noti_ex_item_find_by_id_n(void); +extern int utc_noti_ex_item_get_type_p(void); +extern int utc_noti_ex_item_get_type_n(void); +extern int utc_noti_ex_item_get_shared_paths_p(void); +extern int utc_noti_ex_item_get_shared_paths_n(void); +extern int utc_noti_ex_item_get_id_p(void); +extern int utc_noti_ex_item_get_id_n(void); +extern int utc_noti_ex_item_set_id_p(void); +extern int utc_noti_ex_item_set_id_n(void); +extern int utc_noti_ex_item_get_action_p(void); +extern int utc_noti_ex_item_get_action_n(void); +extern int utc_noti_ex_item_set_action_p(void); +extern int utc_noti_ex_item_set_action_n(void); +extern int utc_noti_ex_item_get_style_p(void); +extern int utc_noti_ex_item_get_style_n(void); +extern int utc_noti_ex_item_set_style_p(void); +extern int utc_noti_ex_item_set_style_n(void); +extern int utc_noti_ex_item_set_visible_p(void); +extern int utc_noti_ex_item_set_visible_n(void); +extern int utc_noti_ex_item_get_visible_p(void); +extern int utc_noti_ex_item_get_visible_n(void); +extern int utc_noti_ex_item_set_enable_p(void); +extern int utc_noti_ex_item_set_enable_n(void); +extern int utc_noti_ex_item_get_enable_p(void); +extern int utc_noti_ex_item_get_enable_n(void); +extern int utc_noti_ex_item_add_receiver_p(void); +extern int utc_noti_ex_item_add_receiver_n(void); +extern int utc_noti_ex_item_get_receiver_list_p(void); +extern int utc_noti_ex_item_get_receiver_list_n(void); +extern int utc_noti_ex_item_remove_receiver_p(void); +extern int utc_noti_ex_item_remove_receiver_n(void); +extern int utc_noti_ex_item_set_policy_p(void); +extern int utc_noti_ex_item_set_policy_n(void); +extern int utc_noti_ex_item_get_policy_p(void); +extern int utc_noti_ex_item_get_policy_n(void); +extern int utc_noti_ex_item_set_channel_p(void); +extern int utc_noti_ex_item_set_channel_n(void); +extern int utc_noti_ex_item_get_channel_p(void); +extern int utc_noti_ex_item_get_channel_n(void); +extern int utc_noti_ex_item_set_led_info_p(void); +extern int utc_noti_ex_item_set_led_info_n(void); +extern int utc_noti_ex_item_get_led_info_p(void); +extern int utc_noti_ex_item_get_led_info_n(void); +extern int utc_noti_ex_item_set_sound_path_p(void); +extern int utc_noti_ex_item_set_sound_path_n(void); +extern int utc_noti_ex_item_get_sound_path_p(void); +extern int utc_noti_ex_item_get_sound_path_n(void); +extern int utc_noti_ex_item_set_vibration_path_p(void); +extern int utc_noti_ex_item_set_vibration_path_n(void); +extern int utc_noti_ex_item_get_vibration_path_p(void); +extern int utc_noti_ex_item_get_vibration_path_n(void); +extern int utc_noti_ex_item_get_info_p(void); +extern int utc_noti_ex_item_get_info_n(void); +extern int utc_noti_ex_item_get_sender_app_id_p(void); +extern int utc_noti_ex_item_get_sender_app_id_n(void); +extern int utc_noti_ex_item_set_tag_p(void); +extern int utc_noti_ex_item_set_tag_n(void); +extern int utc_noti_ex_item_get_tag_p(void); +extern int utc_noti_ex_item_get_tag_n(void); +extern int utc_noti_ex_manager_create_p(void); +extern int utc_noti_ex_manager_create_n(void); +extern int utc_noti_ex_manager_destroy_p(void); +extern int utc_noti_ex_manager_destroy_n(void); +extern int utc_noti_ex_manager_get_p(void); +extern int utc_noti_ex_manager_get_n(void); +extern int utc_noti_ex_manager_update_p(void); +extern int utc_noti_ex_manager_update_n(void); +extern int utc_noti_ex_manager_delete_p(void); +extern int utc_noti_ex_manager_delete_n(void); +extern int utc_noti_ex_manager_delete_all_p(void); +extern int utc_noti_ex_manager_delete_all_n(void); +extern int utc_noti_ex_manager_hide_p(void); +extern int utc_noti_ex_manager_hide_n(void); +extern int utc_noti_ex_manager_find_by_root_id_p(void); +extern int utc_noti_ex_manager_find_by_root_id_n(void); +extern int utc_noti_ex_manager_send_error_p(void); +extern int utc_noti_ex_manager_send_error_n(void); +extern int utc_noti_ex_manager_get_notification_count_p(void); +extern int utc_noti_ex_manager_get_notification_count_n(void); +extern int utc_noti_ex_reporter_create_p(void); +extern int utc_noti_ex_reporter_create_n(void); +extern int utc_noti_ex_reporter_destroy_p(void); +extern int utc_noti_ex_reporter_destroy_n(void); +extern int utc_noti_ex_reporter_send_error_p(void); +extern int utc_noti_ex_reporter_send_error_n(void); +extern int utc_noti_ex_reporter_post_p(void); +extern int utc_noti_ex_reporter_post_n(void); +extern int utc_noti_ex_reporter_post_list_p(void); +extern int utc_noti_ex_reporter_post_list_n(void); +extern int utc_noti_ex_reporter_update_p(void); +extern int utc_noti_ex_reporter_update_n(void); +extern int utc_noti_ex_reporter_delete_p(void); +extern int utc_noti_ex_reporter_delete_n(void); +extern int utc_noti_ex_reporter_delete_all_p(void); +extern int utc_noti_ex_reporter_delete_all_n(void); +extern int utc_noti_ex_reporter_find_by_root_id_p(void); +extern int utc_noti_ex_reporter_find_by_root_id_n(void); +extern int utc_noti_ex_item_image_create_p(void); +extern int utc_noti_ex_item_image_create_n(void); +extern int utc_noti_ex_item_image_get_image_path_p(void); +extern int utc_noti_ex_item_image_get_image_path_n(void); +extern int utc_noti_ex_item_input_selector_create_p(void); +extern int utc_noti_ex_item_input_selector_create_n(void); +extern int utc_noti_ex_item_input_selector_set_contents_p(void); +extern int utc_noti_ex_item_input_selector_set_contents_n(void); +extern int utc_noti_ex_item_input_selector_get_contents_p(void); +extern int utc_noti_ex_item_input_selector_get_contents_n(void); +extern int utc_noti_ex_item_progress_create_p(void); +extern int utc_noti_ex_item_progress_create_n(void); +extern int utc_noti_ex_item_progress_set_current_p(void); +extern int utc_noti_ex_item_progress_set_current_n(void); +extern int utc_noti_ex_item_progress_get_current_p(void); +extern int utc_noti_ex_item_progress_get_current_n(void); +extern int utc_noti_ex_item_progress_get_min_p(void); +extern int utc_noti_ex_item_progress_get_min_n(void); +extern int utc_noti_ex_item_progress_get_max_p(void); +extern int utc_noti_ex_item_progress_get_max_n(void); +extern int utc_noti_ex_item_text_create_p(void); +extern int utc_noti_ex_item_text_create_n(void); +extern int utc_noti_ex_item_text_set_contents_p(void); +extern int utc_noti_ex_item_text_set_contents_n(void); +extern int utc_noti_ex_item_text_get_contents_p(void); +extern int utc_noti_ex_item_text_get_contents_n(void); +extern int utc_noti_ex_item_text_get_hyperlink_p(void); +extern int utc_noti_ex_item_text_get_hyperlink_n(void); +extern int utc_noti_ex_item_time_create_p(void); +extern int utc_noti_ex_item_time_create_n(void); +extern int utc_noti_ex_item_time_get_time_p(void); +extern int utc_noti_ex_item_time_get_time_n(void); +extern int utc_noti_ex_action_visibility_create_p(void); +extern int utc_noti_ex_action_visibility_create_n(void); +extern int utc_noti_ex_action_visibility_set_p(void); +extern int utc_noti_ex_action_visibility_set_n(void); +extern int utc_noti_ex_action_app_control_create_p(void); +extern int utc_noti_ex_action_app_control_create_n(void); +extern int utc_noti_ex_action_app_control_set_p(void); +extern int utc_noti_ex_action_app_control_set_n(void); +extern int utc_noti_ex_action_app_control_get_p(void); +extern int utc_noti_ex_action_app_control_get_n(void); +extern int utc_noti_ex_item_button_create_p(void); +extern int utc_noti_ex_item_button_create_n(void); +extern int utc_noti_ex_item_button_get_title_p(void); +extern int utc_noti_ex_item_button_get_title_n(void); +extern int utc_noti_ex_item_chat_message_create_p(void); +extern int utc_noti_ex_item_chat_message_create_n(void); +extern int utc_noti_ex_item_chat_message_get_name_p(void); +extern int utc_noti_ex_item_chat_message_get_name_n(void); +extern int utc_noti_ex_item_chat_message_get_text_p(void); +extern int utc_noti_ex_item_chat_message_get_text_n(void); +extern int utc_noti_ex_item_chat_message_get_image_p(void); +extern int utc_noti_ex_item_chat_message_get_image_n(void); +extern int utc_noti_ex_item_chat_message_get_time_p(void); +extern int utc_noti_ex_item_chat_message_get_time_n(void); +extern int utc_noti_ex_item_chat_message_get_message_type_p(void); +extern int utc_noti_ex_item_chat_message_get_message_type_n(void); +extern int utc_noti_ex_item_checkbox_create_p(void); +extern int utc_noti_ex_item_checkbox_create_n(void); +extern int utc_noti_ex_item_checkbox_get_title_p(void); +extern int utc_noti_ex_item_checkbox_get_title_n(void); +extern int utc_noti_ex_item_checkbox_is_checked_p(void); +extern int utc_noti_ex_item_checkbox_is_checked_n(void); +extern int utc_noti_ex_item_entry_create_p(void); +extern int utc_noti_ex_item_entry_create_n(void); +extern int utc_noti_ex_item_entry_get_text_p(void); +extern int utc_noti_ex_item_entry_get_text_n(void); +extern int utc_noti_ex_item_entry_set_text_p(void); +extern int utc_noti_ex_item_entry_set_text_n(void); +extern int utc_noti_ex_event_info_clone_p(void); +extern int utc_noti_ex_event_info_clone_n(void); +extern int utc_noti_ex_event_info_destroy_p(void); +extern int utc_noti_ex_event_info_destroy_n(void); +extern int utc_noti_ex_event_info_get_event_type_p(void); +extern int utc_noti_ex_event_info_get_event_type_n(void); +extern int utc_noti_ex_event_info_get_owner_p(void); +extern int utc_noti_ex_event_info_get_owner_n(void); +extern int utc_noti_ex_event_info_get_channel_p(void); +extern int utc_noti_ex_event_info_get_channel_n(void); +extern int utc_noti_ex_event_info_get_item_id_p(void); +extern int utc_noti_ex_event_info_get_item_id_n(void); +extern int utc_noti_ex_event_info_get_request_id_p(void); +extern int utc_noti_ex_event_info_get_request_id_n(void); +extern int utc_noti_ex_item_group_create_p(void); +extern int utc_noti_ex_item_group_create_n(void); +extern int utc_noti_ex_item_group_set_direction_p(void); +extern int utc_noti_ex_item_group_set_direction_n(void); +extern int utc_noti_ex_item_group_is_vertical_p(void); +extern int utc_noti_ex_item_group_is_vertical_n(void); +extern int utc_noti_ex_item_group_get_app_label_p(void); +extern int utc_noti_ex_item_group_get_app_label_n(void); +extern int utc_noti_ex_item_group_add_child_p(void); +extern int utc_noti_ex_item_group_add_child_n(void); +extern int utc_noti_ex_item_group_remove_child_p(void); +extern int utc_noti_ex_item_group_remove_child_n(void); +extern int utc_noti_ex_item_group_foreach_cb_p(void); +extern int utc_noti_ex_item_group_foreach_cb_n(void); testcase tc_array[] = { {"utc_notification_create_1_n",utc_notification_create_1_n,utc_notification_startup,utc_notification_cleanup}, @@ -547,6 +856,284 @@ testcase tc_array[] = { {"utc_notification_set_extension_image_size_p",utc_notification_set_extension_image_size_p,utc_notification_startup,utc_notification_cleanup}, {"utc_notification_get_extension_image_size_n",utc_notification_get_extension_image_size_n,utc_notification_startup,utc_notification_cleanup}, {"utc_notification_get_extension_image_size_p",utc_notification_get_extension_image_size_p,utc_notification_startup,utc_notification_cleanup}, + {"utc_noti_ex_color_create_p",utc_noti_ex_color_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_create_n",utc_noti_ex_color_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_destroy_p",utc_noti_ex_color_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_destroy_n",utc_noti_ex_color_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_alpha_p",utc_noti_ex_color_get_alpha_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_alpha_n",utc_noti_ex_color_get_alpha_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_red_p",utc_noti_ex_color_get_red_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_red_n",utc_noti_ex_color_get_red_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_green_p",utc_noti_ex_color_get_green_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_green_n",utc_noti_ex_color_get_green_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_blue_p",utc_noti_ex_color_get_blue_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_blue_n",utc_noti_ex_color_get_blue_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_create_p",utc_noti_ex_padding_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_create_n",utc_noti_ex_padding_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_destroy_p",utc_noti_ex_padding_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_destroy_n",utc_noti_ex_padding_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_left_p",utc_noti_ex_padding_get_left_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_left_n",utc_noti_ex_padding_get_left_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_top_p",utc_noti_ex_padding_get_top_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_top_n",utc_noti_ex_padding_get_top_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_right_p",utc_noti_ex_padding_get_right_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_right_n",utc_noti_ex_padding_get_right_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_bottom_p",utc_noti_ex_padding_get_bottom_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_bottom_n",utc_noti_ex_padding_get_bottom_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_create_p",utc_noti_ex_geometry_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_create_n",utc_noti_ex_geometry_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_destroy_p",utc_noti_ex_geometry_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_destroy_n",utc_noti_ex_geometry_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_x_p",utc_noti_ex_geometry_get_x_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_x_n",utc_noti_ex_geometry_get_x_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_y_p",utc_noti_ex_geometry_get_y_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_y_n",utc_noti_ex_geometry_get_y_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_width_p",utc_noti_ex_geometry_get_width_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_width_n",utc_noti_ex_geometry_get_width_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_height_p",utc_noti_ex_geometry_get_height_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_height_n",utc_noti_ex_geometry_get_height_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_create_p",utc_noti_ex_style_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_create_n",utc_noti_ex_style_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_destroy_p",utc_noti_ex_style_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_destroy_n",utc_noti_ex_style_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_padding_p",utc_noti_ex_style_get_padding_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_padding_n",utc_noti_ex_style_get_padding_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_color_p",utc_noti_ex_style_get_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_color_n",utc_noti_ex_style_get_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_geometry_p",utc_noti_ex_style_get_geometry_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_geometry_n",utc_noti_ex_style_get_geometry_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_create_p",utc_noti_ex_led_info_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_create_n",utc_noti_ex_led_info_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_destroy_p",utc_noti_ex_led_info_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_destroy_n",utc_noti_ex_led_info_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_on_period_p",utc_noti_ex_led_info_set_on_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_on_period_n",utc_noti_ex_led_info_set_on_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_on_period_p",utc_noti_ex_led_info_get_on_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_on_period_n",utc_noti_ex_led_info_get_on_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_off_period_p",utc_noti_ex_led_info_set_off_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_off_period_n",utc_noti_ex_led_info_set_off_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_off_period_p",utc_noti_ex_led_info_get_off_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_off_period_n",utc_noti_ex_led_info_get_off_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_color_p",utc_noti_ex_led_info_get_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_color_n",utc_noti_ex_led_info_get_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_destroy_p",utc_noti_ex_action_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_destroy_n",utc_noti_ex_action_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_type_p",utc_noti_ex_action_get_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_type_n",utc_noti_ex_action_get_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_is_local_p",utc_noti_ex_action_is_local_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_is_local_n",utc_noti_ex_action_is_local_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_execute_p",utc_noti_ex_action_execute_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_execute_n",utc_noti_ex_action_execute_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_extra_p",utc_noti_ex_action_get_extra_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_extra_n",utc_noti_ex_action_get_extra_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_hide_time_p",utc_noti_ex_item_info_get_hide_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_hide_time_n",utc_noti_ex_item_info_get_hide_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_hide_time_p",utc_noti_ex_item_info_set_hide_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_hide_time_n",utc_noti_ex_item_info_set_hide_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_delete_time_p",utc_noti_ex_item_info_get_delete_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_delete_time_n",utc_noti_ex_item_info_get_delete_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_delete_time_p",utc_noti_ex_item_info_set_delete_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_delete_time_n",utc_noti_ex_item_info_set_delete_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_time_p",utc_noti_ex_item_info_get_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_time_n",utc_noti_ex_item_info_get_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_destroy_p",utc_noti_ex_item_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_destroy_p_n",utc_noti_ex_item_destroy_p_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_id_p",utc_noti_ex_item_find_by_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_id_n",utc_noti_ex_item_find_by_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_type_p",utc_noti_ex_item_get_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_type_n",utc_noti_ex_item_get_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_shared_paths_p",utc_noti_ex_item_get_shared_paths_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_shared_paths_n",utc_noti_ex_item_get_shared_paths_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_id_p",utc_noti_ex_item_get_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_id_n",utc_noti_ex_item_get_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_id_p",utc_noti_ex_item_set_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_id_n",utc_noti_ex_item_set_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_action_p",utc_noti_ex_item_get_action_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_action_n",utc_noti_ex_item_get_action_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_action_p",utc_noti_ex_item_set_action_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_action_n",utc_noti_ex_item_set_action_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_style_p",utc_noti_ex_item_get_style_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_style_n",utc_noti_ex_item_get_style_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_style_p",utc_noti_ex_item_set_style_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_style_n",utc_noti_ex_item_set_style_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_visible_p",utc_noti_ex_item_set_visible_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_visible_n",utc_noti_ex_item_set_visible_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_visible_p",utc_noti_ex_item_get_visible_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_visible_n",utc_noti_ex_item_get_visible_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_enable_p",utc_noti_ex_item_set_enable_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_enable_n",utc_noti_ex_item_set_enable_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_enable_p",utc_noti_ex_item_get_enable_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_enable_n",utc_noti_ex_item_get_enable_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_add_receiver_p",utc_noti_ex_item_add_receiver_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_add_receiver_n",utc_noti_ex_item_add_receiver_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_receiver_list_p",utc_noti_ex_item_get_receiver_list_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_receiver_list_n",utc_noti_ex_item_get_receiver_list_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_remove_receiver_p",utc_noti_ex_item_remove_receiver_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_remove_receiver_n",utc_noti_ex_item_remove_receiver_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_policy_p",utc_noti_ex_item_set_policy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_policy_n",utc_noti_ex_item_set_policy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_policy_p",utc_noti_ex_item_get_policy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_policy_n",utc_noti_ex_item_get_policy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_channel_p",utc_noti_ex_item_set_channel_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_channel_n",utc_noti_ex_item_set_channel_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_channel_p",utc_noti_ex_item_get_channel_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_channel_n",utc_noti_ex_item_get_channel_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_led_info_p",utc_noti_ex_item_set_led_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_led_info_n",utc_noti_ex_item_set_led_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_led_info_p",utc_noti_ex_item_get_led_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_led_info_n",utc_noti_ex_item_get_led_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_sound_path_p",utc_noti_ex_item_set_sound_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_sound_path_n",utc_noti_ex_item_set_sound_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sound_path_p",utc_noti_ex_item_get_sound_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sound_path_n",utc_noti_ex_item_get_sound_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_vibration_path_p",utc_noti_ex_item_set_vibration_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_vibration_path_n",utc_noti_ex_item_set_vibration_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_vibration_path_p",utc_noti_ex_item_get_vibration_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_vibration_path_n",utc_noti_ex_item_get_vibration_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_info_p",utc_noti_ex_item_get_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_info_n",utc_noti_ex_item_get_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sender_app_id_p",utc_noti_ex_item_get_sender_app_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sender_app_id_n",utc_noti_ex_item_get_sender_app_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_tag_p",utc_noti_ex_item_set_tag_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_tag_n",utc_noti_ex_item_set_tag_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_tag_p",utc_noti_ex_item_get_tag_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_tag_n",utc_noti_ex_item_get_tag_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_manager_create_p",utc_noti_ex_manager_create_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_create_n",utc_noti_ex_manager_create_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_destroy_p",utc_noti_ex_manager_destroy_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_destroy_n",utc_noti_ex_manager_destroy_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_p",utc_noti_ex_manager_get_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_n",utc_noti_ex_manager_get_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_update_p",utc_noti_ex_manager_update_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_update_n",utc_noti_ex_manager_update_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_p",utc_noti_ex_manager_delete_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_n",utc_noti_ex_manager_delete_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_all_p",utc_noti_ex_manager_delete_all_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_all_n",utc_noti_ex_manager_delete_all_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_hide_p",utc_noti_ex_manager_hide_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_hide_n",utc_noti_ex_manager_hide_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_find_by_root_id_p",utc_noti_ex_manager_find_by_root_id_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_find_by_root_id_n",utc_noti_ex_manager_find_by_root_id_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_send_error_p",utc_noti_ex_manager_send_error_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_send_error_n",utc_noti_ex_manager_send_error_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_notification_count_p",utc_noti_ex_manager_get_notification_count_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_notification_count_n",utc_noti_ex_manager_get_notification_count_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_reporter_create_p",utc_noti_ex_reporter_create_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_create_n",utc_noti_ex_reporter_create_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_destroy_p",utc_noti_ex_reporter_destroy_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_destroy_n",utc_noti_ex_reporter_destroy_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_send_error_p",utc_noti_ex_reporter_send_error_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_send_error_n",utc_noti_ex_reporter_send_error_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_p",utc_noti_ex_reporter_post_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_n",utc_noti_ex_reporter_post_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_list_p",utc_noti_ex_reporter_post_list_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_list_n",utc_noti_ex_reporter_post_list_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_update_p",utc_noti_ex_reporter_update_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_update_n",utc_noti_ex_reporter_update_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_p",utc_noti_ex_reporter_delete_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_n",utc_noti_ex_reporter_delete_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_all_p",utc_noti_ex_reporter_delete_all_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_all_n",utc_noti_ex_reporter_delete_all_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_find_by_root_id_p",utc_noti_ex_reporter_find_by_root_id_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_find_by_root_id_n",utc_noti_ex_reporter_find_by_root_id_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_item_image_create_p",utc_noti_ex_item_image_create_p,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_create_n",utc_noti_ex_item_image_create_n,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_get_image_path_p",utc_noti_ex_item_image_get_image_path_p,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_get_image_path_n",utc_noti_ex_item_image_get_image_path_n,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_input_selector_create_p",utc_noti_ex_item_input_selector_create_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_create_n",utc_noti_ex_item_input_selector_create_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_set_contents_p",utc_noti_ex_item_input_selector_set_contents_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_set_contents_n",utc_noti_ex_item_input_selector_set_contents_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_get_contents_p",utc_noti_ex_item_input_selector_get_contents_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_get_contents_n",utc_noti_ex_item_input_selector_get_contents_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_progress_create_p",utc_noti_ex_item_progress_create_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_create_n",utc_noti_ex_item_progress_create_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_current_p",utc_noti_ex_item_progress_set_current_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_current_n",utc_noti_ex_item_progress_set_current_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_current_p",utc_noti_ex_item_progress_get_current_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_current_n",utc_noti_ex_item_progress_get_current_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_min_p",utc_noti_ex_item_progress_get_min_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_min_n",utc_noti_ex_item_progress_get_min_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_max_p",utc_noti_ex_item_progress_get_max_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_max_n",utc_noti_ex_item_progress_get_max_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_text_create_p",utc_noti_ex_item_text_create_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_create_n",utc_noti_ex_item_text_create_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_set_contents_p",utc_noti_ex_item_text_set_contents_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_set_contents_n",utc_noti_ex_item_text_set_contents_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_contents_p",utc_noti_ex_item_text_get_contents_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_contents_n",utc_noti_ex_item_text_get_contents_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_hyperlink_p",utc_noti_ex_item_text_get_hyperlink_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_hyperlink_n",utc_noti_ex_item_text_get_hyperlink_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_time_create_p",utc_noti_ex_item_time_create_p,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_create_n",utc_noti_ex_item_time_create_n,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_get_time_p",utc_noti_ex_item_time_get_time_p,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_get_time_n",utc_noti_ex_item_time_get_time_n,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_action_visibility_create_p",utc_noti_ex_action_visibility_create_p,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_create_n",utc_noti_ex_action_visibility_create_n,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_set_p",utc_noti_ex_action_visibility_set_p,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_set_n",utc_noti_ex_action_visibility_set_n,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_app_control_create_p",utc_noti_ex_action_app_control_create_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_create_n",utc_noti_ex_action_app_control_create_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_set_p",utc_noti_ex_action_app_control_set_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_set_n",utc_noti_ex_action_app_control_set_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_get_p",utc_noti_ex_action_app_control_get_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_get_n",utc_noti_ex_action_app_control_get_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_item_button_create_p",utc_noti_ex_item_button_create_p,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_create_n",utc_noti_ex_item_button_create_n,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_get_title_p",utc_noti_ex_item_button_get_title_p,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_get_title_n",utc_noti_ex_item_button_get_title_n,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_chat_message_create_p",utc_noti_ex_item_chat_message_create_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_create_n",utc_noti_ex_item_chat_message_create_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_name_p",utc_noti_ex_item_chat_message_get_name_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_name_n",utc_noti_ex_item_chat_message_get_name_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_text_p",utc_noti_ex_item_chat_message_get_text_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_text_n",utc_noti_ex_item_chat_message_get_text_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_image_p",utc_noti_ex_item_chat_message_get_image_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_image_n",utc_noti_ex_item_chat_message_get_image_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_time_p",utc_noti_ex_item_chat_message_get_time_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_time_n",utc_noti_ex_item_chat_message_get_time_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_message_type_p",utc_noti_ex_item_chat_message_get_message_type_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_message_type_n",utc_noti_ex_item_chat_message_get_message_type_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_checkbox_create_p",utc_noti_ex_item_checkbox_create_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_create_n",utc_noti_ex_item_checkbox_create_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_title_p",utc_noti_ex_item_checkbox_get_title_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_title_n",utc_noti_ex_item_checkbox_get_title_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_is_checked_p",utc_noti_ex_item_checkbox_is_checked_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_is_checked_n",utc_noti_ex_item_checkbox_is_checked_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_entry_create_p",utc_noti_ex_item_entry_create_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_create_n",utc_noti_ex_item_entry_create_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_get_text_p",utc_noti_ex_item_entry_get_text_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_get_text_n",utc_noti_ex_item_entry_get_text_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_set_text_p",utc_noti_ex_item_entry_set_text_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_set_text_n",utc_noti_ex_item_entry_set_text_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_event_info_clone_p",utc_noti_ex_event_info_clone_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_clone_n",utc_noti_ex_event_info_clone_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_destroy_p",utc_noti_ex_event_info_destroy_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_destroy_n",utc_noti_ex_event_info_destroy_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_event_type_p",utc_noti_ex_event_info_get_event_type_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_event_type_n",utc_noti_ex_event_info_get_event_type_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_owner_p",utc_noti_ex_event_info_get_owner_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_owner_n",utc_noti_ex_event_info_get_owner_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_channel_p",utc_noti_ex_event_info_get_channel_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_channel_n",utc_noti_ex_event_info_get_channel_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_item_id_p",utc_noti_ex_event_info_get_item_id_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_item_id_n",utc_noti_ex_event_info_get_item_id_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_request_id_p",utc_noti_ex_event_info_get_request_id_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_request_id_n",utc_noti_ex_event_info_get_request_id_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_item_group_create_p",utc_noti_ex_item_group_create_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_create_n",utc_noti_ex_item_group_create_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_set_direction_p",utc_noti_ex_item_group_set_direction_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_set_direction_n",utc_noti_ex_item_group_set_direction_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_is_vertical_p",utc_noti_ex_item_group_is_vertical_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_is_vertical_n",utc_noti_ex_item_group_is_vertical_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_get_app_label_p",utc_noti_ex_item_group_get_app_label_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_get_app_label_n",utc_noti_ex_item_group_get_app_label_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_add_child_p",utc_noti_ex_item_group_add_child_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_add_child_n",utc_noti_ex_item_group_add_child_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_remove_child_p",utc_noti_ex_item_group_remove_child_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_remove_child_n",utc_noti_ex_item_group_remove_child_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_foreach_cb_p",utc_noti_ex_item_group_foreach_cb_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_foreach_cb_n",utc_noti_ex_item_group_foreach_cb_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, {NULL, NULL} }; -#endif // __TCT_NOTIFICATION-NATIVE_H__ +#endif // __TCT_NOTIFICATION_NATIVE_H__ diff --git a/src/utc/notification/tct-notification-core_wearable.h b/src/utc/notification/tct-notification-core_wearable.h index b31575ff9..e07ce4a5f 100644 --- a/src/utc/notification/tct-notification-core_wearable.h +++ b/src/utc/notification/tct-notification-core_wearable.h @@ -13,14 +13,46 @@ // See the License for the specific language governing permissions and // limitations under the License. // -#ifndef __TCT_NOTIFICATION-NATIVE_H__ -#define __TCT_NOTIFICATION-NATIVE_H__ +#ifndef __TCT_NOTIFICATION_NATIVE_H__ +#define __TCT_NOTIFICATION_NATIVE_H__ #include "testcase.h" #include "tct_common.h" extern void utc_notification_startup(void); extern void utc_notification_cleanup(void); +extern void utc_notification_ex_item_startup(void); +extern void utc_notification_ex_item_cleanup(void); +extern void utc_notification_ex_manager_startup(void); +extern void utc_notification_ex_manager_cleanup(void); +extern void utc_notification_ex_reporter_startup(void); +extern void utc_notification_ex_reporter_cleanup(void); +extern void utc_notification_ex_image_startup(void); +extern void utc_notification_ex_image_cleanup(void); +extern void utc_notification_ex_input_selector_startup(void); +extern void utc_notification_ex_input_selector_cleanup(void); +extern void utc_notification_ex_progress_startup(void); +extern void utc_notification_ex_progress_cleanup(void); +extern void utc_notification_ex_text_startup(void); +extern void utc_notification_ex_text_cleanup(void); +extern void utc_notification_ex_time_startup(void); +extern void utc_notification_ex_time_cleanup(void); +extern void utc_notification_ex_visibility_action_startup(void); +extern void utc_notification_ex_visibility_action_cleanup(void); +extern void utc_notification_ex_app_control_action_startup(void); +extern void utc_notification_ex_app_control_action_cleanup(void); +extern void utc_notification_ex_button_startup(void); +extern void utc_notification_ex_button_cleanup(void); +extern void utc_notification_ex_chat_message_startup(void); +extern void utc_notification_ex_chat_message_cleanup(void); +extern void utc_notification_ex_checkbox_startup(void); +extern void utc_notification_ex_checkbox_cleanup(void); +extern void utc_notification_ex_entry_startup(void); +extern void utc_notification_ex_entry_cleanup(void); +extern void utc_notification_ex_event_info_startup(void); +extern void utc_notification_ex_event_info_cleanup(void); +extern void utc_notification_ex_group_startup(void); +extern void utc_notification_ex_group_cleanup(void); extern int utc_notification_create_1_n(void); extern int utc_notification_create_2_n(void); @@ -283,7 +315,284 @@ extern int utc_notification_set_extension_image_size_n(void); extern int utc_notification_set_extension_image_size_p(void); extern int utc_notification_get_extension_image_size_n(void); extern int utc_notification_get_extension_image_size_p(void); -extern int utc_notification_get_text_19_p(void); +extern int utc_noti_ex_color_create_p(void); +extern int utc_noti_ex_color_create_n(void); +extern int utc_noti_ex_color_destroy_p(void); +extern int utc_noti_ex_color_destroy_n(void); +extern int utc_noti_ex_color_get_alpha_p(void); +extern int utc_noti_ex_color_get_alpha_n(void); +extern int utc_noti_ex_color_get_red_p(void); +extern int utc_noti_ex_color_get_red_n(void); +extern int utc_noti_ex_color_get_green_p(void); +extern int utc_noti_ex_color_get_green_n(void); +extern int utc_noti_ex_color_get_blue_p(void); +extern int utc_noti_ex_color_get_blue_n(void); +extern int utc_noti_ex_padding_create_p(void); +extern int utc_noti_ex_padding_create_n(void); +extern int utc_noti_ex_padding_destroy_p(void); +extern int utc_noti_ex_padding_destroy_n(void); +extern int utc_noti_ex_padding_get_left_p(void); +extern int utc_noti_ex_padding_get_left_n(void); +extern int utc_noti_ex_padding_get_top_p(void); +extern int utc_noti_ex_padding_get_top_n(void); +extern int utc_noti_ex_padding_get_right_p(void); +extern int utc_noti_ex_padding_get_right_n(void); +extern int utc_noti_ex_padding_get_bottom_p(void); +extern int utc_noti_ex_padding_get_bottom_n(void); +extern int utc_noti_ex_geometry_create_p(void); +extern int utc_noti_ex_geometry_create_n(void); +extern int utc_noti_ex_geometry_destroy_p(void); +extern int utc_noti_ex_geometry_destroy_n(void); +extern int utc_noti_ex_geometry_get_x_p(void); +extern int utc_noti_ex_geometry_get_x_n(void); +extern int utc_noti_ex_geometry_get_y_p(void); +extern int utc_noti_ex_geometry_get_y_n(void); +extern int utc_noti_ex_geometry_get_width_p(void); +extern int utc_noti_ex_geometry_get_width_n(void); +extern int utc_noti_ex_geometry_get_height_p(void); +extern int utc_noti_ex_geometry_get_height_n(void); +extern int utc_noti_ex_style_create_p(void); +extern int utc_noti_ex_style_create_n(void); +extern int utc_noti_ex_style_destroy_p(void); +extern int utc_noti_ex_style_destroy_n(void); +extern int utc_noti_ex_style_get_padding_p(void); +extern int utc_noti_ex_style_get_padding_n(void); +extern int utc_noti_ex_style_get_color_p(void); +extern int utc_noti_ex_style_get_color_n(void); +extern int utc_noti_ex_style_get_geometry_p(void); +extern int utc_noti_ex_style_get_geometry_n(void); +extern int utc_noti_ex_led_info_create_p(void); +extern int utc_noti_ex_led_info_create_n(void); +extern int utc_noti_ex_led_info_destroy_p(void); +extern int utc_noti_ex_led_info_destroy_n(void); +extern int utc_noti_ex_led_info_set_on_period_p(void); +extern int utc_noti_ex_led_info_set_on_period_n(void); +extern int utc_noti_ex_led_info_get_on_period_p(void); +extern int utc_noti_ex_led_info_get_on_period_n(void); +extern int utc_noti_ex_led_info_set_off_period_p(void); +extern int utc_noti_ex_led_info_set_off_period_n(void); +extern int utc_noti_ex_led_info_get_off_period_p(void); +extern int utc_noti_ex_led_info_get_off_period_n(void); +extern int utc_noti_ex_led_info_get_color_p(void); +extern int utc_noti_ex_led_info_get_color_n(void); +extern int utc_noti_ex_action_destroy_p(void); +extern int utc_noti_ex_action_destroy_n(void); +extern int utc_noti_ex_action_get_type_p(void); +extern int utc_noti_ex_action_get_type_n(void); +extern int utc_noti_ex_action_is_local_p(void); +extern int utc_noti_ex_action_is_local_n(void); +extern int utc_noti_ex_action_execute_p(void); +extern int utc_noti_ex_action_execute_n(void); +extern int utc_noti_ex_action_get_extra_p(void); +extern int utc_noti_ex_action_get_extra_n(void); +extern int utc_noti_ex_item_info_get_hide_time_p(void); +extern int utc_noti_ex_item_info_get_hide_time_n(void); +extern int utc_noti_ex_item_info_set_hide_time_p(void); +extern int utc_noti_ex_item_info_set_hide_time_n(void); +extern int utc_noti_ex_item_info_get_delete_time_p(void); +extern int utc_noti_ex_item_info_get_delete_time_n(void); +extern int utc_noti_ex_item_info_set_delete_time_p(void); +extern int utc_noti_ex_item_info_set_delete_time_n(void); +extern int utc_noti_ex_item_info_get_time_p(void); +extern int utc_noti_ex_item_info_get_time_n(void); +extern int utc_noti_ex_item_destroy_p(void); +extern int utc_noti_ex_item_destroy_p_n(void); +extern int utc_noti_ex_item_find_by_id_p(void); +extern int utc_noti_ex_item_find_by_id_n(void); +extern int utc_noti_ex_item_get_type_p(void); +extern int utc_noti_ex_item_get_type_n(void); +extern int utc_noti_ex_item_get_shared_paths_p(void); +extern int utc_noti_ex_item_get_shared_paths_n(void); +extern int utc_noti_ex_item_get_id_p(void); +extern int utc_noti_ex_item_get_id_n(void); +extern int utc_noti_ex_item_set_id_p(void); +extern int utc_noti_ex_item_set_id_n(void); +extern int utc_noti_ex_item_get_action_p(void); +extern int utc_noti_ex_item_get_action_n(void); +extern int utc_noti_ex_item_set_action_p(void); +extern int utc_noti_ex_item_set_action_n(void); +extern int utc_noti_ex_item_get_style_p(void); +extern int utc_noti_ex_item_get_style_n(void); +extern int utc_noti_ex_item_set_style_p(void); +extern int utc_noti_ex_item_set_style_n(void); +extern int utc_noti_ex_item_set_visible_p(void); +extern int utc_noti_ex_item_set_visible_n(void); +extern int utc_noti_ex_item_get_visible_p(void); +extern int utc_noti_ex_item_get_visible_n(void); +extern int utc_noti_ex_item_set_enable_p(void); +extern int utc_noti_ex_item_set_enable_n(void); +extern int utc_noti_ex_item_get_enable_p(void); +extern int utc_noti_ex_item_get_enable_n(void); +extern int utc_noti_ex_item_add_receiver_p(void); +extern int utc_noti_ex_item_add_receiver_n(void); +extern int utc_noti_ex_item_get_receiver_list_p(void); +extern int utc_noti_ex_item_get_receiver_list_n(void); +extern int utc_noti_ex_item_remove_receiver_p(void); +extern int utc_noti_ex_item_remove_receiver_n(void); +extern int utc_noti_ex_item_set_policy_p(void); +extern int utc_noti_ex_item_set_policy_n(void); +extern int utc_noti_ex_item_get_policy_p(void); +extern int utc_noti_ex_item_get_policy_n(void); +extern int utc_noti_ex_item_set_channel_p(void); +extern int utc_noti_ex_item_set_channel_n(void); +extern int utc_noti_ex_item_get_channel_p(void); +extern int utc_noti_ex_item_get_channel_n(void); +extern int utc_noti_ex_item_set_led_info_p(void); +extern int utc_noti_ex_item_set_led_info_n(void); +extern int utc_noti_ex_item_get_led_info_p(void); +extern int utc_noti_ex_item_get_led_info_n(void); +extern int utc_noti_ex_item_set_sound_path_p(void); +extern int utc_noti_ex_item_set_sound_path_n(void); +extern int utc_noti_ex_item_get_sound_path_p(void); +extern int utc_noti_ex_item_get_sound_path_n(void); +extern int utc_noti_ex_item_set_vibration_path_p(void); +extern int utc_noti_ex_item_set_vibration_path_n(void); +extern int utc_noti_ex_item_get_vibration_path_p(void); +extern int utc_noti_ex_item_get_vibration_path_n(void); +extern int utc_noti_ex_item_get_info_p(void); +extern int utc_noti_ex_item_get_info_n(void); +extern int utc_noti_ex_item_get_sender_app_id_p(void); +extern int utc_noti_ex_item_get_sender_app_id_n(void); +extern int utc_noti_ex_item_set_tag_p(void); +extern int utc_noti_ex_item_set_tag_n(void); +extern int utc_noti_ex_item_get_tag_p(void); +extern int utc_noti_ex_item_get_tag_n(void); +extern int utc_noti_ex_manager_create_p(void); +extern int utc_noti_ex_manager_create_n(void); +extern int utc_noti_ex_manager_destroy_p(void); +extern int utc_noti_ex_manager_destroy_n(void); +extern int utc_noti_ex_manager_get_p(void); +extern int utc_noti_ex_manager_get_n(void); +extern int utc_noti_ex_manager_update_p(void); +extern int utc_noti_ex_manager_update_n(void); +extern int utc_noti_ex_manager_delete_p(void); +extern int utc_noti_ex_manager_delete_n(void); +extern int utc_noti_ex_manager_delete_all_p(void); +extern int utc_noti_ex_manager_delete_all_n(void); +extern int utc_noti_ex_manager_hide_p(void); +extern int utc_noti_ex_manager_hide_n(void); +extern int utc_noti_ex_manager_find_by_root_id_p(void); +extern int utc_noti_ex_manager_find_by_root_id_n(void); +extern int utc_noti_ex_manager_send_error_p(void); +extern int utc_noti_ex_manager_send_error_n(void); +extern int utc_noti_ex_manager_get_notification_count_p(void); +extern int utc_noti_ex_manager_get_notification_count_n(void); +extern int utc_noti_ex_reporter_create_p(void); +extern int utc_noti_ex_reporter_create_n(void); +extern int utc_noti_ex_reporter_destroy_p(void); +extern int utc_noti_ex_reporter_destroy_n(void); +extern int utc_noti_ex_reporter_send_error_p(void); +extern int utc_noti_ex_reporter_send_error_n(void); +extern int utc_noti_ex_reporter_post_p(void); +extern int utc_noti_ex_reporter_post_n(void); +extern int utc_noti_ex_reporter_post_list_p(void); +extern int utc_noti_ex_reporter_post_list_n(void); +extern int utc_noti_ex_reporter_update_p(void); +extern int utc_noti_ex_reporter_update_n(void); +extern int utc_noti_ex_reporter_delete_p(void); +extern int utc_noti_ex_reporter_delete_n(void); +extern int utc_noti_ex_reporter_delete_all_p(void); +extern int utc_noti_ex_reporter_delete_all_n(void); +extern int utc_noti_ex_reporter_find_by_root_id_p(void); +extern int utc_noti_ex_reporter_find_by_root_id_n(void); +extern int utc_noti_ex_item_image_create_p(void); +extern int utc_noti_ex_item_image_create_n(void); +extern int utc_noti_ex_item_image_get_image_path_p(void); +extern int utc_noti_ex_item_image_get_image_path_n(void); +extern int utc_noti_ex_item_input_selector_create_p(void); +extern int utc_noti_ex_item_input_selector_create_n(void); +extern int utc_noti_ex_item_input_selector_set_contents_p(void); +extern int utc_noti_ex_item_input_selector_set_contents_n(void); +extern int utc_noti_ex_item_input_selector_get_contents_p(void); +extern int utc_noti_ex_item_input_selector_get_contents_n(void); +extern int utc_noti_ex_item_progress_create_p(void); +extern int utc_noti_ex_item_progress_create_n(void); +extern int utc_noti_ex_item_progress_set_current_p(void); +extern int utc_noti_ex_item_progress_set_current_n(void); +extern int utc_noti_ex_item_progress_get_current_p(void); +extern int utc_noti_ex_item_progress_get_current_n(void); +extern int utc_noti_ex_item_progress_get_min_p(void); +extern int utc_noti_ex_item_progress_get_min_n(void); +extern int utc_noti_ex_item_progress_get_max_p(void); +extern int utc_noti_ex_item_progress_get_max_n(void); +extern int utc_noti_ex_item_text_create_p(void); +extern int utc_noti_ex_item_text_create_n(void); +extern int utc_noti_ex_item_text_set_contents_p(void); +extern int utc_noti_ex_item_text_set_contents_n(void); +extern int utc_noti_ex_item_text_get_contents_p(void); +extern int utc_noti_ex_item_text_get_contents_n(void); +extern int utc_noti_ex_item_text_get_hyperlink_p(void); +extern int utc_noti_ex_item_text_get_hyperlink_n(void); +extern int utc_noti_ex_item_time_create_p(void); +extern int utc_noti_ex_item_time_create_n(void); +extern int utc_noti_ex_item_time_get_time_p(void); +extern int utc_noti_ex_item_time_get_time_n(void); +extern int utc_noti_ex_action_visibility_create_p(void); +extern int utc_noti_ex_action_visibility_create_n(void); +extern int utc_noti_ex_action_visibility_set_p(void); +extern int utc_noti_ex_action_visibility_set_n(void); +extern int utc_noti_ex_action_app_control_create_p(void); +extern int utc_noti_ex_action_app_control_create_n(void); +extern int utc_noti_ex_action_app_control_set_p(void); +extern int utc_noti_ex_action_app_control_set_n(void); +extern int utc_noti_ex_action_app_control_get_p(void); +extern int utc_noti_ex_action_app_control_get_n(void); +extern int utc_noti_ex_item_button_create_p(void); +extern int utc_noti_ex_item_button_create_n(void); +extern int utc_noti_ex_item_button_get_title_p(void); +extern int utc_noti_ex_item_button_get_title_n(void); +extern int utc_noti_ex_item_chat_message_create_p(void); +extern int utc_noti_ex_item_chat_message_create_n(void); +extern int utc_noti_ex_item_chat_message_get_name_p(void); +extern int utc_noti_ex_item_chat_message_get_name_n(void); +extern int utc_noti_ex_item_chat_message_get_text_p(void); +extern int utc_noti_ex_item_chat_message_get_text_n(void); +extern int utc_noti_ex_item_chat_message_get_image_p(void); +extern int utc_noti_ex_item_chat_message_get_image_n(void); +extern int utc_noti_ex_item_chat_message_get_time_p(void); +extern int utc_noti_ex_item_chat_message_get_time_n(void); +extern int utc_noti_ex_item_chat_message_get_message_type_p(void); +extern int utc_noti_ex_item_chat_message_get_message_type_n(void); +extern int utc_noti_ex_item_checkbox_create_p(void); +extern int utc_noti_ex_item_checkbox_create_n(void); +extern int utc_noti_ex_item_checkbox_get_title_p(void); +extern int utc_noti_ex_item_checkbox_get_title_n(void); +extern int utc_noti_ex_item_checkbox_is_checked_p(void); +extern int utc_noti_ex_item_checkbox_is_checked_n(void); +extern int utc_noti_ex_item_entry_create_p(void); +extern int utc_noti_ex_item_entry_create_n(void); +extern int utc_noti_ex_item_entry_get_text_p(void); +extern int utc_noti_ex_item_entry_get_text_n(void); +extern int utc_noti_ex_item_entry_set_text_p(void); +extern int utc_noti_ex_item_entry_set_text_n(void); +extern int utc_noti_ex_event_info_clone_p(void); +extern int utc_noti_ex_event_info_clone_n(void); +extern int utc_noti_ex_event_info_destroy_p(void); +extern int utc_noti_ex_event_info_destroy_n(void); +extern int utc_noti_ex_event_info_get_event_type_p(void); +extern int utc_noti_ex_event_info_get_event_type_n(void); +extern int utc_noti_ex_event_info_get_owner_p(void); +extern int utc_noti_ex_event_info_get_owner_n(void); +extern int utc_noti_ex_event_info_get_channel_p(void); +extern int utc_noti_ex_event_info_get_channel_n(void); +extern int utc_noti_ex_event_info_get_item_id_p(void); +extern int utc_noti_ex_event_info_get_item_id_n(void); +extern int utc_noti_ex_event_info_get_request_id_p(void); +extern int utc_noti_ex_event_info_get_request_id_n(void); +extern int utc_noti_ex_item_group_create_p(void); +extern int utc_noti_ex_item_group_create_n(void); +extern int utc_noti_ex_item_group_set_direction_p(void); +extern int utc_noti_ex_item_group_set_direction_n(void); +extern int utc_noti_ex_item_group_is_vertical_p(void); +extern int utc_noti_ex_item_group_is_vertical_n(void); +extern int utc_noti_ex_item_group_get_app_label_p(void); +extern int utc_noti_ex_item_group_get_app_label_n(void); +extern int utc_noti_ex_item_group_add_child_p(void); +extern int utc_noti_ex_item_group_add_child_n(void); +extern int utc_noti_ex_item_group_remove_child_p(void); +extern int utc_noti_ex_item_group_remove_child_n(void); +extern int utc_noti_ex_item_group_foreach_cb_p(void); +extern int utc_noti_ex_item_group_foreach_cb_n(void); testcase tc_array[] = { {"utc_notification_create_1_n",utc_notification_create_1_n,utc_notification_startup,utc_notification_cleanup}, @@ -547,6 +856,284 @@ testcase tc_array[] = { {"utc_notification_set_extension_image_size_p",utc_notification_set_extension_image_size_p,utc_notification_startup,utc_notification_cleanup}, {"utc_notification_get_extension_image_size_n",utc_notification_get_extension_image_size_n,utc_notification_startup,utc_notification_cleanup}, {"utc_notification_get_extension_image_size_p",utc_notification_get_extension_image_size_p,utc_notification_startup,utc_notification_cleanup}, + {"utc_noti_ex_color_create_p",utc_noti_ex_color_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_create_n",utc_noti_ex_color_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_destroy_p",utc_noti_ex_color_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_destroy_n",utc_noti_ex_color_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_alpha_p",utc_noti_ex_color_get_alpha_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_alpha_n",utc_noti_ex_color_get_alpha_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_red_p",utc_noti_ex_color_get_red_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_red_n",utc_noti_ex_color_get_red_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_green_p",utc_noti_ex_color_get_green_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_green_n",utc_noti_ex_color_get_green_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_blue_p",utc_noti_ex_color_get_blue_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_color_get_blue_n",utc_noti_ex_color_get_blue_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_create_p",utc_noti_ex_padding_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_create_n",utc_noti_ex_padding_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_destroy_p",utc_noti_ex_padding_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_destroy_n",utc_noti_ex_padding_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_left_p",utc_noti_ex_padding_get_left_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_left_n",utc_noti_ex_padding_get_left_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_top_p",utc_noti_ex_padding_get_top_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_top_n",utc_noti_ex_padding_get_top_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_right_p",utc_noti_ex_padding_get_right_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_right_n",utc_noti_ex_padding_get_right_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_bottom_p",utc_noti_ex_padding_get_bottom_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_padding_get_bottom_n",utc_noti_ex_padding_get_bottom_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_create_p",utc_noti_ex_geometry_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_create_n",utc_noti_ex_geometry_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_destroy_p",utc_noti_ex_geometry_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_destroy_n",utc_noti_ex_geometry_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_x_p",utc_noti_ex_geometry_get_x_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_x_n",utc_noti_ex_geometry_get_x_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_y_p",utc_noti_ex_geometry_get_y_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_y_n",utc_noti_ex_geometry_get_y_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_width_p",utc_noti_ex_geometry_get_width_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_width_n",utc_noti_ex_geometry_get_width_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_height_p",utc_noti_ex_geometry_get_height_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_geometry_get_height_n",utc_noti_ex_geometry_get_height_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_create_p",utc_noti_ex_style_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_create_n",utc_noti_ex_style_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_destroy_p",utc_noti_ex_style_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_destroy_n",utc_noti_ex_style_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_padding_p",utc_noti_ex_style_get_padding_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_padding_n",utc_noti_ex_style_get_padding_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_color_p",utc_noti_ex_style_get_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_color_n",utc_noti_ex_style_get_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_geometry_p",utc_noti_ex_style_get_geometry_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_geometry_n",utc_noti_ex_style_get_geometry_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_create_p",utc_noti_ex_led_info_create_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_create_n",utc_noti_ex_led_info_create_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_destroy_p",utc_noti_ex_led_info_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_destroy_n",utc_noti_ex_led_info_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_on_period_p",utc_noti_ex_led_info_set_on_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_on_period_n",utc_noti_ex_led_info_set_on_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_on_period_p",utc_noti_ex_led_info_get_on_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_on_period_n",utc_noti_ex_led_info_get_on_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_off_period_p",utc_noti_ex_led_info_set_off_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_set_off_period_n",utc_noti_ex_led_info_set_off_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_off_period_p",utc_noti_ex_led_info_get_off_period_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_off_period_n",utc_noti_ex_led_info_get_off_period_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_color_p",utc_noti_ex_led_info_get_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_led_info_get_color_n",utc_noti_ex_led_info_get_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_destroy_p",utc_noti_ex_action_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_destroy_n",utc_noti_ex_action_destroy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_type_p",utc_noti_ex_action_get_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_type_n",utc_noti_ex_action_get_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_is_local_p",utc_noti_ex_action_is_local_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_is_local_n",utc_noti_ex_action_is_local_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_execute_p",utc_noti_ex_action_execute_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_execute_n",utc_noti_ex_action_execute_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_extra_p",utc_noti_ex_action_get_extra_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_action_get_extra_n",utc_noti_ex_action_get_extra_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_hide_time_p",utc_noti_ex_item_info_get_hide_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_hide_time_n",utc_noti_ex_item_info_get_hide_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_hide_time_p",utc_noti_ex_item_info_set_hide_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_hide_time_n",utc_noti_ex_item_info_set_hide_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_delete_time_p",utc_noti_ex_item_info_get_delete_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_delete_time_n",utc_noti_ex_item_info_get_delete_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_delete_time_p",utc_noti_ex_item_info_set_delete_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_set_delete_time_n",utc_noti_ex_item_info_set_delete_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_time_p",utc_noti_ex_item_info_get_time_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_info_get_time_n",utc_noti_ex_item_info_get_time_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_destroy_p",utc_noti_ex_item_destroy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_destroy_p_n",utc_noti_ex_item_destroy_p_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_id_p",utc_noti_ex_item_find_by_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_id_n",utc_noti_ex_item_find_by_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_type_p",utc_noti_ex_item_get_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_type_n",utc_noti_ex_item_get_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_shared_paths_p",utc_noti_ex_item_get_shared_paths_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_shared_paths_n",utc_noti_ex_item_get_shared_paths_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_id_p",utc_noti_ex_item_get_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_id_n",utc_noti_ex_item_get_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_id_p",utc_noti_ex_item_set_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_id_n",utc_noti_ex_item_set_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_action_p",utc_noti_ex_item_get_action_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_action_n",utc_noti_ex_item_get_action_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_action_p",utc_noti_ex_item_set_action_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_action_n",utc_noti_ex_item_set_action_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_style_p",utc_noti_ex_item_get_style_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_style_n",utc_noti_ex_item_get_style_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_style_p",utc_noti_ex_item_set_style_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_style_n",utc_noti_ex_item_set_style_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_visible_p",utc_noti_ex_item_set_visible_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_visible_n",utc_noti_ex_item_set_visible_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_visible_p",utc_noti_ex_item_get_visible_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_visible_n",utc_noti_ex_item_get_visible_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_enable_p",utc_noti_ex_item_set_enable_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_enable_n",utc_noti_ex_item_set_enable_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_enable_p",utc_noti_ex_item_get_enable_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_enable_n",utc_noti_ex_item_get_enable_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_add_receiver_p",utc_noti_ex_item_add_receiver_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_add_receiver_n",utc_noti_ex_item_add_receiver_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_receiver_list_p",utc_noti_ex_item_get_receiver_list_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_receiver_list_n",utc_noti_ex_item_get_receiver_list_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_remove_receiver_p",utc_noti_ex_item_remove_receiver_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_remove_receiver_n",utc_noti_ex_item_remove_receiver_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_policy_p",utc_noti_ex_item_set_policy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_policy_n",utc_noti_ex_item_set_policy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_policy_p",utc_noti_ex_item_get_policy_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_policy_n",utc_noti_ex_item_get_policy_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_channel_p",utc_noti_ex_item_set_channel_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_channel_n",utc_noti_ex_item_set_channel_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_channel_p",utc_noti_ex_item_get_channel_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_channel_n",utc_noti_ex_item_get_channel_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_led_info_p",utc_noti_ex_item_set_led_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_led_info_n",utc_noti_ex_item_set_led_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_led_info_p",utc_noti_ex_item_get_led_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_led_info_n",utc_noti_ex_item_get_led_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_sound_path_p",utc_noti_ex_item_set_sound_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_sound_path_n",utc_noti_ex_item_set_sound_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sound_path_p",utc_noti_ex_item_get_sound_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sound_path_n",utc_noti_ex_item_get_sound_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_vibration_path_p",utc_noti_ex_item_set_vibration_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_vibration_path_n",utc_noti_ex_item_set_vibration_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_vibration_path_p",utc_noti_ex_item_get_vibration_path_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_vibration_path_n",utc_noti_ex_item_get_vibration_path_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_info_p",utc_noti_ex_item_get_info_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_info_n",utc_noti_ex_item_get_info_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sender_app_id_p",utc_noti_ex_item_get_sender_app_id_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_sender_app_id_n",utc_noti_ex_item_get_sender_app_id_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_tag_p",utc_noti_ex_item_set_tag_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_tag_n",utc_noti_ex_item_set_tag_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_tag_p",utc_noti_ex_item_get_tag_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_tag_n",utc_noti_ex_item_get_tag_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_manager_create_p",utc_noti_ex_manager_create_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_create_n",utc_noti_ex_manager_create_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_destroy_p",utc_noti_ex_manager_destroy_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_destroy_n",utc_noti_ex_manager_destroy_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_p",utc_noti_ex_manager_get_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_n",utc_noti_ex_manager_get_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_update_p",utc_noti_ex_manager_update_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_update_n",utc_noti_ex_manager_update_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_p",utc_noti_ex_manager_delete_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_n",utc_noti_ex_manager_delete_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_all_p",utc_noti_ex_manager_delete_all_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_delete_all_n",utc_noti_ex_manager_delete_all_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_hide_p",utc_noti_ex_manager_hide_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_hide_n",utc_noti_ex_manager_hide_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_find_by_root_id_p",utc_noti_ex_manager_find_by_root_id_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_find_by_root_id_n",utc_noti_ex_manager_find_by_root_id_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_send_error_p",utc_noti_ex_manager_send_error_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_send_error_n",utc_noti_ex_manager_send_error_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_notification_count_p",utc_noti_ex_manager_get_notification_count_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_notification_count_n",utc_noti_ex_manager_get_notification_count_n,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_reporter_create_p",utc_noti_ex_reporter_create_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_create_n",utc_noti_ex_reporter_create_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_destroy_p",utc_noti_ex_reporter_destroy_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_destroy_n",utc_noti_ex_reporter_destroy_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_send_error_p",utc_noti_ex_reporter_send_error_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_send_error_n",utc_noti_ex_reporter_send_error_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_p",utc_noti_ex_reporter_post_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_n",utc_noti_ex_reporter_post_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_list_p",utc_noti_ex_reporter_post_list_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_post_list_n",utc_noti_ex_reporter_post_list_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_update_p",utc_noti_ex_reporter_update_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_update_n",utc_noti_ex_reporter_update_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_p",utc_noti_ex_reporter_delete_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_n",utc_noti_ex_reporter_delete_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_all_p",utc_noti_ex_reporter_delete_all_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_delete_all_n",utc_noti_ex_reporter_delete_all_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_find_by_root_id_p",utc_noti_ex_reporter_find_by_root_id_p,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_reporter_find_by_root_id_n",utc_noti_ex_reporter_find_by_root_id_n,utc_notification_ex_reporter_startup,utc_notification_ex_reporter_cleanup}, + {"utc_noti_ex_item_image_create_p",utc_noti_ex_item_image_create_p,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_create_n",utc_noti_ex_item_image_create_n,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_get_image_path_p",utc_noti_ex_item_image_get_image_path_p,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_image_get_image_path_n",utc_noti_ex_item_image_get_image_path_n,utc_notification_ex_image_startup,utc_notification_ex_image_cleanup}, + {"utc_noti_ex_item_input_selector_create_p",utc_noti_ex_item_input_selector_create_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_create_n",utc_noti_ex_item_input_selector_create_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_set_contents_p",utc_noti_ex_item_input_selector_set_contents_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_set_contents_n",utc_noti_ex_item_input_selector_set_contents_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_get_contents_p",utc_noti_ex_item_input_selector_get_contents_p,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_input_selector_get_contents_n",utc_noti_ex_item_input_selector_get_contents_n,utc_notification_ex_input_selector_startup,utc_notification_ex_input_selector_cleanup}, + {"utc_noti_ex_item_progress_create_p",utc_noti_ex_item_progress_create_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_create_n",utc_noti_ex_item_progress_create_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_current_p",utc_noti_ex_item_progress_set_current_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_current_n",utc_noti_ex_item_progress_set_current_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_current_p",utc_noti_ex_item_progress_get_current_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_current_n",utc_noti_ex_item_progress_get_current_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_min_p",utc_noti_ex_item_progress_get_min_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_min_n",utc_noti_ex_item_progress_get_min_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_max_p",utc_noti_ex_item_progress_get_max_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_max_n",utc_noti_ex_item_progress_get_max_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_text_create_p",utc_noti_ex_item_text_create_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_create_n",utc_noti_ex_item_text_create_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_set_contents_p",utc_noti_ex_item_text_set_contents_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_set_contents_n",utc_noti_ex_item_text_set_contents_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_contents_p",utc_noti_ex_item_text_get_contents_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_contents_n",utc_noti_ex_item_text_get_contents_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_hyperlink_p",utc_noti_ex_item_text_get_hyperlink_p,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_text_get_hyperlink_n",utc_noti_ex_item_text_get_hyperlink_n,utc_notification_ex_text_startup,utc_notification_ex_text_cleanup}, + {"utc_noti_ex_item_time_create_p",utc_noti_ex_item_time_create_p,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_create_n",utc_noti_ex_item_time_create_n,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_get_time_p",utc_noti_ex_item_time_get_time_p,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_item_time_get_time_n",utc_noti_ex_item_time_get_time_n,utc_notification_ex_time_startup,utc_notification_ex_time_cleanup}, + {"utc_noti_ex_action_visibility_create_p",utc_noti_ex_action_visibility_create_p,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_create_n",utc_noti_ex_action_visibility_create_n,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_set_p",utc_noti_ex_action_visibility_set_p,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_visibility_set_n",utc_noti_ex_action_visibility_set_n,utc_notification_ex_visibility_action_startup,utc_notification_ex_visibility_action_cleanup}, + {"utc_noti_ex_action_app_control_create_p",utc_noti_ex_action_app_control_create_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_create_n",utc_noti_ex_action_app_control_create_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_set_p",utc_noti_ex_action_app_control_set_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_set_n",utc_noti_ex_action_app_control_set_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_get_p",utc_noti_ex_action_app_control_get_p,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_action_app_control_get_n",utc_noti_ex_action_app_control_get_n,utc_notification_ex_app_control_action_startup,utc_notification_ex_app_control_action_cleanup}, + {"utc_noti_ex_item_button_create_p",utc_noti_ex_item_button_create_p,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_create_n",utc_noti_ex_item_button_create_n,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_get_title_p",utc_noti_ex_item_button_get_title_p,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_button_get_title_n",utc_noti_ex_item_button_get_title_n,utc_notification_ex_button_startup,utc_notification_ex_button_cleanup}, + {"utc_noti_ex_item_chat_message_create_p",utc_noti_ex_item_chat_message_create_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_create_n",utc_noti_ex_item_chat_message_create_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_name_p",utc_noti_ex_item_chat_message_get_name_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_name_n",utc_noti_ex_item_chat_message_get_name_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_text_p",utc_noti_ex_item_chat_message_get_text_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_text_n",utc_noti_ex_item_chat_message_get_text_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_image_p",utc_noti_ex_item_chat_message_get_image_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_image_n",utc_noti_ex_item_chat_message_get_image_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_time_p",utc_noti_ex_item_chat_message_get_time_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_time_n",utc_noti_ex_item_chat_message_get_time_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_message_type_p",utc_noti_ex_item_chat_message_get_message_type_p,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_chat_message_get_message_type_n",utc_noti_ex_item_chat_message_get_message_type_n,utc_notification_ex_chat_message_startup,utc_notification_ex_chat_message_cleanup}, + {"utc_noti_ex_item_checkbox_create_p",utc_noti_ex_item_checkbox_create_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_create_n",utc_noti_ex_item_checkbox_create_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_title_p",utc_noti_ex_item_checkbox_get_title_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_title_n",utc_noti_ex_item_checkbox_get_title_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_is_checked_p",utc_noti_ex_item_checkbox_is_checked_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_is_checked_n",utc_noti_ex_item_checkbox_is_checked_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_entry_create_p",utc_noti_ex_item_entry_create_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_create_n",utc_noti_ex_item_entry_create_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_get_text_p",utc_noti_ex_item_entry_get_text_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_get_text_n",utc_noti_ex_item_entry_get_text_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_set_text_p",utc_noti_ex_item_entry_set_text_p,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_item_entry_set_text_n",utc_noti_ex_item_entry_set_text_n,utc_notification_ex_entry_startup,utc_notification_ex_entry_cleanup}, + {"utc_noti_ex_event_info_clone_p",utc_noti_ex_event_info_clone_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_clone_n",utc_noti_ex_event_info_clone_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_destroy_p",utc_noti_ex_event_info_destroy_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_destroy_n",utc_noti_ex_event_info_destroy_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_event_type_p",utc_noti_ex_event_info_get_event_type_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_event_type_n",utc_noti_ex_event_info_get_event_type_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_owner_p",utc_noti_ex_event_info_get_owner_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_owner_n",utc_noti_ex_event_info_get_owner_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_channel_p",utc_noti_ex_event_info_get_channel_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_channel_n",utc_noti_ex_event_info_get_channel_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_item_id_p",utc_noti_ex_event_info_get_item_id_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_item_id_n",utc_noti_ex_event_info_get_item_id_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_request_id_p",utc_noti_ex_event_info_get_request_id_p,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_event_info_get_request_id_n",utc_noti_ex_event_info_get_request_id_n,utc_notification_ex_event_info_startup,utc_notification_ex_event_info_cleanup}, + {"utc_noti_ex_item_group_create_p",utc_noti_ex_item_group_create_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_create_n",utc_noti_ex_item_group_create_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_set_direction_p",utc_noti_ex_item_group_set_direction_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_set_direction_n",utc_noti_ex_item_group_set_direction_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_is_vertical_p",utc_noti_ex_item_group_is_vertical_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_is_vertical_n",utc_noti_ex_item_group_is_vertical_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_get_app_label_p",utc_noti_ex_item_group_get_app_label_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_get_app_label_n",utc_noti_ex_item_group_get_app_label_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_add_child_p",utc_noti_ex_item_group_add_child_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_add_child_n",utc_noti_ex_item_group_add_child_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_remove_child_p",utc_noti_ex_item_group_remove_child_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_remove_child_n",utc_noti_ex_item_group_remove_child_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_foreach_cb_p",utc_noti_ex_item_group_foreach_cb_p,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, + {"utc_noti_ex_item_group_foreach_cb_n",utc_noti_ex_item_group_foreach_cb_n,utc_notification_ex_group_startup,utc_notification_ex_group_cleanup}, {NULL, NULL} }; -#endif // __TCT_NOTIFICATION-NATIVE_H__ +#endif // __TCT_NOTIFICATION_NATIVE_H__ diff --git a/src/utc/notification/utc-notification-ex-app_control_action.c b/src/utc/notification/utc-notification-ex-app_control_action.c new file mode 100644 index 000000000..f949db657 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-app_control_action.c @@ -0,0 +1,169 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_app_control_action_startup(void) +{ +} + +void utc_notification_ex_app_control_action_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_action_app_control_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_app_control_create() + */ +int utc_noti_ex_action_app_control_create_p(void) +{ + int ret; + app_control_h app_control = NULL; + noti_ex_action_h appcontrol_action = NULL; + + app_control_create(&app_control); + app_control_set_app_id(app_control, "temp_appid"); + + ret = noti_ex_action_app_control_create(&appcontrol_action, app_control, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + app_control_destroy(app_control); + noti_ex_action_destroy(appcontrol_action); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_app_control_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_app_control_create() + */ +int utc_noti_ex_action_app_control_create_n(void) +{ + int ret; + app_control_h app_control = NULL; + + app_control_create(&app_control); + app_control_set_app_id(app_control, "temp_appid"); + + ret = noti_ex_action_app_control_create(NULL, app_control, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + app_control_destroy(app_control); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_app_control_set_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_app_control_set() + */ +int utc_noti_ex_action_app_control_set_p(void) +{ + int ret; + app_control_h app_control = NULL; + app_control_h new_app_control = NULL; + noti_ex_action_h appcontrol_action = NULL; + + app_control_create(&app_control); + app_control_set_app_id(app_control, "temp_appid"); + + ret = noti_ex_action_app_control_create(&appcontrol_action, app_control, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + app_control_create(&new_app_control); + app_control_set_app_id(new_app_control, "new_appid"); + + ret = noti_ex_action_app_control_set(appcontrol_action, new_app_control); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + app_control_destroy(app_control); + app_control_destroy(new_app_control); + noti_ex_action_destroy(appcontrol_action); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_app_control_set_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_app_control_set() + */ +int utc_noti_ex_action_app_control_set_n(void) +{ + int ret; + app_control_h app_control = NULL; + + app_control_create(&app_control); + app_control_set_app_id(app_control, "temp_appid"); + + ret = noti_ex_action_app_control_set(NULL, app_control); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + app_control_destroy(app_control); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_app_control_get_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_app_control_get() + */ +int utc_noti_ex_action_app_control_get_p(void) +{ + int ret; + app_control_h app_control = NULL; + app_control_h new_app_control = NULL; + noti_ex_action_h appcontrol_action = NULL; + + app_control_create(&app_control); + app_control_set_app_id(app_control, "temp_appid"); + + ret = noti_ex_action_app_control_create(&appcontrol_action, app_control, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_action_app_control_get(appcontrol_action, &new_app_control); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + app_control_destroy(app_control); + noti_ex_action_destroy(appcontrol_action); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_app_control_get_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_app_control_get() + */ +int utc_noti_ex_action_app_control_get_n(void) +{ + int ret; + app_control_h app_control = NULL; + + ret = noti_ex_action_app_control_get(NULL, &app_control); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-button.c b/src/utc/notification/utc-notification-ex-button.c new file mode 100644 index 000000000..b0a6a6dbd --- /dev/null +++ b/src/utc/notification/utc-notification-ex-button.c @@ -0,0 +1,106 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_button_startup(void) +{ +} + +void utc_notification_ex_button_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_button_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_button_create() + */ +int utc_noti_ex_item_button_create_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + + ret = noti_ex_item_button_create(&item_handle, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_button_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_button_create() + */ +int utc_noti_ex_item_button_create_n(void) +{ + int ret; + + ret = noti_ex_item_button_create(NULL, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_button_get_title_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_button_get_title() + */ +int utc_noti_ex_item_button_get_title_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + char *title = NULL; + + ret = noti_ex_item_button_create(&item_handle, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_button_get_title(item_handle, &title); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(title, "button_title"), 0); + + noti_ex_item_destroy(item_handle); + free(title); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_button_get_title_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_button_get_title() + */ +int utc_noti_ex_item_button_get_title_n(void) +{ + int ret; + char *title = NULL; + + ret = noti_ex_item_button_get_title(NULL, &title); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-chat_message.c b/src/utc/notification/utc-notification-ex-chat_message.c new file mode 100644 index 000000000..bc6cb27f8 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-chat_message.c @@ -0,0 +1,306 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +static noti_ex_item_h name; +static noti_ex_item_h text; +static noti_ex_item_h image; +static noti_ex_item_h time_handle; +static time_t current_time; + +void utc_notification_ex_chat_message_startup(void) +{ + noti_ex_item_text_create(&name, "name_id", "test_name", NULL); + noti_ex_item_text_create(&text, "text_id", "test_text", NULL); + noti_ex_item_image_create(&image, "image_id", "test_image_path"); + + time(¤t_time); + noti_ex_item_time_create(&time_handle, "time_id", current_time); +} + +void utc_notification_ex_chat_message_cleanup(void) +{ + if (name) + noti_ex_item_destroy(name); + + if (text) + noti_ex_item_destroy(text); + + if (image) + noti_ex_item_destroy(image); + + if (time_handle) + noti_ex_item_destroy(time_handle); +} + +/** + * @testcase utc_noti_ex_item_chat_message_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_chat_message_create() + */ +int utc_noti_ex_item_chat_message_create_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + + ret = noti_ex_item_chat_message_create(&item_handle, "chat_id", name, + text, image, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_chat_message_create() + */ +int utc_noti_ex_item_chat_message_create_n(void) +{ + int ret; + ret = noti_ex_item_chat_message_create(NULL, "chat_id", name, + text, image, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_noti_ex_item_chat_message_get_name_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_chat_message_get_name() + */ +int utc_noti_ex_item_chat_message_get_name_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h name_handle = NULL; + char *chat_name = NULL; + + ret = noti_ex_item_chat_message_create(&item_handle, "chat_id", name, + text, image, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_chat_message_get_name(item_handle, &name_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_text_get_contents(name_handle, &chat_name); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(chat_name, "test_name"), 0); + + noti_ex_item_destroy(item_handle); + free(chat_name); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_name_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_chat_message_get_name() + */ +int utc_noti_ex_item_chat_message_get_name_n(void) +{ + int ret; + noti_ex_item_h name_handle = NULL; + + ret = noti_ex_item_chat_message_get_name(NULL, &name_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_text_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_chat_message_get_text() + */ +int utc_noti_ex_item_chat_message_get_text_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h text_handle = NULL; + char *chat_text = NULL; + + ret = noti_ex_item_chat_message_create(&item_handle, "chat_id", name, + text, image, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_chat_message_get_text(item_handle, &text_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_text_get_contents(text_handle, &chat_text); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(chat_text, "test_text"), 0); + + noti_ex_item_destroy(item_handle); + free(chat_text); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_text_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_chat_message_get_text() + */ +int utc_noti_ex_item_chat_message_get_text_n(void) +{ + int ret; + noti_ex_item_h text_handle = NULL; + + ret = noti_ex_item_chat_message_get_text(NULL, &text_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_image_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_chat_message_get_image() + */ +int utc_noti_ex_item_chat_message_get_image_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h image_handle = NULL; + char *image_path = NULL; + + ret = noti_ex_item_chat_message_create(&item_handle, "chat_id", name, + text, image, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_chat_message_get_image(item_handle, &image_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_image_get_image_path(image_handle, &image_path); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(image_path, "test_image_path"), 0); + + noti_ex_item_destroy(item_handle); + free(image_path); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_image_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_chat_message_get_image() + */ +int utc_noti_ex_item_chat_message_get_image_n(void) +{ + int ret; + noti_ex_item_h image_handle = NULL; + + ret = noti_ex_item_chat_message_get_image(NULL, &image_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_time_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_chat_message_get_time() + */ +int utc_noti_ex_item_chat_message_get_time_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h chat_time_handle = NULL; + time_t time_info; + + ret = noti_ex_item_chat_message_create(&item_handle, "chat_id", name, + text, image, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_chat_message_get_time(item_handle, &chat_time_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_time_get_time(chat_time_handle, &time_info); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(current_time, time_info); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_time_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_chat_message_get_time() + */ +int utc_noti_ex_item_chat_message_get_time_n(void) +{ + int ret; + noti_ex_item_h time_handle = NULL; + + ret = noti_ex_item_chat_message_get_time(NULL, &time_handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_message_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_chat_message_get_message_type() + */ +int utc_noti_ex_item_chat_message_get_message_type_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_chat_message_type_e type; + + ret = noti_ex_item_chat_message_create(&item_handle, "chat_id", name, + text, image, time_handle, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_chat_message_get_message_type(item_handle, &type); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + assert_eq_with_exit(type, NOTI_EX_ITEM_CHAT_MESSAGE_TYPE_USER); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_chat_message_get_message_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_chat_message_get_message_type() + */ +int utc_noti_ex_item_chat_message_get_message_type_n(void) +{ + int ret; + noti_ex_item_chat_message_type_e type; + + ret = noti_ex_item_chat_message_get_message_type(NULL, &type); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-checkbox.c b/src/utc/notification/utc-notification-ex-checkbox.c new file mode 100644 index 000000000..29242fc2e --- /dev/null +++ b/src/utc/notification/utc-notification-ex-checkbox.c @@ -0,0 +1,144 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_checkbox_startup(void) +{ +} + +void utc_notification_ex_checkbox_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_checkbox_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_checkbox_create() + */ +int utc_noti_ex_item_checkbox_create_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + + ret = noti_ex_item_checkbox_create(&item_handle, "checkbox_id", "checkbox_title", false); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_checkbox_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_checkbox_create() + */ +int utc_noti_ex_item_checkbox_create_n(void) +{ + int ret; + + ret = noti_ex_item_checkbox_create(NULL, "checkbox_id", "checkbox_title", false); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_checkbox_get_title_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_checkbox_get_title() + */ +int utc_noti_ex_item_checkbox_get_title_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + char *title = NULL; + + ret = noti_ex_item_checkbox_create(&item_handle, "checkbox_id", "checkbox_title", false); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_checkbox_get_title(item_handle, &title); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(title, "checkbox_title"), 0); + + noti_ex_item_destroy(item_handle); + free(title); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_checkbox_get_title_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_checkbox_get_title() + */ +int utc_noti_ex_item_checkbox_get_title_n(void) +{ + int ret; + char *title = NULL; + + ret = noti_ex_item_checkbox_get_title(NULL, &title); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_checkbox_is_checked_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_checkbox_is_checked() + */ +int utc_noti_ex_item_checkbox_is_checked_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + bool checked; + + ret = noti_ex_item_checkbox_create(&item_handle, "checkbox_id", "checkbox_title", false); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_checkbox_is_checked(item_handle, &checked); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(checked, false); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_checkbox_is_checked_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_checkbox_is_checked() + */ +int utc_noti_ex_item_checkbox_is_checked_n(void) +{ + int ret; + bool checked; + + ret = noti_ex_item_checkbox_is_checked(NULL, &checked); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-entry.c b/src/utc/notification/utc-notification-ex-entry.c new file mode 100644 index 000000000..8f4238eac --- /dev/null +++ b/src/utc/notification/utc-notification-ex-entry.c @@ -0,0 +1,150 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_entry_startup(void) +{ +} + +void utc_notification_ex_entry_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_entry_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_entry_create() + */ +int utc_noti_ex_item_entry_create_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + + ret = noti_ex_item_entry_create(&item_handle, "entry_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_entry_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_entry_create() + */ +int utc_noti_ex_item_entry_create_n(void) +{ + int ret; + + ret = noti_ex_item_entry_create(NULL, "entry_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_entry_get_text_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_entry_get_text() + */ +int utc_noti_ex_item_entry_get_text_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + char *text = NULL; + + ret = noti_ex_item_entry_create(&item_handle, "entry_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_entry_set_text(item_handle, "entry_text"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_entry_get_text(item_handle, &text); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(text, "entry_text"), 0); + + noti_ex_item_destroy(item_handle); + free(text); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_entry_get_text_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_entry_get_text() + */ +int utc_noti_ex_item_entry_get_text_n(void) +{ + int ret; + char *text = NULL; + + ret = noti_ex_item_entry_get_text(NULL, &text); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_entry_set_text_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_entry_set_text() + */ +int utc_noti_ex_item_entry_set_text_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + char *text = NULL; + + ret = noti_ex_item_entry_create(&item_handle, "entry_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_entry_set_text(item_handle, "entry_text"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_entry_get_text(item_handle, &text); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(text, "entry_text"), 0); + + noti_ex_item_destroy(item_handle); + free(text); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_entry_set_text_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_entry_set_text() + */ +int utc_noti_ex_item_entry_set_text_n(void) +{ + int ret; + + ret = noti_ex_item_entry_set_text(NULL, "entry_text"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-event_info.c b/src/utc/notification/utc-notification-ex-event_info.c new file mode 100644 index 000000000..aaf5047bd --- /dev/null +++ b/src/utc/notification/utc-notification-ex-event_info.c @@ -0,0 +1,343 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +static noti_ex_reporter_h eventinfo_reporter_handle__ = NULL; +static noti_ex_manager_h eventinfo_manager_handle__ = NULL; + +void utc_notification_ex_event_info_startup(void) +{ +} + +void utc_notification_ex_event_info_cleanup(void) +{ +} + +void _eventinfo_manager_events_error_cb(noti_ex_manager_h handle, + noti_ex_error_e error, int req_id, void *data) { +} + +void _eventinfo_reporter_events_error_cb(noti_ex_reporter_h handle, + noti_ex_error_e error, int req_id, void *data) { +} + +static void __send_noti() { + int req_id; + + if (eventinfo_reporter_handle__ == NULL) { + noti_ex_reporter_events_s ev = {0}; + ev.error = _eventinfo_reporter_events_error_cb; + noti_ex_reporter_create(&eventinfo_reporter_handle__, ev, NULL); + } + noti_ex_reporter_delete_all(eventinfo_reporter_handle__, &req_id); + + noti_ex_item_h group_item = NULL; + noti_ex_item_h button_item1 = NULL; + noti_ex_item_h button_item2 = NULL; + noti_ex_item_group_create(&group_item, "testgroup"); + noti_ex_item_button_create(&button_item1, "testbtn1", "test1"); + noti_ex_item_group_add_child(group_item, button_item1); + + noti_ex_item_button_create(&button_item2, "testbtn2", "test2"); + noti_ex_item_group_add_child(group_item, button_item2); + noti_ex_item_set_channel(group_item, "test_channel"); + + noti_ex_reporter_post(eventinfo_reporter_handle__, group_item, &req_id); +} + +void _eventinfo_gettest_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int ret; + noti_ex_event_info_type_e event_type; + noti_ex_event_info_h event_info__ = NULL; + char *owner = NULL; + char *channel = NULL; + char *item_id = NULL; + int req_id; + + ret = noti_ex_event_info_clone(info, &event_info__); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_event_info_get_event_type(info, &event_type); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit_no_returnval(event_type, NOTI_EX_EVENT_POST); + + ret = noti_ex_event_info_get_owner(info, &owner); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_event_info_get_channel(info, &channel); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_event_info_get_item_id(info, &item_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_event_info_get_request_id(info, &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_event_info_destroy(event_info__); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + + noti_ex_manager_delete_all(eventinfo_manager_handle__, &req_id); + + if (owner) + free(owner); + + if (item_id) + free(item_id); + + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_event_info_clone_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_event_info_clone() + */ +int utc_noti_ex_event_info_clone_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _eventinfo_gettest_events_add_cb; + ev.error = _eventinfo_manager_events_error_cb; + ret = noti_ex_manager_create(&eventinfo_manager_handle__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_event_info_clone_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_event_info_clone() + */ +int utc_noti_ex_event_info_clone_n(void) +{ + int ret; + noti_ex_event_info_h cloned_info = NULL; + + ret = noti_ex_event_info_clone(NULL, &cloned_info); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_event_info_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_event_info_destroy() + */ +int utc_noti_ex_event_info_destroy_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _eventinfo_gettest_events_add_cb; + ev.error = _eventinfo_manager_events_error_cb; + ret = noti_ex_manager_create(&eventinfo_manager_handle__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_event_info_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_event_info_destroy() + */ +int utc_noti_ex_event_info_destroy_n(void) +{ + int ret; + + ret = noti_ex_event_info_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_event_info_get_event_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_event_info_get_event_type() + */ +int utc_noti_ex_event_info_get_event_type_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _eventinfo_gettest_events_add_cb; + ev.error = _eventinfo_manager_events_error_cb; + ret = noti_ex_manager_create(&eventinfo_manager_handle__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_event_info_get_event_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_event_info_get_event_type() + */ +int utc_noti_ex_event_info_get_event_type_n(void) +{ + int ret; + noti_ex_event_info_type_e event_type; + + ret = noti_ex_event_info_get_event_type(NULL, &event_type); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_event_info_get_owner_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_event_info_get_owner() + */ +int utc_noti_ex_event_info_get_owner_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _eventinfo_gettest_events_add_cb; + ev.error = _eventinfo_manager_events_error_cb; + ret = noti_ex_manager_create(&eventinfo_manager_handle__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_event_info_get_owner_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_event_info_get_owner() + */ +int utc_noti_ex_event_info_get_owner_n(void) +{ + int ret; + char *owner = NULL; + + ret = noti_ex_event_info_get_owner(NULL, &owner); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_event_info_get_channel_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_event_info_get_channel() + */ +int utc_noti_ex_event_info_get_channel_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _eventinfo_gettest_events_add_cb; + ev.error = _eventinfo_manager_events_error_cb; + ret = noti_ex_manager_create(&eventinfo_manager_handle__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_event_info_get_channel_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_event_info_get_channel() + */ +int utc_noti_ex_event_info_get_channel_n(void) +{ + int ret; + char *channel = NULL; + + ret = noti_ex_event_info_get_channel(NULL, &channel); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_event_info_get_item_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_event_info_get_item_id() + */ +int utc_noti_ex_event_info_get_item_id_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _eventinfo_gettest_events_add_cb; + ev.error = _eventinfo_manager_events_error_cb; + ret = noti_ex_manager_create(&eventinfo_manager_handle__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_event_info_get_item_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_event_info_get_item_id() + */ +int utc_noti_ex_event_info_get_item_id_n(void) +{ + int ret; + char *item_id = NULL; + + ret = noti_ex_event_info_get_item_id(NULL, &item_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_event_info_get_request_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_event_info_get_request_id() + */ +int utc_noti_ex_event_info_get_request_id_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _eventinfo_gettest_events_add_cb; + ev.error = _eventinfo_manager_events_error_cb; + ret = noti_ex_manager_create(&eventinfo_manager_handle__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_event_info_get_request_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_event_info_get_request_id() + */ +int utc_noti_ex_event_info_get_request_id_n(void) +{ + int ret; + int req_id; + + ret = noti_ex_event_info_get_request_id(NULL, &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-group.c b/src/utc/notification/utc-notification-ex-group.c new file mode 100644 index 000000000..acfcb1fb0 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-group.c @@ -0,0 +1,325 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_group_startup(void) +{ +} + +void utc_notification_ex_group_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_group_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_group_create() + */ +int utc_noti_ex_item_group_create_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_itNONEem_group_create() + */ +int utc_noti_ex_item_group_create_n(void) +{ + int ret; + + ret = noti_ex_item_group_create(NULL, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_set_direction_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_group_set_direction() + */ +int utc_noti_ex_item_group_set_direction_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + bool vertical; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_set_direction(item_handle, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_is_vertical(item_handle, &vertical); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(vertical, true); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_set_direction_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_group_set_direction() + */ +int utc_noti_ex_item_group_set_direction_n(void) +{ + int ret; + + ret = noti_ex_item_group_set_direction(NULL, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_is_vertical_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_group_is_vertical() + */ +int utc_noti_ex_item_group_is_vertical_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + bool vertical; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_set_direction(item_handle, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_is_vertical(item_handle, &vertical); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(vertical, true); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_is_vertical_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_group_is_vertical() + */ +int utc_noti_ex_item_group_is_vertical_n(void) +{ + int ret; + bool vertical; + + ret = noti_ex_item_group_is_vertical(NULL, &vertical); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_get_app_label_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_group_get_app_label() + */ +int utc_noti_ex_item_group_get_app_label_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + char *label = NULL; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_get_app_label(item_handle, &label); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_neq_with_exit(label, NULL); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_get_app_label_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_group_get_app_label() + */ +int utc_noti_ex_item_group_get_app_label_n(void) +{ + int ret; + char *label = NULL; + + ret = noti_ex_item_group_get_app_label(NULL, &label); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_add_child_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_group_add_child() + */ +int utc_noti_ex_item_group_add_child_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h child_item = NULL; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_button_create(&child_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_add_child(item_handle, child_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_add_child_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_group_add_child() + */ +int utc_noti_ex_item_group_add_child_n(void) +{ + int ret; + noti_ex_item_h child_item = NULL; + + ret = noti_ex_item_button_create(&child_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_add_child(NULL, child_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + noti_ex_item_destroy(child_item); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_remove_child_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_group_remove_child() + */ +int utc_noti_ex_item_group_remove_child_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h child_item = NULL; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_button_create(&child_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_add_child(item_handle, child_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_remove_child(item_handle, "button_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_remove_child_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_group_remove_child() + */ +int utc_noti_ex_item_group_remove_child_n(void) +{ + int ret; + + ret = noti_ex_item_group_remove_child(NULL, "button_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +int _noti_ex_item_group_foreach_child_cb(noti_ex_item_h handle, void *user_data) +{ + int ret; + char *id = NULL; + + ret = noti_ex_item_get_id(handle, &id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(id, "button_id"), 0); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_foreach_child_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_group_foreach_child() + */ +int utc_noti_ex_item_group_foreach_child_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h child_item = NULL; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_button_create(&child_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_add_child(item_handle, child_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_group_foreach_child(item_handle, _noti_ex_item_group_foreach_child_cb, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_group_foreach_child_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_group_foreach_child() + */ +int utc_noti_ex_item_group_foreach_child_n(void) +{ + int ret; + + ret = noti_ex_item_group_foreach_child(NULL, _noti_ex_item_group_foreach_child_cb, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-image.c b/src/utc/notification/utc-notification-ex-image.c new file mode 100644 index 000000000..cf3751dac --- /dev/null +++ b/src/utc/notification/utc-notification-ex-image.c @@ -0,0 +1,108 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_image_startup(void) +{ +} + +void utc_notification_ex_image_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_image_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_image_create() + */ +int utc_noti_ex_item_image_create_p(void) +{ + int ret; + noti_ex_item_h handle; + + ret = noti_ex_item_image_create(&handle, "image_id", "image_path"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_image_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_image_create() + */ +int utc_noti_ex_item_image_create_n(void) +{ + int ret; + + ret = noti_ex_item_image_create(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_image_get_image_path_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_image_get_image_path() + */ +int utc_noti_ex_item_image_get_image_path_p(void) +{ + int ret; + char *image_path = NULL; + noti_ex_item_h handle; + + ret = noti_ex_item_image_create(&handle, "image_id", "image_path"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_image_get_image_path(handle, &image_path); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_neq_with_exit(image_path, NULL); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_image_get_image_path_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_image_get_image_path() + */ +int utc_noti_ex_item_image_get_image_path_n(void) +{ + int ret; + + ret = noti_ex_item_image_get_image_path(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-input_selector.c b/src/utc/notification/utc-notification-ex-input_selector.c new file mode 100644 index 000000000..c9d40dc20 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-input_selector.c @@ -0,0 +1,152 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_input_selector_startup(void) +{ +} + +void utc_notification_ex_input_selector_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_input_selector_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_input_selector_create() + */ +int utc_noti_ex_item_input_selector_create_p(void) +{ + int ret; + noti_ex_item_h handle; + + ret = noti_ex_item_input_selector_create(&handle, "input_selector_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_input_selector_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_input_selector_create() + */ +int utc_noti_ex_item_input_selector_create_n(void) +{ + int ret; + + ret = noti_ex_item_input_selector_create(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc _noti_ex_item_input_selector_set_contents_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_input_selector_set_contents() + */ +int utc_noti_ex_item_input_selector_set_contents_p(void) +{ + int ret; + noti_ex_item_h handle; + const char *contents[] = {"contest_1", "content_2"}; + + ret = noti_ex_item_input_selector_create(&handle, "input_selector_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_input_selector_set_contents(handle, contents, 2); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_input_selector_set_contents_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_input_selector_set_contents() + */ +int utc_noti_ex_item_input_selector_set_contents_n(void) +{ + int ret; + + ret = noti_ex_item_input_selector_set_contents(NULL, NULL, 0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_input_selector_get_contents_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_input_selector_get_contents() + */ +int utc_noti_ex_item_input_selector_get_contents_p(void) +{ + int ret; + int count = 0; + noti_ex_item_h handle; + const char *contents[] = {"content_1", "content_2"}; + char **contents_ = NULL; + + ret = noti_ex_item_input_selector_create(&handle, "input_selector_id"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_input_selector_set_contents(handle, contents, 2); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_input_selector_get_contents(handle, &contents_, &count); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(count, 2); + assert_neq_with_exit(contents_, NULL); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_input_selector_get_contents_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_input_selector_get_contents() + */ +int utc_noti_ex_item_input_selector_get_contents_n(void) +{ + int ret; + + ret = noti_ex_item_input_selector_get_contents(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-item.c b/src/utc/notification/utc-notification-ex-item.c new file mode 100644 index 000000000..e40f2db7c --- /dev/null +++ b/src/utc/notification/utc-notification-ex-item.c @@ -0,0 +1,2469 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_item_startup(void) +{ +} + +void utc_notification_ex_item_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_color_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_color_create() + */ +int utc_noti_ex_color_create_p(void) +{ + int ret; + noti_ex_color_h handle; + ret = noti_ex_color_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_color_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_color_create() + */ +int utc_noti_ex_color_create_n(void) +{ + int ret; + ret = noti_ex_color_create(NULL, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_color_destroy() + */ +int utc_noti_ex_color_destroy_p(void) +{ + int ret; + noti_ex_color_h handle; + ret = noti_ex_color_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_color_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_color_destroy() + */ +int utc_noti_ex_color_destroy_n(void) +{ + int ret; + ret = noti_ex_color_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_alpha_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_color_get_alpha() + */ +int utc_noti_ex_color_get_alpha_p(void) +{ + int ret; + unsigned char val; + noti_ex_color_h handle; + ret = noti_ex_color_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_color_get_alpha(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(val, 1); + noti_ex_color_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_alpha_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_color_get_alpha() + */ +int utc_noti_ex_color_get_alpha_n(void) +{ + int ret; + ret = noti_ex_color_get_alpha(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_red_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_color_get_red() + */ +int utc_noti_ex_color_get_red_p(void) +{ + int ret; + unsigned char val; + noti_ex_color_h handle; + ret = noti_ex_color_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_color_get_red(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(val, 2); + noti_ex_color_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_red_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_color_get_red() + */ +int utc_noti_ex_color_get_red_n(void) +{ + int ret; + ret = noti_ex_color_get_red(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_green_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_color_get_green() + */ +int utc_noti_ex_color_get_green_p(void) +{ + int ret; + unsigned char val; + noti_ex_color_h handle; + ret = noti_ex_color_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_color_get_green(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(val, 3); + noti_ex_color_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_green_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_color_get_green() + */ +int utc_noti_ex_color_get_green_n(void) +{ + int ret; + ret = noti_ex_color_get_green(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_blue_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_color_get_blue() + */ +int utc_noti_ex_color_get_blue_p(void) +{ + int ret; + unsigned char val; + noti_ex_color_h handle; + ret = noti_ex_color_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_color_get_blue(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(val, 4); + noti_ex_color_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_color_get_blue_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_color_get_blue() + */ +int utc_noti_ex_color_get_blue_n(void) +{ + int ret; + ret = noti_ex_color_get_blue(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_padding_create() + */ +int utc_noti_ex_padding_create_p(void) +{ + int ret; + noti_ex_padding_h handle; + ret = noti_ex_padding_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_color_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_padding_create() + */ +int utc_noti_ex_padding_create_n(void) +{ + int ret; + ret = noti_ex_padding_create(NULL, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_padding_destroy() + */ +int utc_noti_ex_padding_destroy_p(void) +{ + int ret; + noti_ex_padding_h handle; + ret = noti_ex_padding_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_padding_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_padding_destroy() + */ +int utc_noti_ex_padding_destroy_n(void) +{ + int ret; + ret = noti_ex_padding_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_left_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_padding_get_left() + */ +int utc_noti_ex_padding_get_left_p(void) +{ + int ret; + int val; + noti_ex_padding_h handle; + ret = noti_ex_padding_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_padding_get_left(handle, &val); + assert_eq_with_exit(val, 1); + noti_ex_padding_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_left_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_padding_get_left() + */ +int utc_noti_ex_padding_get_left_n(void) +{ + int ret; + ret = noti_ex_padding_get_left(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_top_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_padding_get_top() + */ +int utc_noti_ex_padding_get_top_p(void) +{ + int ret; + int val; + noti_ex_padding_h handle; + ret = noti_ex_padding_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_padding_get_top(handle, &val); + assert_eq_with_exit(val, 2); + noti_ex_padding_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_top_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_padding_get_top() + */ +int utc_noti_ex_padding_get_top_n(void) +{ + int ret; + ret = noti_ex_padding_get_top(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_right_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_padding_get_right() + */ +int utc_noti_ex_padding_get_right_p(void) +{ + int ret; + int val; + noti_ex_padding_h handle; + ret = noti_ex_padding_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_padding_get_right(handle, &val); + assert_eq_with_exit(val, 3); + noti_ex_padding_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_right_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_padding_get_right() + */ +int utc_noti_ex_padding_get_right_n(void) +{ + int ret; + ret = noti_ex_padding_get_right(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_bottom_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_padding_get_bottom() + */ +int utc_noti_ex_padding_get_bottom_p(void) +{ + int ret; + int val; + noti_ex_padding_h handle; + ret = noti_ex_padding_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_padding_get_bottom(handle, &val); + assert_eq_with_exit(val, 4); + noti_ex_padding_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_padding_get_bottom_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_padding_get_bottom() + */ +int utc_noti_ex_padding_get_bottom_n(void) +{ + int ret; + ret = noti_ex_padding_get_bottom(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_geometry_create() + */ +int utc_noti_ex_geometry_create_p(void) +{ + int ret; + noti_ex_geometry_h handle; + ret = noti_ex_geometry_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_geometry_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_geometry_create() + */ +int utc_noti_ex_geometry_create_n(void) +{ + int ret; + ret = noti_ex_geometry_create(NULL, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_geometry_destroy() + */ +int utc_noti_ex_geometry_destroy_p(void) +{ + int ret; + noti_ex_geometry_h handle; + ret = noti_ex_geometry_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_geometry_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_geometry_destroy() + */ +int utc_noti_ex_geometry_destroy_n(void) +{ + int ret; + ret = noti_ex_geometry_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_x_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_geometry_get_x() + */ +int utc_noti_ex_geometry_get_x_p(void) +{ + int ret; + int val; + noti_ex_geometry_h handle; + ret = noti_ex_geometry_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_geometry_get_x(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(1, val); + noti_ex_geometry_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_x_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_geometry_get_x() + */ +int utc_noti_ex_geometry_get_x_n(void) +{ + int ret; + ret = noti_ex_geometry_get_x(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_y_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_geometry_get_y() + */ +int utc_noti_ex_geometry_get_y_p(void) +{ + int ret; + int val; + noti_ex_geometry_h handle; + ret = noti_ex_geometry_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_geometry_get_y(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(2, val); + noti_ex_geometry_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_y_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_geometry_get_y() + */ +int utc_noti_ex_geometry_get_y_n(void) +{ + int ret; + ret = noti_ex_geometry_get_y(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_width_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_geometry_get_width() + */ +int utc_noti_ex_geometry_get_width_p(void) +{ + int ret; + int val; + noti_ex_geometry_h handle; + ret = noti_ex_geometry_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_geometry_get_width(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(3, val); + noti_ex_geometry_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_width_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_geometry_get_width() + */ +int utc_noti_ex_geometry_get_width_n(void) +{ + int ret; + ret = noti_ex_geometry_get_width(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_height_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_geometry_get_height() + */ +int utc_noti_ex_geometry_get_height_p(void) +{ + int ret; + int val; + noti_ex_geometry_h handle; + ret = noti_ex_geometry_create(&handle, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_geometry_get_height(handle, &val); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(4, val); + noti_ex_geometry_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_geometry_get_height_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_geometry_get_height() + */ +int utc_noti_ex_geometry_get_height_n(void) +{ + int ret; + ret = noti_ex_geometry_get_height(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_create() + */ +int utc_noti_ex_style_create_p(void) +{ + int ret; + noti_ex_style_h handle; + noti_ex_color_h color; + noti_ex_padding_h padding; + noti_ex_geometry_h geometry; + + noti_ex_color_create(&color, 1, 2, 3, 4); + noti_ex_padding_create(&padding, 1, 2, 3, 4); + noti_ex_geometry_create(&geometry, 1, 2, 3, 4); + ret = noti_ex_style_create(&handle, color, padding, geometry); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_style_destroy(handle); + noti_ex_color_destroy(color); + noti_ex_padding_destroy(padding); + noti_ex_geometry_destroy(geometry); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_create() + */ +int utc_noti_ex_style_create_n(void) +{ + int ret; + ret = noti_ex_style_create(NULL, NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_destroy() + */ +int utc_noti_ex_style_destroy_p(void) +{ + int ret; + noti_ex_style_h handle; + noti_ex_color_h color; + noti_ex_padding_h padding; + noti_ex_geometry_h geometry; + + noti_ex_color_create(&color, 1, 2, 3, 4); + noti_ex_padding_create(&padding, 1, 2, 3, 4); + noti_ex_geometry_create(&geometry, 1, 2, 3, 4); + ret = noti_ex_style_create(&handle, color, padding, geometry); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_color_destroy(color); + noti_ex_padding_destroy(padding); + noti_ex_geometry_destroy(geometry); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_destroy() + */ +int utc_noti_ex_style_destroy_n(void) +{ + int ret; + ret = noti_ex_style_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_padding_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_get_padding() + */ +int utc_noti_ex_style_get_padding_p(void) +{ + int ret; + int left, top, right, bottom; + int style_left, style_top, style_right, style_bottom; + noti_ex_style_h handle; + noti_ex_color_h color; + noti_ex_padding_h padding; + noti_ex_geometry_h geometry; + noti_ex_padding_h style_padding; + + noti_ex_color_create(&color, 1, 2, 3, 4); + noti_ex_padding_create(&padding, 1, 2, 3, 4); + noti_ex_geometry_create(&geometry, 1, 2, 3, 4); + ret = noti_ex_style_create(&handle, color, padding, geometry); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_get_padding(handle, &style_padding); + + noti_ex_padding_get_left(padding, &left); + noti_ex_padding_get_left(style_padding, &style_left); + assert_eq_with_exit(left, style_left); + + noti_ex_padding_get_top(padding, &top); + noti_ex_padding_get_top(style_padding, &style_top); + assert_eq_with_exit(top, style_top); + + noti_ex_padding_get_right(padding, &right); + noti_ex_padding_get_right(style_padding, &style_right); + assert_eq_with_exit(right, style_right); + + noti_ex_padding_get_bottom(padding, &bottom); + noti_ex_padding_get_bottom(style_padding, &style_bottom); + assert_eq_with_exit(bottom, style_bottom); + + noti_ex_style_destroy(handle); + noti_ex_color_destroy(color); + noti_ex_padding_destroy(padding); + noti_ex_geometry_destroy(geometry); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_padding_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_get_padding() + */ +int utc_noti_ex_style_get_padding_n(void) +{ + int ret; + ret = noti_ex_style_get_padding(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_color_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_get_color() + */ +int utc_noti_ex_style_get_color_p(void) +{ + int ret; + unsigned char a, r, g, b; + unsigned char style_a, style_r, style_g, style_b; + noti_ex_style_h handle; + noti_ex_color_h color; + noti_ex_padding_h padding; + noti_ex_geometry_h geometry; + noti_ex_color_h style_color; + + noti_ex_color_create(&color, 1, 2, 3, 4); + noti_ex_padding_create(&padding, 1, 2, 3, 4); + noti_ex_geometry_create(&geometry, 1, 2, 3, 4); + ret = noti_ex_style_create(&handle, color, padding, geometry); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_get_color(handle, &style_color); + + noti_ex_color_get_alpha(color, &a); + noti_ex_color_get_alpha(style_color, &style_a); + assert_eq_with_exit(a, style_a); + + noti_ex_color_get_red(color, &r); + noti_ex_color_get_red(style_color, &style_r); + assert_eq_with_exit(r, style_r); + + noti_ex_color_get_green(color, &g); + noti_ex_color_get_green(style_color, &style_g); + assert_eq_with_exit(g, style_g); + + noti_ex_color_get_blue(color, &b); + noti_ex_color_get_blue(style_color, &style_b); + assert_eq_with_exit(b, style_b); + + noti_ex_style_destroy(handle); + noti_ex_color_destroy(color); + noti_ex_padding_destroy(padding); + noti_ex_geometry_destroy(geometry); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_color_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_get_color() + */ +int utc_noti_ex_style_get_color_n(void) +{ + int ret; + ret = noti_ex_style_get_color(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_geometry_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_get_geometry() + */ +int utc_noti_ex_style_get_geometry_p(void) +{ + int ret; + int h, w, x, y; + int style_h, style_w, style_x, style_y; + noti_ex_style_h handle; + noti_ex_color_h color; + noti_ex_padding_h padding; + noti_ex_geometry_h geometry; + noti_ex_geometry_h style_geometry; + + noti_ex_color_create(&color, 1, 2, 3, 4); + noti_ex_padding_create(&padding, 1, 2, 3, 4); + noti_ex_geometry_create(&geometry, 1, 2, 3, 4); + ret = noti_ex_style_create(&handle, color, padding, geometry); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_get_geometry(handle, &style_geometry); + + noti_ex_geometry_get_height(geometry, &h); + noti_ex_geometry_get_height(style_geometry, &style_h); + assert_eq_with_exit(h, style_h); + + noti_ex_geometry_get_width(geometry, &w); + noti_ex_geometry_get_width(style_geometry, &style_w); + assert_eq_with_exit(w, style_w); + + noti_ex_geometry_get_x(geometry, &x); + noti_ex_geometry_get_x(style_geometry, &style_x); + assert_eq_with_exit(x, style_x); + + noti_ex_geometry_get_y(geometry, &y); + noti_ex_geometry_get_y(style_geometry, &style_y); + assert_eq_with_exit(y, style_y); + + noti_ex_style_destroy(handle); + noti_ex_color_destroy(color); + noti_ex_padding_destroy(padding); + noti_ex_geometry_destroy(geometry); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_geometry_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_get_geometry() + */ +int utc_noti_ex_style_get_geometry_n(void) +{ + int ret; + ret = noti_ex_style_get_geometry(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_led_info_create() + */ +int utc_noti_ex_led_info_create_p(void) +{ + int ret; + noti_ex_led_info_h handle; + noti_ex_color_h color; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_led_info_create() + */ +int utc_noti_ex_led_info_create_n(void) +{ + int ret; + ret = noti_ex_led_info_create(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_led_info_destroy() + */ +int utc_noti_ex_led_info_destroy_p(void) +{ + int ret; + noti_ex_led_info_h handle; + noti_ex_color_h color; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_led_info_destroy() + */ +int utc_noti_ex_led_info_destroy_n(void) +{ + int ret; + ret = noti_ex_led_info_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_set_on_period_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_led_info_set_on_period() + */ +int utc_noti_ex_led_info_set_on_period_p(void) +{ + int ret; + noti_ex_led_info_h handle; + noti_ex_color_h color; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_led_info_set_on_period(handle, 5); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_set_on_period_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_led_info_set_on_period() + */ +int utc_noti_ex_led_info_set_on_period_n(void) +{ + int ret; + ret = noti_ex_led_info_set_on_period(NULL, 5); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_get_on_period_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_led_info_get_on_period() + */ +int utc_noti_ex_led_info_get_on_period_p(void) +{ + int ret; + noti_ex_led_info_h handle; + noti_ex_color_h color; + int ms; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_led_info_set_on_period(handle, 5); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_led_info_get_on_period(handle, &ms); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(ms, 5); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_get_on_period_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_led_info_get_on_period() + */ +int utc_noti_ex_led_info_get_on_period_n(void) +{ + int ret; + ret = noti_ex_led_info_get_on_period(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + + +/** + * @testcase utc_noti_ex_led_info_set_off_period_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_led_info_set_off_period() + */ +int utc_noti_ex_led_info_set_off_period_p(void) +{ + int ret; + noti_ex_led_info_h handle; + noti_ex_color_h color; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_led_info_set_off_period(handle, 5); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_set_off_period_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_led_info_set_off_period() + */ +int utc_noti_ex_led_info_set_off_period_n(void) +{ + int ret; + ret = noti_ex_led_info_set_off_period(NULL, 5); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_get_off_period_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_led_info_get_off_period() + */ +int utc_noti_ex_led_info_get_off_period_p(void) +{ + int ret; + noti_ex_led_info_h handle; + noti_ex_color_h color; + int ms; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_led_info_set_off_period(handle, 5); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_led_info_get_off_period(handle, &ms); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(ms, 5); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_get_off_period_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_led_info_get_off_period() + */ +int utc_noti_ex_led_info_get_off_period_n(void) +{ + int ret; + ret = noti_ex_led_info_get_off_period(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_get_color_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_led_info_get_color() + */ +int utc_noti_ex_led_info_get_color_p(void) +{ + int ret; + noti_ex_led_info_h handle; + noti_ex_color_h color; + noti_ex_color_h ret_color; + unsigned char a, r, g, b; + unsigned char ret_a, ret_r, ret_g, ret_b; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_led_info_get_color(handle, &ret_color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_color_get_alpha(color, &a); + noti_ex_color_get_alpha(ret_color, &ret_a); + assert_eq_with_exit(a, ret_a); + + noti_ex_color_get_red(color, &r); + noti_ex_color_get_red(ret_color, &ret_r); + assert_eq_with_exit(r, ret_r); + + noti_ex_color_get_green(color, &g); + noti_ex_color_get_green(ret_color, &ret_g); + assert_eq_with_exit(g, ret_g); + + noti_ex_color_get_blue(color, &b); + noti_ex_color_get_blue(ret_color, &ret_b); + assert_eq_with_exit(b, ret_b); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_led_info_get_color_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_led_info_get_color() + */ +int utc_noti_ex_led_info_get_color_n(void) +{ + int ret; + ret = noti_ex_led_info_get_color(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_destroy() + */ +int utc_noti_ex_action_destroy_p(void) +{ + int ret; + noti_ex_action_h handle; + + noti_ex_action_visibility_create(&handle, NULL); + ret = noti_ex_action_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_destroy() + */ +int utc_noti_ex_action_destroy_n(void) +{ + int ret; + ret = noti_ex_action_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_get_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_get_type() + */ +int utc_noti_ex_action_get_type_p(void) +{ + int ret; + int type; + noti_ex_action_h handle; + + noti_ex_action_visibility_create(&handle, NULL); + ret = noti_ex_action_get_type(handle, &type); + assert_eq_with_exit(type, NOTI_EX_ACTION_TYPE_VISIBILITY); + ret = noti_ex_action_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_get_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_get_type() + */ +int utc_noti_ex_action_get_type_n(void) +{ + int ret; + ret = noti_ex_action_get_type(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_is_local_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_is_local() + */ +int utc_noti_ex_action_is_local_p(void) +{ + int ret; + noti_ex_action_h handle; + bool is_local; + + noti_ex_action_visibility_create(&handle, NULL); + ret = noti_ex_action_is_local(handle, &is_local); + assert_eq_with_exit(is_local, true); + ret = noti_ex_action_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_is_local_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_is_local() + */ +int utc_noti_ex_action_is_local_n(void) +{ + int ret; + ret = noti_ex_action_is_local(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_execute_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_execute() + */ +int utc_noti_ex_action_execute_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_action_h action = NULL; + + ret = noti_ex_action_visibility_create(&action, NULL); + ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_action(button_item, action); + + ret = noti_ex_action_execute(action, button_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_execute_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_execute() + */ +int utc_noti_ex_action_execute_n(void) +{ + int ret; + ret = noti_ex_action_execute(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_get_extra_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_get_extra() + */ +int utc_noti_ex_action_get_extra_p(void) +{ + int ret; + noti_ex_action_h handle; + char *extra; + + noti_ex_action_visibility_create(&handle, "test"); + ret = noti_ex_action_get_extra(handle, &extra); + assert_eq_with_exit(strcmp(extra, "test"), 0); + ret = noti_ex_action_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_get_extra_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_get_extra() + */ +int utc_noti_ex_action_get_extra_n(void) +{ + int ret; + ret = noti_ex_action_get_extra(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_get_hide_time_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_info_get_hide_time() + */ +int utc_noti_ex_item_info_get_hide_time_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_info_h item_info = NULL; + int hide_time; + + ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_info(button_item, &item_info); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_info_set_hide_time(item_info, 10); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_info_get_hide_time(item_info, &hide_time); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(hide_time, 10); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_get_hide_time_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_info_get_hide_time() + */ +int utc_noti_ex_item_info_get_hide_time_n(void) +{ + int ret; + ret = noti_ex_item_info_get_hide_time(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_set_hide_time_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_info_set_hide_time() + */ +int utc_noti_ex_item_info_set_hide_time_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_info_h item_info = NULL; + + ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_info(button_item, &item_info); + ret = noti_ex_item_info_set_hide_time(item_info, 10); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_set_hide_time_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_info_set_hide_time() + */ +int utc_noti_ex_item_info_set_hide_time_n(void) +{ + int ret; + ret = noti_ex_item_info_set_hide_time(NULL, 10); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_get_delete_time_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_info_get_delete_time() + */ +int utc_noti_ex_item_info_get_delete_time_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_info_h item_info = NULL; + int delete_time; + + ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_info(button_item, &item_info); + ret = noti_ex_item_info_set_delete_time(item_info, 10); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_info_get_delete_time(item_info, &delete_time); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(delete_time, 10); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_get_delete_time_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_info_get_delete_time() + */ +int utc_noti_ex_item_info_get_delete_time_n(void) +{ + int ret; + ret = noti_ex_item_info_get_delete_time(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_set_delete_time_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_info_set_delete_time() + */ +int utc_noti_ex_item_info_set_delete_time_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_info_h item_info = NULL; + + ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_info(button_item, &item_info); + ret = noti_ex_item_info_set_delete_time(item_info, 10); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_set_delete_time_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_info_set_delete_time() + */ +int utc_noti_ex_item_info_set_delete_time_n(void) +{ + int ret; + ret = noti_ex_item_info_set_delete_time(NULL, 10); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_get_time_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_info_get_time() + */ +int utc_noti_ex_item_info_get_time_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_info_h item_info = NULL; + time_t t; + + ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_info(button_item, &item_info); + ret = noti_ex_item_info_get_time(item_info, &t); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_info_get_time_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_info_get_time() + */ +int utc_noti_ex_item_info_get_time_n(void) +{ + int ret; + ret = noti_ex_item_info_get_time(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + + +/** + * @testcase utc_noti_ex_item_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_destroy() + */ +int utc_noti_ex_item_destroy_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + ret = noti_ex_item_button_create(&button_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_destroy(button_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_destroy_p_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_destroy() + */ +int utc_noti_ex_item_destroy_p_n(void) +{ + int ret; + ret = noti_ex_item_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_find_by_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_find_by_id() + */ +int utc_noti_ex_item_find_by_id_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_h find_item = NULL; + noti_ex_item_h group_item = NULL; + char *find_id; + char *id; + + noti_ex_item_group_create(&group_item, "group_id"); + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_group_add_child(group_item, button_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_find_by_id(group_item, "button_id", &find_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_item_get_id(find_item, &find_id); + noti_ex_item_get_id(button_item, &id); + assert_eq_with_exit(strcmp(id, find_id), 0); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_find_by_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_find_by_id() + */ +int utc_noti_ex_item_find_by_id_n(void) +{ + int ret; + ret = noti_ex_item_find_by_id(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_type() + */ +int utc_noti_ex_item_get_type_p(void) +{ + int ret; + int type; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_get_type(button_item, &type); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(type, NOTI_EX_ITEM_TYPE_BUTTON); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_type() + */ +int utc_noti_ex_item_get_type_n(void) +{ + int ret; + ret = noti_ex_item_get_type(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_shared_paths_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_shared_paths() + */ +int utc_noti_ex_item_get_shared_paths_p(void) +{ + int ret; + char **path; + int count; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_get_shared_paths(button_item, &path, &count); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_shared_paths_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_shared_paths() + */ +int utc_noti_ex_item_get_shared_paths_n(void) +{ + int ret; + ret = noti_ex_item_get_shared_paths(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_id() + */ +int utc_noti_ex_item_get_id_p(void) +{ + int ret; + char *id; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_get_id(button_item, &id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_id() + */ +int utc_noti_ex_item_get_id_n(void) +{ + int ret; + ret = noti_ex_item_get_id(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_id() + */ +int utc_noti_ex_item_set_id_p(void) +{ + int ret; + char *id; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_id(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_id(button_item, &id); + assert_eq_with_exit(strcmp(id, "test"), 0); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_id() + */ +int utc_noti_ex_item_set_id_n(void) +{ + int ret; + ret = noti_ex_item_set_id(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_action_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_action() + */ +int utc_noti_ex_item_get_action_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_action_h action = NULL; + noti_ex_action_h ret_action = NULL; + + noti_ex_action_visibility_create(&action, NULL); + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_action(button_item, action); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_action(button_item, &ret_action); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_action_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_action() + */ +int utc_noti_ex_item_get_action_n(void) +{ + int ret; + ret = noti_ex_item_get_action(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_action_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_action() + */ +int utc_noti_ex_item_set_action_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_action_h action = NULL; + + noti_ex_action_visibility_create(&action, NULL); + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_action(button_item, action); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_action_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_action() + */ +int utc_noti_ex_item_set_action_n(void) +{ + int ret; + ret = noti_ex_item_set_action(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_style_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_style() + */ +int utc_noti_ex_item_get_style_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_style_h style = NULL; + noti_ex_style_h ret_style = NULL; + + noti_ex_color_h color; + noti_ex_padding_h padding; + noti_ex_padding_h ret_padding; + noti_ex_geometry_h geometry; + int left, top, right, bottom; + + noti_ex_color_create(&color, 1, 2, 3, 4); + noti_ex_padding_create(&padding, 1, 2, 3, 4); + noti_ex_geometry_create(&geometry, 1, 2, 3, 4); + ret = noti_ex_style_create(&style, color, padding, geometry); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + + ret = noti_ex_item_set_style(button_item, style); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_style(button_item, &ret_style); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_get_padding(ret_style, &ret_padding); + + noti_ex_padding_get_left(ret_padding, &left); + assert_eq_with_exit(left, 1); + + noti_ex_padding_get_top(ret_padding, &top); + assert_eq_with_exit(top, 2); + + noti_ex_padding_get_right(ret_padding, &right); + assert_eq_with_exit(right, 3); + + noti_ex_padding_get_bottom(ret_padding, &bottom); + assert_eq_with_exit(bottom, 4); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_style_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_style() + */ +int utc_noti_ex_item_get_style_n(void) +{ + int ret; + ret = noti_ex_item_get_style(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_style_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_style() + */ +int utc_noti_ex_item_set_style_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_style_h style = NULL; + + noti_ex_color_h color; + noti_ex_padding_h padding; + noti_ex_geometry_h geometry; + + noti_ex_color_create(&color, 1, 2, 3, 4); + noti_ex_padding_create(&padding, 1, 2, 3, 4); + noti_ex_geometry_create(&geometry, 1, 2, 3, 4); + ret = noti_ex_style_create(&style, color, padding, geometry); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + + ret = noti_ex_item_set_style(button_item, style); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_style_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_style() + */ +int utc_noti_ex_item_set_style_n(void) +{ + int ret; + ret = noti_ex_item_get_style(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_visible_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_visible() + */ +int utc_noti_ex_item_set_visible_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_visible(button_item, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_visible_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_visible() + */ +int utc_noti_ex_item_set_visible_n(void) +{ + int ret; + ret = noti_ex_item_set_visible(NULL, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_visible_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_visible() + */ +int utc_noti_ex_item_get_visible_p(void) +{ + int ret; + bool visible; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_visible(button_item, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_visible(button_item, &visible); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(true, visible); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_visible_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_visible() + */ +int utc_noti_ex_item_get_visible_n(void) +{ + int ret; + ret = noti_ex_item_get_visible(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_enable_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_enable() + */ +int utc_noti_ex_item_set_enable_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_enable(button_item, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_enable_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_enable() + */ +int utc_noti_ex_item_set_enable_n(void) +{ + int ret; + ret = noti_ex_item_set_enable(NULL, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_enable_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_enable() + */ +int utc_noti_ex_item_get_enable_p(void) +{ + int ret; + bool enable; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_enable(button_item, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_enable(button_item, &enable); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(true, enable); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_enable_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_enable() + */ +int utc_noti_ex_item_get_enable_n(void) +{ + int ret; + ret = noti_ex_item_get_enable(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_add_receiver_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_add_receiver() + */ +int utc_noti_ex_item_add_receiver_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_add_receiver(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_add_receiver_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_add_receiver() + */ +int utc_noti_ex_item_add_receiver_n(void) +{ + int ret; + ret = noti_ex_item_add_receiver(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_receiver_list_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_receiver_list() + */ +int utc_noti_ex_item_get_receiver_list_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + char **list = NULL; + int count; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_add_receiver(button_item, "test1"); + ret = noti_ex_item_add_receiver(button_item, "test2"); + noti_ex_item_get_receiver_list(button_item, &list, &count); + assert_eq_with_exit(2, count); + + ret = noti_ex_item_remove_receiver(button_item, "test1"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_item_get_receiver_list(button_item, &list, &count); + assert_eq_with_exit(1, count); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_receiver_list_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_receiver_list() + */ +int utc_noti_ex_item_get_receiver_list_n(void) +{ + int ret; + ret = noti_ex_item_get_receiver_list(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_remove_receiver_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_remove_receiver() + */ +int utc_noti_ex_item_remove_receiver_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + char **list = NULL; + int count; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_add_receiver(button_item, "test1"); + ret = noti_ex_item_add_receiver(button_item, "test2"); + noti_ex_item_get_receiver_list(button_item, &list, &count); + assert_eq_with_exit(2, count); + + ret = noti_ex_item_remove_receiver(button_item, "test1"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_item_get_receiver_list(button_item, &list, &count); + assert_eq_with_exit(1, count); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_remove_receiver_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_remove_receiver() + */ +int utc_noti_ex_item_remove_receiver_n(void) +{ + int ret; + ret = noti_ex_item_remove_receiver(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_policy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_policy() + */ +int utc_noti_ex_item_set_policy_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_policy(button_item, NOTI_EX_ITEM_POLICY_SIM_MODE); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_policy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_policy() + */ +int utc_noti_ex_item_set_policy_n(void) +{ + int ret; + ret = noti_ex_item_set_policy(NULL, NOTI_EX_ITEM_POLICY_SIM_MODE); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_policy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_policy() + */ +int utc_noti_ex_item_get_policy_p(void) +{ + int ret; + int policy; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_policy(button_item, NOTI_EX_ITEM_POLICY_SIM_MODE); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_policy(button_item, &policy); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(NOTI_EX_ITEM_POLICY_SIM_MODE, policy); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_policy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_policy() + */ +int utc_noti_ex_item_get_policy_n(void) +{ + int ret; + ret = noti_ex_item_get_policy(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_channel_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_channel() + */ +int utc_noti_ex_item_set_channel_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_channel(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_channel_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_channel() + */ +int utc_noti_ex_item_set_channel_n(void) +{ + int ret; + ret = noti_ex_item_set_channel(NULL, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_channel_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_channel() + */ +int utc_noti_ex_item_get_channel_p(void) +{ + int ret; + char *channel; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_channel(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_channel(button_item, &channel); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(channel, "test"), 0); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_channel_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_channel() + */ +int utc_noti_ex_item_get_channel_n(void) +{ + int ret; + ret = noti_ex_item_get_channel(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_led_info_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_led_info() + */ +int utc_noti_ex_item_set_led_info_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_led_info_h led_info; + noti_ex_color_h color; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&led_info, color); + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_led_info(button_item, led_info); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_led_info_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_led_info() + */ +int utc_noti_ex_item_set_led_info_n(void) +{ + int ret; + ret = noti_ex_item_set_led_info(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_led_info_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_led_info() + */ +int utc_noti_ex_item_get_led_info_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_led_info_h led_info; + noti_ex_led_info_h ret_led_info; + noti_ex_color_h color; + + noti_ex_color_create(&color, 1, 2, 3, 4); + ret = noti_ex_led_info_create(&led_info, color); + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_led_info(button_item, led_info); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_led_info(button_item, &ret_led_info); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_led_info_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_led_info() + */ +int utc_noti_ex_item_get_led_info_n(void) +{ + int ret; + ret = noti_ex_item_get_led_info(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + + +/** + * @testcase utc_noti_ex_item_set_sound_path_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_sound_path() + */ +int utc_noti_ex_item_set_sound_path_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_sound_path(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_sound_path_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_sound_path() + */ +int utc_noti_ex_item_set_sound_path_n(void) +{ + int ret; + ret = noti_ex_item_set_sound_path(NULL, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_sound_path_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_sound_path() + */ +int utc_noti_ex_item_get_sound_path_p(void) +{ + int ret; + char *sound_path; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_sound_path(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_sound_path(button_item, &sound_path); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(sound_path, "test"), 0); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_sound_path_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_sound_path() + */ +int utc_noti_ex_item_get_sound_path_n(void) +{ + int ret; + ret = noti_ex_item_get_sound_path(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_vibration_path_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_vibration_path() + */ +int utc_noti_ex_item_set_vibration_path_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_vibration_path(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_vibration_path_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_vibration_path() + */ +int utc_noti_ex_item_set_vibration_path_n(void) +{ + int ret; + ret = noti_ex_item_set_vibration_path(NULL, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_vibration_path_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_vibration_path() + */ +int utc_noti_ex_item_get_vibration_path_p(void) +{ + int ret; + char *vibration_path; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_vibration_path(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_vibration_path(button_item, &vibration_path); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(vibration_path, "test"), 0); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_vibration_path_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_vibration_path() + */ +int utc_noti_ex_item_get_vibration_path_n(void) +{ + int ret; + ret = noti_ex_item_get_vibration_path(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_info_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_info() + */ +int utc_noti_ex_item_get_info_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_info_h item_info = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_get_info(button_item, &item_info); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_info_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_info() + */ +int utc_noti_ex_item_get_info_n(void) +{ + int ret; + ret = noti_ex_item_get_info(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_sender_app_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_sender_app_id() + */ +int utc_noti_ex_item_get_sender_app_id_p(void) +{ + int ret; + char *sender_app_id; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_get_sender_app_id(button_item, &sender_app_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_sender_app_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_sender_app_id() + */ +int utc_noti_ex_item_get_sender_app_id_n(void) +{ + int ret; + ret = noti_ex_item_get_sender_app_id(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_tag_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_tag() + */ +int utc_noti_ex_item_set_tag_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_tag(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_tag_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_tag() + */ +int utc_noti_ex_item_set_tag_n(void) +{ + int ret; + ret = noti_ex_item_set_tag(NULL, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_tag_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_tag() + */ +int utc_noti_ex_item_get_tag_p(void) +{ + int ret; + char *tag; + noti_ex_item_h button_item = NULL; + + noti_ex_item_button_create(&button_item, "button_id", "button_title"); + ret = noti_ex_item_set_tag(button_item, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_tag(button_item, &tag); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(strcmp(tag, "test"), 0); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_tag_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_tag() + */ +int utc_noti_ex_item_get_tag_n(void) +{ + int ret; + ret = noti_ex_item_get_tag(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-manager.c b/src/utc/notification/utc-notification-ex-manager.c new file mode 100644 index 000000000..cc0eece93 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-manager.c @@ -0,0 +1,489 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +#define GROUP_NOTI_ID "test_group" + +noti_ex_reporter_h reporter__ = NULL; +noti_ex_manager_h manager__ = NULL; +void utc_notification_ex_manager_startup(void) +{ +} + +void utc_notification_ex_manager_cleanup(void) +{ + +} + +void _manager_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { +} + +void _manager_events_update_cb(noti_ex_manager_h handle, + noti_ex_event_info_h info, noti_ex_item_h updated_item, void *data) { +} + +void _manager_events_delete_cb(noti_ex_manager_h handle, + noti_ex_event_info_h info, noti_ex_item_h deleted_item, void *data) { +} + +void _manager_events_error_cb(noti_ex_manager_h handle, + noti_ex_error_e error, int req_id, void *data) { +} + +/** + * @testcase utc_noti_ex_manager_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_create() + */ +int utc_noti_ex_manager_create_p(void) +{ + int ret; + noti_ex_manager_h handle; + noti_ex_manager_events_s ev = {0}; + + ev.added = _manager_events_add_cb; + ev.updated = _manager_events_update_cb; + ev.deleted = _manager_events_delete_cb; + ev.error = _manager_events_error_cb; + + ret = noti_ex_manager_create(&handle, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + noti_ex_manager_destroy(handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_manager_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_create() + */ +int utc_noti_ex_manager_create_n(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ret = noti_ex_manager_create(NULL, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_manager_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_destroy() + */ +int utc_noti_ex_manager_destroy_p(void) +{ + int ret; + noti_ex_manager_h handle; + noti_ex_manager_events_s ev = {0}; + + ev.added = _manager_events_add_cb; + ev.updated = _manager_events_update_cb; + ev.deleted = _manager_events_delete_cb; + ev.error = _manager_events_error_cb; + + ret = noti_ex_manager_create(&handle, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_manager_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_manager_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_destroy() + */ +int utc_noti_ex_manager_destroy_n(void) +{ + int ret; + ret = noti_ex_manager_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _m_reporter_events_error_cb(noti_ex_reporter_h handle, + noti_ex_error_e error, int req_id, void *data) { +} + +static void __send_noti() { + if (reporter__ == NULL) { + noti_ex_reporter_events_s ev = {0}; + ev.error = _m_reporter_events_error_cb; + noti_ex_reporter_create(&reporter__, ev, NULL); + } + int req_id; + noti_ex_reporter_delete_all(reporter__, &req_id); + + noti_ex_item_h group_item = NULL; + noti_ex_item_h child_item = NULL; + int ret = noti_ex_item_group_create(&group_item, GROUP_NOTI_ID); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_button_create(&child_item, "testbtn1", "test1"); + ret = noti_ex_item_group_add_child(group_item, child_item); + + ret = noti_ex_item_button_create(&child_item, "testbtn2", "test2"); + ret = noti_ex_item_group_add_child(group_item, child_item);; + + noti_ex_reporter_post(reporter__, group_item, &req_id); +} + +void _gettest_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + noti_ex_item_h *items; + int items_count; + int req_id; + noti_ex_manager_get(handle, &items, &items_count); + noti_ex_manager_delete_all(manager__, &req_id); + assert_eq_with_exit_no_returnval(items_count, 1); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_get_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_get() + */ +int utc_noti_ex_manager_get_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _gettest_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_get_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_get() + */ +int utc_noti_ex_manager_get_n(void) +{ + int ret; + ret = noti_ex_manager_get(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _updatetest_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_manager_update(manager__, added_item[0], &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + noti_ex_manager_delete_all(manager__, &req_id); + assert_eq_with_exit_no_returnval(cnt, 1); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_update_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_update() + */ +int utc_noti_ex_manager_update_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _updatetest_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_update_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_update() + */ +int utc_noti_ex_manager_update_n(void) +{ + int ret; + ret = noti_ex_manager_update(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _deletetest_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_manager_delete(manager__, added_item[0], &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + noti_ex_manager_delete_all(manager__, &req_id); + assert_eq_with_exit_no_returnval(cnt, 1); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_delete_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_delete() + */ +int utc_noti_ex_manager_delete_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _deletetest_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_delete_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_delete() + */ +int utc_noti_ex_manager_delete_n(void) +{ + int ret; + ret = noti_ex_manager_delete(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _deletealltest_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_manager_delete_all(manager__, &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + int get_cnt; + ret = noti_ex_manager_get_notification_count(manager__, + &get_cnt); + assert_eq_with_exit_no_returnval(get_cnt, 0); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_delete_all_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_delete_all() + */ +int utc_noti_ex_manager_delete_all_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _deletealltest_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_delete_all_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_delete_all() + */ +int utc_noti_ex_manager_delete_all_n(void) +{ + int ret; + ret = noti_ex_manager_delete_all(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _hidetest_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_manager_hide(manager__, added_item[0], &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + noti_ex_manager_delete_all(manager__, &req_id); + assert_eq_with_exit_no_returnval(cnt, 1); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_hide_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_hide() + */ +int utc_noti_ex_manager_hide_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _hidetest_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_delete_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_hide() + */ +int utc_noti_ex_manager_hide_n(void) +{ + int ret; + ret = noti_ex_manager_hide(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _m_findbyrootid_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + noti_ex_item_h find_item; + int req_id; + int ret = noti_ex_manager_find_by_root_id( + manager__, GROUP_NOTI_ID, &find_item); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + noti_ex_manager_delete_all(manager__, &req_id); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_find_by_root_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_find_by_root_id() + */ +int utc_noti_ex_manager_find_by_root_id_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _m_findbyrootid_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_find_by_root_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_find_by_root_id() + */ +int utc_noti_ex_manager_find_by_root_id_n(void) +{ + int ret; + ret = noti_ex_manager_find_by_root_id(NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _m_senderror_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int ret = noti_ex_manager_send_error(manager__, info, + NOTI_EX_ERROR_INVALID_PARAMETER); + int req_id; + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + noti_ex_manager_delete_all(manager__, &req_id); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_send_error_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_send_error() + */ +int utc_noti_ex_manager_send_error_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _m_senderror_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_send_error_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_send_error() + */ +int utc_noti_ex_manager_send_error_n(void) +{ + int ret; + ret = noti_ex_manager_send_error(NULL, NULL, NOTI_EX_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _getcount_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int get_cnt; + int ret = noti_ex_manager_get_notification_count(manager__, + &get_cnt); + int req_id; + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit_no_returnval(1, get_cnt); + noti_ex_manager_delete_all(manager__, &req_id); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_manager_get_notification_count_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_get_notification_count() + */ +int utc_noti_ex_manager_get_notification_count_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _getcount_events_add_cb; + ev.error = _manager_events_error_cb; + ret = noti_ex_manager_create(&manager__, NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + __send_noti(); + return 0; +} + +/** + * @testcase utc_noti_ex_manager_get_notification_count_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_get_notification_count() + */ +int utc_noti_ex_manager_get_notification_count_n(void) +{ + int ret; + ret = noti_ex_manager_get_notification_count(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} \ No newline at end of file diff --git a/src/utc/notification/utc-notification-ex-progress.c b/src/utc/notification/utc-notification-ex-progress.c new file mode 100644 index 000000000..327f45ce2 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-progress.c @@ -0,0 +1,226 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_progress_startup(void) +{ +} + +void utc_notification_ex_progress_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_progress_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_progress_create() + */ +int utc_noti_ex_item_progress_create_p(void) +{ + int ret; + noti_ex_item_h handle; + + ret = noti_ex_item_progress_create(&handle, "progress_id", 0.0, 0.0, 100.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_progress_create() + */ +int utc_noti_ex_item_progress_create_n(void) +{ + int ret; + + ret = noti_ex_item_progress_create(NULL, "progress_id", 0.0, 0.0, 100.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_set_current_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_progress_set_current() + */ +int utc_noti_ex_item_progress_set_current_p(void) +{ + int ret; + noti_ex_item_h handle; + + ret = noti_ex_item_progress_create(&handle, "progress_id", 0.0, 0.0, 100.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_progress_set_current(handle, 50.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_set_current_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_progress_set_current() + */ +int utc_noti_ex_item_progress_set_current_n(void) +{ + int ret; + + ret = noti_ex_item_progress_set_current(NULL, 50.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_current_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_progress_get_current() + */ +int utc_noti_ex_item_progress_get_current_p(void) +{ + int ret; + noti_ex_item_h handle; + float current = 0.0; + + ret = noti_ex_item_progress_create(&handle, "progress_id", 0.0, 0.0, 100.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_progress_set_current(handle, 50.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_progress_get_current(handle, ¤t); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(current, 50.0); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_current_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_progress_get_current() + */ +int utc_noti_ex_item_progress_get_current_n(void) +{ + int ret; + + ret = noti_ex_item_progress_get_current(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_min_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_progress_get_min() + */ +int utc_noti_ex_item_progress_get_min_p(void) +{ + int ret; + noti_ex_item_h handle; + float min; + + ret = noti_ex_item_progress_create(&handle, "progress_id", 0.0, 0.0, 100.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_progress_get_min(handle, &min); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(min, 0); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_min_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_progress_get_min() + */ +int utc_noti_ex_item_progress_get_min_n(void) +{ + int ret; + + ret = noti_ex_item_progress_get_min(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_max_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_progress_get_max() + */ +int utc_noti_ex_item_progress_get_max_p(void) +{ + int ret; + noti_ex_item_h handle; + float max; + + ret = noti_ex_item_progress_create(&handle, "progress_id", 0.0, 0.0, 100.0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_progress_get_max(handle, &max); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_eq_with_exit(max, 100.0); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_max_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_progress_get_max() + */ +int utc_noti_ex_item_progress_get_max_n(void) +{ + int ret; + + ret = noti_ex_item_progress_get_max(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-reporter.c b/src/utc/notification/utc-notification-ex-reporter.c new file mode 100644 index 000000000..468285e38 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-reporter.c @@ -0,0 +1,449 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +#define GROUP_NOTI_ID "test_group" + +noti_ex_reporter_h reporter_handle__ = NULL; +noti_ex_manager_h manager_handle__ = NULL; +void utc_notification_ex_reporter_startup(void) +{ +} + +void utc_notification_ex_reporter_cleanup(void) +{ +} + +void _reporter_events_event_cb(noti_ex_reporter_h handle, noti_ex_event_info_h info, + noti_ex_item_h *items, int cnt, void *data) { +} + +void _reporter_events_error_cb(noti_ex_reporter_h handle, + noti_ex_error_e error, int req_id, void *data) { +} + +/** + * @testcase utc_noti_ex_reporter_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_create() + */ +int utc_noti_ex_reporter_create_p(void) +{ + int ret; + noti_ex_reporter_h handle; + noti_ex_reporter_events_s ev = {0}; + + ev.event = _reporter_events_event_cb; + ev.error = _reporter_events_error_cb; + ret = noti_ex_reporter_create(&handle, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_reporter_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_create() + */ +int utc_noti_ex_reporter_create_n(void) +{ + int ret; + noti_ex_reporter_events_s ev = {0}; + + ret = noti_ex_reporter_create(NULL, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_reporter_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_destroy() + */ +int utc_noti_ex_reporter_destroy_p(void) +{ + int ret; + noti_ex_reporter_h handle; + noti_ex_reporter_events_s ev = {0}; + + ev.event = _reporter_events_event_cb; + ev.error = _reporter_events_error_cb; + ret = noti_ex_reporter_create(&handle, ev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_reporter_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_reporter_destroy_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_destroy() + */ +int utc_noti_ex_reporter_destroy_n(void) +{ + int ret; + + ret = noti_ex_reporter_destroy(NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _senderror_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_manager_update(manager_handle__, added_item[0], &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); +} + +void _senderror_events_event_cb(noti_ex_reporter_h handle, noti_ex_event_info_h info, + noti_ex_item_h *items, int cnt, void *data) { + int ret; + int req_id; + ret = noti_ex_reporter_send_error(reporter_handle__, info, + NOTI_EX_ERROR_IO_ERROR); + noti_ex_reporter_delete_all(reporter_handle__, &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_reporter_destroy_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_destroy() + */ +int utc_noti_ex_reporter_send_error_p(void) +{ + noti_ex_manager_events_s mev = {0}; + + mev.added = _senderror_events_add_cb; + int ret = noti_ex_manager_create(&manager_handle__, NULL, mev, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_reporter_events_s ev = {0}; + ev.error = _reporter_events_error_cb; + ev.event = _senderror_events_event_cb; + noti_ex_reporter_create(&reporter_handle__, ev, NULL); + + noti_ex_item_h group_item = NULL; + noti_ex_item_h child_item = NULL; + ret = noti_ex_item_group_create(&group_item, GROUP_NOTI_ID); + ret = noti_ex_item_button_create(&child_item, "testbtn1", "test1"); + ret = noti_ex_item_group_add_child(group_item, child_item); + + ret = noti_ex_item_button_create(&child_item, "testbtn2", "test2"); + ret = noti_ex_item_group_add_child(group_item, child_item);; + + int req_id; + noti_ex_reporter_post(reporter_handle__, group_item, &req_id); + return 0; +} + +/** + * @testcase utc_noti_ex_reporter_send_error_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_send_error() + */ +int utc_noti_ex_reporter_send_error_n(void) +{ + int ret; + ret = noti_ex_reporter_send_error(NULL, NULL, NOTI_EX_ERROR_IO_ERROR); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + + +static void __create_noti(noti_ex_item_h **noti_list) { + if (reporter_handle__ == NULL) { + noti_ex_reporter_events_s ev = {0}; + ev.error = _reporter_events_error_cb; + noti_ex_reporter_create(&reporter_handle__, ev, NULL); + } + int req_id; + noti_ex_reporter_delete_all(reporter_handle__, &req_id); + noti_ex_item_h *list = (noti_ex_item_h*)calloc(2, sizeof(noti_ex_item_h)); + noti_ex_item_h group_item = NULL; + noti_ex_item_h child_item = NULL; + noti_ex_item_group_create(&group_item, GROUP_NOTI_ID); + noti_ex_item_button_create(&child_item, "btn1", "test1"); + noti_ex_item_group_add_child(group_item, child_item); + noti_ex_item_button_create(&child_item, "btn2", "test2"); + noti_ex_item_group_add_child(group_item, child_item); + list[0] = group_item; + + noti_ex_item_group_create(&group_item, "group_id2"); + noti_ex_item_button_create(&child_item, "btn3", "test3"); + noti_ex_item_group_add_child(group_item, child_item); + + noti_ex_item_button_create(&child_item, "btn4", "test4"); + noti_ex_item_group_add_child(group_item, child_item); + list[1] = group_item; + + *noti_list = list; +} + +void _post_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + noti_ex_reporter_delete_all(reporter_handle__, &req_id); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_reporter_post_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_post() + */ +int utc_noti_ex_reporter_post_p(void) +{ + noti_ex_manager_events_s mev = {0}; + mev.added = _post_events_add_cb; + noti_ex_manager_create(&manager_handle__, NULL, mev, NULL); + + noti_ex_item_h *noti_list; + int req_id; + __create_noti(¬i_list); + int ret = noti_ex_reporter_post(reporter_handle__, noti_list[0], &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + return 0; +} + +/** + * @testcase utc_noti_ex_reporter_post_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_post() + */ +int utc_noti_ex_reporter_post_n(void) +{ + int req_id; + int ret = noti_ex_reporter_post(reporter_handle__, NULL, &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _postlist_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + noti_ex_reporter_delete_all(reporter_handle__, &req_id); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_reporter_post_list_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_post_list() + */ +int utc_noti_ex_reporter_post_list_p(void) +{ + noti_ex_manager_events_s mev = {0}; + mev.added = _postlist_events_add_cb; + noti_ex_manager_create(&manager_handle__, NULL, mev, NULL); + + noti_ex_item_h *noti_list; + int req_id; + __create_noti(¬i_list); + int ret = noti_ex_reporter_post_list(reporter_handle__, noti_list, 2, &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + return 0; +} + +/** + * @testcase utc_noti_ex_reporter_post_list_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_post_list() + */ +int utc_noti_ex_reporter_post_list_n(void) +{ + int req_id; + int ret = noti_ex_reporter_post_list(reporter_handle__, NULL, 2, &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _update_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_reporter_update(reporter_handle__, added_item[0], &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + noti_ex_reporter_delete_all(reporter_handle__, &req_id); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_reporter_update_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_update() + */ +int utc_noti_ex_reporter_update_p(void) +{ + noti_ex_manager_events_s mev = {0}; + mev.added = _update_events_add_cb; + noti_ex_manager_create(&manager_handle__, NULL, mev, NULL); + + noti_ex_item_h *noti_list; + int req_id; + __create_noti(¬i_list); + int ret = noti_ex_reporter_post(reporter_handle__, noti_list[0], &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + return 0; +} + +/** + * @testcase utc_noti_ex_reporter_update_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_update() + */ +int utc_noti_ex_reporter_update_n(void) +{ + int req_id; + int ret = noti_ex_reporter_update(reporter_handle__, NULL, &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _delete_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_reporter_delete(reporter_handle__, added_item[0], &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_reporter_delete_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_delete() + */ +int utc_noti_ex_reporter_delete_p(void) +{ + noti_ex_manager_events_s mev = {0}; + mev.added = _delete_events_add_cb; + noti_ex_manager_create(&manager_handle__, NULL, mev, NULL); + + noti_ex_item_h *noti_list; + int req_id; + __create_noti(¬i_list); + int ret = noti_ex_reporter_post(reporter_handle__, noti_list[0], &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + return 0; +} + +/** + * @testcase utc_noti_ex_reporter_delete_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_delete() + */ +int utc_noti_ex_reporter_delete_n(void) +{ + int req_id; + int ret = noti_ex_reporter_delete(reporter_handle__, NULL, &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _deleteall_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + int ret = noti_ex_reporter_delete_all(reporter_handle__, &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_reporter_delete_all_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_delete_all() + */ +int utc_noti_ex_reporter_delete_all_p(void) +{ + noti_ex_manager_events_s mev = {0}; + mev.added = _deleteall_events_add_cb; + noti_ex_manager_create(&manager_handle__, NULL, mev, NULL); + + noti_ex_item_h *noti_list; + int req_id; + __create_noti(¬i_list); + int ret = noti_ex_reporter_post(reporter_handle__, noti_list[0], &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + return 0; +} + +/** + * @testcase utc_noti_ex_reporter_delete_all_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_delete_all() + */ +int utc_noti_ex_reporter_delete_all_n(void) +{ + int req_id; + int ret = noti_ex_reporter_delete_all(NULL, &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +void _findbyrootid_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info, + noti_ex_item_h *added_item, int cnt, void *data) { + int req_id; + noti_ex_item_h item; + + int ret = noti_ex_reporter_find_by_root_id( + reporter_handle__, GROUP_NOTI_ID, &item); + noti_ex_reporter_delete_all(reporter_handle__, &req_id); + assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE); + normal_exit_no_returnval(0); +} + +/** + * @testcase utc_noti_ex_reporter_find_by_root_id_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_reporter_find_by_root_id() + */ +int utc_noti_ex_reporter_find_by_root_id_p(void) +{ + noti_ex_manager_events_s mev = {0}; + mev.added = _findbyrootid_events_add_cb; + noti_ex_manager_create(&manager_handle__, NULL, mev, NULL); + + noti_ex_item_h *noti_list; + int req_id; + __create_noti(¬i_list); + int ret = noti_ex_reporter_post(reporter_handle__, noti_list[0], &req_id); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + return 0; +} + +/** + * @testcase utc_noti_ex_reporter_find_by_root_id_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_reporter_find_by_root_id() + */ +int utc_noti_ex_reporter_find_by_root_id_n(void) +{ + int ret = noti_ex_reporter_find_by_root_id(NULL, GROUP_NOTI_ID, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-text.c b/src/utc/notification/utc-notification-ex-text.c new file mode 100644 index 000000000..25188889e --- /dev/null +++ b/src/utc/notification/utc-notification-ex-text.c @@ -0,0 +1,186 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_text_startup(void) +{ +} + +void utc_notification_ex_text_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_text_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_text_create() + */ +int utc_noti_ex_item_text_create_p(void) +{ + int ret; + noti_ex_item_h handle; + + ret = noti_ex_item_text_create(&handle, "text_id", "text", "hyperlink"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_text_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_text_create() + */ +int utc_noti_ex_item_text_create_n(void) +{ + int ret; + + ret = noti_ex_item_text_create(NULL, "text_id", "text", "hyperlink"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_text_set_contents_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_text_set_contents() + */ +int utc_noti_ex_item_text_set_contents_p(void) +{ + int ret; + noti_ex_item_h handle; + + ret = noti_ex_item_text_create(&handle, "text_id", "text", "hyperlink"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_text_set_contents(handle, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_text_set_contents_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_text_set_contents() + */ +int utc_noti_ex_item_text_set_contents_n(void) +{ + int ret; + + ret = noti_ex_item_text_set_contents(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_text_get_contents_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_text_get_contents() + */ +int utc_noti_ex_item_text_get_contents_p(void) +{ + int ret; + noti_ex_item_h handle; + char *contents = NULL; + + ret = noti_ex_item_text_create(&handle, "text_id", "text", "hyperlink"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_text_set_contents(handle, "test"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_text_get_contents(handle, &contents); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_neq_with_exit(contents, NULL); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_text_get_contents_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_text_get_contents() + */ +int utc_noti_ex_item_text_get_contents_n(void) +{ + int ret; + + ret = noti_ex_item_text_get_contents(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_text_get_hyperlink_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_text_get_hyperlink() + */ +int utc_noti_ex_item_text_get_hyperlink_p(void) +{ + int ret; + noti_ex_item_h handle; + char *link = NULL; + + ret = noti_ex_item_text_create(&handle, "text_id", "text", "hyperlink"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_text_get_hyperlink(handle, &link); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_neq_with_exit(link, NULL); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_text_get_hyperlink_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_text_get_hyperlink() + */ +int utc_noti_ex_item_text_get_hyperlink_n(void) +{ + int ret; + + ret = noti_ex_item_text_get_hyperlink(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-time.c b/src/utc/notification/utc-notification-ex-time.c new file mode 100644 index 000000000..19b1c8306 --- /dev/null +++ b/src/utc/notification/utc-notification-ex-time.c @@ -0,0 +1,113 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_time_startup(void) +{ +} + +void utc_notification_ex_time_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_item_time_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_time_create() + */ +int utc_noti_ex_item_time_create_p(void) +{ + int ret; + noti_ex_item_h handle; + time_t cur; + + time(&cur); + ret = noti_ex_item_time_create(&handle, "time_id", cur); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_time_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_time_create() + */ +int utc_noti_ex_item_time_create_n(void) +{ + int ret; + + ret = noti_ex_item_time_create(NULL, "time_id", 0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_time_get_time_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_time_get_time() + */ +int utc_noti_ex_item_time_get_time_p(void) +{ + int ret; + noti_ex_item_h handle; + time_t cur; + time_t time_; + + time(&cur); + ret = noti_ex_item_time_create(&handle, "time_id", cur); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_time_get_time(handle, &time_); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + assert_neq_with_exit(time_, 0); + + ret = noti_ex_item_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_time_get_time_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_time_get_time() + */ +int utc_noti_ex_item_time_get_time_n(void) +{ + int ret; + + ret = noti_ex_item_time_get_time(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-visibility_action.c b/src/utc/notification/utc-notification-ex-visibility_action.c new file mode 100644 index 000000000..cefab835a --- /dev/null +++ b/src/utc/notification/utc-notification-ex-visibility_action.c @@ -0,0 +1,110 @@ +// +// Copyright (c) 2019 Samsung Electronics Co., Ltd. +// +// Licensed under the Apache License, Version 2.0 (the License); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +#include "assert.h" +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "utc-notification.h" + +void utc_notification_ex_visibility_action_startup(void) +{ +} + +void utc_notification_ex_visibility_action_cleanup(void) +{ +} + +/** + * @testcase utc_noti_ex_action_visibility_create_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_visibility_create() + */ +int utc_noti_ex_action_visibility_create_p(void) +{ + int ret; + noti_ex_action_h handle; + + ret = noti_ex_action_visibility_create(&handle, "extra"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_action_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_visibility_create_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_visibility_create() + */ +int utc_noti_ex_action_visibility_create_n(void) +{ + int ret; + + ret = noti_ex_action_visibility_create(NULL, "extra"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_visibility_set_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_action_visibility_set() + */ +int utc_noti_ex_action_visibility_set_p(void) +{ + int ret; + noti_ex_action_h handle; + noti_ex_item_h text_item; + + ret = noti_ex_action_visibility_create(&handle, "extra"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_text_create(&text_item, "text_id", "text", "hyperlink"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_action_visibility_set(handle, "text_id", true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_action_destroy(handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_action_visibility_set_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_action_visibility_set() + */ +int utc_noti_ex_action_visibility_set_n(void) +{ + int ret; + + ret = noti_ex_action_visibility_set(NULL, "text_id", true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification.c b/src/utc/notification/utc-notification.c index 7940f7010..90832282d 100644 --- a/src/utc/notification/utc-notification.c +++ b/src/utc/notification/utc-notification.c @@ -22,6 +22,7 @@ #include #include #include +#include "utc-notification.h" //& set: Notification @@ -124,7 +125,7 @@ int utc_notification_create_1_n(void) assert(!notification); - return 0; + normal_exit(0); } /** @@ -140,7 +141,7 @@ int utc_notification_create_2_n(void) assert(!notification); - return 0; + normal_exit(0); } /** @@ -157,7 +158,7 @@ int utc_notification_create_1_p(void) assert(notification); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -174,7 +175,7 @@ int utc_notification_create_2_p(void) assert(notification); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -188,9 +189,9 @@ int utc_notification_set_image_n(void) ret = notification_set_image(NULL, NOTIFICATION_IMAGE_TYPE_ICON, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -208,10 +209,10 @@ int utc_notification_set_image_1_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -229,10 +230,10 @@ int utc_notification_set_image_2_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_INDICATOR, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -250,10 +251,10 @@ int utc_notification_set_image_3_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -271,11 +272,11 @@ int utc_notification_set_image_4_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -293,11 +294,11 @@ int utc_notification_set_image_5_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL_FOR_LOCK, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -315,11 +316,11 @@ int utc_notification_set_image_6_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_SUB, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -337,11 +338,11 @@ int utc_notification_set_image_7_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BACKGROUND, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -359,11 +360,11 @@ int utc_notification_set_image_8_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_1, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -381,11 +382,11 @@ int utc_notification_set_image_9_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_2, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -403,11 +404,11 @@ int utc_notification_set_image_10_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_3, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -425,11 +426,11 @@ int utc_notification_set_image_11_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_4, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -447,11 +448,11 @@ int utc_notification_set_image_12_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_5, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -469,11 +470,11 @@ int utc_notification_set_image_13_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_1, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -491,11 +492,11 @@ int utc_notification_set_image_14_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_2, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -513,11 +514,11 @@ int utc_notification_set_image_15_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_3, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -535,11 +536,11 @@ int utc_notification_set_image_16_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_4, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -557,11 +558,11 @@ int utc_notification_set_image_17_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_5, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -579,11 +580,11 @@ int utc_notification_set_image_18_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_6, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -605,17 +606,17 @@ int utc_notification_set_image_19_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, img_path); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_post(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_delete(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -633,11 +634,11 @@ int utc_notification_set_image_20_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_7, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -655,11 +656,11 @@ int utc_notification_set_image_21_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_8, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -677,11 +678,11 @@ int utc_notification_set_image_22_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_9, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -699,11 +700,11 @@ int utc_notification_set_image_23_p(void) assert(notification); ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_10, TEST_IMAGE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -717,9 +718,9 @@ int utc_notification_get_image_n(void) ret = notification_get_image(NULL, NOTIFICATION_IMAGE_TYPE_ICON, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -739,13 +740,13 @@ int utc_notification_get_image_1_p(void) ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); - assert_eq(strcmp(image, TEST_IMAGE), 0); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(strcmp(image, TEST_IMAGE), 0); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -765,13 +766,13 @@ int utc_notification_get_image_2_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -791,13 +792,13 @@ int utc_notification_get_image_3_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_INDICATOR, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_INDICATOR, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -817,13 +818,13 @@ int utc_notification_get_image_4_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -843,13 +844,13 @@ int utc_notification_get_image_5_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -869,13 +870,13 @@ int utc_notification_get_image_6_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL_FOR_LOCK, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL_FOR_LOCK, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -895,13 +896,13 @@ int utc_notification_get_image_7_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_SUB, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_SUB, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -921,13 +922,13 @@ int utc_notification_get_image_8_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BACKGROUND, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BACKGROUND, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_get_image_9_p @@ -946,13 +947,13 @@ int utc_notification_get_image_9_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_1, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_1, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -972,13 +973,13 @@ int utc_notification_get_image_10_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_2, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_2, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -998,13 +999,13 @@ int utc_notification_get_image_11_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_3, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_3, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1024,13 +1025,13 @@ int utc_notification_get_image_12_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_4, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_4, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1050,13 +1051,13 @@ int utc_notification_get_image_13_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_5, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_5, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1076,13 +1077,13 @@ int utc_notification_get_image_14_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_1, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_1, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1102,13 +1103,13 @@ int utc_notification_get_image_15_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_2, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_2, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1128,13 +1129,13 @@ int utc_notification_get_image_16_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_3, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_3, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1154,13 +1155,13 @@ int utc_notification_get_image_17_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_4, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_4, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1180,13 +1181,13 @@ int utc_notification_get_image_18_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_5, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_5, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1206,13 +1207,13 @@ int utc_notification_get_image_19_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_6, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_6, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1232,13 +1233,13 @@ int utc_notification_get_image_20_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_7, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_7, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1258,13 +1259,13 @@ int utc_notification_get_image_21_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_8, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_8, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1284,13 +1285,13 @@ int utc_notification_get_image_22_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_9, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_9, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1310,13 +1311,13 @@ int utc_notification_get_image_23_p(void) notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_10, TEST_IMAGE); ret = notification_get_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_10, &image); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(image, NULL); image = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1330,9 +1331,9 @@ int utc_notification_set_time_n(void) ret = notification_set_time(NULL, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -1351,11 +1352,11 @@ int utc_notification_set_time_p(void) ret = notification_set_time(notification, TEST_TIME); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1369,9 +1370,9 @@ int utc_notification_get_time_n(void) ret = notification_get_time(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -1394,11 +1395,11 @@ int utc_notification_get_time_1_p(void) ret = notification_get_time(notification, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1418,12 +1419,12 @@ int utc_notification_get_time_2_p(void) ret = notification_get_time(notification, &t); - assert_eq(ret, NOTIFICATION_ERROR_NONE); - assert_eq(t, TEST_TIME); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(t, TEST_TIME); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1437,9 +1438,9 @@ int utc_notification_get_insert_time_n(void) ret = notification_get_insert_time(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -1460,11 +1461,11 @@ int utc_notification_get_insert_time_1_p(void) ret = notification_get_insert_time(notification, &t); assert_neq(t, -1); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1484,12 +1485,12 @@ int utc_notification_get_insert_time_2_p(void) ret = notification_get_insert_time(notification, &t); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); assert_neq(t, 0); notification_free(notification); - return 0; + normal_exit(0); } @@ -1503,9 +1504,9 @@ int utc_notification_set_text_n(void) int ret = 0; ret = notification_set_text(NULL, NOTIFICATION_TEXT_TYPE_NONE, NULL, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -1528,11 +1529,11 @@ int utc_notification_set_text_1_p(void) NOTIFICATION_VARIABLE_TYPE_INT, 0, NOTIFICATION_VARIABLE_TYPE_DOUBLE, 0.0, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1549,11 +1550,11 @@ int utc_notification_set_text_2_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1570,11 +1571,11 @@ int utc_notification_set_text_3_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1591,11 +1592,11 @@ int utc_notification_set_text_4_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1612,11 +1613,11 @@ int utc_notification_set_text_5_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1633,11 +1634,11 @@ int utc_notification_set_text_6_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1654,11 +1655,11 @@ int utc_notification_set_text_7_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1675,11 +1676,11 @@ int utc_notification_set_text_8_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1696,11 +1697,11 @@ int utc_notification_set_text_9_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1717,11 +1718,11 @@ int utc_notification_set_text_10_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1738,11 +1739,11 @@ int utc_notification_set_text_11_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1759,11 +1760,11 @@ int utc_notification_set_text_12_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1780,11 +1781,11 @@ int utc_notification_set_text_13_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1801,11 +1802,11 @@ int utc_notification_set_text_14_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1822,11 +1823,11 @@ int utc_notification_set_text_15_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1843,11 +1844,11 @@ int utc_notification_set_text_16_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1864,11 +1865,11 @@ int utc_notification_set_text_17_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1886,11 +1887,11 @@ int utc_notification_set_text_18_p(void) ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1907,14 +1908,14 @@ int utc_notification_set_text_19_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_post(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1931,11 +1932,11 @@ int utc_notification_set_text_20_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1952,11 +1953,11 @@ int utc_notification_set_text_21_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, "3", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1973,11 +1974,11 @@ int utc_notification_set_text_22_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_7, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -1994,11 +1995,11 @@ int utc_notification_set_text_23_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_8, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2015,11 +2016,11 @@ int utc_notification_set_text_24_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_9, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2036,11 +2037,11 @@ int utc_notification_set_text_25_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_10, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2054,9 +2055,9 @@ int utc_notification_get_text_n(void) ret = notification_get_text(NULL, NOTIFICATION_TEXT_TYPE_TITLE, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -2077,12 +2078,12 @@ int utc_notification_get_text_1_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2103,12 +2104,12 @@ int utc_notification_get_text_2_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2129,12 +2130,12 @@ int utc_notification_get_text_3_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2156,12 +2157,12 @@ int utc_notification_get_text_4_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2182,12 +2183,12 @@ int utc_notification_get_text_5_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2208,12 +2209,12 @@ int utc_notification_get_text_6_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2234,12 +2235,12 @@ int utc_notification_get_text_7_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2260,12 +2261,12 @@ int utc_notification_get_text_8_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2286,12 +2287,12 @@ int utc_notification_get_text_9_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2312,12 +2313,12 @@ int utc_notification_get_text_10_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2338,12 +2339,12 @@ int utc_notification_get_text_11_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2364,12 +2365,12 @@ int utc_notification_get_text_12_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2390,12 +2391,12 @@ int utc_notification_get_text_13_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2416,12 +2417,12 @@ int utc_notification_get_text_14_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2442,12 +2443,12 @@ int utc_notification_get_text_15_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2468,12 +2469,12 @@ int utc_notification_get_text_16_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2494,12 +2495,12 @@ int utc_notification_get_text_17_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2520,12 +2521,12 @@ int utc_notification_get_text_18_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2552,16 +2553,16 @@ int utc_notification_get_text_19_p(void) NOTIFICATION_VARIABLE_TYPE_INT, 0, NOTIFICATION_VARIABLE_TYPE_COUNT, NOTIFICATION_COUNT_POS_RIGHT, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2582,12 +2583,12 @@ int utc_notification_get_text_20_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_7, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_7, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2608,12 +2609,12 @@ int utc_notification_get_text_21_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_8, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_8, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2634,12 +2635,12 @@ int utc_notification_get_text_22_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_9, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_9, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -2660,12 +2661,12 @@ int utc_notification_get_text_23_p(void) notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_10, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_10, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } @@ -2680,9 +2681,9 @@ int utc_notification_set_time_to_text_n(void) ret = notification_set_time_to_text(NULL, NOTIFICATION_TEXT_TYPE_NONE, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -2700,11 +2701,11 @@ int utc_notification_set_time_to_text_1_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_2_p @@ -2721,11 +2722,11 @@ int utc_notification_set_time_to_text_2_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_3_p @@ -2742,11 +2743,11 @@ int utc_notification_set_time_to_text_3_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_4_p @@ -2763,11 +2764,11 @@ int utc_notification_set_time_to_text_4_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_5_p @@ -2784,11 +2785,11 @@ int utc_notification_set_time_to_text_5_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_1, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_6_p @@ -2805,11 +2806,11 @@ int utc_notification_set_time_to_text_6_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_7_p @@ -2826,11 +2827,11 @@ int utc_notification_set_time_to_text_7_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_8_p @@ -2847,11 +2848,11 @@ int utc_notification_set_time_to_text_8_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_9_p @@ -2868,11 +2869,11 @@ int utc_notification_set_time_to_text_9_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_10_p @@ -2889,11 +2890,11 @@ int utc_notification_set_time_to_text_10_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_11_p @@ -2910,11 +2911,11 @@ int utc_notification_set_time_to_text_11_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_12_p @@ -2931,11 +2932,11 @@ int utc_notification_set_time_to_text_12_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_13_p @@ -2952,11 +2953,11 @@ int utc_notification_set_time_to_text_13_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_14_p @@ -2973,11 +2974,11 @@ int utc_notification_set_time_to_text_14_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_15_p @@ -2994,11 +2995,11 @@ int utc_notification_set_time_to_text_15_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_16_p @@ -3015,11 +3016,11 @@ int utc_notification_set_time_to_text_16_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_17_p @@ -3036,11 +3037,11 @@ int utc_notification_set_time_to_text_17_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_18_p @@ -3057,11 +3058,11 @@ int utc_notification_set_time_to_text_18_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** * @testcase utc_notification_set_time_to_text_19_p @@ -3078,11 +3079,11 @@ int utc_notification_set_time_to_text_19_p(void) assert(notification); ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, time(NULL)); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3096,9 +3097,9 @@ int utc_notification_get_time_from_text_n(void) ret = notification_get_time_from_text(NULL, NOTIFICATION_TEXT_TYPE_TITLE, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3119,11 +3120,11 @@ int utc_notification_get_time_from_text_1_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3143,11 +3144,11 @@ int utc_notification_get_time_from_text_2_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3167,11 +3168,11 @@ int utc_notification_get_time_from_text_3_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3191,11 +3192,11 @@ int utc_notification_get_time_from_text_4_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3215,11 +3216,11 @@ int utc_notification_get_time_from_text_5_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_1, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_INFO_1, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3239,11 +3240,11 @@ int utc_notification_get_time_from_text_6_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3263,11 +3264,11 @@ int utc_notification_get_time_from_text_7_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3287,11 +3288,11 @@ int utc_notification_get_time_from_text_8_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3311,11 +3312,11 @@ int utc_notification_get_time_from_text_9_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3335,11 +3336,11 @@ int utc_notification_get_time_from_text_10_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3359,11 +3360,11 @@ int utc_notification_get_time_from_text_11_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3383,11 +3384,11 @@ int utc_notification_get_time_from_text_12_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3407,11 +3408,11 @@ int utc_notification_get_time_from_text_13_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3431,11 +3432,11 @@ int utc_notification_get_time_from_text_14_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3455,11 +3456,11 @@ int utc_notification_get_time_from_text_15_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3479,11 +3480,11 @@ int utc_notification_get_time_from_text_16_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3503,11 +3504,11 @@ int utc_notification_get_time_from_text_17_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3527,11 +3528,11 @@ int utc_notification_get_time_from_text_18_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3551,11 +3552,11 @@ int utc_notification_get_time_from_text_19_p(void) notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, time(NULL)); ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3576,11 +3577,11 @@ int utc_notification_get_time_from_text_20_p(void) ret = notification_get_time_from_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, &t); assert_neq(t, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3594,9 +3595,9 @@ int utc_notification_set_sound_n(void) ret = notification_set_sound(NULL, NOTIFICATION_SOUND_TYPE_USER_DATA + 1, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3615,11 +3616,11 @@ int utc_notification_set_sound_p(void) ret = notification_set_sound(notification, NOTIFICATION_SOUND_TYPE_DEFAULT, TEST_PATH); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3633,9 +3634,9 @@ int utc_notification_get_sound_n(void) ret = notification_get_sound(NULL, NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3659,12 +3660,12 @@ int utc_notification_get_sound_1_p(void) ret = notification_get_sound(notification, &type, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3685,14 +3686,14 @@ int utc_notification_get_sound_2_p(void) ret = notification_get_sound(notification, &type, &value); - assert_eq(type, NOTIFICATION_SOUND_TYPE_USER_DATA); - assert_eq(strcmp(value, TEST_PATH), 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(type, NOTIFICATION_SOUND_TYPE_USER_DATA); + assert_eq_with_exit(strcmp(value, TEST_PATH), 0); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3706,9 +3707,9 @@ int utc_notification_set_vibration_n(void) ret = notification_set_vibration(NULL, NOTIFICATION_VIBRATION_TYPE_USER_DATA + 1, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3727,11 +3728,11 @@ int utc_notification_set_vibration_p(void) ret = notification_set_vibration(notification, NOTIFICATION_VIBRATION_TYPE_DEFAULT, TEST_PATH); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3745,9 +3746,9 @@ int utc_notification_get_vibration_n(void) ret = notification_get_vibration(NULL, NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3770,12 +3771,12 @@ int utc_notification_get_vibration_1_p(void) ret = notification_get_vibration(notification, &type, &value); assert_neq(value, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3796,14 +3797,14 @@ int utc_notification_get_vibration_2_p(void) ret = notification_get_vibration(notification, &type, &value); - assert_eq(type, NOTIFICATION_VIBRATION_TYPE_USER_DATA); - assert_eq(strcmp(value, TEST_PATH), 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(type, NOTIFICATION_VIBRATION_TYPE_USER_DATA); + assert_eq_with_exit(strcmp(value, TEST_PATH), 0); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); value = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3817,9 +3818,9 @@ int utc_notification_set_led_n(void) ret = notification_set_led(NULL, NOTIFICATION_LED_OP_ON_CUSTOM_COLOR + 1, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3838,11 +3839,11 @@ int utc_notification_set_led_p(void) ret = notification_set_led(notification, NOTIFICATION_LED_OP_ON, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3856,9 +3857,9 @@ int utc_notification_get_led_n(void) ret = notification_get_led(NULL, NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3883,11 +3884,11 @@ int utc_notification_get_led_1_p(void) assert_neq(type, NOTIFICATION_LED_OP_OFF); assert_neq(value, -1); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3908,13 +3909,13 @@ int utc_notification_get_led_2_p(void) ret = notification_get_led(notification, &type, &value); - assert_eq(type, NOTIFICATION_LED_OP_ON); - assert_eq(value, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(type, NOTIFICATION_LED_OP_ON); + assert_eq_with_exit(value, 0); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3928,9 +3929,9 @@ int utc_notification_set_led_time_period_n(void) ret = notification_set_led_time_period(NULL, 0, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3949,11 +3950,11 @@ int utc_notification_set_led_time_period_p(void) ret = notification_set_led_time_period(notification, TEST_INT, TEST_INT); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -3967,9 +3968,9 @@ int utc_notification_get_led_time_period_n(void) ret = notification_get_led_time_period(NULL, NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -3992,11 +3993,11 @@ int utc_notification_get_led_time_period_1_p(void) assert_neq(value1, -1); assert_neq(value2, -1); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4017,13 +4018,13 @@ int utc_notification_get_led_time_period_2_p(void) ret = notification_get_led_time_period(notification, &value1, &value2); - assert_eq(value1, TEST_INT); - assert_eq(value2, TEST_INT); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(value1, TEST_INT); + assert_eq_with_exit(value2, TEST_INT); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } @@ -4039,9 +4040,9 @@ int utc_notification_set_property_n(void) ret = notification_set_property(NULL, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } @@ -4060,11 +4061,11 @@ int utc_notification_set_property_1_p(void) assert(notification); ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_AUTO_DELETE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4082,11 +4083,11 @@ int utc_notification_set_property_2_p(void) assert(notification); ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_APP_LAUNCH); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4104,11 +4105,11 @@ int utc_notification_set_property_3_p(void) assert(notification); ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_AUTO_DELETE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4126,11 +4127,11 @@ int utc_notification_set_property_4_p(void) assert(notification); ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_UPDATE_ON_INSERT); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4148,11 +4149,11 @@ int utc_notification_set_property_5_p(void) assert(notification); ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_UPDATE_ON_DELETE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4170,11 +4171,11 @@ int utc_notification_set_property_6_p(void) assert(notification); ret = notification_set_property(notification, NOTIFICATION_PROP_VOLATILE_DISPLAY); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4188,9 +4189,9 @@ int utc_notification_get_property_n(void) ret = notification_get_property(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4211,11 +4212,11 @@ int utc_notification_get_property_1_p(void) ret = notification_get_property(notification, &value); assert_neq(value, -1); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4235,12 +4236,12 @@ int utc_notification_get_property_2_p(void) ret = notification_get_property(notification, &value); - assert_eq(value, NOTIFICATION_PROP_DISABLE_AUTO_DELETE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(value, NOTIFICATION_PROP_DISABLE_AUTO_DELETE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4254,9 +4255,9 @@ int utc_notification_set_display_applist_n(void) ret = notification_set_display_applist(NULL, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4275,11 +4276,11 @@ int utc_notification_set_display_applist_p(void) ret = notification_set_display_applist(notification, NOTIFICATION_DISPLAY_APP_ALL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4293,9 +4294,9 @@ int utc_notification_get_display_applist_n(void) ret = notification_get_display_applist(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4318,11 +4319,11 @@ int utc_notification_get_display_applist_1_p(void) ret = notification_get_display_applist(notification, &value); assert_neq(value, 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4345,11 +4346,11 @@ int utc_notification_get_display_applist_2_p(void) assert(notification); ret = notification_get_display_applist(notification, &applist); - assert_eq(ret, NOTIFICATION_ERROR_NONE); - assert_eq(applist, applist_default); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(applist, applist_default); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4363,9 +4364,9 @@ int utc_notification_set_size_n(void) ret = notification_set_size(NULL, 0.0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4384,11 +4385,11 @@ int utc_notification_set_size_p(void) ret = notification_set_size(notification, TEST_DOUBLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4402,8 +4403,8 @@ int utc_notification_get_size_n(void) ret = notification_get_size(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + normal_exit(0); } /** @@ -4424,11 +4425,11 @@ int utc_notification_get_size_1_p(void) ret = notification_get_size(notification, &value); assert_neq(value, -1.0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4448,12 +4449,12 @@ int utc_notification_get_size_2_p(void) ret = notification_get_size(notification, &value); - assert_eq(value, TEST_DOUBLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(value, TEST_DOUBLE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4467,8 +4468,8 @@ int utc_notification_set_progress_n(void) ret = notification_set_progress(NULL, 0.0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + normal_exit(0); } /** @@ -4487,11 +4488,11 @@ int utc_notification_set_progress_p(void) ret = notification_set_progress(notification, TEST_DOUBLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4505,9 +4506,9 @@ int utc_notification_get_progress_n(void) ret = notification_get_progress(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4528,11 +4529,11 @@ int utc_notification_get_progress_1_p(void) ret = notification_get_progress(notification, &value); assert_neq(value, -1.0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4552,12 +4553,12 @@ int utc_notification_get_progress_2_p(void) ret = notification_get_progress(notification, &value); - assert_eq(value, TEST_DOUBLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(value, TEST_DOUBLE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } @@ -4572,9 +4573,9 @@ int utc_notification_set_layout_n(void) ret = notification_set_layout(NULL, NOTIFICATION_LY_NONE); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } @@ -4593,11 +4594,11 @@ int utc_notification_set_layout_1_p(void) assert(notification); ret = notification_set_layout(notification, NOTIFICATION_LY_NOTI_EVENT_SINGLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4615,11 +4616,11 @@ int utc_notification_set_layout_2_p(void) assert(notification); ret = notification_set_layout(notification, NOTIFICATION_LY_NOTI_EVENT_MULTIPLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4637,11 +4638,11 @@ int utc_notification_set_layout_3_p(void) assert(notification); ret = notification_set_layout(notification, NOTIFICATION_LY_NOTI_THUMBNAIL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4659,11 +4660,11 @@ int utc_notification_set_layout_4_p(void) assert(notification); ret = notification_set_layout(notification, NOTIFICATION_LY_ONGOING_EVENT); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4681,11 +4682,11 @@ int utc_notification_set_layout_5_p(void) assert(notification); ret = notification_set_layout(notification, NOTIFICATION_LY_ONGOING_PROGRESS); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4699,9 +4700,9 @@ int utc_notification_get_layout_n(void) ret = notification_get_layout(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4722,12 +4723,12 @@ int utc_notification_get_layout_1_p(void) notification_set_layout(notification, NOTIFICATION_LY_NOTI_EVENT_SINGLE); ret = notification_get_layout(notification, &type); - assert_eq(type, NOTIFICATION_LY_NOTI_EVENT_SINGLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(type, NOTIFICATION_LY_NOTI_EVENT_SINGLE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4747,12 +4748,12 @@ int utc_notification_get_layout_2_p(void) ret = notification_get_layout(notification, &type); - assert_eq(type, NOTIFICATION_LY_NOTI_EVENT_SINGLE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(type, NOTIFICATION_LY_NOTI_EVENT_SINGLE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } @@ -4767,9 +4768,9 @@ int utc_notification_get_type_n(void) ret = notification_get_type(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4790,11 +4791,11 @@ int utc_notification_get_type_1_p(void) ret = notification_get_type(notification, &type); assert_neq(type, NOTIFICATION_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4814,12 +4815,12 @@ int utc_notification_get_type_2_p(void) ret = notification_get_type(notification, &type); - assert_eq(type, NOTIFICATION_TYPE_NOTI); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(type, NOTIFICATION_TYPE_NOTI); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -4833,9 +4834,9 @@ int utc_notification_update_n(void) ret = notification_update(NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4856,11 +4857,11 @@ int utc_notification_update_p(void) ret = notification_update(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } @@ -4875,9 +4876,9 @@ int utc_notification_delete_n(void) ret = notification_delete(NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4896,11 +4897,11 @@ int utc_notification_delete_p(void) ret = notification_delete(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } @@ -4918,9 +4919,9 @@ int utc_notification_clone_n(void) ret = notification_clone(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4943,9 +4944,9 @@ int utc_notification_clone_p(void) notification_free(notification_cloned); notification_free(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -4959,9 +4960,9 @@ int utc_notification_free_n(void) ret = notification_free(NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -4980,9 +4981,9 @@ int utc_notification_free_p(void) ret = notification_free(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -4996,9 +4997,9 @@ int utc_notification_status_message_post_n(void) ret = notification_status_message_post(NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5012,9 +5013,9 @@ int utc_notification_status_message_post_p(void) ret = notification_status_message_post("TESTKIT-P"); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -5029,9 +5030,9 @@ int utc_notification_set_tag_n(void) ret = notification_set_tag(notification, TEST_TEXT); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5050,11 +5051,11 @@ int utc_notification_set_tag_p(void) ret = notification_set_tag(notification, TEST_TEXT); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5070,9 +5071,9 @@ int utc_notification_get_tag_n(void) ret = notification_get_tag(notification, &tag); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5095,12 +5096,12 @@ int utc_notification_get_tag_1_p(void) ret = notification_get_tag(notification, &tag); assert_neq(tag, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); tag = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5120,13 +5121,13 @@ int utc_notification_get_tag_2_p(void) ret = notification_get_tag(notification, &tag); - assert_eq(strcmp(tag, TEST_TAG_FOR_NOTI), 0); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(strcmp(tag, TEST_TAG_FOR_NOTI), 0); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); tag = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5142,7 +5143,7 @@ int utc_notification_load_by_tag_1_n(void) assert(!notification); - return 0; + normal_exit(0); } /** @@ -5158,7 +5159,7 @@ int utc_notification_load_by_tag_2_n(void) assert(!notification); - return 0; + normal_exit(0); } /** @@ -5176,7 +5177,7 @@ int utc_notification_load_by_tag_p(void) notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5189,9 +5190,9 @@ int utc_notification_delete_all_1_p(void) int ret = 0; ret = notification_delete_all(NOTIFICATION_TYPE_NOTI); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -5204,9 +5205,9 @@ int utc_notification_delete_all_2_p(void) int ret = 0; ret = notification_delete_all(NOTIFICATION_TYPE_ONGOING); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -5227,11 +5228,11 @@ int utc_notification_post_n(void) ret = notification_post(NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5252,12 +5253,12 @@ int utc_notification_post_p(void) ret = notification_post(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_delete(notification); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5271,9 +5272,9 @@ int utc_notification_set_launch_option_n(void) ret = notification_set_launch_option(NULL, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5288,10 +5289,10 @@ int utc_notification_set_launch_option_p(void) app_control_h app_control = NULL; ret = app_control_create(&app_control); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = app_control_set_app_id(app_control, TEST_APP); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); //Invalid parameter test notification = notification_create(NOTIFICATION_TYPE_NOTI); @@ -5301,11 +5302,11 @@ int utc_notification_set_launch_option_p(void) ret = notification_set_launch_option(notification, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, app_control); app_control_destroy(app_control); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5319,9 +5320,9 @@ int utc_notification_get_launch_option_n(void) ret = notification_get_launch_option(NULL, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5336,10 +5337,10 @@ int utc_notification_get_launch_option_p(void) app_control_h app_control = NULL; ret = app_control_create(&app_control); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = app_control_set_app_id(app_control, TEST_APP); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); notification = notification_create(NOTIFICATION_TYPE_NOTI); @@ -5353,9 +5354,9 @@ int utc_notification_get_launch_option_p(void) notification_free(notification); app_control_destroy(app_control); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -5371,9 +5372,9 @@ int utc_notification_get_pkgname_n(void) ret = notification_get_pkgname(notification, &tag); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5394,12 +5395,12 @@ int utc_notification_get_pkgname_p(void) ret = notification_get_pkgname(notification, &tag); assert_neq(tag, NULL); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); tag = NULL; notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5413,9 +5414,9 @@ int utc_notification_set_event_handler_n(void) notification_h notification = NULL; ret = notification_set_event_handler(notification, 0, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5433,19 +5434,19 @@ int utc_notification_set_event_handler_p(void) assert(notification); ret = app_control_create(&app_control); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = app_control_set_app_id(app_control, "org.tizen.app"); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = notification_set_event_handler(notification, NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1, app_control); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); app_control_destroy(app_control); - return 0; + normal_exit(0); } /** @@ -5459,9 +5460,9 @@ int utc_notification_get_event_handler_n(void) notification_h notification = NULL; ret = notification_get_event_handler(notification, 0, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5479,10 +5480,10 @@ int utc_notification_get_event_handler_p(void) assert(notification); ret = app_control_create(&app_control); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = app_control_set_app_id(app_control, "org.tizen.app"); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = notification_set_event_handler(notification, NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1, app_control); app_control_destroy(app_control); @@ -5490,12 +5491,12 @@ int utc_notification_get_event_handler_p(void) ret = notification_get_event_handler(notification, NOTIFICATION_EVENT_TYPE_CLICK_ON_BUTTON_1, &app_control); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); app_control_destroy(app_control); - return 0; + normal_exit(0); } /** @@ -5509,9 +5510,9 @@ int utc_notification_add_button_n(void) notification_h notification = NULL; ret = notification_add_button(notification, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5530,11 +5531,11 @@ int utc_notification_add_button_p(void) ret = notification_add_button(notification, NOTIFICATION_BUTTON_1); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5548,9 +5549,9 @@ int utc_notification_remove_button_n(void) notification_h notification = NULL; ret = notification_remove_button(notification, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5571,11 +5572,11 @@ int utc_notification_remove_button_p(void) ret = notification_remove_button(notification, NOTIFICATION_BUTTON_1); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5589,9 +5590,9 @@ int utc_notification_set_auto_remove_n(void) notification_h notification = NULL; ret = notification_set_auto_remove(notification, false); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5610,11 +5611,11 @@ int utc_notification_set_auto_remove_p(void) ret = notification_set_auto_remove(notification, false); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5629,9 +5630,9 @@ int utc_notification_get_auto_remove_n(void) bool auto_remove = false; ret = notification_get_auto_remove(notification, &auto_remove); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5653,12 +5654,12 @@ int utc_notification_get_auto_remove_p(void) ret = notification_get_auto_remove(notification, &auto_remove); - assert_eq(ret, NOTIFICATION_ERROR_NONE); - assert_eq(auto_remove, false); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(auto_remove, false); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5672,9 +5673,9 @@ int utc_notification_save_as_template_n(void) notification_h notification = NULL; ret = notification_save_as_template(notification, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5691,13 +5692,13 @@ int utc_notification_save_as_template_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, "I'm Title", "TITLE", NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_save_as_template(notification, "noti_test"); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5712,7 +5713,7 @@ int utc_notification_create_from_template_n1(void) notification = notification_create_from_template(NULL); assert(!notification); - return 0; + normal_exit(0); } /** @@ -5727,7 +5728,7 @@ int utc_notification_create_from_template_n2(void) notification = notification_create_from_template("dummy"); assert(!notification); - return 0; + normal_exit(0); } /** @@ -5744,10 +5745,10 @@ int utc_notification_create_from_template_p(void) assert(notification); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, "I'm Title", "TITLE", NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_save_as_template(notification, "noti_test"); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); @@ -5755,7 +5756,7 @@ int utc_notification_create_from_template_p(void) assert(notification); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5768,9 +5769,9 @@ int utc_notification_get_noti_block_state_n(void) int ret = 0; ret = notification_get_noti_block_state(NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5784,9 +5785,9 @@ int utc_notification_get_noti_block_state_p(void) notification_block_state_e state; ret = notification_get_noti_block_state(&state); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -5799,9 +5800,9 @@ int utc_notification_set_text_input_n(void) int ret = 0; ret = notification_set_text_input(NULL, 0); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5820,55 +5821,55 @@ int utc_notification_set_text_input_p(void) ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_set_text_input(notification, 160); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TEXT_INPUT_PLACEHOLDER, "Text message", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TEXT_INPUT_BUTTON, "SEND", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_set_display_applist(notification, NOTIFICATION_DISPLAY_APP_ACTIVE); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = app_control_create(&app_control); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = app_control_set_app_id(app_control, TEST_APP); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); ret = notification_set_event_handler(notification, NOTIFICATION_EVENT_TYPE_CLICK_ON_TEXT_INPUT_BUTTON, app_control); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_post(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); app_control = NULL; ret = notification_get_event_handler(notification, NOTIFICATION_EVENT_TYPE_CLICK_ON_TEXT_INPUT_BUTTON, &app_control); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_free(notification); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = app_control_destroy(app_control); - assert_eq(ret, APP_CONTROL_ERROR_NONE); + assert_eq_with_exit(ret, APP_CONTROL_ERROR_NONE); - return 0; + normal_exit(0); } /** @@ -5881,9 +5882,9 @@ int utc_notification_set_extension_image_size_n(void) int ret = 0; ret = notification_set_extension_image_size(NULL, -1); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); - return 0; + normal_exit(0); } /** @@ -5901,11 +5902,11 @@ int utc_notification_set_extension_image_size_p(void) assert(notification); ret = notification_set_extension_image_size(notification, 20); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5923,14 +5924,14 @@ int utc_notification_get_extension_image_size_n(void) assert(notification); ret = notification_set_extension_image_size(notification, 20); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_get_extension_image_size(NULL, NULL); - assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_INVALID_PARAMETER); notification_free(notification); - return 0; + normal_exit(0); } /** @@ -5949,12 +5950,12 @@ int utc_notification_get_extension_image_size_p(void) assert(notification); ret = notification_set_extension_image_size(notification, 20); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); ret = notification_get_extension_image_size(notification, &size); - assert_eq(ret, NOTIFICATION_ERROR_NONE); + assert_eq_with_exit(ret, NOTIFICATION_ERROR_NONE); notification_free(notification); - return 0; + normal_exit(0); } diff --git a/src/utc/notification/utc-notification.h b/src/utc/notification/utc-notification.h new file mode 100755 index 000000000..c973a7e8b --- /dev/null +++ b/src/utc/notification/utc-notification.h @@ -0,0 +1,155 @@ +#ifndef __UTC_NOTIFICATION_H__ +#define __UTC_NOTIFICATION_H__ +#include +#include +#include +#include +#include + +#define SETUP_IS_EDITING_TEST_VAL "SETUP_IS_EDITING_TEST_VAL" +#define SETUP_REPLY_TO_EDITOR_TEST_VAL "SETUP_REPLY_TO_EDITOR_TEST_VAL" +#define SETUP_GET_CONTEXT_TEST_VAL "SETUP_GET_CONTEXT_VAL" + +#define EVENT_GET_PROVIDER_ID_TEST_VAL "EVENT_GET_PROVIDER_ID_TEST_VAL" +#define EVENT_GET_COMP_TYPE_TEST_VAL "EVENT_GET_COMP_TYPE_TEST_VAL" +#define EVENT_GET_CONTEXT_TEST_VAL "EVENT_GET_CONTEXT_TEST_VAL" +#define EVENT_GET_EVENT_TYPE_TEST_VAL "EVENT_GET_EVENT_TYPE_TEST_VAL" + + +int __result; +app_control_h __test_control; +char *__event_cmd; + +#define assert_with_exit(exp) do { \ + if (!(exp)) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Following expression is not true:\n" \ + "%s\n", #exp); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + __result = 1; \ + service_app_exit(); \ + return 1; \ + } \ +} while (0) + +#define assert_with_exit_no_returnval(exp) do { \ + if (!(exp)) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Following expression is not true:\n" \ + "%s\n", #exp); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + __result = 1; \ + service_app_exit(); \ + return; \ + } \ +} while (0) + + +#define assert_eq_with_exit(var, ref) do { \ + if (var != ref) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Values \"%s\" and \"%s\" are not equal:\n" \ + "%s == %d, %s == %d\n", \ + #var, #ref, #var, (int)var, #ref, (int)ref); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + __result = 1; \ + service_app_exit(); \ + return 1; \ + } \ +} while (0) + +#define assert_eq_with_free(var, ref, var2) do { \ + if (var != ref) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Values \"%s\" and \"%s\" are not equal:\n" \ + "%s == %d, %s == %d\n", \ + #var, #ref, #var, (int)var, #ref, (int)ref); \ + free(var2); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + __result = 1; \ + service_app_exit(); \ + return 1; \ + } \ +} while (0) + + +#define assert_neq_with_exit(var, ref) do { \ + if (var == ref) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Values \"%s\" and \"%s\" are equal:\n" \ + "%s == %s == %d\n", \ + #var, #ref, #var, #ref, (int)ref); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + __result = 1; \ + service_app_exit(); \ + return 1; \ + } \ +} while (0) + +#define assert_neq_with_exit_no_returnval(var, ref) do { \ + if (var == ref) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Values \"%s\" and \"%s\" are equal:\n" \ + "%s == %s == %d\n", \ + #var, #ref, #var, #ref, (int)ref); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + __result = 1; \ + service_app_exit(); \ + return; \ + } \ +} while (0) + +#define assert_neq_without_exit(var, ref) do { \ + if (var == ref) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Values \"%s\" and \"%s\" are equal:\n" \ + "%s == %s == %d\n", \ + #var, #ref, #var, #ref, (int)ref); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + __result = 1; \ + return 1; \ + } \ +} while (0) + +#define assert_eq_with_exit_no_returnval(var, ref) do { \ + if (var != ref) { \ + fprintf(stderr, \ + "Assert fail in %s:%d\n", __FILE__, __LINE__); \ + fprintf(stderr, \ + "Values \"%s\" and \"%s\" are not equal:\n" \ + "%s == %d, %s == %d\n", \ + #var, #ref, #var, (int)var, #ref, (int)ref); \ + dlog_print(DLOG_INFO, "NativeTCT", "Assert fail in %s:%d ", __FILE__, __LINE__); \ + __result = 1; \ + service_app_exit(); \ + return; \ + } \ +} while (0) + +#define normal_exit(result) do { \ + __result = result; \ + service_app_exit(); \ + return 0; \ +} while (0) + +#define normal_exit_no_returnval(result) do { \ + __result = result; \ + service_app_exit(); \ + return; \ +} while (0) + +#endif // __UTC_NOTIFICATION_H__