Index: base/threading/worker_pool_unittest.cc |
diff --git a/base/threading/worker_pool_unittest.cc b/base/threading/worker_pool_unittest.cc |
index 27af50be6781810f08e5e836fb3babbe0983c8d2..ef4bed136e95357ac52b6426c74dcfe00a03c715 100644 |
--- a/base/threading/worker_pool_unittest.cc |
+++ b/base/threading/worker_pool_unittest.cc |
@@ -26,7 +26,10 @@ namespace { |
class PostTaskAndReplyTester |
: public base::RefCountedThreadSafe<PostTaskAndReplyTester> { |
public: |
- PostTaskAndReplyTester() : finished_(false), test_event_(false, false) {} |
+ PostTaskAndReplyTester() |
+ : finished_(false), |
+ test_event_(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED) {} |
void RunTest() { |
ASSERT_TRUE(thread_checker_.CalledOnValidThread()); |
@@ -69,8 +72,10 @@ class PostTaskAndReplyTester |
} // namespace |
TEST_F(WorkerPoolTest, PostTask) { |
- WaitableEvent test_event(false, false); |
- WaitableEvent long_test_event(false, false); |
+ WaitableEvent test_event(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
+ WaitableEvent long_test_event(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED); |
WorkerPool::PostTask(FROM_HERE, |
base::Bind(&WaitableEvent::Signal, |