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

Unified Diff: content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc

Issue 2885173002: Make AudioDebugFileWriter create its own file worker thread. (Closed)
Patch Set: Remove useless include 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc
diff --git a/content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc b/content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc
index dcc0ee8081a87abc27b3247286e35f2fad520461..425e7dae1281233b8fd865efa9f373b4bec6beee 100644
--- a/content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc
+++ b/content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc
@@ -167,15 +167,13 @@ class MockAudioInputController : public AudioInputController {
AudioInputController::EventHandler* event_handler,
media::UserInputMonitor* user_input_monitor,
const media::AudioParameters& params,
- StreamType type,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner)
+ StreamType type)
: AudioInputController(std::move(task_runner),
event_handler,
writer,
user_input_monitor,
params,
- type,
- std::move(file_task_runner)) {
+ type) {
GetTaskRunnerForTesting()->PostTask(
FROM_HERE,
base::Bind(&AudioInputController::EventHandler::OnCreated,
@@ -239,9 +237,9 @@ class MockControllerFactory : public AudioInputController::Factory {
media::UserInputMonitor* user_input_monitor,
AudioInputController::StreamType type) override {
ControllerCreated();
- scoped_refptr<MockController> controller = new MockController(
- task_runner, sync_writer, audio_manager, event_handler,
- user_input_monitor, params, type, task_runner);
+ scoped_refptr<MockController> controller =
+ new MockController(task_runner, sync_writer, audio_manager,
+ event_handler, user_input_monitor, params, type);
controller_list_.push_back(controller);
return controller.get();
}
« no previous file with comments | « content/browser/renderer_host/media/audio_input_renderer_host.cc ('k') | content/browser/speech/speech_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698