[ITC][notification][ACR-1504][TSIX-5787, testhub notification testcases fail fix] 97/241997/4
authorNibha Sharma <nibha.sharma@samsung.com>
Fri, 21 Aug 2020 08:55:00 +0000 (14:25 +0530)
committershobhit verma <shobhit.v@samsung.com>
Fri, 21 Aug 2020 11:27:31 +0000 (11:27 +0000)
- Referred DPTTIZEN-3201, tpk and testcases require tpk removed as partner privilege is required
- ACR 1504 says http://tizen.org/privilege/notification.admin privilege requires partner level certificate
- noti_ex_manager tpk used this privilege and ITC does not sign with partner level certificate

Change-Id: I167eadc469a3a6196561d957c823294d2bf982d0
Signed-off-by: Nibha Sharma <nibha.sharma@samsung.com>
12 files changed:
src/itc/notification/CMakeLists.txt
src/itc/notification/ITs-notification-common.h
src/itc/notification/ITs-notification-ex-event_info.c [deleted file]
src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-arm.tpk [deleted file]
src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-x86.tpk [deleted file]
src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-arm.tpk [deleted file]
src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-x86.tpk [deleted file]
src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-arm.tpk [deleted file]
src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-x86.tpk [deleted file]
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 c7609ab064b424901e1f14c2f0065f412146f0d0..83c8bf60806d8cf431ca1c067d9f37868e09abd6 100755 (executable)
@@ -22,7 +22,6 @@ SET(TC_SOURCES
         ITs-notification-ex-text.c
         ITs-notification-ex-time.c
         ITs-notification-ex-visibility-action.c
-        ITs-notification-ex-event_info.c
 )
 
 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
index 288bfc38f78699682fecae08aa87af133c01fcd7..03c1c43c0ef914252d56e65d20f70e8bd70639a7 100755 (executable)
@@ -25,7 +25,6 @@
 #include <app_manager.h>
 #include <app_control.h>
 
-#define TEST_APPID "org.tizen.noti_ex_manager"
 
 #define API_NAMESPACE                                  "NOTIFICATION_ITC"
 #define MICROSECONDS_PER_SECOND                        1000000
diff --git a/src/itc/notification/ITs-notification-ex-event_info.c b/src/itc/notification/ITs-notification-ex-event_info.c
deleted file mode 100755 (executable)
index feac78e..0000000
+++ /dev/null
@@ -1,672 +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 "ITs-notification-common.h"
-
-#define TEST_APPID "org.tizen.noti_ex_manager"
-
-/**
-* @function             EventinfoReporterEventsErrorCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-void EventinfoReporterEventsErrorCB(noti_ex_reporter_h handle, noti_ex_error_e error, int req_id, void *data)
-{
-               g_CallBackHit = true;
-#if DEBUG
-                       FPRINTF("[Line : %d][%s] EventinfoReporterEventsErrorCB Callback Invoked\\n", __LINE__, API_NAMESPACE);
-#endif
-}
-
-/**
-* @function             EventinfoCloneAddCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-void EventinfoCloneAddCB(noti_ex_reporter_h hNotiManager, noti_ex_event_info_h hNotiInfo, noti_ex_item_h *hNotiItem, int nCount, void *pszData)
-{
-       int nRet;
-       int nReqId;
-
-       g_CallBackHit = true;
-       g_bAPIFailed = false;
-        noti_ex_event_info_h hEventInfo = NULL;
-
-       FPRINTF("[Line : %d][%s] EventinfoCloneAddCB callback hit \\n", __LINE__, API_NAMESPACE);
-
-        nRet = noti_ex_event_info_clone(hNotiInfo, &hEventInfo);
-       PRINT_RESULT_CALLBACK_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_event_info_clone", NotificationExGetError(nRet));
-
-       nRet = noti_ex_event_info_destroy(hEventInfo);
-       PRINT_RESULT_CALLBACK_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_event_info_destroy", NotificationExGetError(nRet));
-
-        nRet = noti_ex_reporter_delete_all(g_hEventinfoReporter, &nReqId);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_delete_all", NotificationExGetError(nRet));
-
-        nRet = noti_ex_reporter_destroy(g_hEventinfoReporter);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_destroy", NotificationExGetError(nRet));
-
-       g_CallBackHit = true;
-        if(g_pNotificationMainLoop)
-        {
-                g_main_loop_quit(g_pNotificationMainLoop);
-                g_pNotificationMainLoop = NULL;
-        }
-        return;
-}
-/**
-* @function             EventInfoEventTypeCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-void EventInfoEventTypeCB(noti_ex_reporter_h handle, noti_ex_event_info_h info,noti_ex_item_h *added_item, int cnt, void *pszData)
-{
-        g_CallBackHit = false;
-        g_bAPIFailed = false;
-       int nRet = -1;
-       int nReqId;
-       noti_ex_event_info_type_e event_type;
-
-        FPRINTF("[Line : %d][%s] EventInfoEventTypeCB callback hit \\n", __LINE__, API_NAMESPACE);
-
-       nRet = noti_ex_event_info_get_event_type(info, &event_type);
-        PRINT_RESULT_CALLBACK_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_event_info_get_event_type", NotificationExGetError(nRet));
-        PRINT_RESULT_CALLBACK_NORETURN(event_type, NOTI_EX_EVENT_UPDATE, "noti_ex_event_info_get_event_type", "values are not correct");
-
-       nRet = noti_ex_reporter_delete_all(g_hEventinfoReporter, &nReqId);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_delete_all", NotificationExGetError(nRet));
-
-       nRet = noti_ex_reporter_destroy(g_hEventinfoReporter);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_destroy", NotificationExGetError(nRet));
-
-        g_CallBackHit = true;
-        if(g_pNotificationMainLoop)
-        {
-                g_main_loop_quit(g_pNotificationMainLoop);
-                g_pNotificationMainLoop = NULL;
-        }
-       return;
-}
-/**
-* @function             EventinfoGetOwnerCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-void EventinfoGetOwnerCB(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_item, int cnt, void *data)
-{
-        int nRet;
-       int nReqId;
-       char *pszOwner = NULL;
-        g_CallBackHit = false;
-        g_bAPIFailed = false;
-
-        FPRINTF("[Line : %d][%s] EventinfoGetOwnerCB callback hit \\n", __LINE__, API_NAMESPACE);
-
-       nRet = noti_ex_event_info_get_owner(info, &pszOwner);
-        PRINT_RESULT_CALLBACK_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_event_info_get_owner", NotificationExGetError(nRet));
-
-       if (pszOwner != NULL)
-               FREE_MEMORY(pszOwner);
-
-       nRet = noti_ex_reporter_delete_all(g_hEventinfoReporter, &nReqId);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_delete_all", NotificationExGetError(nRet));
-
-       nRet = noti_ex_reporter_destroy(g_hEventinfoReporter);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_destroy", NotificationExGetError(nRet));
-
-        g_CallBackHit = true;
-        if(g_pNotificationMainLoop)
-        {
-                g_main_loop_quit(g_pNotificationMainLoop);
-                g_pNotificationMainLoop = NULL;
-        }
-       return;
-}
-/**
-* @function             EventinfoGetChannelCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-void EventinfoGetChannelCB(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_item, int cnt, void *data)
-{
-        int nRet;
-       int nReqId;
-       char *pszChannel = NULL;
-        g_CallBackHit = false;
-        g_bAPIFailed = false;
-
-        FPRINTF("[Line : %d][%s] EventinfoGetChannelCB callback hit \\n", __LINE__, API_NAMESPACE);
-
-       nRet = noti_ex_event_info_get_channel(info, &pszChannel);
-       PRINT_RESULT_CALLBACK_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_event_info_get_channel", NotificationExGetError(nRet));
-
-       if (pszChannel)
-               FREE_MEMORY(pszChannel);
-
-       nRet = noti_ex_reporter_delete_all(g_hEventinfoReporter, &nReqId);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_delete_all", NotificationExGetError(nRet));
-
-       nRet = noti_ex_reporter_destroy(g_hEventinfoReporter);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_destroy", NotificationExGetError(nRet));
-
-        g_CallBackHit = true;
-        if(g_pNotificationMainLoop)
-        {
-                g_main_loop_quit(g_pNotificationMainLoop);
-                g_pNotificationMainLoop = NULL;
-        }
-       return;
-}
-/**
-* @function             EventinfoGetItemCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-void EventinfoGetItemCB(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_item, int cnt, void *data)
-{
-        int nRet;
-       int nReqId;
-       char *pszId = NULL;
-        g_CallBackHit = false;
-        g_bAPIFailed = false;
-        FPRINTF("[Line : %d][%s] EventinfoGetItemCB callback hit \\n", __LINE__, API_NAMESPACE);
-       nRet = noti_ex_event_info_get_item_id(info, &pszId);
-       PRINT_RESULT_CALLBACK_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_event_info_get_item_id", NotificationExGetError(nRet));
-
-       if (pszId)
-               FREE_MEMORY(pszId);
-
-       nRet = noti_ex_reporter_delete_all(g_hEventinfoReporter, &nReqId);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_delete_all", NotificationExGetError(nRet));
-
-       nRet = noti_ex_reporter_destroy(g_hEventinfoReporter);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_destroy", NotificationExGetError(nRet));
-
-        g_CallBackHit = true;
-        if(g_pNotificationMainLoop)
-        {
-                g_main_loop_quit(g_pNotificationMainLoop);
-                g_pNotificationMainLoop = NULL;
-        }
-       return;
-}
-/**
-* @function             EventinfoGetRequestIdCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-void EventinfoGetRequestIdCB(noti_ex_reporter_h handle, noti_ex_event_info_h info, noti_ex_item_h *added_item, int cnt, void *data)
-{
-        int nRet;
-       int req_id;
-        int nReqId;
-        g_CallBackHit = false;
-        g_bAPIFailed = false;
-
-        FPRINTF("[Line : %d][%s] EventinfoGetRequestIdCB callback hit \\n", __LINE__, API_NAMESPACE);
-
-       nRet = noti_ex_event_info_get_request_id(info, &req_id);
-       PRINT_RESULT_CALLBACK_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_event_info_get_request_id", NotificationExGetError(nRet));
-
-       nRet = noti_ex_reporter_delete_all(g_hEventinfoReporter, &nReqId);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_delete_all", NotificationExGetError(nRet));
-
-       nRet = noti_ex_reporter_destroy(g_hEventinfoReporter);
-        PRINT_RESULT_NORETURN(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_destroy", NotificationExGetError(nRet));
-
-        g_CallBackHit = true;
-        if(g_pNotificationMainLoop)
-        {
-                g_main_loop_quit(g_pNotificationMainLoop);
-                g_pNotificationMainLoop = NULL;
-        }
-       return;
-}
-/**
-* @function             ReplyCB
-* @description          CallBack function
-* @parameter            NA
-* @return               NA
-*/
-
-static void ReplyCB(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data)
-{
-       FPRINTF("[Line : %d][%s] ReplyCB Callback hit\\n", __LINE__, API_NAMESPACE);
-}
-/**
-* @function            ITs_notification_ex_info_startup
-* @description         Called before each test
-* @parameter           NA
-* @return              NA
-*/
-void ITs_notification_ex_event_info_startup(void)
-{
-       struct stat stBuff;
-       if ( stat(ERR_LOG, &stBuff) == 0 )
-       {
-               remove(ERR_LOG);
-       }
-#if DEBUG
-       FPRINTF("[Line : %d][%s] TEST SUIT start-up: ITs_notification_ex_info_startup \\n", __LINE__, API_NAMESPACE);
-#endif
-        app_control_h request;
-        int ret;
-        bool running = false;
-        int nTimeoutId = 0;
-        app_manager_is_running(TEST_APPID, &running);
-        if(!running)
-       {
-               app_control_create(&request);
-               if (!request)
-                {
-                        FPRINTF("[Line : %d][%s] app_control_create failed \\n", __LINE__, API_NAMESPACE);
-                       return;
-                }
-               ret = app_control_set_app_id(request, TEST_APPID);
-               if (ret != APP_ERROR_NONE)
-                {
-                        FPRINTF("[Line : %d][%s] app_control_set_app_id failed \\n", __LINE__, API_NAMESPACE);
-                       return;
-                }
-               ret = app_control_send_launch_request(request, ReplyCB, NULL);
-               if (ret != APP_ERROR_NONE)
-                {
-                        FPRINTF("[Line : %d][%s] app_control_send_launch_request failed \\n", __LINE__, API_NAMESPACE);
-                       return;
-                }
-                g_pNotificationMainLoop = g_main_loop_new(NULL, false);
-                nTimeoutId = g_timeout_add(5000, Timeout, g_pNotificationMainLoop);
-                g_main_loop_run(g_pNotificationMainLoop);
-                g_source_remove(nTimeoutId);
-                g_pNotificationMainLoop = NULL;
-       }
-       return;
-}
-
-/**
-* @function            ITs_notification_ex_event_info_cleanup
-* @description         Called after each test
-* @parameter           NA
-* @return              NA
-*/
-void ITs_notification_ex_event_info_cleanup(void)
-{
-#if DEBUG
-       FPRINTF("[Line : %d][%s] TEST SUIT clean-up: ITs_notification_ex_event_info_cleanup \\n", __LINE__, API_NAMESPACE);
-#endif
-       return;
-}
-//& type : auto
-//& purpose: Clones and Releases the notification event info handle.
-/**
-* @testcase                    ITc_noti_ex_event_info_clone_destroy_p
-* @since_tizen                 5.5
-* @author                      SRID(j.abhishek)
-* @reviewer                    SRID(shobhit.v)
-* @type                                auto
-* @description                 Clones and Releases the notification event info handle.
-* @scenario                    Creates notification_ex manager and event handler \n
-*                              register callbacks, set flag to invole specific API in callback \n
-*                              call SendNotification helper function to invoke callback and Check for callback hit.
-* @apicovered                  noti_ex_event_info_clone, noti_ex_event_info_destroy
-* @passcase                    noti_ex_event_info_clone and noti_ex_event_info_destroy are successful and return correct value
-* @failcase                    noti_ex_event_info_clone and/or noti_ex_event_info_destroy failed
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_noti_ex_event_info_clone_destroy_p(void)
-{
-       START_TEST;
-
-        int nTimeoutId = 0;
-        int nRet = NOTI_EX_ERROR_NONE;
-        g_CallBackHit = false;
-        g_hEventinfoReporter = NULL;
-        noti_ex_reporter_events_s hReportEvent = {0};
-
-        hReportEvent.error = EventinfoReporterEventsErrorCB;
-        hReportEvent.event = EventinfoCloneAddCB;
-
-        g_eEventInfoAPI = EX_EVENT_INFO_CLONE;
-
-        nRet = noti_ex_reporter_create(&g_hEventinfoReporter, hReportEvent, NULL);
-        PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_create", NotificationExGetError(nRet));
-        CHECK_HANDLE(g_hEventinfoReporter, "noti_ex_reporter_create");
-        nRet = SendNotification();
-        if(nRet)
-        {
-                FPRINTF("[Line : %d][%s] One of the API called inside SendNotification() is failed and returned \\n", __LINE__, API_NAMESPACE);
-                return 1;
-        }
-        RUN_POLLING_LOOP;
-        if(!g_CallBackHit)
-        {
-                FPRINTF("[Line : %d][%s] EventinfoReporterEventsErrorCB or EventinfoCloneAddCB Callback not hit for noti_ex_event_info_clone()\\n", __LINE__, API_NAMESPACE);
-                return 1;
-        }
-        if (g_bAPIFailed)
-        {
-                FPRINTF("[Line : %d][%s] noti_ex_event_info_clone() target API failed\\n", __LINE__, API_NAMESPACE);
-                return 1;
-        }
-
-       return 0;
-}
-
-//& type : auto
-//& purpose: Gets the type of an event.
-/**
-* @testcase                    ITc_noti_ex_event_info_get_event_type_p
-* @since_tizen                 5.5
-* @author                      SRID(j.abhishek)
-* @reviewer                    SRID(shobhit.v)
-* @type                                auto
-* @description                 Gets the type of an event.
-* @scenario                    Creates notification_ex manager and event handler \n
-*                              register callbacks, set flag to invole specific API in callback \n
-*                              call SendNotification helper function to invoke callback and Check for callback hit.
-* @apicovered                  noti_ex_event_info_get_event_type
-* @passcase                    noti_ex_event_info_get_event_type is successful and return correct value
-* @failcase                    noti_ex_event_info_get_event_type failed
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_noti_ex_event_info_get_event_type_p(void)
-{
-       START_TEST;
-
-        int nTimeoutId = 0;
-        g_CallBackHit = false;
-        int nRet = NOTI_EX_ERROR_NONE;
-        g_hEventinfoReporter = NULL;
-        noti_ex_reporter_events_s hReportEvent = {0};
-
-        hReportEvent.error = EventinfoReporterEventsErrorCB;
-        hReportEvent.event = EventInfoEventTypeCB;
-
-        nRet = noti_ex_reporter_create(&g_hEventinfoReporter, hReportEvent, NULL);
-        PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_create", NotificationExGetError(nRet));
-        CHECK_HANDLE(g_hEventinfoReporter, "noti_ex_reporter_create");
-
-        nRet = SendNotification();
-        if(nRet)
-        {
-                FPRINTF("[Line : %d][%s] One of the API called inside SendNotification() is failed and returned \\n", __LINE__, API_NAMESPACE);
-                return 1;
-        }
-
-        RUN_POLLING_LOOP;
-        if(!g_CallBackHit)
-        {
-                FPRINTF("[Line : %d][%s] EventinfoReporterEventsErrorCB or EventinfoEventTypeCB Callback not hit\\n", __LINE__, API_NAMESPACE);
-                return 1;
-        }
-        if (g_bAPIFailed)
-        {
-                FPRINTF("[Line : %d][%s] noti_ex_event_info_get_event_type() target API failed\\n", __LINE__, API_NAMESPACE);
-                return 1;
-        }
-
-        return 0;
-}
-
-//& type : auto
-//& purpose: Gets the app id of event owner.
-/**
-* @testcase                    ITc_noti_ex_event_info_get_owner_p
-* @since_tizen                 5.5
-* @author                      SRID(j.abhishek)
-* @reviewer                    SRID(shobhit.v)
-* @type                                auto
-* @description                 Gets the app id of event owner.
-* @scenario                    Creates notification_ex manager and event handler \n
-*                              register callbacks, set flag to invole specific API in callback \n
-*                              call SendNotification helper function to invoke callback and Check for callback hit.
-* @apicovered                  noti_ex_event_info_get_owner
-* @passcase                    noti_ex_event_info_get_owner is successful and return correct value
-* @failcase                    noti_ex_event_info_get_owner failed
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_noti_ex_event_info_get_owner_p(void)
-{
-       START_TEST;
-
-       int nTimeoutId = 0;
-       int nRet = NOTI_EX_ERROR_NONE;
-        g_hEventinfoReporter = NULL;
-       noti_ex_reporter_events_s hReportEvent = {0};
-        g_CallBackHit = false;
-
-       hReportEvent.error = EventinfoReporterEventsErrorCB;
-        hReportEvent.event = EventinfoGetOwnerCB;
-
-       nRet = noti_ex_reporter_create(&g_hEventinfoReporter, hReportEvent, NULL);
-       PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_create", NotificationExGetError(nRet));
-       CHECK_HANDLE(g_hEventinfoReporter, "noti_ex_reporter_create");
-
-       nRet = SendNotification();
-       if(nRet)
-       {
-               FPRINTF("[Line : %d][%s] One of the API called inside SendNotification() is failed and returned \\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       RUN_POLLING_LOOP;
-       if(!g_CallBackHit)
-       {
-               FPRINTF("[Line : %d][%s] EventinfoReporterEventsErrorCB or EventinfoGetOwnerCB Callback not hit\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-       if (g_bAPIFailed)
-       {
-               FPRINTF("[Line : %d][%s] noti_ex_event_info_get_owner() target API failed\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-
-       return 0;
-}
-
-//& type : auto
-//& purpose: Gets the channel of an event.
-/**
-* @testcase                    ITc_noti_ex_event_info_get_channel_p
-* @since_tizen                 5.5
-* @author                      SRID(j.abhishek)
-* @reviewer                    SRID(shobhit.v)
-* @type                                auto
-* @description                 Gets the channel of an event.
-* @scenario                    Creates notification_ex manager and event handler \n
-*                              register callbacks, set flag to invole specific API in callback \n
-*                              call SendNotification helper function to invoke callback and Check for callback hit.
-* @apicovered                  noti_ex_event_info_get_channel
-* @passcase                    noti_ex_event_info_get_channel is successful and return correct value
-* @failcase                    noti_ex_event_info_get_channel failed
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_noti_ex_event_info_get_channel_p(void)
-{
-       START_TEST;
-
-       int nTimeoutId = 0;
-       int nRet = NOTI_EX_ERROR_NONE;
-        g_hEventinfoReporter = NULL;
-       noti_ex_reporter_events_s hReportEvent = {0};
-        g_CallBackHit = false;
-
-       hReportEvent.error = EventinfoReporterEventsErrorCB;
-        hReportEvent.event = EventinfoGetChannelCB;
-       g_eEventInfoAPI = EX_EVENT_INFO_GET_CHANNEL;
-
-       nRet = noti_ex_reporter_create(&g_hEventinfoReporter, hReportEvent, NULL);
-       PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_create", NotificationExGetError(nRet));
-       CHECK_HANDLE(g_hEventinfoReporter, "noti_ex_reporter_create");
-
-       nRet = SendNotification();
-       if(nRet)
-       {
-               FPRINTF("[Line : %d][%s] One of the API called inside SendNotification() is failed and returned \\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       RUN_POLLING_LOOP;
-       if(!g_CallBackHit)
-       {
-               FPRINTF("[Line : %d][%s] EventinfoReporterEventsErrorCB or EventinfoGetChannelCB Callback not hit\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-       if (g_bAPIFailed)
-       {
-               FPRINTF("[Line : %d][%s] noti_ex_event_info_get_channel() target API failed\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       return 0;
-}
-
-//& type : auto
-//& purpose: Gets the id of a notification_ex item.
-/**
-* @testcase                    ITc_noti_ex_event_info_get_item_id_p
-* @since_tizen                 5.5
-* @author                      SRID(j.abhishek)
-* @reviewer                    SRID(shobhit.v)
-* @type                                auto
-* @description                 Gets the id of a notification_ex item.
-* @scenario                    Creates notification_ex manager and event handler \n
-*                              register callbacks, set flag to invole specific API in callback \n
-*                              call SendNotification helper function to invoke callback and Check for callback hit.
-* @apicovered                  noti_ex_event_info_get_item_id
-* @passcase                    noti_ex_event_info_get_item_id is successful and return correct value
-* @failcase                    noti_ex_event_info_get_item_id failed
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_noti_ex_event_info_get_item_id_p(void)
-{
-       START_TEST;
-
-       int nTimeoutId = 0;
-       int nRet = NOTI_EX_ERROR_NONE;
-        g_hEventinfoReporter = NULL;
-       noti_ex_reporter_events_s hReportEvent = {0};
-        g_CallBackHit = false;
-
-       hReportEvent.event = EventinfoGetItemCB;
-       hReportEvent.error = EventinfoReporterEventsErrorCB;
-
-       g_eEventInfoAPI = EX_EVENT_INFO_GET_ITEM_ID;
-
-       nRet = noti_ex_reporter_create(&g_hEventinfoReporter, hReportEvent, NULL);
-       PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_create", NotificationExGetError(nRet));
-       CHECK_HANDLE(g_hEventinfoReporter, "noti_ex_reporter_create");
-
-       nRet = SendNotification();
-       if(nRet)
-       {
-               FPRINTF("[Line : %d][%s] One of the API called inside SendNotification() is failed and returned \\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       RUN_POLLING_LOOP;
-       if(!g_CallBackHit)
-       {
-               FPRINTF("[Line : %d][%s] EventinfoReporterEventsErrorCB or EventinfoGetItemCB Callback not hit\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-       if (g_bAPIFailed)
-       {
-               FPRINTF("[Line : %d][%s] noti_ex_event_info_get_item_id() target API failed\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       return 0;
-}
-
-//& type : auto
-//& purpose: Gets the id of request for an event.
-/**
-* @testcase                    ITc_noti_ex_event_info_get_request_id_p
-* @since_tizen                 5.5
-* @author                      SRID(j.abhishek)
-* @reviewer                    SRID(shobhit.v)
-* @type                                auto
-* @description                 Gets the id of request for an event.
-* @scenario                    Creates notification_ex manager and event handler \n
-*                              register callbacks, set flag to invole specific API in callback \n
-*                              call SendNotification helper function to invoke callback and Check for callback hit.
-* @apicovered                  noti_ex_event_info_get_request_id
-* @passcase                    noti_ex_event_info_get_request_id is successful and return correct value
-* @failcase                    noti_ex_event_info_get_request_id failed
-* @precondition                        NA
-* @postcondition               NA
-*/
-int ITc_noti_ex_event_info_get_request_id_p(void)
-{
-       START_TEST;
-
-       int nTimeoutId = 0;
-       int nRet = NOTI_EX_ERROR_NONE;
-        g_hEventinfoReporter = NULL;
-       noti_ex_reporter_events_s hReportEvent = {0};
-        g_CallBackHit = false;
-
-       hReportEvent.event = EventinfoGetRequestIdCB;
-       hReportEvent.error = EventinfoReporterEventsErrorCB;
-
-       g_eEventInfoAPI = EX_EVENT_INFO_GET_REQUEST_ID;
-
-       nRet = noti_ex_reporter_create(&g_hEventinfoReporter, hReportEvent, NULL);
-       PRINT_RESULT(NOTI_EX_ERROR_NONE, nRet, "noti_ex_reporter_create", NotificationExGetError(nRet));
-       CHECK_HANDLE(g_hEventinfoReporter, "noti_ex_reporter_create");
-
-       nRet = SendNotification();
-       if(nRet)
-       {
-               FPRINTF("[Line : %d][%s] One of the API called inside SendNotification() is failed and returned \\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       RUN_POLLING_LOOP;
-       if(!g_CallBackHit)
-       {
-               FPRINTF("[Line : %d][%s] EventinfoReporterEventsErrorCB or EventinfoGetRequestIdCB Callback not hit\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-       if (g_bAPIFailed)
-       {
-               FPRINTF("[Line : %d][%s] noti_ex_event_info_get_request_id() target API failed\\n", __LINE__, API_NAMESPACE);
-               return 1;
-       }
-
-       return 0;
-}
-
diff --git a/src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-arm.tpk b/src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-arm.tpk
deleted file mode 100644 (file)
index ac3a5b2..0000000
Binary files a/src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-x86.tpk b/src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-x86.tpk
deleted file mode 100755 (executable)
index 9ee61d3..0000000
Binary files a/src/itc/notification/res/mobile/org.tizen.noti_ex_manager-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-arm.tpk b/src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-arm.tpk
deleted file mode 100644 (file)
index ac3a5b2..0000000
Binary files a/src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-x86.tpk b/src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-x86.tpk
deleted file mode 100644 (file)
index 9ee61d3..0000000
Binary files a/src/itc/notification/res/tizeniot/org.tizen.noti_ex_manager-1.0.0-x86.tpk and /dev/null differ
diff --git a/src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-arm.tpk b/src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-arm.tpk
deleted file mode 100755 (executable)
index 5e75a1b..0000000
Binary files a/src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-arm.tpk and /dev/null differ
diff --git a/src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-x86.tpk b/src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-x86.tpk
deleted file mode 100755 (executable)
index 7b4433e..0000000
Binary files a/src/itc/notification/res/wearable/org.tizen.noti_ex_manager-1.0.0-x86.tpk and /dev/null differ
index cce89e701efcc46504ce1298be986a92e138c9e3..5458e2296b068f7e041c05014ff9bd2376c4e0ea 100755 (executable)
@@ -51,8 +51,6 @@ extern void ITs_notification_ex_time_startup(void);
 extern void ITs_notification_ex_time_cleanup(void);
 extern void ITs_notification_ex_visibility_action_startup(void);
 extern void ITs_notification_ex_visibility_action_cleanup(void);
-extern void ITs_notification_ex_event_info_startup(void);
-extern void ITs_notification_ex_event_info_cleanup(void);
 
 extern int ITc_notification_clone_p(void);
 extern int ITc_notifiation_create_p(void);
@@ -190,12 +188,6 @@ extern int ITc_noti_ex_reporter_update_p(void);
 extern int ITc_noti_ex_reporter_delete_p(void);
 extern int ITc_noti_ex_reporter_delete_all_p(void);
 extern int ITc_noti_ex_reporter_find_by_root_id_p(void);
-extern int ITc_noti_ex_event_info_clone_destroy_p(void);
-extern int ITc_noti_ex_event_info_get_event_type_p(void);
-extern int ITc_noti_ex_event_info_get_owner_p(void);
-extern int ITc_noti_ex_event_info_get_channel_p(void);
-extern int ITc_noti_ex_event_info_get_item_id_p(void);
-extern int ITc_noti_ex_event_info_get_request_id_p(void);
 
 
 testcase tc_array[] = {
@@ -335,12 +327,6 @@ testcase tc_array[] = {
        {"ITc_noti_ex_reporter_delete_p", ITc_noti_ex_reporter_delete_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
        {"ITc_noti_ex_reporter_delete_all_p", ITc_noti_ex_reporter_delete_all_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
        {"ITc_noti_ex_reporter_find_by_root_id_p", ITc_noti_ex_reporter_find_by_root_id_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
-       {"ITc_noti_ex_event_info_clone_destroy_p", ITc_noti_ex_event_info_clone_destroy_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_event_type_p", ITc_noti_ex_event_info_get_event_type_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_owner_p", ITc_noti_ex_event_info_get_owner_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_channel_p", ITc_noti_ex_event_info_get_channel_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_item_id_p", ITc_noti_ex_event_info_get_item_id_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_request_id_p", ITc_noti_ex_event_info_get_request_id_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
        {NULL, NULL}
 };
 
index 842484a42c6831374def75c583f34f71fa68b5a6..fc967fbc889e59b9576c42bb5e2fed202448b224 100755 (executable)
@@ -52,8 +52,6 @@ extern void ITs_notification_ex_time_startup(void);
 extern void ITs_notification_ex_time_cleanup(void);
 extern void ITs_notification_ex_visibility_action_startup(void);
 extern void ITs_notification_ex_visibility_action_cleanup(void);
-extern void ITs_notification_ex_event_info_startup(void);
-extern void ITs_notification_ex_event_info_cleanup(void);
 
 
 extern int ITc_notification_clone_p(void);
@@ -192,12 +190,6 @@ extern int ITc_noti_ex_reporter_update_p(void);
 extern int ITc_noti_ex_reporter_delete_p(void);
 extern int ITc_noti_ex_reporter_delete_all_p(void);
 extern int ITc_noti_ex_reporter_find_by_root_id_p(void);
-extern int ITc_noti_ex_event_info_clone_destroy_p(void);
-extern int ITc_noti_ex_event_info_get_event_type_p(void);
-extern int ITc_noti_ex_event_info_get_owner_p(void);
-extern int ITc_noti_ex_event_info_get_channel_p(void);
-extern int ITc_noti_ex_event_info_get_item_id_p(void);
-extern int ITc_noti_ex_event_info_get_request_id_p(void);
 
 
 testcase tc_array[] = {
@@ -337,12 +329,6 @@ testcase tc_array[] = {
        {"ITc_noti_ex_reporter_delete_p", ITc_noti_ex_reporter_delete_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
        {"ITc_noti_ex_reporter_delete_all_p", ITc_noti_ex_reporter_delete_all_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
        {"ITc_noti_ex_reporter_find_by_root_id_p", ITc_noti_ex_reporter_find_by_root_id_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
-       {"ITc_noti_ex_event_info_clone_destroy_p", ITc_noti_ex_event_info_clone_destroy_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_event_type_p", ITc_noti_ex_event_info_get_event_type_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_owner_p", ITc_noti_ex_event_info_get_owner_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_channel_p", ITc_noti_ex_event_info_get_channel_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_item_id_p", ITc_noti_ex_event_info_get_item_id_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_request_id_p", ITc_noti_ex_event_info_get_request_id_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
        {NULL, NULL}
        
 };
index 474a7e19965d86f308a13f86db20d2cee1afaa9b..34a4d48612269c86ffc939e40c71283c0746cb30 100755 (executable)
@@ -54,8 +54,6 @@ extern void ITs_notification_ex_time_startup(void);
 extern void ITs_notification_ex_time_cleanup(void);
 extern void ITs_notification_ex_visibility_action_startup(void);
 extern void ITs_notification_ex_visibility_action_cleanup(void);
-extern void ITs_notification_ex_event_info_startup(void);
-extern void ITs_notification_ex_event_info_cleanup(void);
 
 extern int ITc_notification_clone_p(void);
 extern int ITc_notifiation_create_p(void);
@@ -193,12 +191,6 @@ extern int ITc_noti_ex_reporter_update_p(void);
 extern int ITc_noti_ex_reporter_delete_p(void);
 extern int ITc_noti_ex_reporter_delete_all_p(void);
 extern int ITc_noti_ex_reporter_find_by_root_id_p(void);
-extern int ITc_noti_ex_event_info_clone_destroy_p(void);
-extern int ITc_noti_ex_event_info_get_event_type_p(void);
-extern int ITc_noti_ex_event_info_get_owner_p(void);
-extern int ITc_noti_ex_event_info_get_channel_p(void);
-extern int ITc_noti_ex_event_info_get_item_id_p(void);
-extern int ITc_noti_ex_event_info_get_request_id_p(void);
 
 testcase tc_array[] = {
        {"ITc_notification_clone_p",ITc_notification_clone_p,ITs_notification_startup,ITs_notification_cleanup},
@@ -337,12 +329,6 @@ testcase tc_array[] = {
        {"ITc_noti_ex_reporter_delete_p", ITc_noti_ex_reporter_delete_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
        {"ITc_noti_ex_reporter_delete_all_p", ITc_noti_ex_reporter_delete_all_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
        {"ITc_noti_ex_reporter_find_by_root_id_p", ITc_noti_ex_reporter_find_by_root_id_p, ITs_notification_ex_reporter_startup, ITs_notification_ex_reporter_cleanup},
-       {"ITc_noti_ex_event_info_clone_destroy_p", ITc_noti_ex_event_info_clone_destroy_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_event_type_p", ITc_noti_ex_event_info_get_event_type_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_owner_p", ITc_noti_ex_event_info_get_owner_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_channel_p", ITc_noti_ex_event_info_get_channel_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_item_id_p", ITc_noti_ex_event_info_get_item_id_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
-       {"ITc_noti_ex_event_info_get_request_id_p", ITc_noti_ex_event_info_get_request_id_p, ITs_notification_ex_event_info_startup, ITs_notification_ex_event_info_cleanup},
        {NULL, NULL}
 };