Mailbox support for texture layers.
[chromium-blink-merge.git] / media / audio / mock_audio_manager.cc
blob9a40b653b4cbc803b4e43348a3778bc6e7d07fd4
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"
10 namespace media {
12 MockAudioManager::MockAudioManager(base::MessageLoopProxy* message_loop_proxy)
13 : message_loop_proxy_(message_loop_proxy) {
16 MockAudioManager::~MockAudioManager() {
19 bool MockAudioManager::HasAudioOutputDevices() {
20 return true;
23 bool MockAudioManager::HasAudioInputDevices() {
24 return true;
27 string16 MockAudioManager::GetAudioInputDeviceModel() {
28 return string16();
31 bool MockAudioManager::CanShowAudioInputSettings() {
32 return false;
35 void MockAudioManager::ShowAudioInputSettings() {
38 void MockAudioManager::GetAudioInputDeviceNames(
39 media::AudioDeviceNames* device_names) {
42 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream(
43 const media::AudioParameters& params) {
44 NOTREACHED();
45 return NULL;
48 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy(
49 const media::AudioParameters& params) {
50 NOTREACHED();
51 return NULL;
54 media::AudioInputStream* MockAudioManager::MakeAudioInputStream(
55 const media::AudioParameters& params,
56 const std::string& device_id) {
57 NOTREACHED();
58 return NULL;
61 bool MockAudioManager::IsRecordingInProcess() {
62 return false;
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) {
77 } // namespace media.