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

Unified Diff: net/base/cookie_monster_unittest.cc

Issue 7595007: Revert 95825 - Update asynchronous CookieMonster API to login_utils. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 95825)
+++ net/base/cookie_monster_unittest.cc (working copy)
@@ -1707,25 +1707,24 @@
"A3=F;",
options));
- CookieList cookies_1 = GetAllCookies(cm_1);
scoped_refptr<CookieMonster> cm_2(new CookieMonster(NULL, NULL));
- ASSERT_TRUE(cm_2->InitializeFrom(cookies_1));
- CookieList cookies_2 = GetAllCookies(cm_2);
+ ASSERT_TRUE(cm_2->InitializeFrom(cm_1.get()));
+ CookieList cookies = cm_2->GetAllCookies();
size_t expected_size = 3;
- EXPECT_EQ(expected_size, cookies_2.size());
+ EXPECT_EQ(expected_size, cookies.size());
- CookieList::iterator it = cookies_2.begin();
+ CookieList::iterator it = cookies.begin();
- ASSERT_TRUE(it != cookies_2.end());
+ ASSERT_TRUE(it != cookies.end());
EXPECT_EQ("A1", it->Name());
EXPECT_EQ("/foo", it->Path());
- ASSERT_TRUE(++it != cookies_2.end());
+ ASSERT_TRUE(++it != cookies.end());
EXPECT_EQ("A2", it->Name());
EXPECT_EQ("/bar", it->Path());
- ASSERT_TRUE(++it != cookies_2.end());
+ ASSERT_TRUE(++it != cookies.end());
EXPECT_EQ("A3", it->Name());
EXPECT_EQ("/", it->Path());
}
« 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