Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1989)

Unified Diff: device/bluetooth/test/bluetooth_test_android.cc

Issue 1610053005: bluetooth: android: Fix a couple of crashes when adapter is turned on/off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed issue with failing trybot Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e23a83549ac28d2335792c175c007c43fbcdcb19..dc69472e5d5fd3ce5055e325bed94760431dbad1 100644
--- a/device/bluetooth/test/bluetooth_test_android.cc
+++ b/device/bluetooth/test/bluetooth_test_android.cc
@@ -72,6 +72,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);

Powered by Google App Engine
This is Rietveld 408576698