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

Unified Diff: content/browser/net/sqlite_persistent_cookie_store_unittest.cc

Issue 14113014: Adding Priority field to cookies. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed enums PRIORITY_* to COOKIE_PRIORITY_*. Created 7 years, 8 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 | « content/browser/net/sqlite_persistent_cookie_store_perftest.cc ('k') | net/cookies/canonical_cookie.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/net/sqlite_persistent_cookie_store_unittest.cc
diff --git a/content/browser/net/sqlite_persistent_cookie_store_unittest.cc b/content/browser/net/sqlite_persistent_cookie_store_unittest.cc
index eb16378bfa586ca6033160f7d2c85e118f798f95..49068717fa6c2dc0526972be6c210b978a08eae6 100644
--- a/content/browser/net/sqlite_persistent_cookie_store_unittest.cc
+++ b/content/browser/net/sqlite_persistent_cookie_store_unittest.cc
@@ -21,6 +21,7 @@
#include "base/time.h"
#include "googleurl/src/gurl.h"
#include "net/cookies/canonical_cookie.h"
+#include "net/cookies/cookie_constants.h"
#include "sql/connection.h"
#include "sql/meta_table.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -120,7 +121,8 @@ class SQLitePersistentCookieStoreTest : public testing::Test {
const base::Time& creation) {
store_->AddCookie(
net::CanonicalCookie(GURL(), name, value, domain, path, creation,
- creation, creation, false, false));
+ creation, creation, false, false,
+ net::COOKIE_PRIORITY_DEFAULT));
}
virtual void SetUp() OVERRIDE {
@@ -314,7 +316,8 @@ TEST_F(SQLitePersistentCookieStoreTest, TestLoadOldSessionCookies) {
store_->AddCookie(
net::CanonicalCookie(
GURL(), "C", "D", "sessioncookie.com", "/", base::Time::Now(),
- base::Time(), base::Time::Now(), false, false));
+ base::Time(), base::Time::Now(), false, false,
+ net::COOKIE_PRIORITY_DEFAULT));
// Force the store to write its data to the disk.
DestroyStore();
@@ -340,7 +343,8 @@ TEST_F(SQLitePersistentCookieStoreTest, TestDontLoadOldSessionCookies) {
store_->AddCookie(
net::CanonicalCookie(
GURL(), "C", "D", "sessioncookie.com", "/", base::Time::Now(),
- base::Time(), base::Time::Now(), false, false));
+ base::Time(), base::Time::Now(), false, false,
+ net::COOKIE_PRIORITY_DEFAULT));
// Force the store to write its data to the disk.
DestroyStore();
@@ -370,13 +374,15 @@ TEST_F(SQLitePersistentCookieStoreTest, PersistIsPersistent) {
store_->AddCookie(
net::CanonicalCookie(
GURL(), kSessionName, "val", "sessioncookie.com", "/",
- base::Time::Now(), base::Time(), base::Time::Now(), false, false));
+ base::Time::Now(), base::Time(), base::Time::Now(), false, false,
+ net::COOKIE_PRIORITY_DEFAULT));
// Add a persistent cookie.
store_->AddCookie(
net::CanonicalCookie(
GURL(), kPersistentName, "val", "sessioncookie.com", "/",
base::Time::Now() - base::TimeDelta::FromDays(1), base::Time::Now(),
- base::Time::Now(), false, false));
+ base::Time::Now(), false, false,
+ net::COOKIE_PRIORITY_DEFAULT));
// Create a store that loads session cookie and test that the the IsPersistent
// attribute is restored.
« no previous file with comments | « content/browser/net/sqlite_persistent_cookie_store_perftest.cc ('k') | net/cookies/canonical_cookie.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698