From a1b75b94f61d90054e3b432e8be3c897383450bd Mon Sep 17 00:00:00 2001 From: "tedvessenes@gmail.com" Date: Sat, 31 Dec 2011 22:53:51 +0000 Subject: 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 --- base/tools_sanity_unittest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/tools_sanity_unittest.cc') 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: -- cgit v1.1