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

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

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android webview init fix merged in. Created 7 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 | « chrome/test/base/testing_profile.cc ('k') | content/browser/appcache/chrome_appcache_service_unittest.cc » ('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 e9662a51ec567e3e6110d41ddbe7b412d3b831bb..391fcba6d3ce74b722e685717520c4089dc54f6e 100644
--- a/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
+++ b/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
@@ -11,6 +11,7 @@
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/content/browser/wallet/wallet_service_url.h"
#include "components/autofill/content/browser/wallet/wallet_signin_helper_delegate.h"
+#include "content/public/browser/storage_partition.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/gaia_urls.h"
@@ -201,7 +202,6 @@ TEST_F(WalletSigninHelperTest, PassiveUserInfoFailedUserInfo) {
TEST_F(WalletSigninHelperTest, GetWalletCookieValueWhenPresent) {
EXPECT_CALL(mock_delegate_, OnDidFetchWalletCookieValue("gdToken"));
- net::CookieMonster* cookie_monster = new net::CookieMonster(NULL, NULL);
net::CookieOptions httponly_options;
httponly_options.set_include_httponly();
scoped_ptr<net::CanonicalCookie> cookie(
@@ -212,9 +212,12 @@ TEST_F(WalletSigninHelperTest, GetWalletCookieValueWhenPresent) {
net::CookieList cookie_list;
cookie_list.push_back(*cookie);
+
+ net::CookieMonster* cookie_monster =
+ content::BrowserContext::GetDefaultStoragePartition(&browser_context_)->
+ GetCookieStoreForScheme(GetPassiveAuthUrl().scheme())->
+ GetCookieMonster();
cookie_monster->InitializeFrom(cookie_list);
- browser_context_.GetRequestContext()->GetURLRequestContext()
- ->set_cookie_store(cookie_monster);
signin_helper_->StartWalletCookieValueFetch();
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/appcache/chrome_appcache_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698