OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/audio/mock_audio_manager.h" | 5 #include "media/audio/mock_audio_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "media/audio/audio_parameters.h" | 9 #include "media/audio/audio_parameters.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... | |
26 } | 26 } |
27 | 27 |
28 string16 MockAudioManager::GetAudioInputDeviceModel() { | 28 string16 MockAudioManager::GetAudioInputDeviceModel() { |
29 return string16(); | 29 return string16(); |
30 } | 30 } |
31 | 31 |
32 void MockAudioManager::ShowAudioInputSettings() { | 32 void MockAudioManager::ShowAudioInputSettings() { |
33 } | 33 } |
34 | 34 |
35 void MockAudioManager::GetAudioInputDeviceNames( | 35 void MockAudioManager::GetAudioInputDeviceNames( |
36 media::AudioDeviceNames* device_names) { | 36 media::AudioDeviceNames* device_names) { |
scherkus (not reviewing)
2013/06/03 22:04:28
fix indent
| |
37 } | 37 } |
38 | 38 |
39 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( | 39 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStream( |
40 const media::AudioParameters& params, | 40 const media::AudioParameters& params, |
scherkus (not reviewing)
2013/06/03 22:04:28
fix indent
| |
41 const std::string& input_device_id) { | 41 const std::string& input_device_id) { |
42 NOTREACHED(); | 42 NOTREACHED(); |
43 return NULL; | 43 return NULL; |
44 } | 44 } |
45 | 45 |
46 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( | 46 media::AudioOutputStream* MockAudioManager::MakeAudioOutputStreamProxy( |
47 const media::AudioParameters& params, | 47 const media::AudioParameters& params, |
48 const std::string& input_device_id) { | 48 const std::string& input_device_id) { |
49 NOTREACHED(); | 49 NOTREACHED(); |
50 return NULL; | 50 return NULL; |
51 } | 51 } |
52 | 52 |
53 media::AudioInputStream* MockAudioManager::MakeAudioInputStream( | 53 media::AudioInputStream* MockAudioManager::MakeAudioInputStream( |
54 const media::AudioParameters& params, | 54 const media::AudioParameters& params, |
55 const std::string& device_id) { | 55 const std::string& device_id) { |
56 NOTREACHED(); | 56 NOTREACHED(); |
57 return NULL; | 57 return NULL; |
58 } | 58 } |
59 | 59 |
60 bool MockAudioManager::IsRecordingInProcess() { | 60 bool MockAudioManager::IsRecordingInProcess() { |
61 return false; | 61 return false; |
62 } | 62 } |
63 | 63 |
64 scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetMessageLoop() { | 64 scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetMessageLoop() { |
65 return message_loop_proxy_; | 65 return message_loop_proxy_; |
66 } | 66 } |
67 | 67 |
68 scoped_refptr<base::MessageLoopProxy> MockAudioManager::GetWorkerLoop() { | |
69 return message_loop_proxy_; | |
70 } | |
71 | |
68 void MockAudioManager::AddOutputDeviceChangeListener( | 72 void MockAudioManager::AddOutputDeviceChangeListener( |
69 AudioDeviceListener* listener) { | 73 AudioDeviceListener* listener) { |
70 } | 74 } |
71 | 75 |
72 void MockAudioManager::RemoveOutputDeviceChangeListener( | 76 void MockAudioManager::RemoveOutputDeviceChangeListener( |
73 AudioDeviceListener* listener) { | 77 AudioDeviceListener* listener) { |
74 } | 78 } |
75 | 79 |
76 AudioParameters MockAudioManager::GetDefaultOutputStreamParameters() { | 80 AudioParameters MockAudioManager::GetDefaultOutputStreamParameters() { |
77 return AudioParameters(); | 81 return AudioParameters(); |
78 } | 82 } |
79 | 83 |
80 AudioParameters MockAudioManager::GetInputStreamParameters( | 84 AudioParameters MockAudioManager::GetInputStreamParameters( |
81 const std::string& device_id) { | 85 const std::string& device_id) { |
82 return AudioParameters(); | 86 return AudioParameters(); |
83 } | 87 } |
84 | 88 |
85 } // namespace media. | 89 } // namespace media. |
OLD | NEW |