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

Unified Diff: net/base/cookie_monster_unittest.cc

Issue 8473010: Mark a cookie as session cookie, if the expiry date cannot be parsed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « net/base/cookie_monster.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_monster_unittest.cc
diff --git a/net/base/cookie_monster_unittest.cc b/net/base/cookie_monster_unittest.cc
index 5e2db5bb1b986c2d8ac1b63de7a3b2e8414bb65a..ce8d9ae29c5d4095e413c0149af5a019d2a8132e 100644
--- a/net/base/cookie_monster_unittest.cc
+++ b/net/base/cookie_monster_unittest.cc
@@ -3570,4 +3570,13 @@ TEST_F(CookieMonsterTest, ShortLivedSessionCookies) {
EXPECT_EQ(0U, cookies.size());
}
+TEST_F(CookieMonsterTest, InvalidExpiryTime) {
+ CookieMonster::ParsedCookie pc(
+ std::string(kValidCookieLine) + "; expires=Blarg arg arg");
+ scoped_ptr<CookieMonster::CanonicalCookie> cookie(
+ CookieMonster::CanonicalCookie::Create(url_google_, pc));
+
+ ASSERT_FALSE(cookie->DoesExpire());
+}
+
} // namespace net
« no previous file with comments | « net/base/cookie_monster.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698