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

Unified Diff: media/audio/audio_manager_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_manager_base.cc ('k') | media/audio/mock_audio_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_unittest.cc
diff --git a/media/audio/audio_manager_unittest.cc b/media/audio/audio_manager_unittest.cc
index 93a751b2a3a05bc23452967038232b899953ca9f..904ee12fd9847dffdbf3527025e3a8dd1cb09a87 100644
--- a/media/audio/audio_manager_unittest.cc
+++ b/media/audio/audio_manager_unittest.cc
@@ -570,10 +570,8 @@ TEST_F(AudioManagerTest, GetAssociatedOutputDeviceID) {
class MockAudioDebugRecordingManager : public AudioDebugRecordingManager {
public:
MockAudioDebugRecordingManager(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner)
- : AudioDebugRecordingManager(std::move(task_runner),
- std::move(file_task_runner)) {}
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ : AudioDebugRecordingManager(std::move(task_runner)) {}
~MockAudioDebugRecordingManager() override {}
@@ -624,10 +622,9 @@ class TestAudioManager : public FakeAudioManager {
}
std::unique_ptr<AudioDebugRecordingManager> CreateAudioDebugRecordingManager(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) override {
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) override {
return base::MakeUnique<MockAudioDebugRecordingManager>(
- std::move(task_runner), std::move(file_task_runner));
+ std::move(task_runner));
}
};
@@ -662,8 +659,7 @@ TEST_F(AudioManagerTest, AudioDebugRecording) {
// Initialize is normally done in AudioManager::Create(), but since we don't
// use that in this test, we need to initialize here.
- audio_manager_->InitializeOutputDebugRecording(
- audio_manager_->GetTaskRunner());
+ audio_manager_->InitializeOutputDebugRecording();
MockAudioDebugRecordingManager* mock_debug_recording_manager =
static_cast<MockAudioDebugRecordingManager*>(
« no previous file with comments | « media/audio/audio_manager_base.cc ('k') | media/audio/mock_audio_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698