summaryrefslogtreecommitdiffstats
path: root/base/tools_sanity_unittest.cc
diff options
context:
space:
mode:
authortedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-31 22:53:51 +0000
committertedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-31 22:53:51 +0000
commita1b75b94f61d90054e3b432e8be3c897383450bd (patch)
tree22a388ee703fe9aa05aab3cb850e0012c3b501f8 /base/tools_sanity_unittest.cc
parentd117d35a46d16907c89b92e5ed03d40690fb8f81 (diff)
downloadchromium_src-a1b75b94f61d90054e3b432e8be3c897383450bd.zip
chromium_src-a1b75b94f61d90054e3b432e8be3c897383450bd.tar.gz
chromium_src-a1b75b94f61d90054e3b432e8be3c897383450bd.tar.bz2
Change code in base (primarily unit tests) to use Sleep(TimeDelta).
BUG=108171 TEST= Review URL: http://codereview.chromium.org/9055001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116065 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tools_sanity_unittest.cc')
-rw-r--r--base/tools_sanity_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc
index 547fc98c..60ac015 100644
--- a/base/tools_sanity_unittest.cc
+++ b/base/tools_sanity_unittest.cc
@@ -170,7 +170,7 @@ class TOOLS_SANITY_TEST_CONCURRENT_THREAD : public PlatformThread::Delegate {
// Sleep for a few milliseconds so the two threads are more likely to live
// simultaneously. Otherwise we may miss the report due to mutex
// lock/unlock's inside thread creation code in pure-happens-before mode...
- PlatformThread::Sleep(100);
+ PlatformThread::Sleep(TimeDelta::FromMilliseconds(100));
}
private:
bool *value_;
@@ -186,7 +186,7 @@ class ReleaseStoreThread : public PlatformThread::Delegate {
// Sleep for a few milliseconds so the two threads are more likely to live
// simultaneously. Otherwise we may miss the report due to mutex
// lock/unlock's inside thread creation code in pure-happens-before mode...
- PlatformThread::Sleep(100);
+ PlatformThread::Sleep(TimeDelta::FromMilliseconds(100));
}
private:
base::subtle::Atomic32 *value_;
@@ -198,7 +198,7 @@ class AcquireLoadThread : public PlatformThread::Delegate {
~AcquireLoadThread() {}
void ThreadMain() {
// Wait for the other thread to make Release_Store
- PlatformThread::Sleep(100);
+ PlatformThread::Sleep(TimeDelta::FromMilliseconds(100));
base::subtle::Acquire_Load(value_);
}
private: