Index: base/threading/sequenced_task_runner_handle_unittest.cc |
diff --git a/base/threading/sequenced_task_runner_handle_unittest.cc b/base/threading/sequenced_task_runner_handle_unittest.cc |
index 21969745515a0b7f8ca387d645c35060d1544d17..381aa51d77a3d273a9e69fe1a6d65b3a2ef6ce6d 100644 |
--- a/base/threading/sequenced_task_runner_handle_unittest.cc |
+++ b/base/threading/sequenced_task_runner_handle_unittest.cc |
@@ -63,7 +63,8 @@ TEST_F(SequencedTaskRunnerHandleTest, FromSequencedWorkerPoolTask) { |
// Wrap the SequencedWorkerPool to avoid leaks due to its asynchronous |
// destruction. |
SequencedWorkerPoolOwner owner(3, "Test"); |
- WaitableEvent event(false, false); |
+ WaitableEvent event(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
owner.pool()->PostSequencedWorkerTask( |
owner.pool()->GetSequenceToken(), FROM_HERE, |
base::Bind( |
@@ -77,7 +78,8 @@ TEST_F(SequencedTaskRunnerHandleTest, FromUnsequencedTask) { |
// Wrap the SequencedWorkerPool to avoid leaks due to its asynchronous |
// destruction. |
SequencedWorkerPoolOwner owner(3, "Test"); |
- WaitableEvent event(false, false); |
+ WaitableEvent event(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
owner.pool()->PostWorkerTask( |
FROM_HERE, |
base::Bind( |