summaryrefslogtreecommitdiff
path: root/chromium/content/browser/browser_main_loop_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/browser_main_loop_unittest.cc')
-rw-r--r--chromium/content/browser/browser_main_loop_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/content/browser/browser_main_loop_unittest.cc b/chromium/content/browser/browser_main_loop_unittest.cc
index 76fab428647..28451f3ec3d 100644
--- a/chromium/content/browser/browser_main_loop_unittest.cc
+++ b/chromium/content/browser/browser_main_loop_unittest.cc
@@ -27,11 +27,12 @@ TEST(BrowserMainLoopTest, CreateThreadsInSingleProcess) {
*scoped_command_line.GetProcessCommandLine());
BrowserMainLoop browser_main_loop(main_function_params);
browser_main_loop.MainMessageLoopStart();
+ browser_main_loop.InitializeIOThreadForTesting();
browser_main_loop.CreateThreads();
EXPECT_GE(base::TaskScheduler::GetInstance()
->GetMaxConcurrentNonBlockedTasksWithTraitsDeprecated(
{base::TaskPriority::USER_VISIBLE}),
- base::SysInfo::NumberOfProcessors());
+ base::SysInfo::NumberOfProcessors() - 1);
browser_main_loop.ShutdownThreadsAndCleanUp();
}
for (int id = BrowserThread::UI; id < BrowserThread::ID_COUNT; ++id) {