summaryrefslogtreecommitdiffstats
path: root/net/cookies/cookie_monster_store_test.cc
diff options
context:
space:
mode:
authorerikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 18:39:04 +0000
committererikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 18:39:04 +0000
commitab2d75c8443526b2456e8cc1414f5211760c4d61 (patch)
tree41a4da732198f903e53e9a5815fd33c4727fdba2 /net/cookies/cookie_monster_store_test.cc
parent01021c4f97685dd139dd565926745ab9f779e07b (diff)
downloadchromium_src-ab2d75c8443526b2456e8cc1414f5211760c4d61.zip
chromium_src-ab2d75c8443526b2456e8cc1414f5211760c4d61.tar.gz
chromium_src-ab2d75c8443526b2456e8cc1414f5211760c4d61.tar.bz2
Adding Priority field to cookies.
This CL focuses on cookie parser, CanonicalCookie, and making callers pass PRIORITY_DEFAULT where applicable. What's NOT included in this CL: - TODO(rogerm): Persistence in SQL database. - TODO(huangs): Using cookie priority to affect cookie eviction. - TODO(huangs): Make priorities available for extension API (right now default value is used to set). - TODO(lower priority): Cookie viewer update. - TODO(lower priority): WebCookie update in webkit/glue. BUG=232693 Review URL: https://codereview.chromium.org/14113014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/cookies/cookie_monster_store_test.cc')
-rw-r--r--net/cookies/cookie_monster_store_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/cookies/cookie_monster_store_test.cc b/net/cookies/cookie_monster_store_test.cc
index 58fb690..9892fe7 100644
--- a/net/cookies/cookie_monster_store_test.cc
+++ b/net/cookies/cookie_monster_store_test.cc
@@ -9,6 +9,7 @@
#include "base/stringprintf.h"
#include "base/time.h"
#include "googleurl/src/gurl.h"
+#include "net/cookies/cookie_constants.h"
#include "net/cookies/cookie_util.h"
#include "net/cookies/parsed_cookie.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -116,7 +117,7 @@ CanonicalCookie BuildCanonicalCookie(const std::string& key,
return CanonicalCookie(
GURL(), pc.Name(), pc.Value(), key, cookie_path,
creation_time, cookie_expires, creation_time,
- pc.IsSecure(), pc.IsHttpOnly());
+ pc.IsSecure(), pc.IsHttpOnly(), pc.Priority());
}
void AddCookieToList(
@@ -209,7 +210,8 @@ CookieMonster* CreateMonsterFromStoreForGC(
CanonicalCookie cc(
GURL(), "a", "1", base::StringPrintf("h%05d.izzle", i), "/path",
- creation_time, expiration_time, last_access_time, false, false);
+ creation_time, expiration_time, last_access_time, false, false,
+ COOKIE_PRIORITY_DEFAULT);
store->AddCookie(cc);
}