summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_monster_unittest.cc
diff options
context:
space:
mode:
authorrdsmith@google.com <rdsmith@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 18:17:42 +0000
committerrdsmith@google.com <rdsmith@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 18:17:42 +0000
commit1655ba34a9191e59006bd7a48eb25b98319352e7 (patch)
treea23cc1a3e58c1a92344d8433534e848aa9ab3eb1 /net/base/cookie_monster_unittest.cc
parenta91e1409a1b702892be19b058ad418b92ab4dd28 (diff)
downloadchromium_src-1655ba34a9191e59006bd7a48eb25b98319352e7.zip
chromium_src-1655ba34a9191e59006bd7a48eb25b98319352e7.tar.gz
chromium_src-1655ba34a9191e59006bd7a48eb25b98319352e7.tar.bz2
Converted CanonicalCookies over to containing a domain.
Added perftest for getters in nested subdomains. BUG=8850 TEST=[Linux] net_unittests --gtest_filter=CookieMonsterTest.*:ParsedCookieTest.*, net_perftests --gtest_filter=CookieMonsterTest.* Review URL: http://codereview.chromium.org/2847046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_monster_unittest.cc')
-rw-r--r--net/base/cookie_monster_unittest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/base/cookie_monster_unittest.cc b/net/base/cookie_monster_unittest.cc
index 21d6df8..e9ffc7b 100644
--- a/net/base/cookie_monster_unittest.cc
+++ b/net/base/cookie_monster_unittest.cc
@@ -152,7 +152,7 @@ void AddKeyedCookieToList(
scoped_ptr<net::CookieMonster::CanonicalCookie> cookie(
new net::CookieMonster::CanonicalCookie(
- pc.Name(), pc.Value(), cookie_path,
+ pc.Name(), pc.Value(), key, cookie_path,
pc.IsSecure(), pc.IsHttpOnly(),
creation_time, creation_time,
!cookie_expires.is_null(),
@@ -1684,6 +1684,7 @@ TEST(CookieMonsterTest, SetCookieWithDetails) {
EXPECT_EQ("A", it->second.Name());
EXPECT_EQ("B", it->second.Value());
EXPECT_EQ("www.google.izzle", it->first);
+ EXPECT_EQ("www.google.izzle", it->second.Domain());
EXPECT_EQ("/foo", it->second.Path());
EXPECT_FALSE(it->second.DoesExpire());
EXPECT_FALSE(it->second.IsSecure());
@@ -1698,6 +1699,7 @@ TEST(CookieMonsterTest, SetCookieWithDetails) {
EXPECT_EQ("C", it->second.Name());
EXPECT_EQ("D", it->second.Value());
EXPECT_EQ(".google.izzle", it->first);
+ EXPECT_EQ(".google.izzle", it->second.Domain());
EXPECT_EQ("/bar", it->second.Path());
EXPECT_FALSE(it->second.IsSecure());
EXPECT_TRUE(it->second.IsHttpOnly());
@@ -1711,6 +1713,7 @@ TEST(CookieMonsterTest, SetCookieWithDetails) {
EXPECT_EQ("E", it->second.Name());
EXPECT_EQ("F", it->second.Value());
EXPECT_EQ("/", it->second.Path());
+ EXPECT_EQ("www.google.izzle", it->second.Domain());
EXPECT_TRUE(it->second.IsSecure());
EXPECT_FALSE(it->second.IsHttpOnly());