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

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

Issue 1353053002: Handle RESCAN events from the Bluetooth chooser by starting or extending a discovery session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Sync Created 5 years, 3 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/mock_bluetooth_adapter.h
diff --git a/device/bluetooth/test/mock_bluetooth_adapter.h b/device/bluetooth/test/mock_bluetooth_adapter.h
index 6d1ee73170a6f3a86cf75637cfd09049fac7442d..775adee091a0b43b0f344a138a5d6294534d2619 100644
--- a/device/bluetooth/test/mock_bluetooth_adapter.h
+++ b/device/bluetooth/test/mock_bluetooth_adapter.h
@@ -109,6 +109,13 @@ class MockBluetoothAdapter : public BluetoothAdapter {
BluetoothAdapter::ConstDeviceList GetConstMockDevices();
BluetoothAdapter::DeviceList GetMockDevices();
+ // The observers are maintained by the default behavior of AddObserver() and
+ // RemoveObserver(). Test fakes can use this function to notify the observers
+ // about events.
+ base::ObserverList<device::BluetoothAdapter::Observer>& GetObservers() {
+ return observers_;
+ }
+
protected:
void AddDiscoverySession(
BluetoothDiscoveryFilter* discovery_filter,

Powered by Google App Engine
This is Rietveld 408576698