Index: base/posix/unix_domain_socket_linux_unittest.cc |
diff --git a/base/posix/unix_domain_socket_linux_unittest.cc b/base/posix/unix_domain_socket_linux_unittest.cc |
index e4b63c0cd4808803f68a7fd368b48342b05cd502..3f5173cfc21c15f2c3e9870f49d4861602b0fe82 100644 |
--- a/base/posix/unix_domain_socket_linux_unittest.cc |
+++ b/base/posix/unix_domain_socket_linux_unittest.cc |
@@ -52,7 +52,8 @@ TEST(UnixDomainSocketTest, SendRecvMsgAbortOnReplyFDClose) { |
message_fds.clear(); |
// Check that the thread didn't get blocked. |
- WaitableEvent event(false, false); |
+ WaitableEvent event(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
message_thread.task_runner()->PostTask( |
FROM_HERE, Bind(&WaitableEvent::Signal, Unretained(&event))); |
ASSERT_TRUE(event.TimedWait(TimeDelta::FromMilliseconds(5000))); |