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

Unified Diff: net/base/cookie_store_unittest.h

Issue 9572036: Convert uses of int ms to TimeDelta in chrome/browser and net. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add more TimeDelta integration. Created 8 years, 10 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/ssl/ssl_browser_tests.cc ('k') | net/base/host_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_store_unittest.h
diff --git a/net/base/cookie_store_unittest.h b/net/base/cookie_store_unittest.h
index 654f3d141a4c8640ec574472a8639c2b361f5697..862edbbbe6fdb419ceed3262297fc99de887b51d 100644
--- a/net/base/cookie_store_unittest.h
+++ b/net/base/cookie_store_unittest.h
@@ -211,7 +211,7 @@ class CookieStoreTest : public testing::Test {
CookieStoreTestTraits::creation_time_granularity_in_ms);
while (!matched && base::Time::Now() <= polling_end_date) {
- base::PlatformThread::Sleep(10);
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(10));
cookies = GetCookies(cs, url);
matched = (TokenizeCookieLine(line) == TokenizeCookieLine(cookies));
}
@@ -849,10 +849,12 @@ TYPED_TEST_P(CookieStoreTest, CookieOrdering) {
"c=1"));
EXPECT_TRUE(this->SetCookie(cs, GURL("http://b.a.google.com/aa/bb/cc/x.html"),
"d=1; domain=b.a.google.com"));
- base::PlatformThread::Sleep(TypeParam::creation_time_granularity_in_ms);
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(
+ TypeParam::creation_time_granularity_in_ms));
EXPECT_TRUE(this->SetCookie(cs, GURL("http://b.a.google.com/aa/bb/cc/x.html"),
"a=4; domain=b.a.google.com"));
- base::PlatformThread::Sleep(TypeParam::creation_time_granularity_in_ms);
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(
+ TypeParam::creation_time_granularity_in_ms));
EXPECT_TRUE(this->SetCookie(cs,
GURL("http://c.b.a.google.com/aa/bb/cc/x.html"),
"e=1; domain=c.b.a.google.com"));
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | net/base/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698