From: manoj Date: Tue, 18 Feb 2020 06:31:42 +0000 (+0530) Subject: [ITC][ACR-1479][notification][Remove shared paths API] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=689c5772eb6245bce0b4c2926662a27f7eecf021;p=test%2Ftct%2Fnative%2Fapi.git [ITC][ACR-1479][notification][Remove shared paths API] Change-Id: I0107ad811af3744dae1d5a59fae4ddd376ae6074 Signed-off-by: manoj --- diff --git a/src/itc/notification/ITs-notification-common.c b/src/itc/notification/ITs-notification-common.c index e9d82d4e4..551f829dc 100755 --- a/src/itc/notification/ITs-notification-common.c +++ b/src/itc/notification/ITs-notification-common.c @@ -200,13 +200,11 @@ char* NotificationExGetError(int nRet) case NOTI_EX_ERROR_OUT_OF_MEMORY: szErrorVal = "NOTI_EX_ERROR_OUT_OF_MEMORY"; break; case NOTI_EX_ERROR_IO_ERROR: szErrorVal = "NOTI_EX_ERROR_IO_ERROR"; break; case NOTI_EX_ERROR_PERMISSION_DENIED: szErrorVal = "NOTI_EX_ERROR_PERMISSION_DENIED"; break; - case NOTI_EX_ERROR_INVALID_OPERATION: szErrorVal = "NOTI_EX_ERROR_INVALID_OPERATION"; break; case NOTI_EX_ERROR_FROM_DB: szErrorVal = "NOTI_EX_ERROR_FROM_DB"; break; case NOTI_EX_ERROR_ALREADY_EXIST_ID: szErrorVal = "NOTI_EX_ERROR_ALREADY_EXIST_ID"; break; case NOTI_EX_ERROR_FROM_DBUS: szErrorVal = "NOTI_EX_ERROR_FROM_DBUS"; break; case NOTI_EX_ERROR_NOT_EXIST_ID: szErrorVal = "NOTI_EX_ERROR_NOT_EXIST_ID"; break; case NOTI_EX_ERROR_SERVICE_NOT_READY: szErrorVal = "NOTI_EX_ERROR_SERVICE_NOT_READY"; break; - case NOTI_EX_ERROR_MAX_EXCEEDED: szErrorVal = "NOTI_EX_ERROR_MAX_EXCEEDED"; break; } return szErrorVal; } diff --git a/src/itc/notification/ITs-notification-ex.c b/src/itc/notification/ITs-notification-ex.c index 2b25d01e7..581f053a3 100755 --- a/src/itc/notification/ITs-notification-ex.c +++ b/src/itc/notification/ITs-notification-ex.c @@ -1916,54 +1916,6 @@ int ITc_noti_ex_item_get_type_p(void) return 0; } -//& type : auto -//& purpose: Gets the path of shared files. -/** -* @testcase ITc_noti_ex_item_get_shared_paths_p -* @since_tizen 5.5 -* @author SRID(j.abhishek) -* @reviewer SRID(shobhit.v) -* @type auto -* @description Gets the path of shared files. -* @scenario Creates the notification_ex item, get the item type.\n -* Gets the path of shared files and check for Pass/Fail. -* @apicovered noti_ex_item_get_shared_paths -* @passcase noti_ex_item_get_shared_paths is successful and return correct value -* @failcase noti_ex_item_get_shared_paths failed or return null value -* @precondition NA -* @postcondition Destroy handle. -*/ -int ITc_noti_ex_item_get_shared_paths_p(void) -{ - START_TEST; - - int nRet = NOTI_EX_ERROR_NONE; - int nGetCount; - int nCount; - char **pszGetSharedPath = NULL; - - nRet = CreateButton(); - PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_button_create", NotificationExGetError(nRet)); - CHECK_HANDLE(g_hItemButton, "noti_ex_item_button_create"); - - //Target API - nRet = noti_ex_item_get_shared_paths(g_hItemButton, &pszGetSharedPath, &nGetCount); - PRINT_RESULT_CLEANUP(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_get_shared_paths", NotificationExGetError(nRet), noti_ex_item_destroy(g_hItemButton)); - CHECK_HANDLE_CLEANUP(pszGetSharedPath, "noti_ex_item_get_shared_paths", noti_ex_item_destroy(g_hItemButton)); - - for(nCount = 1; nCount <= nGetCount; nCount++) - { - FPRINTF("[Line : %d][%s] noti_ex_item_get_shared_paths: [%d]th Shared path=[%s] \\n", __LINE__, API_NAMESPACE, nCount, pszGetSharedPath[nCount]); - } - - FREE_MEMORY(pszGetSharedPath); - - nRet = noti_ex_item_destroy(g_hItemButton); - PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_item_destroy", NotificationExGetError(nRet)); - - return 0; -} - //& type : auto //& purpose: Sets and Gets the id of a notification_ex item. /** diff --git a/src/itc/notification/tct-notification-native_mobile.h b/src/itc/notification/tct-notification-native_mobile.h index 1b8716c73..1669f44a2 100755 --- a/src/itc/notification/tct-notification-native_mobile.h +++ b/src/itc/notification/tct-notification-native_mobile.h @@ -90,7 +90,6 @@ extern int ITc_noti_ex_item_input_selector_create_p(void); extern int ITc_noti_ex_item_input_selector_set_get_contents_p(void); extern int ITc_noti_ex_item_find_by_id_p(void); extern int ITc_noti_ex_item_get_type_p(void); -extern int ITc_noti_ex_item_get_shared_paths_p(void); extern int ITc_noti_ex_item_set_get_id_p(void); extern int ITc_noti_ex_item_set_get_action_p(void); extern int ITc_noti_ex_item_set_get_style_p(void); @@ -245,7 +244,6 @@ testcase tc_array[] = { {"ITc_noti_ex_item_input_selector_set_get_contents_p", ITc_noti_ex_item_input_selector_set_get_contents_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_find_by_id_p", ITc_noti_ex_item_find_by_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_get_type_p", ITc_noti_ex_item_get_type_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, - {"ITc_noti_ex_item_get_shared_paths_p", ITc_noti_ex_item_get_shared_paths_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_id_p", ITc_noti_ex_item_set_get_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_action_p", ITc_noti_ex_item_set_get_action_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_style_p", ITc_noti_ex_item_set_get_style_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, diff --git a/src/itc/notification/tct-notification-native_tizeniot.h b/src/itc/notification/tct-notification-native_tizeniot.h index 1b8716c73..1669f44a2 100755 --- a/src/itc/notification/tct-notification-native_tizeniot.h +++ b/src/itc/notification/tct-notification-native_tizeniot.h @@ -90,7 +90,6 @@ extern int ITc_noti_ex_item_input_selector_create_p(void); extern int ITc_noti_ex_item_input_selector_set_get_contents_p(void); extern int ITc_noti_ex_item_find_by_id_p(void); extern int ITc_noti_ex_item_get_type_p(void); -extern int ITc_noti_ex_item_get_shared_paths_p(void); extern int ITc_noti_ex_item_set_get_id_p(void); extern int ITc_noti_ex_item_set_get_action_p(void); extern int ITc_noti_ex_item_set_get_style_p(void); @@ -245,7 +244,6 @@ testcase tc_array[] = { {"ITc_noti_ex_item_input_selector_set_get_contents_p", ITc_noti_ex_item_input_selector_set_get_contents_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_find_by_id_p", ITc_noti_ex_item_find_by_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_get_type_p", ITc_noti_ex_item_get_type_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, - {"ITc_noti_ex_item_get_shared_paths_p", ITc_noti_ex_item_get_shared_paths_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_id_p", ITc_noti_ex_item_set_get_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_action_p", ITc_noti_ex_item_set_get_action_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_style_p", ITc_noti_ex_item_set_get_style_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, diff --git a/src/itc/notification/tct-notification-native_wearable.h b/src/itc/notification/tct-notification-native_wearable.h index e98f6830a..ba39b4cc4 100755 --- a/src/itc/notification/tct-notification-native_wearable.h +++ b/src/itc/notification/tct-notification-native_wearable.h @@ -90,7 +90,6 @@ extern int ITc_noti_ex_item_input_selector_create_p(void); extern int ITc_noti_ex_item_input_selector_set_get_contents_p(void); extern int ITc_noti_ex_item_find_by_id_p(void); extern int ITc_noti_ex_item_get_type_p(void); -extern int ITc_noti_ex_item_get_shared_paths_p(void); extern int ITc_noti_ex_item_set_get_id_p(void); extern int ITc_noti_ex_item_set_get_action_p(void); extern int ITc_noti_ex_item_set_get_style_p(void); @@ -245,7 +244,6 @@ testcase tc_array[] = { {"ITc_noti_ex_item_input_selector_set_get_contents_p", ITc_noti_ex_item_input_selector_set_get_contents_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_find_by_id_p", ITc_noti_ex_item_find_by_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_get_type_p", ITc_noti_ex_item_get_type_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, - {"ITc_noti_ex_item_get_shared_paths_p", ITc_noti_ex_item_get_shared_paths_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_id_p", ITc_noti_ex_item_set_get_id_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_action_p", ITc_noti_ex_item_set_get_action_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup}, {"ITc_noti_ex_item_set_get_style_p", ITc_noti_ex_item_set_get_style_p, ITs_notification_ex_startup, ITs_notification_ex_cleanup},