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.
5 #include "media/audio/mock_audio_manager.h"
7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h"
12 MockAudioManager::MockAudioManager(base::MessageLoopProxy
* message_loop_proxy
)
13 : message_loop_proxy_(message_loop_proxy
) {
16 MockAudioManager::~MockAudioManager() {
19 bool MockAudioManager::HasAudioOutputDevices() {
23 bool MockAudioManager::HasAudioInputDevices() {
27 string16
MockAudioManager::GetAudioInputDeviceModel() {
31 bool MockAudioManager::CanShowAudioInputSettings() {
35 void MockAudioManager::ShowAudioInputSettings() {
38 void MockAudioManager::GetAudioInputDeviceNames(
39 media::AudioDeviceNames
* device_names
) {
42 media::AudioOutputStream
* MockAudioManager::MakeAudioOutputStream(
43 const media::AudioParameters
& params
) {
48 media::AudioOutputStream
* MockAudioManager::MakeAudioOutputStreamProxy(
49 const media::AudioParameters
& params
) {
54 media::AudioInputStream
* MockAudioManager::MakeAudioInputStream(
55 const media::AudioParameters
& params
,
56 const std::string
& device_id
) {
61 bool MockAudioManager::IsRecordingInProcess() {
65 scoped_refptr
<base::MessageLoopProxy
> MockAudioManager::GetMessageLoop() {
66 return message_loop_proxy_
;
69 void MockAudioManager::AddOutputDeviceChangeListener(
70 AudioDeviceListener
* listener
) {
73 void MockAudioManager::RemoveOutputDeviceChangeListener(
74 AudioDeviceListener
* listener
) {