diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-04 16:44:53 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-04 16:44:53 +0000 |
commit | 5761ab9c0748737773196f3ed02616ae6c6a1b59 (patch) | |
tree | 33a2d59a92143e36fb9790822a76e6468b885f19 /base/threading | |
parent | d8f868a635906d720e5a717e5a81f36df211b719 (diff) | |
download | chromium_src-5761ab9c0748737773196f3ed02616ae6c6a1b59.zip chromium_src-5761ab9c0748737773196f3ed02616ae6c6a1b59.tar.gz chromium_src-5761ab9c0748737773196f3ed02616ae6c6a1b59.tar.bz2 |
Fix calls in base and net unit tests to use TimeDelta.
I found another batch of unit tests that needed their Sleep() and
PostDelayedTask() interfaces updated. As far as I know, this is
the last batch of changes required before the deprecated integer
interfaces to these functions can be removed.
R=jar@chromium.org
BUG=108171
TEST=
Review URL: http://codereview.chromium.org/9316036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading')
-rw-r--r-- | base/threading/sequenced_worker_pool_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/threading/sequenced_worker_pool_unittest.cc b/base/threading/sequenced_worker_pool_unittest.cc index a3f26ec..25736d0 100644 --- a/base/threading/sequenced_worker_pool_unittest.cc +++ b/base/threading/sequenced_worker_pool_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -71,7 +71,7 @@ class TestTracker : public base::RefCountedThreadSafe<TestTracker> { SignalWorkerDone(id); } void SlowTask(int id) { - base::PlatformThread::Sleep(1000); + base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); SignalWorkerDone(id); } |