class NotifyStub
Defined at line 124 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 126 of file ../../src/media/audio/services/device_registry/device_unittest.h
void ~NotifyStub ()
Defined at line 127 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool AddObserver (const std::shared_ptr<Device> & device)
Defined at line 129 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool SetControl (const std::shared_ptr<Device> & device)
Defined at line 132 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool DropControl (const std::shared_ptr<Device> & device)
Defined at line 135 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceIsRemoved ()
ObserverNotify
Defined at line 139 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceHasError ()
Defined at line 140 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 141 of file ../../src/media/audio/services/device_registry/device_unittest.h
void TopologyIsChanged (TopologyId topology_id)
Defined at line 146 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 150 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceDroppedRingBuffer (ElementId element_id)
ControlNotify
Defined at line 159 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceDroppedPacketStream (ElementId element_id)
Defined at line 162 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 165 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DaiFormatIsChanged (ElementIdelement_id,const std::optional<fuchsia_hardware_audio::DaiFormat> &dai_format,const std::optional<fuchsia_hardware_audio::CodecFormatInfo> &codec_format_info)
Defined at line 170 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DaiFormatIsNotChanged (ElementIdelement_id,const fuchsia_hardware_audio::DaiFormat &dai_format,fuchsia_audio_device::ControlSetDaiFormatErrorerror)
Defined at line 188 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsStarted (const zx::time & start_time)
Defined at line 196 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsNotStarted ()
Defined at line 202 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsStopped (const zx::time & stop_time)
Defined at line 206 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsNotStopped ()
Defined at line 212 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceIsReset ()
Defined at line 216 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 224 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_dai_format (ElementId element_id)
Defined at line 229 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 235 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_is_started ()
Defined at line 241 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_is_stopped ()
Defined at line 245 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 250 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 253 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 257 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_delay_info (ElementId element_id)
Defined at line 264 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_delay_infos ()
Defined at line 265 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 267 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 274 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 280 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 284 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 288 of file ../../src/media/audio/services/device_registry/device_unittest.h
std::optional<zx::time> & codec_start_time ()
Defined at line 293 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_start_failed ()
Defined at line 294 of file ../../src/media/audio/services/device_registry/device_unittest.h
std::optional<zx::time> & codec_stop_time ()
Defined at line 295 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_stop_failed ()
Defined at line 296 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool device_is_reset ()
Defined at line 297 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 299 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_element_states ()
Defined at line 303 of file ../../src/media/audio/services/device_registry/device_unittest.h
std::optional<TopologyId> topology_id ()
Defined at line 305 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_topology_id ()
Defined at line 306 of file ../../src/media/audio/services/device_registry/device_unittest.h