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 d7462147fcb2b6165910e48009a768291f19b740..43f8d745bd2f5f6495afee1560c1be7f9491dfe1 100644 |
--- a/base/task_scheduler/task_scheduler_impl_unittest.cc |
+++ b/base/task_scheduler/task_scheduler_impl_unittest.cc |
@@ -185,24 +185,29 @@ class TaskSchedulerImplTest |
void SetUp() override { |
using IORestriction = SchedulerWorkerPoolParams::IORestriction; |
+ using StandbyThreadPolicy = SchedulerWorkerPoolParams::StandbyThreadPolicy; |
std::vector<SchedulerWorkerPoolParams> params_vector; |
ASSERT_EQ(BACKGROUND_WORKER_POOL, params_vector.size()); |
params_vector.emplace_back("Background", ThreadPriority::BACKGROUND, |
- IORestriction::DISALLOWED, 1U, TimeDelta::Max()); |
+ IORestriction::DISALLOWED, |
+ StandbyThreadPolicy::LAZY, 1U, TimeDelta::Max()); |
ASSERT_EQ(BACKGROUND_FILE_IO_WORKER_POOL, params_vector.size()); |
params_vector.emplace_back("BackgroundFileIO", ThreadPriority::BACKGROUND, |
- IORestriction::ALLOWED, 3U, TimeDelta::Max()); |
+ IORestriction::ALLOWED, |
+ StandbyThreadPolicy::LAZY, 3U, TimeDelta::Max()); |
ASSERT_EQ(FOREGROUND_WORKER_POOL, params_vector.size()); |
params_vector.emplace_back("Foreground", ThreadPriority::NORMAL, |
- IORestriction::DISALLOWED, 4U, TimeDelta::Max()); |
+ IORestriction::DISALLOWED, |
+ StandbyThreadPolicy::LAZY, 4U, TimeDelta::Max()); |
ASSERT_EQ(FOREGROUND_FILE_IO_WORKER_POOL, params_vector.size()); |
- params_vector.emplace_back("ForegroundFileIO", ThreadPriority::NORMAL, |
- IORestriction::ALLOWED, 12U, TimeDelta::Max()); |
+ params_vector.emplace_back( |
+ "ForegroundFileIO", ThreadPriority::NORMAL, IORestriction::ALLOWED, |
+ StandbyThreadPolicy::LAZY, 12U, TimeDelta::Max()); |
scheduler_ = TaskSchedulerImpl::Create(params_vector, |
Bind(&GetThreadPoolIndexForTraits)); |