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

Unified Diff: content/renderer/media_recorder/audio_track_recorder_unittest.cc

Issue 2800893002: Use ScopedTaskEnvironment instead of MessageLoop in content unit tests. (Closed)
Patch Set: Created 3 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 | « content/renderer/media_capture_from_element/html_audio_element_capturer_source_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media_recorder/audio_track_recorder_unittest.cc
diff --git a/content/renderer/media_recorder/audio_track_recorder_unittest.cc b/content/renderer/media_recorder/audio_track_recorder_unittest.cc
index 6929364c4754c189676a93372c37cb75e6ede6d1..fe85b99cf219349b503aba540e7d6074877b72c5 100644
--- a/content/renderer/media_recorder/audio_track_recorder_unittest.cc
+++ b/content/renderer/media_recorder/audio_track_recorder_unittest.cc
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "base/run_loop.h"
#include "base/stl_util.h"
+#include "base/test/scoped_task_environment.h"
#include "base/time/time.h"
#include "content/renderer/media/media_stream_audio_source.h"
#include "media/audio/simple_sources.h"
@@ -191,7 +192,7 @@ class AudioTrackRecorderTest : public TestWithParam<ATRTestParams> {
DoOnEncodedAudio(params, *encoded_data, timestamp);
}
- const base::MessageLoop message_loop_;
+ const base::test::ScopedTaskEnvironment scoped_task_environment_;
// ATR and WebMediaStreamTrack for fooling it.
std::unique_ptr<AudioTrackRecorder> audio_track_recorder_;
« no previous file with comments | « content/renderer/media_capture_from_element/html_audio_element_capturer_source_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698