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

Side by Side Diff: media/audio/mock_audio_manager.cc

Issue 1780333007: AudioManagerBase: Create and run the audio thread lazily. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fixed media unittests on mac Created 4 years, 9 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
« no previous file with comments | « media/audio/mock_audio_manager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/audio/mock_audio_manager.h" 5 #include "media/audio/mock_audio_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "media/audio/audio_parameters.h" 9 #include "media/audio/audio_parameters.h"
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return NULL; 56 return NULL;
57 } 57 }
58 58
59 media::AudioInputStream* MockAudioManager::MakeAudioInputStream( 59 media::AudioInputStream* MockAudioManager::MakeAudioInputStream(
60 const media::AudioParameters& params, 60 const media::AudioParameters& params,
61 const std::string& device_id) { 61 const std::string& device_id) {
62 NOTREACHED(); 62 NOTREACHED();
63 return NULL; 63 return NULL;
64 } 64 }
65 65
66 scoped_refptr<base::SingleThreadTaskRunner> MockAudioManager::GetTaskRunner() 66 scoped_refptr<base::SingleThreadTaskRunner> MockAudioManager::GetTaskRunner() {
67 const {
68 return task_runner_; 67 return task_runner_;
69 } 68 }
70 69
71 scoped_refptr<base::SingleThreadTaskRunner> 70 scoped_refptr<base::SingleThreadTaskRunner>
72 MockAudioManager::GetWorkerTaskRunner() { 71 MockAudioManager::GetWorkerTaskRunner() {
73 return task_runner_; 72 return task_runner_;
74 } 73 }
75 74
76 void MockAudioManager::AddOutputDeviceChangeListener( 75 void MockAudioManager::AddOutputDeviceChangeListener(
77 AudioDeviceListener* listener) { 76 AudioDeviceListener* listener) {
(...skipping 21 matching lines...) Expand all
99 const std::string& input_device_id) { 98 const std::string& input_device_id) {
100 return std::string(); 99 return std::string();
101 } 100 }
102 101
103 scoped_ptr<AudioLog> MockAudioManager::CreateAudioLog( 102 scoped_ptr<AudioLog> MockAudioManager::CreateAudioLog(
104 AudioLogFactory::AudioComponent component) { 103 AudioLogFactory::AudioComponent component) {
105 return scoped_ptr<AudioLog>(); 104 return scoped_ptr<AudioLog>();
106 } 105 }
107 106
108 } // namespace media. 107 } // namespace media.
OLDNEW
« no previous file with comments | « media/audio/mock_audio_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698