Report errors from ChromiumEnv::GetChildren in Posix.
[chromium-blink-merge.git] / media / audio / mock_audio_manager.cc
bloba164332a64a67afc49c3f145b2863251c146c72f
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/message_loop_proxy.h"
9 #include "media/audio/audio_parameters.h"
11 namespace media {
13 MockAudioManager::MockAudioManager(base::MessageLoopProxy* message_loop_proxy)
14 : message_loop_proxy_(message_loop_proxy) {
17 MockAudioManager::~MockAudioManager() {
20 bool MockAudioManager::HasAudioOutputDevices() {
21 return true;
24 bool MockAudioManager::HasAudioInputDevices() {
25 return true;
28 string16 MockAudioManager::GetAudioInputDeviceModel() {
29 return string16();
32 void MockAudioManager::ShowAudioInputSettings() {
35 void MockAudioManager::GetAudioInputDeviceNames(
36 AudioDeviceNames* device_names) {
39 void MockAudioManager::GetAudioOutputDeviceNames(
40 AudioDeviceNames* device_names) {
43 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream(
44 const media::AudioParameters& params,
45 const std::string& device_id,
46 const std::string& input_device_id) {
47 NOTREACHED();
48 return NULL;
51 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy(
52 const media::AudioParameters& params,
53 const std::string& device_id,
54 const std::string& input_device_id) {
55 NOTREACHED();
56 return NULL;
59 media::AudioInputStream* MockAudioManager::MakeAudioInputStream(
60 const media::AudioParameters& params,
61 const std::string& device_id) {
62 NOTREACHED();
63 return NULL;
66 scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetMessageLoop() {
67 return message_loop_proxy_;
70 scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetWorkerLoop() {
71 return message_loop_proxy_;
74 void MockAudioManager::AddOutputDeviceChangeListener(
75 AudioDeviceListener* listener) {
78 void MockAudioManager::RemoveOutputDeviceChangeListener(
79 AudioDeviceListener* listener) {
82 AudioParameters MockAudioManager::GetDefaultOutputStreamParameters() {
83 return AudioParameters();
86 AudioParameters MockAudioManager::GetOutputStreamParameters(
87 const std::string& device_id) {
88 return AudioParameters();
91 AudioParameters MockAudioManager::GetInputStreamParameters(
92 const std::string& device_id) {
93 return AudioParameters();
96 std::string MockAudioManager::GetAssociatedOutputDeviceID(
97 const std::string& input_device_id) {
98 return std::string();
101 } // namespace media.