Index: base/threading/thread_unittest.cc |
diff --git a/base/threading/thread_unittest.cc b/base/threading/thread_unittest.cc |
index 7bf83f81a45cd15061622a89d7fb0d0e5d74f5a6..b01f52fdb3a62788206d7829f842cc590bf6f359 100644 |
--- a/base/threading/thread_unittest.cc |
+++ b/base/threading/thread_unittest.cc |
@@ -214,7 +214,8 @@ TEST_F(ThreadTest, ThreadId) { |
b.Start(); |
// Post a task that calls GetThreadId() on the created thread. |
- base::WaitableEvent event(false, false); |
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::AUTOMATIC, |
+ base::WaitableEvent::InitialState::NOT_SIGNALED); |
base::PlatformThreadId id_from_new_thread; |
a.task_runner()->PostTask( |
FROM_HERE, base::Bind(ReturnThreadId, &a, &id_from_new_thread, &event)); |