Chromium Code Reviews| Index: content/browser/speech/mock_audio_manager.cc |
| diff --git a/content/browser/speech/mock_audio_manager.cc b/content/browser/speech/mock_audio_manager.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e7e114bc093b3e3202a7a6ab01aba13a11408c96 |
| --- /dev/null |
| +++ b/content/browser/speech/mock_audio_manager.cc |
| @@ -0,0 +1,105 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/browser/speech/mock_audio_manager.h" |
| + |
| +#include "base/message_loop.h" |
| +#include "base/message_loop_proxy.h" |
| +#include "content/public/browser/browser_thread.h" |
| + |
| +namespace speech { |
| + |
| +MockAudioManager::MockAudioManager() { |
| +} |
| + |
| +MockAudioManager::~MockAudioManager() { |
| +} |
| + |
| +bool MockAudioManager::HasAudioOutputDevices() { |
| + return true; |
| +} |
| + |
| +bool MockAudioManager::HasAudioInputDevices() { |
| + return true; |
| +} |
| + |
| +string16 MockAudioManager::GetAudioInputDeviceModel() { |
| + return string16(); |
| +} |
| + |
| +bool MockAudioManager::CanShowAudioInputSettings() { |
| + return false; |
| +} |
| + |
| +void MockAudioManager::ShowAudioInputSettings() { |
| +} |
| + |
| +void MockAudioManager::GetAudioInputDeviceNames( |
| + media::AudioDeviceNames* device_names) { |
| +} |
| + |
| +media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( |
| + const media::AudioParameters& params) { |
| + NOTREACHED(); |
| + return NULL; |
| +} |
| + |
| +media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( |
| + const media::AudioParameters& params) { |
| + NOTREACHED(); |
| + return NULL; |
| +} |
| + |
| +media::AudioInputStream* MockAudioManager::MakeAudioInputStream( |
| + const media::AudioParameters& params, |
| + const std::string& device_id) { |
| + NOTREACHED(); |
| + return NULL; |
| +} |
| + |
| +media::AudioOutputStream* MockAudioManager::MakeLinearOutputStream( |
| + const media::AudioParameters& params) { |
| + NOTREACHED(); |
| + return NULL; |
| +} |
| + |
| +media::AudioOutputStream* MockAudioManager::MakeLowLatencyOutputStream( |
| + const media::AudioParameters& params) { |
| + NOTREACHED(); |
| + return NULL; |
| +} |
| + |
| +media::AudioInputStream* MockAudioManager::MakeLinearInputStream( |
| + const media::AudioParameters& params, |
| + const std::string& device_id) { |
| + NOTREACHED(); |
| + return NULL; |
| +} |
| + |
| +media::AudioInputStream* MockAudioManager::MakeLowLatencyInputStream( |
| + const media::AudioParameters& params, |
| + const std::string& device_id) { |
| + NOTREACHED(); |
| + return NULL; |
| +} |
| + |
| +void MockAudioManager::MuteAll() { |
| +} |
| + |
| +void MockAudioManager::UnMuteAll() { |
| +} |
| + |
| +bool MockAudioManager::IsRecordingInProcess() { |
| + return false; |
| +} |
| + |
| +scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetMessageLoop() { |
| + DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
| + return MessageLoop::current()->message_loop_proxy(); |
| +} |
| + |
| +void MockAudioManager::Init() { |
| +}; |
|
tommi (sloooow) - chröme
2012/07/11 09:59:08
remove semicolon
|
| + |
| +} // namespace speech. |