class NotifyStub

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

Protected Members

static basic_string kClassName

Public Methods

void NotifyStub (DeviceTestBase & parent)

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

void ~NotifyStub ()

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

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

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

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

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

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

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

void DeviceIsRemoved ()

ObserverNotify

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

void DeviceHasError ()

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

void PlugStateIsChanged (const fuchsia_audio_device::PlugState & new_plug_state, zx::time plug_change_time)

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

void TopologyIsChanged (TopologyId topology_id)

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

void ElementStateIsChanged (ElementId element_id, fuchsia_hardware_audio_signalprocessing::ElementState element_state)

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

void DeviceDroppedRingBuffer (ElementId element_id)

ControlNotify

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

void DelayInfoIsChanged (ElementId element_id, const fuchsia_audio_device::DelayInfo & new_delay_info)

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

void DaiFormatIsChanged (ElementId element_id, const std::optional<fuchsia_hardware_audio::DaiFormat> & dai_format, const std::optional<fuchsia_hardware_audio::CodecFormatInfo> & codec_format_info)

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

void DaiFormatIsNotChanged (ElementId element_id, const fuchsia_hardware_audio::DaiFormat & dai_format, fuchsia_audio_device::ControlSetDaiFormatError error)

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

void CodecIsStarted (const zx::time & start_time)

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

void CodecIsNotStarted ()

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

void CodecIsStopped (const zx::time & stop_time)

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

void CodecIsNotStopped ()

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

void DeviceIsReset ()

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

void clear_dai_formats ()

control and access internal state, for validating that correct responses were received.

For testing purposes, reset internal state so we detect new Notify calls (including errors).

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

void clear_dai_format (ElementId element_id)

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

void clear_codec_start_stop ()

If Codec/Start and Stop is added to Composite, then move these into a map like DaiFormat is.

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

bool codec_is_started ()

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

bool codec_is_stopped ()

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

const std::optional<std::pair<fuchsia_audio_device::PlugState, zx::time>> & plug_state ()

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

std::optional<std::pair<fuchsia_audio_device::PlugState, zx::time>> & plug_state ()

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

std::optional<fuchsia_audio_device::DelayInfo> delay_info (ElementId element_id)

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

void clear_delay_info (ElementId element_id)

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

void clear_delay_infos ()

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

std::optional<fuchsia_hardware_audio::DaiFormat> dai_format (ElementId element_id)

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

std::optional<fuchsia_hardware_audio::CodecFormatInfo> codec_format_info (ElementId element_id)

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

const std::unordered_map<ElementId, std::optional<fuchsia_hardware_audio::DaiFormat>> & dai_formats ()

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

const std::unordered_map<ElementId, fuchsia_hardware_audio::CodecFormatInfo> & codec_format_infos ()

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

const std::unordered_map<ElementId, fuchsia_audio_device::ControlSetDaiFormatError> & dai_format_errors ()

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

std::optional<zx::time> & codec_start_time ()

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

bool codec_start_failed ()

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

std::optional<zx::time> & codec_stop_time ()

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

bool codec_stop_failed ()

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

bool device_is_reset ()

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

const std::unordered_map<ElementId, fuchsia_hardware_audio_signalprocessing::ElementState> & element_states ()

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

void clear_element_states ()

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

std::optional<TopologyId> topology_id ()

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

void clear_topology_id ()

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