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 c491a4a13450b6edb31c8b233ed99ab16f1e5c0f..50e0caeb1c7059f467376c2ac7311a3eb01e841f 100644 |
--- a/base/task_scheduler/task_scheduler_impl_unittest.cc |
+++ b/base/task_scheduler/task_scheduler_impl_unittest.cc |
@@ -158,7 +158,8 @@ std::vector<TraitsExecutionModePair> GetTraitsExecutionModePairs() { |
// TaskTraits runs on a thread with the expected priority and I/O restrictions. |
// The ExecutionMode parameter is ignored by this test. |
TEST_P(TaskSchedulerImplTest, PostTaskWithTraits) { |
- WaitableEvent task_ran(true, false); |
+ WaitableEvent task_ran(WaitableEvent::ResetPolicy::MANUAL, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
scheduler_->PostTaskWithTraits( |
FROM_HERE, GetParam().traits, |
Bind(&VerifyTaskEnvironementAndSignalEvent, GetParam().traits, |