summaryrefslogtreecommitdiffstats
path: root/base/lazy_instance_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/lazy_instance_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/lazy_instance_unittest.cc')
-rw-r--r--base/lazy_instance_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/lazy_instance_unittest.cc b/base/lazy_instance_unittest.cc
index b177745..9ccbbd5 100644
--- a/base/lazy_instance_unittest.cc
+++ b/base/lazy_instance_unittest.cc
@@ -27,7 +27,7 @@ class SlowConstructor {
public:
SlowConstructor() : some_int_(0) {
// Sleep for 1 second to try to cause a race.
- base::PlatformThread::Sleep(1000);
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1));
++constructed;
some_int_ = 12;
}