Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/browser/speech/mock_audio_manager.h" | |
| 6 | |
| 7 #include "base/message_loop.h" | |
| 8 #include "base/message_loop_proxy.h" | |
| 9 #include "content/public/browser/browser_thread.h" | |
| 10 | |
| 11 namespace speech { | |
| 12 | |
| 13 MockAudioManager::MockAudioManager() { | |
| 14 } | |
| 15 | |
| 16 MockAudioManager::~MockAudioManager() { | |
| 17 } | |
| 18 | |
| 19 bool MockAudioManager::HasAudioOutputDevices() { | |
| 20 return true; | |
| 21 } | |
| 22 | |
| 23 bool MockAudioManager::HasAudioInputDevices() { | |
| 24 return true; | |
| 25 } | |
| 26 | |
| 27 string16 MockAudioManager::GetAudioInputDeviceModel() { | |
| 28 return string16(); | |
| 29 } | |
| 30 | |
| 31 bool MockAudioManager::CanShowAudioInputSettings() { | |
| 32 return false; | |
| 33 } | |
| 34 | |
| 35 void MockAudioManager::ShowAudioInputSettings() { | |
| 36 } | |
| 37 | |
| 38 void MockAudioManager::GetAudioInputDeviceNames( | |
| 39 media::AudioDeviceNames* device_names) { | |
| 40 } | |
| 41 | |
| 42 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( | |
| 43 const media::AudioParameters& params) { | |
| 44 NOTREACHED(); | |
| 45 return NULL; | |
| 46 } | |
| 47 | |
| 48 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( | |
| 49 const media::AudioParameters& params) { | |
| 50 NOTREACHED(); | |
| 51 return NULL; | |
| 52 } | |
| 53 | |
| 54 media::AudioInputStream* MockAudioManager::MakeAudioInputStream( | |
| 55 const media::AudioParameters& params, | |
| 56 const std::string& device_id) { | |
| 57 NOTREACHED(); | |
| 58 return NULL; | |
| 59 } | |
| 60 | |
| 61 media::AudioOutputStream* MockAudioManager::MakeLinearOutputStream( | |
| 62 const media::AudioParameters& params) { | |
| 63 NOTREACHED(); | |
| 64 return NULL; | |
| 65 } | |
| 66 | |
| 67 media::AudioOutputStream* MockAudioManager::MakeLowLatencyOutputStream( | |
| 68 const media::AudioParameters& params) { | |
| 69 NOTREACHED(); | |
| 70 return NULL; | |
| 71 } | |
| 72 | |
| 73 media::AudioInputStream* MockAudioManager::MakeLinearInputStream( | |
| 74 const media::AudioParameters& params, | |
| 75 const std::string& device_id) { | |
| 76 NOTREACHED(); | |
| 77 return NULL; | |
| 78 } | |
| 79 | |
| 80 media::AudioInputStream* MockAudioManager::MakeLowLatencyInputStream( | |
| 81 const media::AudioParameters& params, | |
| 82 const std::string& device_id) { | |
| 83 NOTREACHED(); | |
| 84 return NULL; | |
| 85 } | |
| 86 | |
| 87 void MockAudioManager::MuteAll() { | |
| 88 } | |
| 89 | |
| 90 void MockAudioManager::UnMuteAll() { | |
| 91 } | |
| 92 | |
| 93 bool MockAudioManager::IsRecordingInProcess() { | |
| 94 return false; | |
| 95 } | |
| 96 | |
| 97 scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetMessageLoop() { | |
| 98 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | |
| 99 return MessageLoop::current()->message_loop_proxy(); | |
| 100 } | |
| 101 | |
| 102 void MockAudioManager::Init() { | |
| 103 }; | |
|
tommi (sloooow) - chröme
2012/07/11 09:59:08
remove semicolon
| |
| 104 | |
| 105 } // namespace speech. | |
| OLD | NEW |