| 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 24 matching lines...) Expand all Loading... |
| 35 void MockAudioManager::GetAudioInputDeviceNames( | 35 void MockAudioManager::GetAudioInputDeviceNames( |
| 36 AudioDeviceNames* device_names) { | 36 AudioDeviceNames* device_names) { |
| 37 // Do not inject fake devices here, use | 37 // Do not inject fake devices here, use |
| 38 // AudioInputDeviceManager::GetFakeDeviceNames() instead. | 38 // AudioInputDeviceManager::GetFakeDeviceNames() instead. |
| 39 } | 39 } |
| 40 | 40 |
| 41 void MockAudioManager::GetAudioOutputDeviceNames( | 41 void MockAudioManager::GetAudioOutputDeviceNames( |
| 42 AudioDeviceNames* device_names) { | 42 AudioDeviceNames* device_names) { |
| 43 } | 43 } |
| 44 | 44 |
| 45 std::string MockAudioManager::GetDefaultDeviceName() const { |
| 46 return ""; |
| 47 } |
| 48 |
| 45 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( | 49 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( |
| 46 const media::AudioParameters& params, | 50 const media::AudioParameters& params, |
| 47 const std::string& device_id) { | 51 const std::string& device_id) { |
| 48 NOTREACHED(); | 52 NOTREACHED(); |
| 49 return NULL; | 53 return NULL; |
| 50 } | 54 } |
| 51 | 55 |
| 52 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( | 56 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( |
| 53 const media::AudioParameters& params, | 57 const media::AudioParameters& params, |
| 54 const std::string& device_id) { | 58 const std::string& device_id) { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 104 } |
| 101 | 105 |
| 102 scoped_ptr<AudioLog> MockAudioManager::CreateAudioLog( | 106 scoped_ptr<AudioLog> MockAudioManager::CreateAudioLog( |
| 103 AudioLogFactory::AudioComponent component) { | 107 AudioLogFactory::AudioComponent component) { |
| 104 return scoped_ptr<AudioLog>(); | 108 return scoped_ptr<AudioLog>(); |
| 105 } | 109 } |
| 106 | 110 |
| 107 void MockAudioManager::SetHasKeyboardMic() {} | 111 void MockAudioManager::SetHasKeyboardMic() {} |
| 108 | 112 |
| 109 } // namespace media. | 113 } // namespace media. |
| OLD | NEW |