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

Unified Diff: media/audio/audio_manager_unittest.cc

Issue 1897383003: Use AudioManager::CreateForTesting for unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | no next file » | 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 db0196a5d80941e61b1c2dfd70fae9c998d31c9d..9c50d62c311c319ec4ed75116a277a7b5fdf9e81 100644
--- a/media/audio/audio_manager_unittest.cc
+++ b/media/audio/audio_manager_unittest.cc
@@ -63,9 +63,7 @@ struct TestAudioManagerFactory<AudioManagerPulse> {
template <>
struct TestAudioManagerFactory<std::nullptr_t> {
static ScopedAudioManagerPtr Create(AudioLogFactory* audio_log_factory) {
- return AudioManager::Create(base::ThreadTaskRunnerHandle::Get(),
- base::ThreadTaskRunnerHandle::Get(), nullptr,
- audio_log_factory);
+ return AudioManager::CreateForTesting(base::ThreadTaskRunnerHandle::Get());
}
};
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698