Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: media/base/mock_audio_renderer_sink.cc

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698