Index: remoting/test/chromoting_test_driver.cc |
diff --git a/remoting/test/chromoting_test_driver.cc b/remoting/test/chromoting_test_driver.cc |
index abf7a7756f96747c87798ce1d4faee75a0ec3cb3..1e7d73ef1736765bcb2b5433687d3e0a01cc1e10 100644 |
--- a/remoting/test/chromoting_test_driver.cc |
+++ b/remoting/test/chromoting_test_driver.cc |
@@ -9,6 +9,7 @@ |
#include "base/logging.h" |
#include "base/message_loop/message_loop.h" |
#include "base/strings/stringprintf.h" |
+#include "base/task_scheduler/task_scheduler.h" |
#include "base/test/launcher/unit_test_launcher.h" |
#include "base/test/test_suite.h" |
#include "base/test/test_switches.h" |
@@ -182,6 +183,9 @@ int main(int argc, char* argv[]) { |
#endif |
} |
+ const int kMaxBackgroundThreads = 5; |
+ base::TaskScheduler::CreateAndSetSimpleTaskScheduler(kMaxBackgroundThreads); |
+ |
// Update the logging verbosity level if user specified one. |
std::string verbosity_level( |
command_line->GetSwitchValueASCII(switches::kLoggingLevelSwitchName)); |