diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-31 22:53:51 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-31 22:53:51 +0000 |
commit | a1b75b94f61d90054e3b432e8be3c897383450bd (patch) | |
tree | 22a388ee703fe9aa05aab3cb850e0012c3b501f8 /base/threading/platform_thread_unittest.cc | |
parent | d117d35a46d16907c89b92e5ed03d40690fb8f81 (diff) | |
download | chromium_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/threading/platform_thread_unittest.cc')
-rw-r--r-- | base/threading/platform_thread_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/threading/platform_thread_unittest.cc b/base/threading/platform_thread_unittest.cc index 4b49450..6bff1d4 100644 --- a/base/threading/platform_thread_unittest.cc +++ b/base/threading/platform_thread_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -59,7 +59,7 @@ class FunctionTestThread : public TrivialThread { virtual void ThreadMain() { thread_id_ = PlatformThread::CurrentId(); PlatformThread::YieldCurrentThread(); - PlatformThread::Sleep(50); + PlatformThread::Sleep(TimeDelta::FromMilliseconds(50)); TrivialThread::ThreadMain(); } |