Chromium Code Reviews| Index: media/base/mock_audio_renderer_sink.cc |
| diff --git a/media/base/mock_audio_renderer_sink.cc b/media/base/mock_audio_renderer_sink.cc |
| index 79653b2f8232c2b0688a9ec95232101495530d9b..1b6f51895dd12cac875e837b45f9ac69ac647b1e 100644 |
| --- a/media/base/mock_audio_renderer_sink.cc |
| +++ b/media/base/mock_audio_renderer_sink.cc |
| @@ -6,6 +6,8 @@ |
| #include "media/base/fake_output_device.h" |
| namespace media { |
| + |
| +//--- MockAudioRendererSink |
|
Henrik Grunell
2016/03/08 21:09:57
Remove comment.
o1ka
2016/04/05 15:13:38
Acknowledged.
|
| MockAudioRendererSink::MockAudioRendererSink() |
| : MockAudioRendererSink(OUTPUT_DEVICE_STATUS_OK) {} |
| @@ -23,4 +25,36 @@ OutputDevice* MockAudioRendererSink::GetOutputDevice() { |
| return output_device_.get(); |
| } |
| +//--- MockAudioRendererMixerSink |
|
Henrik Grunell
2016/03/08 21:09:57
Remove comment.
o1ka
2016/04/05 15:13:38
Acknowledged.
|
| +MockAudioRendererMixerSink::MockAudioRendererMixerSink() |
| + : MockAudioRendererMixerSink(OUTPUT_DEVICE_STATUS_OK) {} |
| + |
| +MockAudioRendererMixerSink::MockAudioRendererMixerSink( |
| + OutputDeviceStatus device_status) |
| + : output_device_(new FakeOutputDevice(device_status)) {} |
| + |
| +MockAudioRendererMixerSink::MockAudioRendererMixerSink( |
| + const std::string& device_id, |
| + OutputDeviceStatus device_status) |
| + : output_device_(new FakeOutputDevice(device_status)), |
| + device_id_(device_id) {} |
| + |
| +MockAudioRendererMixerSink::MockAudioRendererMixerSink( |
| + const std::string& device_id, |
| + OutputDeviceStatus device_status, |
| + const AudioParameters& device_output_params) |
| + : output_device_(new FakeOutputDevice(device_status, device_output_params)), |
| + device_id_(device_id) {} |
| + |
| +MockAudioRendererMixerSink::~MockAudioRendererMixerSink() {} |
| + |
| +void MockAudioRendererMixerSink::Initialize(const AudioParameters& params, |
| + RenderCallback* renderer) { |
| + callback_ = renderer; |
| +} |
| + |
| +OutputDevice* MockAudioRendererMixerSink::GetOutputDevice() { |
| + return output_device_.get(); |
| +} |
| + |
| } // namespace media |