| 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 #ifndef MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 5 #ifndef MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
| 6 #define MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 6 #define MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
| 7 | 7 |
| 8 #include "media/audio/audio_manager.h" | 8 #include "media/audio/audio_manager.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual media::AudioOutputStream* MakeAudioOutputStreamProxy( | 40 virtual media::AudioOutputStream* MakeAudioOutputStreamProxy( |
| 41 const media::AudioParameters& params) OVERRIDE; | 41 const media::AudioParameters& params) OVERRIDE; |
| 42 | 42 |
| 43 virtual media::AudioInputStream* MakeAudioInputStream( | 43 virtual media::AudioInputStream* MakeAudioInputStream( |
| 44 const media::AudioParameters& params, | 44 const media::AudioParameters& params, |
| 45 const std::string& device_id) OVERRIDE; | 45 const std::string& device_id) OVERRIDE; |
| 46 | 46 |
| 47 virtual bool IsRecordingInProcess() OVERRIDE; | 47 virtual bool IsRecordingInProcess() OVERRIDE; |
| 48 | 48 |
| 49 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() OVERRIDE; | 49 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() OVERRIDE; |
| 50 virtual scoped_refptr<base::MessageLoopProxy> GetWorkerLoop() OVERRIDE; |
| 50 | 51 |
| 51 virtual void AddOutputDeviceChangeListener( | 52 virtual void AddOutputDeviceChangeListener( |
| 52 AudioDeviceListener* listener) OVERRIDE; | 53 AudioDeviceListener* listener) OVERRIDE; |
| 53 virtual void RemoveOutputDeviceChangeListener( | 54 virtual void RemoveOutputDeviceChangeListener( |
| 54 AudioDeviceListener* listener) OVERRIDE; | 55 AudioDeviceListener* listener) OVERRIDE; |
| 55 | 56 |
| 56 virtual AudioParameters GetDefaultOutputStreamParameters() OVERRIDE; | 57 virtual AudioParameters GetDefaultOutputStreamParameters() OVERRIDE; |
| 57 virtual AudioParameters GetInputStreamParameters( | 58 virtual AudioParameters GetInputStreamParameters( |
| 58 const std::string& device_id) OVERRIDE; | 59 const std::string& device_id) OVERRIDE; |
| 59 | 60 |
| 60 private: | 61 private: |
| 61 virtual ~MockAudioManager(); | 62 virtual ~MockAudioManager(); |
| 62 | 63 |
| 63 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; | 64 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); | 66 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace media. | 69 } // namespace media. |
| 69 | 70 |
| 70 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 71 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
| OLD | NEW |