Index: base/synchronization/waitable_event_unittest.cc |
diff --git a/base/synchronization/waitable_event_unittest.cc b/base/synchronization/waitable_event_unittest.cc |
index ad86d147039a1d19dbe3f880da53ad0750718395..f25326550e4b81993e9f8c79c86d6a62d2e59c8c 100644 |
--- a/base/synchronization/waitable_event_unittest.cc |
+++ b/base/synchronization/waitable_event_unittest.cc |
@@ -77,7 +77,7 @@ class WaitableEventSignaler : public PlatformThread::Delegate { |
} |
void ThreadMain() { |
- PlatformThread::Sleep(static_cast<int>(seconds_ * 1000)); |
+ PlatformThread::Sleep(TimeDelta::FromSeconds(static_cast<int>(seconds_))); |
ev_->Signal(); |
} |