class FakeDevicePresenceWatcher
Defined at line 20 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
This fakes the DevicePresenceWatcher interface, for use in Device testing.
Public Methods
void FakeDevicePresenceWatcher ()
Defined at line 24 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
void ~FakeDevicePresenceWatcher ()
Defined at line 27 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
void DeviceIsReady (std::shared_ptr<Device> device)
Defined at line 31 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
void DeviceHasError (std::shared_ptr<Device> device)
Defined at line 42 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
void DeviceIsRemoved (std::shared_ptr<Device> device)
Defined at line 57 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
const std::unordered_set<std::shared_ptr<Device>> & ready_devices ()
Defined at line 71 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
const std::unordered_set<std::shared_ptr<Device>> & error_devices ()
Defined at line 72 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
uint16_t on_ready_count ()
These are monotonically increasing counts. If a device was successfully added, then encountered
an error, then was removed, the resulting [ready, error, removal] counts should be [1, 1, 1].
Defined at line 76 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
uint16_t on_error_count ()
Defined at line 77 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
uint16_t on_removal_count ()
Defined at line 78 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
uint16_t on_error_from_error_count ()
These provide additional counts about whether a newly err'ed or removed device was already
found in the ready or error lists.
Defined at line 81 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
uint16_t on_error_from_ready_count ()
Defined at line 82 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
uint16_t on_removal_from_error_count ()
Defined at line 83 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h
uint16_t on_removal_from_ready_count ()
Defined at line 84 of file ../../src/media/audio/services/device_registry/testing/fakes/fake_device_presence_watcher.h