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

Unified Diff: ios/net/cookies/cookie_store_ios_unittest.mm

Issue 2159373002: net: make CanonicalCookie's constructor private (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: matt's review Created 4 years, 5 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 | « ios/net/cookies/cookie_cache_unittest.cc ('k') | ios/net/cookies/system_cookie_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/cookies/cookie_store_ios_unittest.mm
diff --git a/ios/net/cookies/cookie_store_ios_unittest.mm b/ios/net/cookies/cookie_store_ios_unittest.mm
index d709910ed6794047ddf55de63fcc2986923feb47..d2a92b107a5bbc732aaa8f411dc60c0f6880fddb 100644
--- a/ios/net/cookies/cookie_store_ios_unittest.mm
+++ b/ios/net/cookies/cookie_store_ios_unittest.mm
@@ -259,16 +259,17 @@ class TestPersistentCookieStore
// Some canonical cookies cannot be converted into System cookies, for
// example if value is not valid utf8. Such cookies are ignored.
- net::CanonicalCookie* bad_canonical_cookie = new net::CanonicalCookie(
- kTestCookieURL, "name", "\x81r\xe4\xbd\xa0\xe5\xa5\xbd", "domain",
- "path/",
- base::Time(), // creation
- base::Time(), // expires
- base::Time(), // last_access
- false, // secure
- false, // httponly
- net::CookieSameSite::DEFAULT_MODE, net::COOKIE_PRIORITY_DEFAULT);
- cookies.push_back(bad_canonical_cookie);
+ std::unique_ptr<net::CanonicalCookie> bad_canonical_cookie(
+ net::CanonicalCookie::Create(GURL("http://domain"), "name",
droger 2016/07/22 08:58:10 Is this now returning NULL? Could it be because t
tfarina 2016/07/22 12:37:15 I added it back but I think it still returns NULL.
mmenke 2016/07/22 14:52:44 I think the path is invalid - it needs a leading s
tfarina 2016/07/22 19:50:01 Thanks Matt! ios_net_unittests is green again with
+ "\x81r\xe4\xbd\xa0\xe5\xa5\xbd",
+ std::string(), "path/",
+ base::Time(), // creation
+ base::Time(), // expires
+ false, // secure
+ false, // httponly
+ net::CookieSameSite::DEFAULT_MODE, false,
+ net::COOKIE_PRIORITY_DEFAULT));
+ cookies.push_back(bad_canonical_cookie.release());
loaded_callback_.Run(cookies);
}
« no previous file with comments | « ios/net/cookies/cookie_cache_unittest.cc ('k') | ios/net/cookies/system_cookie_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698