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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Code review. Created 3 years, 9 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') | no next file » | 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/logging.h" 8 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
9 #include "media/base/audio_parameters.h" 10 #include "media/base/audio_parameters.h"
10 11
11 namespace media { 12 namespace media {
12 13
13 void MockAudioManager::Deleter::operator()( 14 void MockAudioManager::Deleter::operator()(
14 const MockAudioManager* instance) const { 15 const MockAudioManager* instance) const {
15 CHECK(instance); 16 CHECK(instance);
16 if (instance->GetTaskRunner()->BelongsToCurrentThread()) { 17 if (instance->GetTaskRunner()->BelongsToCurrentThread()) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const std::string& input_device_id) { 110 const std::string& input_device_id) {
110 DCHECK(GetTaskRunner()->BelongsToCurrentThread()); 111 DCHECK(GetTaskRunner()->BelongsToCurrentThread());
111 return std::string(); 112 return std::string();
112 } 113 }
113 114
114 std::unique_ptr<AudioLog> MockAudioManager::CreateAudioLog( 115 std::unique_ptr<AudioLog> MockAudioManager::CreateAudioLog(
115 AudioLogFactory::AudioComponent component) { 116 AudioLogFactory::AudioComponent component) {
116 return nullptr; 117 return nullptr;
117 } 118 }
118 119
120 void MockAudioManager::InitializeOutputDebugRecording(
121 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) {}
122
123 void MockAudioManager::EnableOutputDebugRecording(
124 const base::FilePath& base_file_name) {}
125
126 void MockAudioManager::DisableOutputDebugRecording() {}
127
119 const char* MockAudioManager::GetName() { 128 const char* MockAudioManager::GetName() {
120 return nullptr; 129 return nullptr;
121 } 130 }
122 131
123 void MockAudioManager::SetInputStreamParameters( 132 void MockAudioManager::SetInputStreamParameters(
124 const AudioParameters& input_params) { 133 const AudioParameters& input_params) {
125 input_params_ = input_params; 134 input_params_ = input_params;
126 } 135 }
127 136
128 void MockAudioManager::SetHasInputDevices(bool has_input_devices) { 137 void MockAudioManager::SetHasInputDevices(bool has_input_devices) {
129 has_input_devices_ = has_input_devices; 138 has_input_devices_ = has_input_devices;
130 } 139 }
131 140
132 } // namespace media. 141 } // namespace media.
OLDNEW
« no previous file with comments | « media/audio/mock_audio_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698