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

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

Issue 2531333005: Unit tests of AudioInputRendererHost. Some cleanups. (Closed)
Patch Set: Small comments describing tests. Created 4 years 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_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_ 5 #ifndef MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_
6 #define MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_ 6 #define MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "media/audio/audio_input_controller.h" 10 #include "media/audio/audio_input_controller.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Simple AudioInputController::Factory method that creates 94 // Simple AudioInputController::Factory method that creates
95 // TestAudioInputControllers. 95 // TestAudioInputControllers.
96 class TestAudioInputControllerFactory : public AudioInputController::Factory { 96 class TestAudioInputControllerFactory : public AudioInputController::Factory {
97 public: 97 public:
98 TestAudioInputControllerFactory(); 98 TestAudioInputControllerFactory();
99 ~TestAudioInputControllerFactory() override; 99 ~TestAudioInputControllerFactory() override;
100 100
101 // AudioInputController::Factory methods. 101 // AudioInputController::Factory methods.
102 AudioInputController* Create( 102 AudioInputController* Create(
103 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
104 AudioInputController::SyncWriter* sync_writer,
103 AudioManager* audio_manager, 105 AudioManager* audio_manager,
104 AudioInputController::EventHandler* event_handler, 106 AudioInputController::EventHandler* event_handler,
105 AudioParameters params, 107 AudioParameters params,
106 UserInputMonitor* user_input_monitor) override; 108 UserInputMonitor* user_input_monitor) override;
107 109
108 void set_delegate(TestAudioInputControllerDelegate* delegate) { 110 void set_delegate(TestAudioInputControllerDelegate* delegate) {
109 delegate_ = delegate; 111 delegate_ = delegate;
110 } 112 }
111 113
112 TestAudioInputController* controller() const { return controller_; } 114 TestAudioInputController* controller() const { return controller_; }
(...skipping 10 matching lines...) Expand all
123 125
124 // The delegate for tests for receiving audio controller events. 126 // The delegate for tests for receiving audio controller events.
125 TestAudioInputControllerDelegate* delegate_; 127 TestAudioInputControllerDelegate* delegate_;
126 128
127 DISALLOW_COPY_AND_ASSIGN(TestAudioInputControllerFactory); 129 DISALLOW_COPY_AND_ASSIGN(TestAudioInputControllerFactory);
128 }; 130 };
129 131
130 } // namespace media 132 } // namespace media
131 133
132 #endif // MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_ 134 #endif // MEDIA_AUDIO_TEST_AUDIO_INPUT_CONTROLLER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/audio/test_audio_input_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698