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

Unified Diff: chrome/browser/net/connect_interceptor_unittest.cc

Issue 9088015: Fix Sleep() calls to use TimeDelta in portions of chrome/browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 12 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
« no previous file with comments | « chrome/browser/metrics/metrics_service_uitest.cc ('k') | chrome/browser/net/url_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/connect_interceptor_unittest.cc
diff --git a/chrome/browser/net/connect_interceptor_unittest.cc b/chrome/browser/net/connect_interceptor_unittest.cc
index ba6d7773d84b7da051e64e32645da4a9d0ed5937..2d68f92c5ed80123f9975ef18e8fb7dead78453e 100644
--- a/chrome/browser/net/connect_interceptor_unittest.cc
+++ b/chrome/browser/net/connect_interceptor_unittest.cc
@@ -65,7 +65,7 @@ TEST(ConnectInterceptorTest, TimedCacheEviction) {
cache.SetRecentlySeen(url);
// Sleep at least long enough to cause an eviction.
- base::PlatformThread::Sleep(30);
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(30));
EXPECT_FALSE(cache.WasRecentlySeen(url));
}
« no previous file with comments | « chrome/browser/metrics/metrics_service_uitest.cc ('k') | chrome/browser/net/url_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698