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/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/sequenced_task_runner_helpers.h" | 10 #include "base/sequenced_task_runner_helpers.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "media/audio/audio_manager.h" | 12 #include "media/audio/audio_manager.h" |
12 | 13 |
13 namespace media { | 14 namespace media { |
14 | 15 |
15 // This class is a simple mock around AudioManager, used exclusively for tests, | 16 // This class is a simple mock around AudioManager, used exclusively for tests, |
16 // which avoids to use the actual (system and platform dependent) AudioManager. | 17 // which avoids to use the actual (system and platform dependent) AudioManager. |
17 // Some bots does not have input devices, thus using the actual AudioManager | 18 // Some bots does not have input devices, thus using the actual AudioManager |
18 // would causing failures on classes which expect that. | 19 // would causing failures on classes which expect that. |
19 class MockAudioManager : public AudioManager { | 20 class MockAudioManager : public AudioManager { |
20 public: | 21 public: |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 GetDeviceDescriptionsCallback get_input_device_descriptions_cb_; | 102 GetDeviceDescriptionsCallback get_input_device_descriptions_cb_; |
102 GetDeviceDescriptionsCallback get_output_device_descriptions_cb_; | 103 GetDeviceDescriptionsCallback get_output_device_descriptions_cb_; |
103 GetAssociatedOutputDeviceIDCallback get_associated_output_device_id_cb_; | 104 GetAssociatedOutputDeviceIDCallback get_associated_output_device_id_cb_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); | 106 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); |
106 }; | 107 }; |
107 | 108 |
108 } // namespace media. | 109 } // namespace media. |
109 | 110 |
110 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ | 111 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ |
OLD | NEW |