summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/test/bluetooth_test_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'device/bluetooth/test/bluetooth_test_android.cc')
-rw-r--r--device/bluetooth/test/bluetooth_test_android.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/device/bluetooth/test/bluetooth_test_android.cc b/device/bluetooth/test/bluetooth_test_android.cc
index b31f5df..43299bc 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);