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 /net/dns | |
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 'net/dns')
-rw-r--r-- | net/dns/dns_config_service_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/dns/dns_config_service_unittest.cc b/net/dns/dns_config_service_unittest.cc index 9692f33..ee76a9a 100644 --- a/net/dns/dns_config_service_unittest.cc +++ b/net/dns/dns_config_service_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. @@ -88,7 +88,7 @@ TEST_F(DnsConfigServiceTest, GetSystemConfig) { scoped_ptr<DnsConfigService> service(DnsConfigService::CreateSystemService()); // Quit the loop after timeout unless cancelled - const int64 kTimeout = TestTimeouts::action_timeout_ms(); + const base::TimeDelta kTimeout = TestTimeouts::action_timeout(); base::WeakPtrFactory<DnsConfigServiceTest> factory_(this); MessageLoop::current()->PostDelayedTask( FROM_HERE, @@ -100,7 +100,7 @@ TEST_F(DnsConfigServiceTest, GetSystemConfig) { quit_on_config_ = true; MessageLoop::current()->Run(); ASSERT_TRUE(last_config_.IsValid()) << "Did not receive DnsConfig in " << - kTimeout << "ms"; + kTimeout.InMilliseconds() << "ms"; } #endif // OS_POSIX || OS_WIN |