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

Unified Diff: media/audio/audio_input_controller_unittest.cc

Issue 2702323002: Move AudioDebugFileWriter from content/ to media/. (Closed)
Patch Set: Code review, unit test fix and rebase. 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/audio_input_controller.cc ('k') | media/audio/test_audio_input_controller_factory.cc » ('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 e7570c5556b59979b1c6ea3d199a20ecb6956df1..545cd1d615fcb5304122beefdfd5308a427f0f9e 100644
--- a/media/audio/audio_input_controller_unittest.cc
+++ b/media/audio/audio_input_controller_unittest.cc
@@ -133,8 +133,8 @@ TEST_F(AudioInputControllerTest, CreateAndClose) {
SuspendAudioThread();
controller = AudioInputController::Create(
- audio_manager_.get(), &event_handler, &sync_writer, nullptr, nullptr,
- params, AudioDeviceDescription::kDefaultDeviceId, false);
+ audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
+ AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
ASSERT_TRUE(controller.get());
EXPECT_CALL(event_handler, OnCreated(controller.get())).Times(Exactly(1));
EXPECT_CALL(event_handler, OnLog(controller.get(), _));
@@ -170,8 +170,8 @@ 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, nullptr,
- params, AudioDeviceDescription::kDefaultDeviceId, false);
+ audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
+ AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
ASSERT_TRUE(controller.get());
controller->Record();
@@ -196,8 +196,8 @@ TEST_F(AudioInputControllerTest, SamplesPerPacketTooLarge) {
kBitsPerSample,
kSamplesPerPacket * 1000);
scoped_refptr<AudioInputController> controller = AudioInputController::Create(
- audio_manager_.get(), &event_handler, &sync_writer, nullptr, nullptr,
- params, AudioDeviceDescription::kDefaultDeviceId, false);
+ audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
+ AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
ASSERT_FALSE(controller.get());
}
@@ -218,8 +218,8 @@ TEST_F(AudioInputControllerTest, CloseTwice) {
kBitsPerSample,
kSamplesPerPacket);
scoped_refptr<AudioInputController> controller = AudioInputController::Create(
- audio_manager_.get(), &event_handler, &sync_writer, nullptr, nullptr,
- params, AudioDeviceDescription::kDefaultDeviceId, false);
+ audio_manager_.get(), &event_handler, &sync_writer, nullptr, params,
+ AudioDeviceDescription::kDefaultDeviceId, false, audio_task_runner());
ASSERT_TRUE(controller.get());
controller->Record();
« 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