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/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 Loading... |
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 Loading... |
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. |
OLD | NEW |