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

Unified Diff: media/test/run_all_unittests.cc

Issue 2710133003: Replace FFmpegDemuxer thread per element with base::TaskScheduler. (Closed)
Patch Set: Use base::TaskScheduler. 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
« media/filters/ffmpeg_demuxer.cc ('K') | « media/filters/ffmpeg_demuxer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/test/run_all_unittests.cc
diff --git a/media/test/run_all_unittests.cc b/media/test/run_all_unittests.cc
index 57d384c676a1aa18fe73c0ff416b735c2521fe00..681cc7d9bba9e36f1b267bf66f582b96b119828a 100644
--- a/media/test/run_all_unittests.cc
+++ b/media/test/run_all_unittests.cc
@@ -4,6 +4,7 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/task_scheduler/task_scheduler.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_discardable_memory_allocator.h"
#include "base/test/test_suite.h"
@@ -56,6 +57,7 @@ void TestSuiteNoAtExit::Initialize() {
media::InitializeMediaLibrary();
media::SetUpFakeLocalizedStrings();
+ base::TaskScheduler::CreateAndSetSimpleTaskScheduler(1);
gab 2017/02/23 21:37:10 base::test::ScopedTaskScheduler (we typically pref
base::DiscardableMemoryAllocator::SetInstance(&discardable_memory_allocator_);
}
« media/filters/ffmpeg_demuxer.cc ('K') | « media/filters/ffmpeg_demuxer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698