Index: device/bluetooth/test/bluetooth_test_android.h |
diff --git a/device/bluetooth/test/bluetooth_test_android.h b/device/bluetooth/test/bluetooth_test_android.h |
index b2bec9d5e71cd556a83980fe0f35fe7f203e5146..9c3531d4e3202aadfe5ec3b95cf2c8029217f17c 100644 |
--- a/device/bluetooth/test/bluetooth_test_android.h |
+++ b/device/bluetooth/test/bluetooth_test_android.h |
@@ -70,6 +70,10 @@ class BluetoothTestAndroid : public BluetoothTestBase { |
void SimulateGattDescriptorWriteWillFailSynchronouslyOnce( |
BluetoothGattDescriptor* descriptor) override; |
+ // Instruct the fake adapter to throw an IllegalStateException for |
+ // startScan and stopScan. |
+ void ForceIllegalStateException(); |
+ |
// Records that Java FakeBluetoothDevice connectGatt was called. |
void OnFakeBluetoothDeviceConnectGattCalled( |
JNIEnv* env, |