class FakeConsumerStageWriter
Defined at line 16 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
A very simple implementation that just records each Write call.
Public Methods
std::vector<Packet> & packets ()
Defined at line 25 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
std::vector<std::optional<int64_t>> end_calls ()
List of all End calls. Each value is the `end_frame` of the last packet written before the End
call, or `std::nullopt` if there were no writers before the End call.
Defined at line 29 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
void WriteData (int64_t start_frame, int64_t length, const void * data)
Implementation of ConsumerStage::Writer.
Defined at line 32 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
void WriteSilence (int64_t start_frame, int64_t length)
Defined at line 45 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
void End ()
Defined at line 58 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
void SetOnWriteData (std::function<void (int64_t, int64_t, const void *)> fn)
Optional callbacks, to get notifications in addition to the saved packets.
Defined at line 66 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
void SetOnWriteSilence (std::function<void (int64_t, int64_t)> fn)
Defined at line 69 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h
void SetOnEnd (std::function<void ()> fn)
Defined at line 72 of file ../../src/media/audio/services/mixer/mix/testing/fake_consumer_stage_writer.h