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

Unified Diff: media/audio/mac/audio_auhal_mac_unittest.cc

Issue 1806313003: Pass task runners to AudioManager constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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: media/audio/mac/audio_auhal_mac_unittest.cc
diff --git a/media/audio/mac/audio_auhal_mac_unittest.cc b/media/audio/mac/audio_auhal_mac_unittest.cc
index 73191cd2f56d06150bbba3b6dcc2717689867574..d89664df060bac29b71e343a4e4adfcd3c263958 100644
--- a/media/audio/mac/audio_auhal_mac_unittest.cc
+++ b/media/audio/mac/audio_auhal_mac_unittest.cc
@@ -35,7 +35,7 @@ class AUHALStreamTest : public testing::Test {
public:
AUHALStreamTest()
: message_loop_(base::MessageLoop::TYPE_UI),
- manager_(AudioManager::CreateForTesting()) {
+ manager_(AudioManager::CreateForTesting(message_loop_.task_runner())) {
// Wait for the AudioManager to finish any initialization on the audio loop.
base::RunLoop().RunUntilIdle();
}
@@ -53,7 +53,7 @@ class AUHALStreamTest : public testing::Test {
protected:
base::MessageLoop message_loop_;
- scoped_ptr<AudioManager> manager_;
+ ScopedAudioManagerPtr manager_;
MockAudioSourceCallback source_;
private:

Powered by Google App Engine
This is Rietveld 408576698