Index: base/task_scheduler/task_scheduler_impl_unittest.cc |
diff --git a/base/task_scheduler/task_scheduler_impl_unittest.cc b/base/task_scheduler/task_scheduler_impl_unittest.cc |
index baa3baf5013efeac9741f57652fed250aa8a011c..3098bf3a9044d3d5b874e0eac4187ae6f95d5364 100644 |
--- a/base/task_scheduler/task_scheduler_impl_unittest.cc |
+++ b/base/task_scheduler/task_scheduler_impl_unittest.cc |
@@ -384,7 +384,8 @@ TEST_F(TaskSchedulerImplTest, GetMaxConcurrentTasksWithTraitsDeprecated) { |
TEST_F(TaskSchedulerImplTest, SequencedRunsTasksOnCurrentThread) { |
StartTaskScheduler(); |
auto single_thread_task_runner = |
- scheduler_.CreateSingleThreadTaskRunnerWithTraits(TaskTraits()); |
+ scheduler_.CreateSingleThreadTaskRunnerWithTraits( |
+ TaskTraits(), SingleThreadTaskRunnerThreadMode::SHARED); |
auto sequenced_task_runner = |
scheduler_.CreateSequencedTaskRunnerWithTraits(TaskTraits()); |
@@ -409,7 +410,8 @@ TEST_F(TaskSchedulerImplTest, SingleThreadRunsTasksOnCurrentThread) { |
auto sequenced_task_runner = |
scheduler_.CreateSequencedTaskRunnerWithTraits(TaskTraits()); |
auto single_thread_task_runner = |
- scheduler_.CreateSingleThreadTaskRunnerWithTraits(TaskTraits()); |
+ scheduler_.CreateSingleThreadTaskRunnerWithTraits( |
+ TaskTraits(), SingleThreadTaskRunnerThreadMode::SHARED); |
WaitableEvent task_ran(WaitableEvent::ResetPolicy::MANUAL, |
WaitableEvent::InitialState::NOT_SIGNALED); |
@@ -428,8 +430,8 @@ TEST_F(TaskSchedulerImplTest, SingleThreadRunsTasksOnCurrentThread) { |
#if defined(OS_WIN) |
TEST_F(TaskSchedulerImplTest, COMSTATaskRunnersRunWithCOMSTA) { |
StartTaskScheduler(); |
- auto com_sta_task_runner = |
- scheduler_.CreateCOMSTATaskRunnerWithTraits(TaskTraits()); |
+ auto com_sta_task_runner = scheduler_.CreateCOMSTATaskRunnerWithTraits( |
+ TaskTraits(), SingleThreadTaskRunnerThreadMode::SHARED); |
WaitableEvent task_ran(WaitableEvent::ResetPolicy::MANUAL, |
WaitableEvent::InitialState::NOT_SIGNALED); |