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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "media/audio/audio_manager.h" | 9 #include "media/audio/audio_manager.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 void ShowAudioInputSettings() override; | 28 void ShowAudioInputSettings() override; |
29 | 29 |
30 void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) override; | 30 void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names) override; |
31 | 31 |
32 void GetAudioOutputDeviceNames( | 32 void GetAudioOutputDeviceNames( |
33 media::AudioDeviceNames* device_names) override; | 33 media::AudioDeviceNames* device_names) override; |
34 | 34 |
35 media::AudioOutputStream* MakeAudioOutputStream( | 35 media::AudioOutputStream* MakeAudioOutputStream( |
36 const media::AudioParameters& params, | 36 const media::AudioParameters& params, |
37 const std::string& device_id) override; | 37 const std::string& device_id, |
| 38 const LogCallback& log_callback) override; |
38 | 39 |
39 media::AudioOutputStream* MakeAudioOutputStreamProxy( | 40 media::AudioOutputStream* MakeAudioOutputStreamProxy( |
40 const media::AudioParameters& params, | 41 const media::AudioParameters& params, |
41 const std::string& device_id) override; | 42 const std::string& device_id) override; |
42 | 43 |
43 media::AudioInputStream* MakeAudioInputStream( | 44 media::AudioInputStream* MakeAudioInputStream( |
44 const media::AudioParameters& params, | 45 const media::AudioParameters& params, |
45 const std::string& device_id) override; | 46 const std::string& device_id, |
| 47 const LogCallback& log_callback) override; |
46 | 48 |
47 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override; | 49 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override; |
48 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override; | 50 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override; |
49 | 51 |
50 AudioParameters GetDefaultOutputStreamParameters() override; | 52 AudioParameters GetDefaultOutputStreamParameters() override; |
51 AudioParameters GetOutputStreamParameters( | 53 AudioParameters GetOutputStreamParameters( |
52 const std::string& device_id) override; | 54 const std::string& device_id) override; |
53 AudioParameters GetInputStreamParameters( | 55 AudioParameters GetInputStreamParameters( |
54 const std::string& device_id) override; | 56 const std::string& device_id) override; |
55 std::string GetAssociatedOutputDeviceID( | 57 std::string GetAssociatedOutputDeviceID( |
56 const std::string& input_device_id) override; | 58 const std::string& input_device_id) override; |
57 | 59 |
58 std::unique_ptr<AudioLog> CreateAudioLog( | 60 std::unique_ptr<AudioLog> CreateAudioLog( |
59 AudioLogFactory::AudioComponent component) override; | 61 AudioLogFactory::AudioComponent component) override; |
60 | 62 |
61 protected: | 63 protected: |
62 ~MockAudioManager() override; | 64 ~MockAudioManager() override; |
63 | 65 |
64 private: | 66 private: |
65 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); | 67 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); |
66 }; | 68 }; |
67 | 69 |
68 } // namespace media. | 70 } // namespace media. |
69 | 71 |
70 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 72 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
OLD | NEW |