| Index: device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| diff --git a/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java b/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| index ae1873581adce554331f4e26fee34bd6a2b9e362..7d718aad29413665db0baf63fe6762b1a6c7c82a 100644
|
| --- a/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| +++ b/device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java
|
| @@ -68,6 +68,11 @@ class Fakes {
|
| mFakeContext.mHasLocation = false;
|
| }
|
|
|
| + @CalledByNative("FakeBluetoothAdapter")
|
| + public void simulateLocationServicesOff() {
|
| + mFakeContext.mIsSystemLocationSettingEnabled = false;
|
| + }
|
| +
|
| /**
|
| * Creates and discovers a new device.
|
| */
|
| @@ -192,6 +197,7 @@ class Fakes {
|
| */
|
| static class FakeContext extends Wrappers.ContextWrapper {
|
| public boolean mHasLocation = true;
|
| + public boolean mIsSystemLocationSettingEnabled = true;
|
|
|
| public FakeContext() {
|
| super(null);
|
| @@ -203,6 +209,11 @@ class Fakes {
|
| }
|
|
|
| @Override
|
| + public boolean isSystemLocationSettingEnabled() {
|
| + return mIsSystemLocationSettingEnabled;
|
| + }
|
| +
|
| + @Override
|
| public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
|
| return null;
|
| }
|
|
|