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 7f39099b6635422548f9f1018f70ecfbf78221c0..3fb3a3348ba9509425baf8c51948e98234596928 100644 |
--- a/device/bluetooth/test/bluetooth_test_android.h |
+++ b/device/bluetooth/test/bluetooth_test_android.h |
@@ -71,6 +71,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, |