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

Unified Diff: net/cookies/cookie_monster_store_test.cc

Issue 2030233002: net: migrate CreateMonsterFromStoreForGC() to CanonicalCookies::Create method - WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix GarbageCollectionTriggers test Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_monster_store_test.cc
diff --git a/net/cookies/cookie_monster_store_test.cc b/net/cookies/cookie_monster_store_test.cc
index 9d8259000293fb16ed003103a038e5664d56bcd2..5257356e089079c4f6389a6715c0c72e363bc5c0 100644
--- a/net/cookies/cookie_monster_store_test.cc
+++ b/net/cookies/cookie_monster_store_test.cc
@@ -252,11 +252,12 @@ std::unique_ptr<CookieMonster> CreateMonsterFromStoreForGC(
? current - base::TimeDelta::FromDays(days_old)
: current;
- CanonicalCookie cc(GURL(), "a", "1", base::StringPrintf("h%05d.izzle", i),
- "/path", creation_time, expiration_time,
- last_access_time, secure, false,
- CookieSameSite::DEFAULT_MODE, COOKIE_PRIORITY_DEFAULT);
- store->AddCookie(cc);
+ std::unique_ptr<CanonicalCookie> cc(CanonicalCookie::Create(
+ GURL(base::StringPrintf("http://h%05d.izzle/", i)), "a", "1",
+ std::string(), "/path", creation_time, expiration_time, secure, false,
+ CookieSameSite::DEFAULT_MODE, false, COOKIE_PRIORITY_DEFAULT));
+ cc->SetLastAccessDate(last_access_time);
+ store->AddCookie(*cc);
}
return base::WrapUnique(new CookieMonster(store.get(), nullptr));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698