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

Unified Diff: components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc

Issue 110883017: Add CookieStoreConfig to unify API for in-memory and persistent CookieStore Creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge ToT again. Created 6 years, 11 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 | « chrome/test/base/testing_profile.cc ('k') | content/browser/net/sqlite_persistent_cookie_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
diff --git a/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc b/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
index aa2cb43c069e8aa2ab2dfe9fb38730893b680eed..a1e91496e9446b782999b18469ad24a8ea93fceb 100644
--- a/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
+++ b/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
@@ -127,7 +127,8 @@ TEST_F(WalletSigninHelperTest, PassiveSigninFailedSigninNo) {
TEST_F(WalletSigninHelperTest, GetWalletCookieValueWhenPresent) {
EXPECT_CALL(mock_delegate_, OnDidFetchWalletCookieValue("gdToken"));
net::CookieMonster* cookie_monster =
- content::CreateInMemoryCookieStore(NULL)->GetCookieMonster();
+ content::CreateCookieStore(content::CookieStoreConfig())->
+ GetCookieMonster();
net::CookieOptions httponly_options;
httponly_options.set_include_httponly();
scoped_ptr<net::CanonicalCookie> cookie(
@@ -148,7 +149,8 @@ TEST_F(WalletSigninHelperTest, GetWalletCookieValueWhenPresent) {
TEST_F(WalletSigninHelperTest, GetWalletCookieValueWhenMissing) {
EXPECT_CALL(mock_delegate_, OnDidFetchWalletCookieValue(std::string()));
net::CookieMonster* cookie_monster =
- content::CreateInMemoryCookieStore(NULL)->GetCookieMonster();
+ content::CreateCookieStore(content::CookieStoreConfig())->
+ GetCookieMonster();
net::CookieOptions httponly_options;
httponly_options.set_include_httponly();
scoped_ptr<net::CanonicalCookie> cookie(
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/net/sqlite_persistent_cookie_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698