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

Unified Diff: base/test/test_suite.cc

Issue 2445763002: Disallow posting tasks to SequencedWorkerPools by default. (Closed)
Patch Set: CR gab #57 Created 4 years, 1 month 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: base/test/test_suite.cc
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc
index a56dc59fecceff86f96180938be3049414e62c32..aaaf8c1b0ac31caa7734f80e423898a1cea412d4 100644
--- a/base/test/test_suite.cc
+++ b/base/test/test_suite.cc
@@ -31,6 +31,7 @@
#include "base/test/multiprocess_test.h"
#include "base/test/test_switches.h"
#include "base/test/test_timeouts.h"
+#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -369,6 +370,11 @@ void TestSuite::Initialize() {
#endif
#endif
+ // Enable SequencedWorkerPool in tests.
+ // TODO(fdoray): Remove this once the SequencedWorkerPool to TaskScheduler
+ // redirection experiment concludes https://crbug.com/622400.
+ SequencedWorkerPool::EnableForProcess();
+
CatchMaybeTests();
ResetCommandLine();
AddTestLauncherResultPrinter();

Powered by Google App Engine
This is Rietveld 408576698