| Index: device/bluetooth/test/bluetooth_test_android.cc
|
| diff --git a/device/bluetooth/test/bluetooth_test_android.cc b/device/bluetooth/test/bluetooth_test_android.cc
|
| index b763733b51d2b31a2dc2215273e6388026634923..a3360743f9323fe2959736db48c38924c41d7857 100644
|
| --- a/device/bluetooth/test/bluetooth_test_android.cc
|
| +++ b/device/bluetooth/test/bluetooth_test_android.cc
|
| @@ -34,6 +34,10 @@ BluetoothTestAndroid::~BluetoothTestAndroid() {
|
| void BluetoothTestAndroid::SetUp() {
|
| // Register in SetUp so that ASSERT can be used.
|
| ASSERT_TRUE(RegisterNativesImpl(AttachCurrentThread()));
|
| +
|
| + // Set the permission to true so that we can use the API.
|
| + Java_Fakes_setLocationServicesState(
|
| + AttachCurrentThread(), true /* hasPermission */, true /* isEnabled */);
|
| }
|
|
|
| void BluetoothTestAndroid::TearDown() {
|
| @@ -68,8 +72,8 @@ void BluetoothTestAndroid::InitWithFakeAdapter() {
|
| }
|
|
|
| bool BluetoothTestAndroid::DenyPermission() {
|
| - Java_FakeBluetoothAdapter_denyPermission(AttachCurrentThread(),
|
| - j_fake_bluetooth_adapter_.obj());
|
| + Java_Fakes_setLocationServicesState(
|
| + AttachCurrentThread(), false /* hasPermission */, true /* isEnabled */);
|
| return true;
|
| }
|
|
|
|
|