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

Unified Diff: device/bluetooth/test/bluetooth_test.h

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.h
diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h
index 5b7caaf148c8a32926d3642635f6b6f80ae2758c..e36293b847832bd015df9482d80ac63fc47836fa 100644
--- a/device/bluetooth/test/bluetooth_test.h
+++ b/device/bluetooth/test/bluetooth_test.h
@@ -91,6 +91,9 @@ class BluetoothTestBase : public testing::Test {
// devices. Returns false if the current platform always has permission.
virtual bool DenyPermission();
+ // Configure the device to be bonded.
+ virtual void SetBonded(BluetoothDevice* device) {}
+
// Create a fake Low Energy device and discover it.
// |device_ordinal| selects between multiple fake device data sets to produce:
// 1: kTestDeviceName with advertised UUIDs kTestUUIDGenericAccess,
@@ -364,6 +367,8 @@ class BluetoothTestBase : public testing::Test {
// Reset all event count members to 0.
void ResetEventCounts();
+ void RemoveTimedOutDevices();
+
// A Message loop is required by some implementations that will PostTasks and
// by base::RunLoop().RunUntilIdle() use in this fixture.
base::MessageLoop message_loop_;

Powered by Google App Engine
This is Rietveld 408576698