Index: base/task_scheduler/scheduler_lock_unittest.cc |
diff --git a/base/task_scheduler/scheduler_lock_unittest.cc b/base/task_scheduler/scheduler_lock_unittest.cc |
index 6267559d1ecb59375f91f4a021ab445c11dd7752..daa50257f18093cff9ab143477b838e010dd2d01 100644 |
--- a/base/task_scheduler/scheduler_lock_unittest.cc |
+++ b/base/task_scheduler/scheduler_lock_unittest.cc |
@@ -56,8 +56,11 @@ class BasicLockAcquireAndWaitThread : public SimpleThread { |
explicit BasicLockAcquireAndWaitThread(SchedulerLock* lock) |
: SimpleThread("BasicLockAcquireAndWaitThread"), |
lock_(lock), |
- lock_acquire_event_(false, false), |
- main_thread_continue_event_(false, false) {} |
+ lock_acquire_event_(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED), |
+ main_thread_continue_event_(WaitableEvent::ResetPolicy::AUTOMATIC, |
+ WaitableEvent::InitialState::NOT_SIGNALED) { |
+ } |
void WaitForLockAcquisition() { |
lock_acquire_event_.Wait(); |