| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/mock_audio_renderer_sink.h" | 5 #include "media/base/mock_audio_renderer_sink.h" |
| 6 | 6 |
| 7 namespace media { | 7 namespace media { |
| 8 MockAudioRendererSink::MockAudioRendererSink() | 8 MockAudioRendererSink::MockAudioRendererSink() |
| 9 : MockAudioRendererSink(OUTPUT_DEVICE_STATUS_OK) {} | 9 : MockAudioRendererSink(OUTPUT_DEVICE_STATUS_OK) {} |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // NB: output device won't be changed, since it's not required by any tests | 37 // NB: output device won't be changed, since it's not required by any tests |
| 38 // now. | 38 // now. |
| 39 callback.Run(output_device_info_.device_status()); | 39 callback.Run(output_device_info_.device_status()); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void MockAudioRendererSink::Initialize(const AudioParameters& params, | 42 void MockAudioRendererSink::Initialize(const AudioParameters& params, |
| 43 RenderCallback* renderer) { | 43 RenderCallback* renderer) { |
| 44 callback_ = renderer; | 44 callback_ = renderer; |
| 45 } | 45 } |
| 46 | 46 |
| 47 OutputDeviceInfo MockAudioRendererSink::GetOutputDeviceInfo() { | 47 OutputDeviceInfo MockAudioRendererSink::GetOutputDeviceInfo( |
| 48 const AudioParameters& preferred_params) { |
| 48 return output_device_info_; | 49 return output_device_info_; |
| 49 } | 50 } |
| 50 | 51 |
| 51 } // namespace media | 52 } // namespace media |
| OLD | NEW |