class AudioDeviceRegistryServerTestBase
Defined at line 44 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
This provides shared unittest functions for AudioDeviceRegistry and the six FIDL server classes.
Protected Members
static basic_string kClassName
Public Methods
void SetUp ()
Defined at line 46 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
Protected Methods
std::shared_ptr<FakeCodec> CreateFakeCodecInput ()
Create a FakeCodec that can mock a real device that has been detected, using default settings.
From here, the fake Codec can be customized before it is enabled.
Defined at line 56 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::shared_ptr<FakeCodec> CreateFakeCodecOutput ()
Defined at line 57 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::shared_ptr<FakeCodec> CreateFakeCodecNoDirection ()
Defined at line 58 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::shared_ptr<FakeComposite> CreateFakeComposite ()
Create a FakeComposite that can mock a real device that has been detected, using default
settings. From here, the fake Composite can be customized before it is enabled.
Defined at line 62 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
void AddDeviceForDetection (std::string_viewname,fuchsia_audio_device::DeviceTypedevice_type,fuchsia_audio_device::DriverClientdriver_client)
Device
Create a Device object (backed by a fake driver); insert it to ADR as if it had been detected.
Through the driver_client connection, this will communicate with the fake driver.
Defined at line 73 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
const std::unordered_map<TopologyId, std::vector<fuchsia_hardware_audio_signalprocessing::EdgePair>> & topology_map (const std::shared_ptr<Device> & device)
Defined at line 80 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
const std::unordered_map<ElementId, ElementRecord> & element_map (const std::shared_ptr<Device> & device)
Defined at line 85 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::unique_ptr<TestServerAndNaturalAsyncClient<ProviderServer>> CreateTestProviderServer ()
Provider support
Defined at line 102 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<zx_status_t> & provider_fidl_error_status ()
Defined at line 125 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<TokenId> WaitForAddedDeviceTokenId (fidl::Client<fuchsia_audio_device::Registry> & reg_client)
Registry support
Defined at line 128 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::unique_ptr<TestServerAndNaturalAsyncClient<RegistryServer>> CreateTestRegistryServerNoDeviceDiscovery ()
Defined at line 145 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::unique_ptr<TestServerAndNaturalAsyncClient<RegistryServer>> CreateTestRegistryServer ()
Defined at line 155 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<zx_status_t> & registry_fidl_error_status ()
Defined at line 174 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::unique_ptr<TestServerAndNaturalAsyncClient<ControlCreatorServer>> CreateTestControlCreatorServer ()
ControlCreator support
Defined at line 177 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<zx_status_t> & control_creator_fidl_error_status ()
Defined at line 204 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::unique_ptr<TestServerAndNaturalAsyncClient<ObserverServer>> CreateTestObserverServer (const std::shared_ptr<Device> & observed_device)
Observer support
Defined at line 209 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
const std::unique_ptr<ObserverFidlHandler> & observer_fidl_handler ()
Defined at line 233 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<zx_status_t> & observer_fidl_error_status ()
Defined at line 236 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::unique_ptr<TestServerAndNaturalAsyncClient<ControlServer>> CreateTestControlServer (const std::shared_ptr<Device> & device_to_control)
Control support
Defined at line 239 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
const std::unique_ptr<ControlFidlHandler> & control_fidl_handler ()
Defined at line 263 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<zx_status_t> & control_fidl_error_status ()
Defined at line 266 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<zx_status_t> & ring_buffer_fidl_error_status ()
Defined at line 285 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
const std::unique_ptr<RingBufferFidlHandler> & ring_buffer_fidl_handler ()
Defined at line 288 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::optional<zx_status_t> & packet_stream_fidl_error_status ()
Defined at line 309 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
const std::unique_ptr<PacketStreamFidlHandler> & packet_stream_fidl_handler ()
Defined at line 312 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
std::shared_ptr<media_audio::AudioDeviceRegistry> adr_service ()
General members
Defined at line 317 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h
void ClearRegistry ()
Defined at line 318 of file ../../src/media/audio/services/device_registry/adr_server_unittest_base.h