| 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 "media/audio/mock_audio_manager.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "base/message_loop_proxy.h" |
| 9 |
| 10 namespace media { |
| 11 |
| 12 MockAudioManager::MockAudioManager( |
| 13 scoped_refptr<base::MessageLoopProxy> message_loop_proxy) |
| 14 : message_loop_proxy_(message_loop_proxy) { |
| 15 } |
| 16 |
| 17 MockAudioManager::~MockAudioManager() { |
| 18 } |
| 19 |
| 20 bool MockAudioManager::HasAudioOutputDevices() { |
| 21 return true; |
| 22 } |
| 23 |
| 24 bool MockAudioManager::HasAudioInputDevices() { |
| 25 return true; |
| 26 } |
| 27 |
| 28 string16 MockAudioManager::GetAudioInputDeviceModel() { |
| 29 return string16(); |
| 30 } |
| 31 |
| 32 bool MockAudioManager::CanShowAudioInputSettings() { |
| 33 return false; |
| 34 } |
| 35 |
| 36 void MockAudioManager::ShowAudioInputSettings() { |
| 37 } |
| 38 |
| 39 void MockAudioManager::GetAudioInputDeviceNames( |
| 40 media::AudioDeviceNames* device_names) { |
| 41 } |
| 42 |
| 43 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( |
| 44 const media::AudioParameters& params) { |
| 45 NOTREACHED(); |
| 46 return NULL; |
| 47 } |
| 48 |
| 49 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( |
| 50 const media::AudioParameters& params) { |
| 51 NOTREACHED(); |
| 52 return NULL; |
| 53 } |
| 54 |
| 55 media::AudioInputStream* MockAudioManager::MakeAudioInputStream( |
| 56 const media::AudioParameters& params, |
| 57 const std::string& device_id) { |
| 58 NOTREACHED(); |
| 59 return NULL; |
| 60 } |
| 61 |
| 62 void MockAudioManager::MuteAll() { |
| 63 } |
| 64 |
| 65 void MockAudioManager::UnMuteAll() { |
| 66 } |
| 67 |
| 68 bool MockAudioManager::IsRecordingInProcess() { |
| 69 return false; |
| 70 } |
| 71 |
| 72 scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetMessageLoop() { |
| 73 return message_loop_proxy_; |
| 74 } |
| 75 |
| 76 void MockAudioManager::Init() { |
| 77 } |
| 78 |
| 79 } // namespace media. |
| OLD | NEW |