[CTC][platform-permission][ACR-1277][Deprecated HDP APIs]
authorPriya Kohli <priya.kohli@samsung.com>
Mon, 17 Sep 2018 06:08:26 +0000 (11:38 +0530)
committerNibha Sharma <nibha.sharma@samsung.com>
Mon, 17 Sep 2018 07:19:55 +0000 (07:19 +0000)
Change-Id: I80d0aa2e7104432535acdd4aaa88b2e43fe8d06e
Signed-off-by: Priya Kohli <priya.kohli@samsung.com>
src/ctc/platform-permission/CTs-platform-permission-bluetooth.c
src/ctc/platform-permission/tct-platform-permission-native_mobile.h
src/ctc/platform-permission/tct-platform-permission-native_tizeniot.h
src/ctc/platform-permission/tct-platform-permission-native_wearable.h

index 995040c350c862d80f4a89a7287fc2f7d1e9ba2f..f497680e13edcf5f80a16c90a027da5525a8b770 100755 (executable)
@@ -573,56 +573,6 @@ int CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode(void)
        return 0;
 }
 
-/**
- * @testcase                   CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app
- * @since_tizen                        3.0
- * @author                             SRID(arvin.mittal)
- * @reviewer                   SRID(shobhit.v)
- * @type                               auto
- * @description                        check if HDP is supported and startup_flag is asserted then register the app 
- *                                             that acts as sink role for HDP and checked for errors.
- * @scenario                   Registers the given application that acts as the @a Sink role of HDP(Health Device Profile).
- * @apicovered                 bt_hdp_register_sink_app, bt_hdp_unregister_sink_app
- * @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 API returns non error value
- * @precondition               Bluetooth must be initialized
- * @postcondition              Bluetooth must be deinitialized
- */ 
-int CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app(void)
-{
-    START_TEST;
-       
-       int nRet;
-       char *app_id = NULL;
-       bool bIsSupported = false;
-       bool bIsSupported_hdp =false;
-       unsigned short data_type = 0x1007;
-       IS_FEATURE_SUPPORTED(FEATURE_BLUETOOTH, bIsSupported, API_NAMESPACE);
-       IS_FEATURE_SUPPORTED(FEATURE_BLUETOOTH_HDP, bIsSupported_hdp, API_NAMESPACE);
-       if ( (false == bIsSupported_hdp) || (false == bIsSupported) )
-       {
-               FPRINTF("[Line : %d][%s] Feature is not supported \\n", __LINE__, API_NAMESPACE);
-               return 0;
-       }
-       else 
-       {
-               nRet = bt_initialize();
-               PRINT_RESULT(BT_ERROR_NONE, nRet, "bt_initialize", BluetoothGetError(nRet));
-               
-        nRet = bt_hdp_register_sink_app(data_type, &app_id);
-               if(nRet == BT_ERROR_NONE)
-        {
-            bt_hdp_unregister_sink_app(app_id);
-        }
-        PRINT_RESULT_CLEANUP(TIZEN_ERROR_PERMISSION_DENIED, nRet, "bt_hdp_register_sink_app", BluetoothGetError(nRet),bt_deinitialize());
-        free(app_id);
-        app_id = NULL;
-               nRet = bt_deinitialize();
-               PRINT_RESULT_NORETURN(BT_ERROR_NONE, nRet, "bt_deinitialize", BluetoothGetError(nRet));
-    }
-    return 0;
-}
-
 /**
  * @testcase                   CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data
  * @since_tizen                        3.0
index 990d083eb1a5e779487a5459f160bf234b373f60..695ea9379d83d987aa2c2c0388fc7f6ca5e25ac6 100755 (executable)
@@ -210,7 +210,6 @@ extern int CTc_Bluetooth_PrivilegeBluetooth_bt_opp_server_set_destination(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_le_start_advertising_new(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode(void);
-extern int CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_gatt_connect(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect(void);
@@ -465,7 +464,6 @@ testcase tc_array[] = {
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan",CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_le_start_advertising_new",CTc_Bluetooth_PrivilegeBluetooth_le_start_advertising_new,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode",CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
-       {"CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app",CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data",CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_gatt_connect",CTc_Bluetooth_PrivilegeBluetooth_gatt_connect,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect",CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
index 990d083eb1a5e779487a5459f160bf234b373f60..695ea9379d83d987aa2c2c0388fc7f6ca5e25ac6 100755 (executable)
@@ -210,7 +210,6 @@ extern int CTc_Bluetooth_PrivilegeBluetooth_bt_opp_server_set_destination(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_le_start_advertising_new(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode(void);
-extern int CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_gatt_connect(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect(void);
@@ -465,7 +464,6 @@ testcase tc_array[] = {
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan",CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_le_start_advertising_new",CTc_Bluetooth_PrivilegeBluetooth_le_start_advertising_new,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode",CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
-       {"CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app",CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data",CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_gatt_connect",CTc_Bluetooth_PrivilegeBluetooth_gatt_connect,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect",CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
index d06893d6823c19e538a25e9c842d7d088d7a96de..208656731f366a1256fb6ef8f9e09a0b20dd3017 100755 (executable)
@@ -90,7 +90,6 @@ extern int CTc_Bluetooth_PrivilegeBluetooth_bt_socket_create_destroy_rfcomm(void
 extern int CTc_Bluetooth_PrivilegeBluetooth_bt_opp_server_set_destination(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode(void);
-extern int CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_gatt_connect(void);
 extern int CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect(void);
@@ -232,7 +231,6 @@ testcase tc_array[] = {
        {"CTc_Bluetooth_PrivilegeBluetooth_bt_opp_server_set_destination",CTc_Bluetooth_PrivilegeBluetooth_bt_opp_server_set_destination,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan",CTc_Bluetooth_PrivilegeBluetooth_adapter_le_start_stop_scan,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode",CTc_Bluetooth_PrivilegeBluetooth_adapter_le_set_advertising_mode,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
-       {"CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app",CTc_Bluetooth_PrivilegeBluetooth_hdp_register_unregister_sink_app,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data",CTc_Bluetooth_PrivilegeBluetooth_adapter_set_remove_remote_oob_data,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_gatt_connect",CTc_Bluetooth_PrivilegeBluetooth_gatt_connect,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},
        {"CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect",CTc_Bluetooth_PrivilegeBluetooth_audio_connect_disconnect,CTs_platform_permission_bluetooth_startup,CTs_platform_permission_bluetooth_cleanup},