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

Unified Diff: chrome/installer/setup/setup_util_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/setup/setup_util_unittest.cc
diff --git a/chrome/installer/setup/setup_util_unittest.cc b/chrome/installer/setup/setup_util_unittest.cc
index 61d3f156c578d70a191ddcf5f14dd29976076a4f..0ea51c3db0f43fc6aed834755a6ca078b6eeaf64 100644
--- a/chrome/installer/setup/setup_util_unittest.cc
+++ b/chrome/installer/setup/setup_util_unittest.cc
@@ -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));
}

Powered by Google App Engine
This is Rietveld 408576698