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

Unified Diff: media/audio/test_audio_input_controller_factory.cc

Issue 2665163002: Refactor AudioInputController and split stat by stream type. (Closed)
Patch Set: Compile Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/test_audio_input_controller_factory.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/test_audio_input_controller_factory.cc
diff --git a/media/audio/test_audio_input_controller_factory.cc b/media/audio/test_audio_input_controller_factory.cc
index 1766b9250f28f8b655377633acf965afc2d8bbb0..1173418124c10a862affbbf19e14a4d440f10d70 100644
--- a/media/audio/test_audio_input_controller_factory.cc
+++ b/media/audio/test_audio_input_controller_factory.cc
@@ -14,13 +14,14 @@ TestAudioInputController::TestAudioInputController(
const AudioParameters& audio_parameters,
EventHandler* event_handler,
SyncWriter* sync_writer,
- UserInputMonitor* user_input_monitor)
+ UserInputMonitor* user_input_monitor,
+ StreamType type)
: AudioInputController(audio_manager->GetTaskRunner(),
event_handler,
sync_writer,
nullptr,
user_input_monitor,
- false),
+ type),
audio_parameters_(audio_parameters),
factory_(factory),
event_handler_(event_handler),
@@ -57,11 +58,12 @@ AudioInputController* TestAudioInputControllerFactory::Create(
AudioManager* audio_manager,
AudioInputController::EventHandler* event_handler,
AudioParameters params,
- UserInputMonitor* user_input_monitor) {
+ UserInputMonitor* user_input_monitor,
+ AudioInputController::StreamType type) {
DCHECK(!controller_); // Only one test instance managed at a time.
controller_ =
new TestAudioInputController(this, audio_manager, params, event_handler,
- sync_writer, user_input_monitor);
+ sync_writer, user_input_monitor, type);
return controller_;
}
« no previous file with comments | « media/audio/test_audio_input_controller_factory.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698