| 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/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "media/base/audio_parameters.h" | 10 #include "media/base/audio_parameters.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 return get_associated_output_device_id_cb_.is_null() | 106 return get_associated_output_device_id_cb_.is_null() |
| 107 ? std::string() | 107 ? std::string() |
| 108 : get_associated_output_device_id_cb_.Run(input_device_id); | 108 : get_associated_output_device_id_cb_.Run(input_device_id); |
| 109 } | 109 } |
| 110 | 110 |
| 111 std::unique_ptr<AudioLog> MockAudioManager::CreateAudioLog( | 111 std::unique_ptr<AudioLog> MockAudioManager::CreateAudioLog( |
| 112 AudioLogFactory::AudioComponent component) { | 112 AudioLogFactory::AudioComponent component) { |
| 113 return nullptr; | 113 return nullptr; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void MockAudioManager::InitializeOutputDebugRecording( | 116 void MockAudioManager::InitializeOutputDebugRecording() {} |
| 117 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) {} | |
| 118 | 117 |
| 119 void MockAudioManager::EnableOutputDebugRecording( | 118 void MockAudioManager::EnableOutputDebugRecording( |
| 120 const base::FilePath& base_file_name) {} | 119 const base::FilePath& base_file_name) {} |
| 121 | 120 |
| 122 void MockAudioManager::DisableOutputDebugRecording() {} | 121 void MockAudioManager::DisableOutputDebugRecording() {} |
| 123 | 122 |
| 124 const char* MockAudioManager::GetName() { | 123 const char* MockAudioManager::GetName() { |
| 125 return nullptr; | 124 return nullptr; |
| 126 } | 125 } |
| 127 | 126 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 156 GetDeviceDescriptionsCallback callback) { | 155 GetDeviceDescriptionsCallback callback) { |
| 157 get_output_device_descriptions_cb_ = std::move(callback); | 156 get_output_device_descriptions_cb_ = std::move(callback); |
| 158 } | 157 } |
| 159 | 158 |
| 160 void MockAudioManager::SetAssociatedOutputDeviceIDCallback( | 159 void MockAudioManager::SetAssociatedOutputDeviceIDCallback( |
| 161 GetAssociatedOutputDeviceIDCallback callback) { | 160 GetAssociatedOutputDeviceIDCallback callback) { |
| 162 get_associated_output_device_id_cb_ = std::move(callback); | 161 get_associated_output_device_id_cb_ = std::move(callback); |
| 163 } | 162 } |
| 164 | 163 |
| 165 } // namespace media. | 164 } // namespace media. |
| OLD | NEW |