Index: base/threading/thread_collision_warner_unittest.cc |
diff --git a/base/threading/thread_collision_warner_unittest.cc b/base/threading/thread_collision_warner_unittest.cc |
index 4613955bfac958412691ed98b461cb76391f0eeb..d9e535b800874e8006f69f3f1695b080ed73e617 100644 |
--- a/base/threading/thread_collision_warner_unittest.cc |
+++ b/base/threading/thread_collision_warner_unittest.cc |
@@ -190,7 +190,7 @@ TEST(ThreadCollisionTest, MTScopedBookCriticalSectionTest) { |
void push(int value) { |
DFAKE_SCOPED_LOCK(push_pop_); |
- base::PlatformThread::Sleep(5000); |
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(5)); |
} |
int pop() { |
@@ -248,7 +248,7 @@ TEST(ThreadCollisionTest, MTSynchedScopedBookCriticalSectionTest) { |
void push(int value) { |
DFAKE_SCOPED_LOCK(push_pop_); |
- base::PlatformThread::Sleep(2000); |
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); |
} |
int pop() { |
@@ -318,7 +318,7 @@ TEST(ThreadCollisionTest, MTSynchedScopedRecursiveBookCriticalSectionTest) { |
void push(int) { |
DFAKE_SCOPED_RECURSIVE_LOCK(push_pop_); |
bar(); |
- base::PlatformThread::Sleep(2000); |
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); |
} |
int pop() { |