diff options
Diffstat (limited to 'device/bluetooth/test/mock_bluetooth_adapter.h')
-rw-r--r-- | device/bluetooth/test/mock_bluetooth_adapter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/device/bluetooth/test/mock_bluetooth_adapter.h b/device/bluetooth/test/mock_bluetooth_adapter.h index 6d1ee73..775adee 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, |