| Index: base/synchronization/lock_unittest.cc
 | 
| diff --git a/base/synchronization/lock_unittest.cc b/base/synchronization/lock_unittest.cc
 | 
| index 5ac3e6b7b1ff7e9c7bba76459dedf3c0424e26b6..1dae49b0437732a18595b37237a76733f10db910 100644
 | 
| --- a/base/synchronization/lock_unittest.cc
 | 
| +++ b/base/synchronization/lock_unittest.cc
 | 
| @@ -25,13 +25,13 @@ class BasicLockTestThread : public PlatformThread::Delegate {
 | 
|      for (int i = 0; i < 10; i++) {
 | 
|        lock_->Acquire();
 | 
|        acquired_++;
 | 
| -      PlatformThread::Sleep(rand() % 20);
 | 
| +      PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
 | 
|        lock_->Release();
 | 
|      }
 | 
|      for (int i = 0; i < 10; i++) {
 | 
|        if (lock_->Try()) {
 | 
|          acquired_++;
 | 
| -        PlatformThread::Sleep(rand() % 20);
 | 
| +        PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
 | 
|          lock_->Release();
 | 
|        }
 | 
|      }
 | 
| @@ -62,20 +62,20 @@ TEST(LockTest, Basic) {
 | 
|    for (int i = 0; i < 10; i++) {
 | 
|      lock.Acquire();
 | 
|      acquired++;
 | 
| -    PlatformThread::Sleep(rand() % 20);
 | 
| +    PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
 | 
|      lock.Release();
 | 
|    }
 | 
|    for (int i = 0; i < 10; i++) {
 | 
|      if (lock.Try()) {
 | 
|        acquired++;
 | 
| -      PlatformThread::Sleep(rand() % 20);
 | 
| +      PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
 | 
|        lock.Release();
 | 
|      }
 | 
|    }
 | 
|    for (int i = 0; i < 5; i++) {
 | 
|      lock.Acquire();
 | 
|      acquired++;
 | 
| -    PlatformThread::Sleep(rand() % 20);
 | 
| +    PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
 | 
|      lock.Release();
 | 
|    }
 | 
|  
 | 
| @@ -154,7 +154,7 @@ class MutexLockTestThread : public PlatformThread::Delegate {
 | 
|      for (int i = 0; i < 40; i++) {
 | 
|        lock->Acquire();
 | 
|        int v = *value;
 | 
| -      PlatformThread::Sleep(rand() % 10);
 | 
| +      PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 10));
 | 
|        *value = v + 1;
 | 
|        lock->Release();
 | 
|      }
 | 
| 
 |