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

Unified Diff: media/audio/audio_input_controller_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
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/audio/audio_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_controller_unittest.cc
diff --git a/media/audio/audio_input_controller_unittest.cc b/media/audio/audio_input_controller_unittest.cc
index 65d56417c53df67328848ea41d9cc7814790c484..3d9ba1a98030ed61b3e54f3f7ceb14a58462cc54 100644
--- a/media/audio/audio_input_controller_unittest.cc
+++ b/media/audio/audio_input_controller_unittest.cc
@@ -128,7 +128,7 @@ TEST_F(AudioInputControllerTest, CreateAndClose) {
SuspendAudioThread();
controller = AudioInputController::Create(
audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
- AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
+ AudioDeviceDescription::kDefaultDeviceId, false);
ASSERT_TRUE(controller.get());
EXPECT_CALL(event_handler, OnCreated(controller.get())).Times(Exactly(1));
EXPECT_CALL(event_handler, OnLog(controller.get(), _));
@@ -163,7 +163,7 @@ TEST_F(AudioInputControllerTest, RecordAndClose) {
// Creating the AudioInputController should render an OnCreated() call.
scoped_refptr<AudioInputController> controller = AudioInputController::Create(
audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
- AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
+ AudioDeviceDescription::kDefaultDeviceId, false);
ASSERT_TRUE(controller.get());
controller->Record();
@@ -189,7 +189,7 @@ TEST_F(AudioInputControllerTest, SamplesPerPacketTooLarge) {
kSamplesPerPacket * 1000);
scoped_refptr<AudioInputController> controller = AudioInputController::Create(
audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
- AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
+ AudioDeviceDescription::kDefaultDeviceId, false);
ASSERT_FALSE(controller.get());
}
@@ -211,7 +211,7 @@ TEST_F(AudioInputControllerTest, CloseTwice) {
kSamplesPerPacket);
scoped_refptr<AudioInputController> controller = AudioInputController::Create(
audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
- AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
+ AudioDeviceDescription::kDefaultDeviceId, false);
ASSERT_TRUE(controller.get());
controller->Record();
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/audio/audio_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698