summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-15 06:33:18 +0000
committertedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-15 06:33:18 +0000
commitb79aa1d2f48823b5fd1ee7eca09899493c48fb52 (patch)
tree351002e3cac7c327846bafae020e4416024513ce
parent3ce2bcf01976c598dc043f6ae451b53bf68953a8 (diff)
downloadchromium_src-b79aa1d2f48823b5fd1ee7eca09899493c48fb52.zip
chromium_src-b79aa1d2f48823b5fd1ee7eca09899493c48fb52.tar.gz
chromium_src-b79aa1d2f48823b5fd1ee7eca09899493c48fb52.tar.bz2
Update uses of TimeDelta in chrome/installer.
R=grt@chromium.org BUG=108171 Review URL: http://codereview.chromium.org/10020014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132360 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/installer/setup/setup_util_unittest.cc4
-rw-r--r--chrome/installer/util/copy_tree_work_item_unittest.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/installer/setup/setup_util_unittest.cc b/chrome/installer/setup/setup_util_unittest.cc
index 61d3f15..637c09b 100644
--- a/chrome/installer/setup/setup_util_unittest.cc
+++ b/chrome/installer/setup/setup_util_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.
@@ -147,6 +147,6 @@ TEST_F(SetupUtilTest, DeleteFileFromTempProcess) {
ASSERT_TRUE(file_util::PathExists(test_file));
file_util::WriteFile(test_file, "foo", 3);
EXPECT_TRUE(installer::DeleteFileFromTempProcess(test_file, 0));
- base::PlatformThread::Sleep(200);
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200));
EXPECT_FALSE(file_util::PathExists(test_file));
}
diff --git a/chrome/installer/util/copy_tree_work_item_unittest.cc b/chrome/installer/util/copy_tree_work_item_unittest.cc
index 55df83b..3a19a4c 100644
--- a/chrome/installer/util/copy_tree_work_item_unittest.cc
+++ b/chrome/installer/util/copy_tree_work_item_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.
@@ -472,7 +472,7 @@ TEST_F(CopyTreeWorkItemTest, NewNameAndCopyTest) {
temp_dir_.path(), WorkItem::NEW_NAME_IF_IN_USE,
alternate_to));
if (IsFileInUse(file_name_to))
- base::PlatformThread::Sleep(2000);
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2));
// If file is still in use, the rest of the test will fail.
ASSERT_FALSE(IsFileInUse(file_name_to));
EXPECT_TRUE(work_item->Do());