From: mk5004.lee Date: Wed, 28 Aug 2019 07:29:20 +0000 (+0900) Subject: [UTC][Notification][ACR-1433][Add test cases] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17b9d43781a9295729a91aaf29f5f46bc3683e25;p=test%2Ftct%2Fnative%2Fapi.git [UTC][Notification][ACR-1433][Add test cases] Change-Id: I65b5cedf6c9c3f9223b553755b5726d7a3815efe Signed-off-by: mk5004.lee --- diff --git a/src/utc/notification/tct-notification-core_mobile.h b/src/utc/notification/tct-notification-core_mobile.h index 816272907..89c2157e9 100644 --- a/src/utc/notification/tct-notification-core_mobile.h +++ b/src/utc/notification/tct-notification-core_mobile.h @@ -363,6 +363,14 @@ 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_style_set_background_image_p(void); +extern int utc_noti_ex_style_set_background_image_n(void); +extern int utc_noti_ex_style_get_background_image_p(void); +extern int utc_noti_ex_style_get_background_image_n(void); +extern int utc_noti_ex_style_set_background_color_p(void); +extern int utc_noti_ex_style_set_background_color_n(void); +extern int utc_noti_ex_style_get_background_color_p(void); +extern int utc_noti_ex_style_get_background_color_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); @@ -459,12 +467,26 @@ 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_item_set_ongoing_state_p(void); +extern int utc_noti_ex_item_set_ongoing_state_n(void); +extern int utc_noti_ex_item_get_ongoing_state_p(void); +extern int utc_noti_ex_item_get_ongoing_state_n(void); +extern int utc_noti_ex_item_check_type_exist_p(void); +extern int utc_noti_ex_item_check_type_exist_n(void); +extern int utc_noti_ex_item_set_main_type_p(void); +extern int utc_noti_ex_item_set_main_type_n(void); +extern int utc_noti_ex_item_get_main_type_p(void); +extern int utc_noti_ex_item_get_main_type_n(void); +extern int utc_noti_ex_item_find_by_main_type_p(void); +extern int utc_noti_ex_item_find_by_main_type_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_get_by_channel_p(void); +extern int utc_noti_ex_manager_get_by_channel_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); @@ -517,6 +539,10 @@ 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_progress_set_type_p(void); +extern int utc_noti_ex_item_progress_set_type_n(void); +extern int utc_noti_ex_item_progress_get_type_p(void); +extern int utc_noti_ex_item_progress_get_type_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); @@ -559,8 +585,10 @@ 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_checkbox_get_check_state_p(void); +extern int utc_noti_ex_item_checkbox_get_check_state_n(void); +extern int utc_noti_ex_item_checkbox_set_check_state_p(void); +extern int utc_noti_ex_item_checkbox_set_check_state_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); @@ -918,6 +946,14 @@ testcase tc_array[] = { {"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_style_set_background_image_p",utc_noti_ex_style_set_background_image_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_image_n",utc_noti_ex_style_set_background_image_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_image_p",utc_noti_ex_style_get_background_image_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_image_n",utc_noti_ex_style_get_background_image_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_color_p",utc_noti_ex_style_set_background_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_color_n",utc_noti_ex_style_set_background_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_color_p",utc_noti_ex_style_get_background_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_color_n",utc_noti_ex_style_get_background_color_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}, @@ -1014,12 +1050,26 @@ testcase tc_array[] = { {"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_item_set_ongoing_state_p",utc_noti_ex_item_set_ongoing_state_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_ongoing_state_n",utc_noti_ex_item_set_ongoing_state_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_ongoing_state_p",utc_noti_ex_item_get_ongoing_state_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_ongoing_state_n",utc_noti_ex_item_get_ongoing_state_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_check_type_exist_p",utc_noti_ex_item_check_type_exist_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_check_type_exist_n",utc_noti_ex_item_check_type_exist_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_main_type_p",utc_noti_ex_item_set_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_main_type_n",utc_noti_ex_item_set_main_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_main_type_p",utc_noti_ex_item_get_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_main_type_n",utc_noti_ex_item_get_main_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_main_type_p",utc_noti_ex_item_find_by_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_main_type_n",utc_noti_ex_item_find_by_main_type_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_get_by_channel_p",utc_noti_ex_manager_get_by_channel_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_by_channel_n",utc_noti_ex_manager_get_by_channel_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}, @@ -1072,6 +1122,10 @@ testcase tc_array[] = { {"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_progress_set_type_p",utc_noti_ex_item_progress_set_type_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_type_n",utc_noti_ex_item_progress_set_type_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_type_p",utc_noti_ex_item_progress_get_type_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_type_n",utc_noti_ex_item_progress_get_type_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}, @@ -1114,8 +1168,10 @@ testcase tc_array[] = { {"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_checkbox_get_check_state_p",utc_noti_ex_item_checkbox_get_check_state_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_check_state_n",utc_noti_ex_item_checkbox_get_check_state_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_set_check_state_p",utc_noti_ex_item_checkbox_set_check_state_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_checkbox_set_check_state_n",utc_noti_ex_item_checkbox_set_check_state_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_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}, diff --git a/src/utc/notification/tct-notification-core_tizeniot.h b/src/utc/notification/tct-notification-core_tizeniot.h index 816272907..89c2157e9 100644 --- a/src/utc/notification/tct-notification-core_tizeniot.h +++ b/src/utc/notification/tct-notification-core_tizeniot.h @@ -363,6 +363,14 @@ 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_style_set_background_image_p(void); +extern int utc_noti_ex_style_set_background_image_n(void); +extern int utc_noti_ex_style_get_background_image_p(void); +extern int utc_noti_ex_style_get_background_image_n(void); +extern int utc_noti_ex_style_set_background_color_p(void); +extern int utc_noti_ex_style_set_background_color_n(void); +extern int utc_noti_ex_style_get_background_color_p(void); +extern int utc_noti_ex_style_get_background_color_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); @@ -459,12 +467,26 @@ 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_item_set_ongoing_state_p(void); +extern int utc_noti_ex_item_set_ongoing_state_n(void); +extern int utc_noti_ex_item_get_ongoing_state_p(void); +extern int utc_noti_ex_item_get_ongoing_state_n(void); +extern int utc_noti_ex_item_check_type_exist_p(void); +extern int utc_noti_ex_item_check_type_exist_n(void); +extern int utc_noti_ex_item_set_main_type_p(void); +extern int utc_noti_ex_item_set_main_type_n(void); +extern int utc_noti_ex_item_get_main_type_p(void); +extern int utc_noti_ex_item_get_main_type_n(void); +extern int utc_noti_ex_item_find_by_main_type_p(void); +extern int utc_noti_ex_item_find_by_main_type_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_get_by_channel_p(void); +extern int utc_noti_ex_manager_get_by_channel_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); @@ -517,6 +539,10 @@ 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_progress_set_type_p(void); +extern int utc_noti_ex_item_progress_set_type_n(void); +extern int utc_noti_ex_item_progress_get_type_p(void); +extern int utc_noti_ex_item_progress_get_type_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); @@ -559,8 +585,10 @@ 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_checkbox_get_check_state_p(void); +extern int utc_noti_ex_item_checkbox_get_check_state_n(void); +extern int utc_noti_ex_item_checkbox_set_check_state_p(void); +extern int utc_noti_ex_item_checkbox_set_check_state_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); @@ -918,6 +946,14 @@ testcase tc_array[] = { {"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_style_set_background_image_p",utc_noti_ex_style_set_background_image_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_image_n",utc_noti_ex_style_set_background_image_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_image_p",utc_noti_ex_style_get_background_image_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_image_n",utc_noti_ex_style_get_background_image_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_color_p",utc_noti_ex_style_set_background_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_color_n",utc_noti_ex_style_set_background_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_color_p",utc_noti_ex_style_get_background_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_color_n",utc_noti_ex_style_get_background_color_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}, @@ -1014,12 +1050,26 @@ testcase tc_array[] = { {"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_item_set_ongoing_state_p",utc_noti_ex_item_set_ongoing_state_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_ongoing_state_n",utc_noti_ex_item_set_ongoing_state_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_ongoing_state_p",utc_noti_ex_item_get_ongoing_state_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_ongoing_state_n",utc_noti_ex_item_get_ongoing_state_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_check_type_exist_p",utc_noti_ex_item_check_type_exist_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_check_type_exist_n",utc_noti_ex_item_check_type_exist_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_main_type_p",utc_noti_ex_item_set_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_main_type_n",utc_noti_ex_item_set_main_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_main_type_p",utc_noti_ex_item_get_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_main_type_n",utc_noti_ex_item_get_main_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_main_type_p",utc_noti_ex_item_find_by_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_main_type_n",utc_noti_ex_item_find_by_main_type_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_get_by_channel_p",utc_noti_ex_manager_get_by_channel_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_by_channel_n",utc_noti_ex_manager_get_by_channel_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}, @@ -1072,6 +1122,10 @@ testcase tc_array[] = { {"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_progress_set_type_p",utc_noti_ex_item_progress_set_type_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_type_n",utc_noti_ex_item_progress_set_type_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_type_p",utc_noti_ex_item_progress_get_type_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_type_n",utc_noti_ex_item_progress_get_type_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}, @@ -1114,8 +1168,10 @@ testcase tc_array[] = { {"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_checkbox_get_check_state_p",utc_noti_ex_item_checkbox_get_check_state_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_check_state_n",utc_noti_ex_item_checkbox_get_check_state_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_set_check_state_p",utc_noti_ex_item_checkbox_set_check_state_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_checkbox_set_check_state_n",utc_noti_ex_item_checkbox_set_check_state_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_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}, diff --git a/src/utc/notification/tct-notification-core_wearable.h b/src/utc/notification/tct-notification-core_wearable.h index 816272907..89c2157e9 100644 --- a/src/utc/notification/tct-notification-core_wearable.h +++ b/src/utc/notification/tct-notification-core_wearable.h @@ -363,6 +363,14 @@ 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_style_set_background_image_p(void); +extern int utc_noti_ex_style_set_background_image_n(void); +extern int utc_noti_ex_style_get_background_image_p(void); +extern int utc_noti_ex_style_get_background_image_n(void); +extern int utc_noti_ex_style_set_background_color_p(void); +extern int utc_noti_ex_style_set_background_color_n(void); +extern int utc_noti_ex_style_get_background_color_p(void); +extern int utc_noti_ex_style_get_background_color_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); @@ -459,12 +467,26 @@ 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_item_set_ongoing_state_p(void); +extern int utc_noti_ex_item_set_ongoing_state_n(void); +extern int utc_noti_ex_item_get_ongoing_state_p(void); +extern int utc_noti_ex_item_get_ongoing_state_n(void); +extern int utc_noti_ex_item_check_type_exist_p(void); +extern int utc_noti_ex_item_check_type_exist_n(void); +extern int utc_noti_ex_item_set_main_type_p(void); +extern int utc_noti_ex_item_set_main_type_n(void); +extern int utc_noti_ex_item_get_main_type_p(void); +extern int utc_noti_ex_item_get_main_type_n(void); +extern int utc_noti_ex_item_find_by_main_type_p(void); +extern int utc_noti_ex_item_find_by_main_type_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_get_by_channel_p(void); +extern int utc_noti_ex_manager_get_by_channel_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); @@ -517,6 +539,10 @@ 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_progress_set_type_p(void); +extern int utc_noti_ex_item_progress_set_type_n(void); +extern int utc_noti_ex_item_progress_get_type_p(void); +extern int utc_noti_ex_item_progress_get_type_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); @@ -559,8 +585,10 @@ 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_checkbox_get_check_state_p(void); +extern int utc_noti_ex_item_checkbox_get_check_state_n(void); +extern int utc_noti_ex_item_checkbox_set_check_state_p(void); +extern int utc_noti_ex_item_checkbox_set_check_state_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); @@ -918,6 +946,14 @@ testcase tc_array[] = { {"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_style_set_background_image_p",utc_noti_ex_style_set_background_image_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_image_n",utc_noti_ex_style_set_background_image_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_image_p",utc_noti_ex_style_get_background_image_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_image_n",utc_noti_ex_style_get_background_image_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_color_p",utc_noti_ex_style_set_background_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_set_background_color_n",utc_noti_ex_style_set_background_color_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_color_p",utc_noti_ex_style_get_background_color_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_style_get_background_color_n",utc_noti_ex_style_get_background_color_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}, @@ -1014,12 +1050,26 @@ testcase tc_array[] = { {"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_item_set_ongoing_state_p",utc_noti_ex_item_set_ongoing_state_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_ongoing_state_n",utc_noti_ex_item_set_ongoing_state_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_ongoing_state_p",utc_noti_ex_item_get_ongoing_state_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_ongoing_state_n",utc_noti_ex_item_get_ongoing_state_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_check_type_exist_p",utc_noti_ex_item_check_type_exist_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_check_type_exist_n",utc_noti_ex_item_check_type_exist_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_main_type_p",utc_noti_ex_item_set_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_set_main_type_n",utc_noti_ex_item_set_main_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_main_type_p",utc_noti_ex_item_get_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_get_main_type_n",utc_noti_ex_item_get_main_type_n,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_main_type_p",utc_noti_ex_item_find_by_main_type_p,utc_notification_ex_item_startup,utc_notification_ex_item_cleanup}, + {"utc_noti_ex_item_find_by_main_type_n",utc_noti_ex_item_find_by_main_type_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_get_by_channel_p",utc_noti_ex_manager_get_by_channel_p,utc_notification_ex_manager_startup,utc_notification_ex_manager_cleanup}, + {"utc_noti_ex_manager_get_by_channel_n",utc_noti_ex_manager_get_by_channel_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}, @@ -1072,6 +1122,10 @@ testcase tc_array[] = { {"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_progress_set_type_p",utc_noti_ex_item_progress_set_type_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_set_type_n",utc_noti_ex_item_progress_set_type_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_type_p",utc_noti_ex_item_progress_get_type_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_progress_get_type_n",utc_noti_ex_item_progress_get_type_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}, @@ -1114,8 +1168,10 @@ testcase tc_array[] = { {"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_checkbox_get_check_state_p",utc_noti_ex_item_checkbox_get_check_state_p,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_get_check_state_n",utc_noti_ex_item_checkbox_get_check_state_n,utc_notification_ex_checkbox_startup,utc_notification_ex_checkbox_cleanup}, + {"utc_noti_ex_item_checkbox_set_check_state_p",utc_noti_ex_item_checkbox_set_check_state_p,utc_notification_ex_progress_startup,utc_notification_ex_progress_cleanup}, + {"utc_noti_ex_item_checkbox_set_check_state_n",utc_noti_ex_item_checkbox_set_check_state_n,utc_notification_ex_progress_startup,utc_notification_ex_progress_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}, diff --git a/src/utc/notification/utc-notification-ex-checkbox.c b/src/utc/notification/utc-notification-ex-checkbox.c index 16913c170..ffd290287 100644 --- a/src/utc/notification/utc-notification-ex-checkbox.c +++ b/src/utc/notification/utc-notification-ex-checkbox.c @@ -106,11 +106,11 @@ int utc_noti_ex_item_checkbox_get_title_n(void) } /** - * @testcase utc_noti_ex_item_checkbox_is_checked_p + * @testcase utc_noti_ex_item_checkbox_get_check_state_p * @since_tizen 5.5 - * @description Positive test case of noti_ex_item_checkbox_is_checked() + * @description Positive test case of noti_ex_item_checkbox_get_check_state() */ -int utc_noti_ex_item_checkbox_is_checked_p(void) +int utc_noti_ex_item_checkbox_get_check_state_p(void) { int ret; noti_ex_item_h item_handle = NULL; @@ -119,7 +119,7 @@ int utc_noti_ex_item_checkbox_is_checked_p(void) 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); + ret = noti_ex_item_checkbox_get_check_state(item_handle, &checked); assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); assert_eq_with_exit(checked, false); @@ -128,16 +128,51 @@ int utc_noti_ex_item_checkbox_is_checked_p(void) } /** - * @testcase utc_noti_ex_item_checkbox_is_checked_n + * @testcase utc_noti_ex_item_checkbox_get_check_state_n * @since_tizen 5.5 - * @description Negative test case of noti_ex_item_checkbox_is_checked() + * @description Negative test case of noti_ex_item_checkbox_get_check_state() */ -int utc_noti_ex_item_checkbox_is_checked_n(void) +int utc_noti_ex_item_checkbox_get_check_state_n(void) { int ret; bool checked; - ret = noti_ex_item_checkbox_is_checked(NULL, &checked); + ret = noti_ex_item_checkbox_get_check_state(NULL, &checked); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_checkbox_set_check_state_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_checkbox_set_check_state() + */ +int utc_noti_ex_item_checkbox_set_check_state_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); + + ret = noti_ex_item_checkbox_set_check_state(item_handle, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + noti_ex_item_destroy(item_handle); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_checkbox_set_check_state_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_checkbox_set_check_state() + */ +int utc_noti_ex_item_checkbox_set_check_state_n(void) +{ + int ret; + + ret = noti_ex_item_checkbox_get_check_state(NULL, false); assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); normal_exit(0); @@ -187,4 +222,4 @@ int utc_noti_ex_item_checkbox_set_multi_language_title_n(void) ret = noti_ex_item_checkbox_set_multi_language_title(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-item.c b/src/utc/notification/utc-notification-ex-item.c index e40f2db7c..cf47f50f2 100644 --- a/src/utc/notification/utc-notification-ex-item.c +++ b/src/utc/notification/utc-notification-ex-item.c @@ -844,6 +844,143 @@ int utc_noti_ex_style_get_geometry_n(void) normal_exit(0); } +/** + * @testcase utc_noti_ex_style_set_background_image_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_set_background_image() + */ +int utc_noti_ex_style_set_background_image_p(void) +{ + int ret; + noti_ex_style_h handle = NULL; + + ret = noti_ex_style_create(&handle, NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_set_background_image(handle, "image_path"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_set_background_image_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_set_background_image() + */ +int utc_noti_ex_style_set_background_image_n(void) +{ + int ret; + ret = noti_ex_style_set_background_image(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_background_image_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_get_background_image() + */ +int utc_noti_ex_style_get_background_image_p(void) +{ + int ret; + noti_ex_style_h handle = NULL; + char *path; + + ret = noti_ex_style_create(&handle, NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_set_background_image(handle, "image_path"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_style_get_background_image(handle, &path); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_background_image_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_get_background_image() + */ +int utc_noti_ex_style_get_background_image_n(void) +{ + int ret; + ret = noti_ex_style_get_background_image(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_set_background_color_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_set_background_color() + */ +int utc_noti_ex_style_set_background_color_p(void) +{ + int ret; + noti_ex_style_h handle = NULL; + noti_ex_color_h color = NULL; + + ret = noti_ex_style_create(&handle, NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_color_create(&color, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_set_background_color(handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_set_background_color_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_set_background_color() + */ +int utc_noti_ex_style_set_background_color_n(void) +{ + int ret; + ret = noti_ex_style_set_background_color(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_background_color_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_style_get_background_color() + */ +int utc_noti_ex_style_get_background_color_p(void) +{ + int ret; + noti_ex_style_h handle = NULL; + noti_ex_color_h color = NULL; + noti_ex_color_h color_ = NULL; + + ret = noti_ex_style_create(&handle, NULL, NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_color_create(&color, 1, 2, 3, 4); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_style_set_background_color(handle, color); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_style_get_background_color(handle, &color_); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_style_get_background_color_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_style_get_background_color() + */ +int utc_noti_ex_style_get_background_color_n(void) +{ + int ret; + ret = noti_ex_style_get_background_color(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 @@ -2466,4 +2603,214 @@ int utc_noti_ex_item_get_tag_n(void) 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 +} + +/** + * @testcase utc_noti_ex_item_set_ongoing_state_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_ongoing_state() + */ +int utc_noti_ex_item_set_ongoing_state_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_set_ongoing_state(button_item, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_ongoing_state_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_ongoing_state() + */ +int utc_noti_ex_item_set_ongoing_state_n(void) +{ + int ret; + ret = noti_ex_item_set_ongoing_state(NULL, false); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_ongoing_state_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_ongoing_state() + */ +int utc_noti_ex_item_get_ongoing_state_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + bool state = false; + + 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_set_ongoing_state(button_item, true); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_get_ongoing_state(button_item, &state); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_ongoing_state_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_ongoing_state() + */ +int utc_noti_ex_item_get_ongoing_state_n(void) +{ + int ret; + ret = noti_ex_item_get_ongoing_state(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_check_type_exist_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_check_type_exist() + */ +int utc_noti_ex_item_check_type_exist_p(void) +{ + int ret; + noti_ex_item_h button_item = NULL; + noti_ex_item_h item_handle = NULL; + bool exist = false; + + 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(&button_item, "button_id", "button_title"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_group_add_child(item_handle, button_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_check_type_exist(item_handle, NOTI_EX_ITEM_TYPE_BUTTON, &exist); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_check_type_exist_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_check_type_exist() + */ +int utc_noti_ex_item_check_type_exist_n(void) +{ + int ret; + ret = noti_ex_item_check_type_exist(NULL, NOTI_EX_ITEM_MAIN_TYPE_NONE, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_main_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_set_main_type() + */ +int utc_noti_ex_item_set_main_type_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_set_main_type(handle, "text_id", NOTI_EX_ITEM_MAIN_TYPE_TITLE); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_set_main_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_set_main_type() + */ +int utc_noti_ex_item_set_main_type_n(void) +{ + int ret; + ret = noti_ex_item_set_main_type(NULL, NULL, NOTI_EX_ITEM_MAIN_TYPE_NONE); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_main_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_get_main_type() + */ +int utc_noti_ex_item_get_main_type_p(void) +{ + int ret; + noti_ex_item_h handle; + int type = 0; + + ret = noti_ex_item_text_create(&handle, "text_id", "text", "hyperlink"); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_set_main_type(handle, "text_id", NOTI_EX_ITEM_MAIN_TYPE_TITLE); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + ret = noti_ex_item_get_main_type(handle, &type); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_get_main_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_get_main_type() + */ +int utc_noti_ex_item_get_main_type_n(void) +{ + int ret; + ret = noti_ex_item_get_main_type(NULL, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_find_by_main_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_find_by_main_type() + */ +int utc_noti_ex_item_find_by_main_type_p(void) +{ + int ret; + noti_ex_item_h item_handle = NULL; + noti_ex_item_h text_item = NULL; + noti_ex_item_h button_item = NULL; + noti_ex_item_h handle = NULL; + + ret = noti_ex_item_group_create(&item_handle, "group_id"); + 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_item_group_add_child(item_handle, text_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + 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_group_add_child(item_handle, button_item); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_set_main_type(item_handle, "text_id", NOTI_EX_ITEM_MAIN_TYPE_TITLE); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + + + ret = noti_ex_item_find_by_main_type(item_handle, NOTI_EX_ITEM_MAIN_TYPE_TITLE, &handle); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_find_by_main_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_find_by_main_type() + */ +int utc_noti_ex_item_find_by_main_type_n(void) +{ + int ret; + ret = noti_ex_item_find_by_main_type(NULL, NOTI_EX_ITEM_MAIN_TYPE_NONE, NULL); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} diff --git a/src/utc/notification/utc-notification-ex-manager.c b/src/utc/notification/utc-notification-ex-manager.c index cc0eece93..acb27b2f2 100644 --- a/src/utc/notification/utc-notification-ex-manager.c +++ b/src/utc/notification/utc-notification-ex-manager.c @@ -151,6 +151,8 @@ static void __send_noti() { ret = noti_ex_item_button_create(&child_item, "testbtn2", "test2"); ret = noti_ex_item_group_add_child(group_item, child_item);; + ret = noti_ex_item_set_channel(group_item, "test"); + noti_ex_reporter_post(reporter__, group_item, &req_id); } @@ -196,6 +198,50 @@ int utc_noti_ex_manager_get_n(void) normal_exit(0); } +void _getbychannel_test_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_by_channel(handle, "test", &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_by_channel_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_manager_get_by_channel() + */ +int utc_noti_ex_manager_get_by_channel_p(void) +{ + int ret; + noti_ex_manager_events_s ev = {0}; + + ev.added = _getbychannel_test_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_by_channel_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_manager_get_by_channel() + */ +int utc_noti_ex_manager_get_by_channel_n(void) +{ + int ret; + ret = noti_ex_manager_get_by_channel(NULL, 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; @@ -486,4 +532,4 @@ int utc_noti_ex_manager_get_notification_count_n(void) 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 index 327f45ce2..e082936d3 100644 --- a/src/utc/notification/utc-notification-ex-progress.c +++ b/src/utc/notification/utc-notification-ex-progress.c @@ -224,3 +224,66 @@ int utc_noti_ex_item_progress_get_max_n(void) normal_exit(0); } + +/** + * @testcase utc_noti_ex_item_progress_set_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_progress_set_type() + */ +int utc_noti_ex_item_progress_set_type_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_type(handle, NOTI_EX_ITEM_PROGRESS_TYPE_PERCENT); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_set_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_progress_set_type() + */ +int utc_noti_ex_item_progress_set_type_n(void) +{ + int ret; + ret = noti_ex_item_progress_set_type(NULL, 0); + assert_eq_with_exit(ret, NOTI_EX_ERROR_INVALID_PARAMETER); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_type_p + * @since_tizen 5.5 + * @description Positive test case of noti_ex_item_progress_get_type() + */ +int utc_noti_ex_item_progress_get_type_p(void) +{ + int ret; + noti_ex_item_h handle; + int type; + + 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_type(handle, NOTI_EX_ITEM_PROGRESS_TYPE_PERCENT); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + ret = noti_ex_item_progress_get_type(handle, &type); + assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE); + normal_exit(0); +} + +/** + * @testcase utc_noti_ex_item_progress_get_type_n + * @since_tizen 5.5 + * @description Negative test case of noti_ex_item_progress_get_type() + */ +int utc_noti_ex_item_progress_get_type_n(void) +{ + int ret; + ret = noti_ex_item_progress_get_type(NULL, NULL); + 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 old mode 100755 new mode 100644 diff --git a/src/utc/notification/utc-notification.h b/src/utc/notification/utc-notification.h old mode 100755 new mode 100644