| 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/base/audio_parameters.h" | 9 #include "media/base/audio_parameters.h" |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 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 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( | 45 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( |
| 46 const media::AudioParameters& params, | 46 const media::AudioParameters& params, |
| 47 const std::string& device_id) { | 47 const std::string& device_id, |
| 48 const LogCallback& log_callback) { |
| 48 NOTREACHED(); | 49 NOTREACHED(); |
| 49 return NULL; | 50 return NULL; |
| 50 } | 51 } |
| 51 | 52 |
| 52 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( | 53 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( |
| 53 const media::AudioParameters& params, | 54 const media::AudioParameters& params, |
| 54 const std::string& device_id) { | 55 const std::string& device_id) { |
| 55 NOTREACHED(); | 56 NOTREACHED(); |
| 56 return NULL; | 57 return NULL; |
| 57 } | 58 } |
| 58 | 59 |
| 59 media::AudioInputStream* MockAudioManager::MakeAudioInputStream( | 60 media::AudioInputStream* MockAudioManager::MakeAudioInputStream( |
| 60 const media::AudioParameters& params, | 61 const media::AudioParameters& params, |
| 61 const std::string& device_id) { | 62 const std::string& device_id, |
| 63 const LogCallback& log_callback) { |
| 62 NOTREACHED(); | 64 NOTREACHED(); |
| 63 return NULL; | 65 return NULL; |
| 64 } | 66 } |
| 65 | 67 |
| 66 void MockAudioManager::AddOutputDeviceChangeListener( | 68 void MockAudioManager::AddOutputDeviceChangeListener( |
| 67 AudioDeviceListener* listener) { | 69 AudioDeviceListener* listener) { |
| 68 } | 70 } |
| 69 | 71 |
| 70 void MockAudioManager::RemoveOutputDeviceChangeListener( | 72 void MockAudioManager::RemoveOutputDeviceChangeListener( |
| 71 AudioDeviceListener* listener) { | 73 AudioDeviceListener* listener) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 89 const std::string& input_device_id) { | 91 const std::string& input_device_id) { |
| 90 return std::string(); | 92 return std::string(); |
| 91 } | 93 } |
| 92 | 94 |
| 93 std::unique_ptr<AudioLog> MockAudioManager::CreateAudioLog( | 95 std::unique_ptr<AudioLog> MockAudioManager::CreateAudioLog( |
| 94 AudioLogFactory::AudioComponent component) { | 96 AudioLogFactory::AudioComponent component) { |
| 95 return nullptr; | 97 return nullptr; |
| 96 } | 98 } |
| 97 | 99 |
| 98 } // namespace media. | 100 } // namespace media. |
| OLD | NEW |