[ITC][ACR-1479][notification][Remove shared paths API] 10/225210/2
authormanoj <manoj.g2@samsung.com>
Tue, 18 Feb 2020 06:31:42 +0000 (12:01 +0530)
committershobhit verma <shobhit.v@samsung.com>
Tue, 18 Feb 2020 06:34:37 +0000 (06:34 +0000)
Change-Id: I0107ad811af3744dae1d5a59fae4ddd376ae6074
Signed-off-by: manoj <manoj.g2@samsung.com>
src/itc/notification/ITs-notification-common.c
src/itc/notification/ITs-notification-ex.c
src/itc/notification/tct-notification-native_mobile.h
src/itc/notification/tct-notification-native_tizeniot.h
src/itc/notification/tct-notification-native_wearable.h

index e9d82d4e4159bcbfc68904ba6b8cef94ced5ded1..551f829dc610dbf5e3d2f91681cf4e374850f052 100755 (executable)
@@ -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;
 }
index 2b25d01e7b67db25041cb4c6e7906e59429baa8d..581f053a335bb653c50744bb5d06cc2e48d678dd 100755 (executable)
@@ -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.
 /**
index 1b8716c73d25ec32804a53b9752ce9caf11c9ff5..1669f44a269f574fb4628d33e1b89cdf0a6480f7 100755 (executable)
@@ -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},
index 1b8716c73d25ec32804a53b9752ce9caf11c9ff5..1669f44a269f574fb4628d33e1b89cdf0a6480f7 100755 (executable)
@@ -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},
index e98f6830a4b1f86e36cdc088d92347844e270836..ba39b4cc4c710b50c2a8d0c66b0600665605483a 100755 (executable)
@@ -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},