Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8198)

Unified Diff: chrome/installer/util/copy_tree_work_item_unittest.cc

Issue 10020014: Update uses of TimeDelta in chrome/installer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/installer/util/copy_tree_work_item_unittest.cc
diff --git a/chrome/installer/util/copy_tree_work_item_unittest.cc b/chrome/installer/util/copy_tree_work_item_unittest.cc
index 55df83be393df56070b3dd5535f7a0ca5d3cbf50..88cfc0680005b05d2ae1f51c1ce8d76f57c7c10d 100644
--- a/chrome/installer/util/copy_tree_work_item_unittest.cc
+++ b/chrome/installer/util/copy_tree_work_item_unittest.cc
@@ -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());

Powered by Google App Engine
This is Rietveld 408576698