class DeviceTestBase

Defined at line 36 of file ../../src/media/audio/services/device_registry/device_unittest.h

Test class to verify the driver initialization/configuration sequence.

Protected Members

static basic_string kClassName

Public Methods

void SetUp ()

Defined at line 38 of file ../../src/media/audio/services/device_registry/device_unittest.h

void TearDown ()

Defined at line 45 of file ../../src/media/audio/services/device_registry/device_unittest.h

Protected Methods

fuchsia_audio_device::Info GetDeviceInfo (const std::shared_ptr<Device> & device)

Defined at line 49 of file ../../src/media/audio/services/device_registry/device_unittest.h

std::shared_ptr<Clock> device_clock (const std::shared_ptr<Device> & device)

Defined at line 53 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool IsControlled (const std::shared_ptr<Device> & device)

Defined at line 57 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool HasRingBuffer (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 61 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool RingBufferIsCreatingOrStopped (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 65 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool RingBufferIsOperational (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 73 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool RingBufferIsStopped (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 80 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool RingBufferIsStarted (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 86 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool HasPacketStream (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 92 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool PacketStreamIsStopped (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 95 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool PacketStreamIsStarted (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 101 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool PacketStreamIsReady (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 107 of file ../../src/media/audio/services/device_registry/device_unittest.h

void WaitForPacketStreamReady (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 113 of file ../../src/media/audio/services/device_registry/device_unittest.h

void GetDaiFormatSets (const std::shared_ptr<Device> & device, ElementId element_id, fit::callback<void (ElementId, const std::vector<fuchsia_hardware_audio::DaiSupportedFormats> &)> dai_format_sets_callback)

Defined at line 118 of file ../../src/media/audio/services/device_registry/device_unittest.h

void RetrieveHealthState (const std::shared_ptr<Device> & device)

Defined at line 125 of file ../../src/media/audio/services/device_registry/device_unittest.h

const std::optional<fuchsia_hardware_audio::DelayInfo> & DeviceDelayInfo (const std::shared_ptr<Device> & device, ElementId element_id)

Accessor for a Device private member.

Defined at line 130 of file ../../src/media/audio/services/device_registry/device_unittest.h

void ConnectPacketStreamFidl (const std::shared_ptr<Device> & device, ElementId element_id, fuchsia_hardware_audio::Format2 driver_format, fit::callback<void (zx_status_t)> callback)

Defined at line 135 of file ../../src/media/audio/services/device_registry/device_unittest.h

void RetrievePacketStreamProperties (const std::shared_ptr<Device> & device, ElementId element_id)

Defined at line 140 of file ../../src/media/audio/services/device_registry/device_unittest.h

uint8_t ExpectFormatMatch (const std::shared_ptr<Device> & device, ElementId element_id, fuchsia_audio::SampleType sample_type, uint32_t channel_count, uint32_t rate)

Defined at line 353 of file ../../src/media/audio/services/device_registry/device_unittest.h

void ExpectNoFormatMatch (const std::shared_ptr<Device> & device, ElementId element_id, fuchsia_audio::SampleType sample_type, uint32_t channel_count, uint32_t rate)

Defined at line 370 of file ../../src/media/audio/services/device_registry/device_unittest.h

std::shared_ptr<NotifyStub> notify ()

A consolidated notify recipient for tests (ObserverNotify and ControlNotify).

Defined at line 387 of file ../../src/media/audio/services/device_registry/device_unittest.h

std::shared_ptr<FakeDevicePresenceWatcher> device_presence_watcher ()

Defined at line 388 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool AddObserver (const std::shared_ptr<Device> & device)

Defined at line 392 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool SetControl (const std::shared_ptr<Device> & device)

Defined at line 393 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool DropControl (const std::shared_ptr<Device> & device)

Defined at line 394 of file ../../src/media/audio/services/device_registry/device_unittest.h

bool device_plugged_state (const std::shared_ptr<Device> & device)

Defined at line 398 of file ../../src/media/audio/services/device_registry/device_unittest.h

ElementId dai_id ()

Defined at line 402 of file ../../src/media/audio/services/device_registry/device_unittest.h

zx::duration ShortCmdTimeout ()

Defined at line 404 of file ../../src/media/audio/services/device_registry/device_unittest.h

zx::duration LongCmdTimeout ()

Defined at line 405 of file ../../src/media/audio/services/device_registry/device_unittest.h

Records