[CTC][platform-permission][DPTTIZEN-2947:removed d2d-conv-manager code]
authormanoj <manoj.g2@samsung.com>
Thu, 26 Oct 2017 14:16:12 +0000 (19:46 +0530)
committershobhit verma <shobhit.v@samsung.com>
Fri, 27 Oct 2017 07:16:25 +0000 (07:16 +0000)
Change-Id: Ib09a651d05d7c0a1044d9dc69c26e63b621f240b
Signed-off-by: manoj <manoj.g2@samsung.com>
packaging/ctc/native-platform-permission-ctc.spec
src/ctc/platform-permission/CTs-platform-permission-d2d-conv-manager.c [deleted file]

index ae948e1e5c9e3beab95de47414947604844be7f4..4d9745dc41cb5d656cbef3776a67482d4aedfc7d 100755 (executable)
@@ -73,7 +73,6 @@ BuildRequires:        pkgconfig(stt)
 BuildRequires: cmake
 BuildRequires: pkgconfig(capi-network-http)
 BuildRequires: pkgconfig(capi-media-streamer)
-BuildRequires: pkgconfig(d2d-conv-manager)
 BuildRequires:  pkgconfig(capi-network-wifi-manager)
 BuildRequires:  pkgconfig(capi-appfw-alarm)
 
diff --git a/src/ctc/platform-permission/CTs-platform-permission-d2d-conv-manager.c b/src/ctc/platform-permission/CTs-platform-permission-d2d-conv-manager.c
deleted file mode 100755 (executable)
index 84bb3b2..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-#include "CTs-platform-permission-common.h"
-#include <glib.h>
-#include <glib-object.h>
-
-#include <d2d_conv_manager.h>
-
-#define D2D_CONV_FEATURE                       "http://tizen.org/feature/convergence.d2d"
-
-bool g_bIsD2dConvFeatureSupported;
-char* D2dConvGetError(int nRet);
-
-
-/**
-* @function            D2dConvGetError
-* @description         Maps error enums to string values
-* @parameter           nRet : error code returned
-* @return                      error string
-*/
-char* D2dConvGetError(int nRet)
-{
-       char *szErrorVal = NULL;
-       switch(nRet)
-       {
-               case CONV_ERROR_NONE:                                           szErrorVal = "CONV_ERROR_NONE";                                         break;
-               case CONV_ERROR_INVALID_PARAMETER:                      szErrorVal = "CONV_ERROR_INVALID_PARAMETER";            break;
-               case CONV_ERROR_NOT_SUPPORTED:                          szErrorVal = "CONV_ERROR_NOT_SUPPORTED";                        break;
-               case CONV_ERROR_INVALID_OPERATION:                      szErrorVal = "CONV_ERROR_INVALID_OPERATION";            break;
-               case CONV_ERROR_OUT_OF_MEMORY:                          szErrorVal = "CONV_ERROR_OUT_OF_MEMORY";                        break;
-               case CONV_ERROR_PERMISSION_DENIED:                      szErrorVal = "CONV_ERROR_PERMISSION_DENIED";            break;
-               case CONV_ERROR_NO_DATA:                                        szErrorVal = "CONV_ERROR_NO_DATA";                                      break;
-               default:                                                                        szErrorVal = "Unknown Error";                                           break;
-       }
-       return szErrorVal;
-}
-
-
-/**
-* @function            DiscoveryCB
-* @description         Callback function to receive discovered device information
-* @parameter           conv_device_h device handle, conv_discovery_result_e result, void *user_data : The user data passed from the for each function
-* @return                      NA
-*/
-void DiscoveryCB(conv_device_h device_handle, conv_discovery_result_e result, void *user_data)
-{
-       FPRINTF("[Line : %d][%s] Callback DiscoveryCB hit \\n", __LINE__, API_NAMESPACE);
-       return ;
-}
-//& set: D2dConv-manager
-
-/** @addtogroup ctc-d2d-conv-manager
-*  @ingroup ctc
-*  @{
-*/
-
-/**
- * @function           CTs_platform_permission_d2d_conv_manager_startup
- * @description        Called before each test
- * @parameter          NA
- * @return                     NA
- */
-
-void CTs_platform_permission_d2d_conv_manager_startup(void)
-{
-       struct stat stBuff;
-       if ( stat(ERR_LOG, &stBuff) == 0 )
-       {
-               remove(ERR_LOG);
-       }
-#if DEBUG
-       FPRINTF("[Line : %d][%s] TEST SUIT start-up: CTs_platform_permission_d2d_conv_manager_startup\\n", __LINE__, API_NAMESPACE);
-#endif
-
-       g_bIsD2dConvFeatureSupported = true;
-       IS_FEATURE_SUPPORTED(D2D_CONV_FEATURE, g_bIsD2dConvFeatureSupported, API_NAMESPACE);
-       return;
-}
-
-
-/**
- * @functio            CTs_platform_permission_d2d_conv_manager_cleanup
- * @description                Called after each test
- * @parameter          NA
- * @return                     NA
- */
-void CTs_platform_permission_d2d_conv_manager_cleanup(void)
-{
-#if DEBUG
-       FPRINTF("[Line : %d][%s] TEST SUIT clean-up: CTs_platform_permission_d2d_conv_manager_cleanup\\n", __LINE__, API_NAMESPACE);
-#endif
-       return;
-}
-
-//& purpose:To Check Privilege 
-//& type: auto
-/**
-* @testcase                    CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start
-* @since_tizen                 3.0
-* @author            SRID(manoj.g2)
-* @reviewer            SRID(shobhit.v)
-* @type                                   auto
-* @description                 Called when a nearby device which provides D2D services has been discovered.
-* @scenario                            conv_discovery_start, conv_discovery_stop
-* @apicovered                  conv_discovery_start, conv_discovery_stop
-* @passcase                       If target privileged API returns TIZEN_ERROR_PERMISSION_DENIED
-* @failcase                       If target privileged API does not return TIZEN_ERROR_PERMISSION_DENIED or non-privileged
-* @precondition                None
-* @postcondition               None
-*/
-int CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start(void)
-{
-       START_TEST;
-       int nTimeoutSec = 10;
-       conv_h hConvHandle = NULL;
-               
-       if ( !g_bIsD2dConvFeatureSupported )
-       {
-               FPRINTF("[Line : %d][%s] Feature  %s is not supported\\n", __LINE__, API_NAMESPACE,D2D_CONV_FEATURE);
-               return 0;
-       }
-       //Target API
-       int nRet = conv_create(&hConvHandle);
-       PRINT_RESULT(CONV_ERROR_NONE, nRet," conv_create", D2dConvGetError(nRet));
-       CHECK_HANDLE(hConvHandle,"conv_create");
-       
-       nRet = conv_discovery_start(hConvHandle, nTimeoutSec, DiscoveryCB, NULL);       
-       PRINT_RESULT_CLEANUP(TIZEN_ERROR_PERMISSION_DENIED, nRet,"conv_discovery_start", D2dConvGetError(nRet),conv_destroy(hConvHandle));
-       
-   conv_discovery_stop(hConvHandle);
-       conv_destroy(hConvHandle);
-       
-       return 0;
-}
-