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

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

Issue 2885173002: Make AudioDebugFileWriter create its own file worker thread. (Closed)
Patch Set: Remove useless include Created 3 years, 7 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') | media/audio/test_audio_input_controller_factory.cc » ('j') | 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/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
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
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.
OLDNEW
« no previous file with comments | « media/audio/mock_audio_manager.h ('k') | media/audio/test_audio_input_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698