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

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 92 of file ../../src/media/audio/services/device_registry/device_unittest.h

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

Defined at line 99 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 104 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 314 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 331 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 348 of file ../../src/media/audio/services/device_registry/device_unittest.h

std::shared_ptr<FakeDevicePresenceWatcher> device_presence_watcher ()

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

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

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

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

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

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

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

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

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

ElementId ring_buffer_id ()

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

ElementId dai_id ()

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

zx::duration ShortCmdTimeout ()

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

zx::duration LongCmdTimeout ()

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

Records