class NotifyStub
Defined at line 145 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 147 of file ../../src/media/audio/services/device_registry/device_unittest.h
void ~NotifyStub ()
Defined at line 148 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool AddObserver (const std::shared_ptr<Device> & device)
Defined at line 150 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool SetControl (const std::shared_ptr<Device> & device)
Defined at line 153 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool DropControl (const std::shared_ptr<Device> & device)
Defined at line 156 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceIsRemoved ()
ObserverNotify
Defined at line 160 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceHasError ()
Defined at line 161 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 162 of file ../../src/media/audio/services/device_registry/device_unittest.h
void TopologyIsChanged (TopologyId topology_id)
Defined at line 167 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 171 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceDroppedRingBuffer (ElementId element_id)
ControlNotify
Defined at line 180 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceDroppedPacketStream (ElementId element_id)
Defined at line 183 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 186 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 191 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 209 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsStarted (const zx::time & start_time)
Defined at line 217 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsNotStarted ()
Defined at line 223 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsStopped (const zx::time & stop_time)
Defined at line 227 of file ../../src/media/audio/services/device_registry/device_unittest.h
void CodecIsNotStopped ()
Defined at line 233 of file ../../src/media/audio/services/device_registry/device_unittest.h
void DeviceIsReset ()
Defined at line 237 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 245 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_dai_format (ElementId element_id)
Defined at line 250 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 256 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_is_started ()
Defined at line 262 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_is_stopped ()
Defined at line 266 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 271 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 274 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 278 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_delay_info (ElementId element_id)
Defined at line 285 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_delay_infos ()
Defined at line 286 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 288 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 295 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 301 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 305 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 309 of file ../../src/media/audio/services/device_registry/device_unittest.h
std::optional<zx::time> & codec_start_time ()
Defined at line 314 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_start_failed ()
Defined at line 315 of file ../../src/media/audio/services/device_registry/device_unittest.h
std::optional<zx::time> & codec_stop_time ()
Defined at line 316 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool codec_stop_failed ()
Defined at line 317 of file ../../src/media/audio/services/device_registry/device_unittest.h
bool device_is_reset ()
Defined at line 318 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 320 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_element_states ()
Defined at line 324 of file ../../src/media/audio/services/device_registry/device_unittest.h
std::optional<TopologyId> topology_id ()
Defined at line 326 of file ../../src/media/audio/services/device_registry/device_unittest.h
void clear_topology_id ()
Defined at line 327 of file ../../src/media/audio/services/device_registry/device_unittest.h