+++ /dev/null
-#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;
-}
-
extern void CTs_platform_permission_datacontrol_cleanup(void);
extern void CTs_platform_permission_device_startup(void);
extern void CTs_platform_permission_device_cleanup(void);
-extern void CTs_platform_permission_d2d_conv_manager_startup(void);
-extern void CTs_platform_permission_d2d_conv_manager_cleanup(void);
extern void CTs_platform_permission_email_startup(void);
extern void CTs_platform_permission_email_cleanup(void);
extern void CTs_platform_permission_ime_startup(void);
extern int CTc_Device_PrivilegePower_request_release(void);
extern int CTc_Device_Privilege_ir_is_available(void);
extern int CTc_Device_Privilege_ir_transmit(void);
-extern int CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start(void);
extern int CTc_Email_PrivilegeMessagingEmail_create_message(void);
extern int CTc_IME_PrivilegeIME_IME_Run(void);
extern int CTc_IME_PrivilegeIME_IME_Event_Set_Focus_In_cb(void);
{"CTc_PhoneNumber_PrivilegePhoneNumberUtils_get_normalized_number", CTc_PhoneNumber_PrivilegePhoneNumberUtils_get_normalized_number, CTs_platform_permission_phonenumber_utils_startup, CTs_platform_permission_phonenumber_utils_cleanup},
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src", CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink", CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
+ {"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
- {"CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start", CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start, CTs_platform_permission_d2d_conv_manager_startup, CTs_platform_permission_d2d_conv_manager_cleanup},
{NULL, NULL}
};
extern void CTs_platform_permission_datacontrol_cleanup(void);
extern void CTs_platform_permission_device_startup(void);
extern void CTs_platform_permission_device_cleanup(void);
-extern void CTs_platform_permission_d2d_conv_manager_startup(void);
-extern void CTs_platform_permission_d2d_conv_manager_cleanup(void);
extern void CTs_platform_permission_locationmanager_startup(void);
extern void CTs_platform_permission_locationmanager_cleanup(void);
extern void CTs_platform_permission_mediacontent_startup(void);
extern int CTc_Device_PrivilegeHaptic_open(void);
extern int CTc_Device_PrivilegeLed_play_stop(void);
extern int CTc_Device_PrivilegePower_request_release(void);
-extern int CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start(void);
extern int CTc_Location_PrivilegeLocation_start(void);
extern int CTc_Location_PrivilegeLocation_set_satelite_updated_cb(void);
extern int CTc_Location_PrivilegeLocation_enable_mock_location(void);
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
- {"CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start", CTc_D2D_PrivilegeD2DConv_d2d_conv_discovery_start, CTs_platform_permission_d2d_conv_manager_startup, CTs_platform_permission_d2d_conv_manager_cleanup},
{NULL, NULL}
};