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

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

Issue 1842223003: Remove outdated devices from Android device chooser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't purge devices continuously. Added more tests. Created 4 years, 6 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 b763733b51d2b31a2dc2215273e6388026634923..2c2746d35d9a10b910462be2de02ec1a01a7028a 100644
--- a/device/bluetooth/test/bluetooth_test_android.cc
+++ b/device/bluetooth/test/bluetooth_test_android.cc
@@ -73,6 +73,13 @@ bool BluetoothTestAndroid::DenyPermission() {
return true;
}
+void BluetoothTestAndroid::SetBonded(BluetoothDevice* device) {
+ BluetoothDeviceAndroid* device_android =
+ static_cast<BluetoothDeviceAndroid*>(device);
+ Java_FakeBluetoothDevice_setBonded(AttachCurrentThread(),
+ device_android->GetJavaObject().obj());
+}
+
BluetoothDevice* BluetoothTestAndroid::SimulateLowEnergyDevice(
int device_ordinal) {
TestBluetoothAdapterObserver observer(adapter_);

Powered by Google App Engine
This is Rietveld 408576698