[UTC][notification][Non-ACR][Remove platform privilege TCs] 05/242805/2
authorhyunho <hhstark.kang@samsung.com>
Tue, 1 Sep 2020 02:53:15 +0000 (11:53 +0900)
committerhyunho <hhstark.kang@samsung.com>
Tue, 1 Sep 2020 05:13:22 +0000 (14:13 +0900)
Platform privilege tc should not exist in public UTC so,
let's move related TCs to the internal UTC.

Change-Id: Ibb0cc54aacb39cba66d76f6825872fe8bb7e6467
Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/utc/notification/CMakeLists.txt
src/utc/notification/tct-notification-core_mobile.h
src/utc/notification/tct-notification-core_tizeniot.h
src/utc/notification/tct-notification-core_wearable.h
src/utc/notification/utc-notification-ex-event_info.c
src/utc/notification/utc-notification-ex-manager.c [deleted file]
src/utc/notification/utc-notification-ex-reporter.c

index c0ba1f7084a02aee0640981d7be37d97bcfac1fe..a582a3c4d7edb7b7b81176ced2fbfb4b743dbda7 100644 (file)
@@ -6,7 +6,6 @@ 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
index 942dbc00c88b827b77e74841280324804b6811a3..9fe53b692602940b42bdfeffc31b9988bf5ea660 100644 (file)
@@ -477,34 +477,10 @@ 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);
-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);
@@ -593,19 +569,12 @@ 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);
@@ -1066,34 +1035,10 @@ testcase tc_array[] = {
        {"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},
-       {"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},
@@ -1182,19 +1127,12 @@ testcase tc_array[] = {
        {"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},
index 942dbc00c88b827b77e74841280324804b6811a3..9fe53b692602940b42bdfeffc31b9988bf5ea660 100644 (file)
@@ -477,34 +477,10 @@ 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);
-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);
@@ -593,19 +569,12 @@ 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);
@@ -1066,34 +1035,10 @@ testcase tc_array[] = {
        {"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},
-       {"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},
@@ -1182,19 +1127,12 @@ testcase tc_array[] = {
        {"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},
index 942dbc00c88b827b77e74841280324804b6811a3..9fe53b692602940b42bdfeffc31b9988bf5ea660 100644 (file)
@@ -477,34 +477,10 @@ 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);
-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);
@@ -593,19 +569,12 @@ 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);
@@ -1066,34 +1035,10 @@ testcase tc_array[] = {
        {"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},
-       {"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},
@@ -1182,19 +1127,12 @@ testcase tc_array[] = {
        {"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},
index aaf5047bd02146b691b6c2ad02e87b11f52c6809..1f341b19ba08e2ced60eb12939ff14161393e4a4 100644 (file)
 #include <unistd.h>
 #include <fcntl.h>
 #include <libintl.h>
+#include <app_manager.h>
+#include <app_control.h>
 
 #include <notification-ex/api/notification_ex.h>
-
 #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)
+static void reply_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data)
 {
 }
 
-void utc_notification_ex_event_info_cleanup(void)
+void utc_notification_ex_event_info_startup(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)
+void utc_notification_ex_event_info_cleanup(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;
 }
 
 /**
@@ -145,24 +54,6 @@ int utc_noti_ex_event_info_clone_n(void)
        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
@@ -177,24 +68,6 @@ int utc_noti_ex_event_info_destroy_n(void)
        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
@@ -210,24 +83,6 @@ int utc_noti_ex_event_info_get_event_type_n(void)
        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
@@ -243,24 +98,6 @@ int utc_noti_ex_event_info_get_owner_n(void)
        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
@@ -276,24 +113,6 @@ int utc_noti_ex_event_info_get_channel_n(void)
        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
@@ -309,24 +128,6 @@ int utc_noti_ex_event_info_get_item_id_n(void)
        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
@@ -340,4 +141,4 @@ int utc_noti_ex_event_info_get_request_id_n(void)
        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-manager.c b/src/utc/notification/utc-notification-ex-manager.c
deleted file mode 100644 (file)
index acb27b2..0000000
+++ /dev/null
@@ -1,535 +0,0 @@
-//
-// 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 <app.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <libintl.h>
-
-#include <notification-ex/api/notification_ex.h>
-
-#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);;
-
-       ret = noti_ex_item_set_channel(group_item, "test");
-
-       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 _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;
-       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);
-}
index 468285e389330547d9e46d062e26c00b9ceed83a..c17631fabc7b9e96cfee821d3e0cc627933c686b 100644 (file)
@@ -36,6 +36,9 @@ void utc_notification_ex_reporter_startup(void)
 
 void utc_notification_ex_reporter_cleanup(void)
 {
+       int req_id;
+
+       noti_ex_reporter_delete_all(reporter_handle__, &req_id);
 }
 
 void _reporter_events_event_cb(noti_ex_reporter_h handle, noti_ex_event_info_h info,
@@ -113,70 +116,6 @@ int utc_noti_ex_reporter_destroy_n(void)
        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};
@@ -206,13 +145,6 @@ static void __create_noti(noti_ex_item_h **noti_list) {
        *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
@@ -220,16 +152,15 @@ void _post_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info,
  */
 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(&noti_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;
+
+       normal_exit(0);
 }
 
 /**
@@ -245,13 +176,6 @@ int utc_noti_ex_reporter_post_n(void)
        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
@@ -259,16 +183,15 @@ void _postlist_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info
  */
 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(&noti_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;
+
+       normal_exit(0);
 }
 
 /**
@@ -284,15 +207,6 @@ int utc_noti_ex_reporter_post_list_n(void)
        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
@@ -300,16 +214,22 @@ void _update_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info,
  */
 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;
+       noti_ex_item_h item;
        int req_id;
+
        __create_noti(&noti_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;
+
+       ret = noti_ex_reporter_find_by_root_id(reporter_handle__, GROUP_NOTI_ID, &item);
+       assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE);
+
+       ret = noti_ex_reporter_update(reporter_handle__, item, &req_id);
+       assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE);
+
+       normal_exit(0);
 }
 
 /**
@@ -325,14 +245,6 @@ int utc_noti_ex_reporter_update_n(void)
        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
@@ -340,16 +252,22 @@ void _delete_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h info,
  */
 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;
+       noti_ex_item_h item;
        int req_id;
+
        __create_noti(&noti_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;
+
+       ret = noti_ex_reporter_find_by_root_id(reporter_handle__, GROUP_NOTI_ID, &item);
+       assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE);
+
+       ret = noti_ex_reporter_delete(reporter_handle__, item, &req_id);
+       assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE);
+
+       normal_exit(0);
 }
 
 /**
@@ -365,14 +283,6 @@ int utc_noti_ex_reporter_delete_n(void)
        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
@@ -380,16 +290,18 @@ void _deleteall_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h inf
  */
 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(&noti_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;
+
+       ret = noti_ex_reporter_delete_all(reporter_handle__, &req_id);
+       assert_eq_with_exit_no_returnval(ret, NOTI_EX_ERROR_NONE);
+
+       normal_exit(0);
 }
 
 /**
@@ -405,18 +317,6 @@ int utc_noti_ex_reporter_delete_all_n(void)
        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
@@ -424,16 +324,19 @@ void _findbyrootid_events_add_cb(noti_ex_manager_h handle, noti_ex_event_info_h
  */
 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;
+       noti_ex_item_h item;
        int req_id;
+
        __create_noti(&noti_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;
+
+       ret = noti_ex_reporter_find_by_root_id(reporter_handle__, GROUP_NOTI_ID, &item);
+       assert_eq_with_exit(ret, NOTI_EX_ERROR_NONE);
+
+       normal_exit(0);
 }
 
 /**