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 b31f5df1f0fcabbf4b78daa1b28bbd510a6a31c7..43299bcf31e5db8ee69210b789a7bae28078edee 100644 |
--- a/device/bluetooth/test/bluetooth_test_android.cc |
+++ b/device/bluetooth/test/bluetooth_test_android.cc |
@@ -81,6 +81,11 @@ BluetoothDevice* BluetoothTestAndroid::DiscoverLowEnergyDevice( |
return observer.last_device(); |
} |
+void BluetoothTestAndroid::ForceIllegalStateException() { |
+ Java_FakeBluetoothAdapter_forceIllegalStateException( |
+ AttachCurrentThread(), j_fake_bluetooth_adapter_.obj()); |
+} |
+ |
void BluetoothTestAndroid::SimulateGattConnection(BluetoothDevice* device) { |
BluetoothDeviceAndroid* device_android = |
static_cast<BluetoothDeviceAndroid*>(device); |