| Index: chrome/browser/sync/syncable/syncable_unittest.cc
|
| diff --git a/chrome/browser/sync/syncable/syncable_unittest.cc b/chrome/browser/sync/syncable/syncable_unittest.cc
|
| index a18930a97bc8c4f17695bcac80363c472dbf914b..18154084b305b8f1d1cdff135d75458e4af2eadc 100644
|
| --- a/chrome/browser/sync/syncable/syncable_unittest.cc
|
| +++ b/chrome/browser/sync/syncable/syncable_unittest.cc
|
| @@ -1548,7 +1548,8 @@ class StressTransactionsDelegate : public base::PlatformThread::Delegate {
|
| if (rand_action < 4 && !path_name.empty()) {
|
| ReadTransaction trans(FROM_HERE, dir_);
|
| CHECK(1 == CountEntriesWithName(&trans, trans.root_id(), path_name));
|
| - base::PlatformThread::Sleep(rand() % 10);
|
| + base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(
|
| + rand() % 10));
|
| } else {
|
| std::string unique_name =
|
| base::StringPrintf("%d.%d", thread_number_, entry_count++);
|
| @@ -1556,7 +1557,8 @@ class StressTransactionsDelegate : public base::PlatformThread::Delegate {
|
| WriteTransaction trans(FROM_HERE, UNITTEST, dir_);
|
| MutableEntry e(&trans, CREATE, trans.root_id(), path_name);
|
| CHECK(e.good());
|
| - base::PlatformThread::Sleep(rand() % 20);
|
| + base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(
|
| + rand() % 20));
|
| e.Put(IS_UNSYNCED, true);
|
| if (e.Put(ID, TestIdFactory::FromNumber(rand())) &&
|
| e.Get(ID).ServerKnows() && !e.Get(ID).IsRoot()) {
|
|
|