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

Unified Diff: net/base/cookie_monster_unittest.cc

Issue 118011: Increase cookie limit to 3000. This matches Firefox 3.5 and Firefox trunk.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « 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
===================================================================
--- net/base/cookie_monster_unittest.cc (revision 17200)
+++ net/base/cookie_monster_unittest.cc (working copy)
@@ -854,7 +854,7 @@
net::CookieMonster cm(kLastAccessThresholdSeconds);
// Add a bunch of cookies on a bunch of host, some should get purged.
const GURL sticky_cookie("http://a0000.izzle");
- for (int i = 0; i < 2000; ++i) {
+ for (int i = 0; i < 4000; ++i) {
GURL url(StringPrintf("http://a%04d.izzle", i));
EXPECT_TRUE(cm.SetCookie(url, "a=b"));
EXPECT_EQ("a=b", cm.GetCookies(url));
@@ -869,12 +869,12 @@
}
// Check that cookies that still exist.
- for (int i = 0; i < 2000; ++i) {
+ for (int i = 0; i < 4000; ++i) {
GURL url(StringPrintf("http://a%04d.izzle", i));
- if ((i == 0) || (i > 1101)) {
+ if ((i == 0) || (i > 1001)) {
// Cookies should still be around.
EXPECT_FALSE(cm.GetCookies(url).empty());
- } else if (i < 901) {
+ } else if (i < 701) {
// Cookies should have gotten purged.
EXPECT_TRUE(cm.GetCookies(url).empty());
}
« 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