Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: media/audio/mock_audio_manager.h

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/audio/audio_manager_unittest.cc ('k') | media/audio/test_audio_input_controller_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698