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 a3360743f9323fe2959736db48c38924c41d7857..c7d78a9332e6364672a7a4f41b03db6d740ecdbf 100644 |
--- a/device/bluetooth/test/bluetooth_test_android.cc |
+++ b/device/bluetooth/test/bluetooth_test_android.cc |
@@ -85,6 +85,11 @@ BluetoothDevice* BluetoothTestAndroid::SimulateLowEnergyDevice( |
return observer.last_device(); |
} |
+void BluetoothTestAndroid::SimulateLocationServicesOff() { |
+ Java_Fakes_setLocationServicesState( |
+ AttachCurrentThread(), true /* hasPermission */, false /* isEnabled */); |
+} |
+ |
void BluetoothTestAndroid::ForceIllegalStateException() { |
Java_FakeBluetoothAdapter_forceIllegalStateException( |
AttachCurrentThread(), j_fake_bluetooth_adapter_.obj()); |