| 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 12cf1cd98854309f1ea608cd14a28d9c8853775f..c324e82f9a062d203228b5d80d33abfe65b634c4 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,8 @@
|
| #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/cookie_store_map.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"
|
| @@ -199,7 +201,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(
|
| @@ -210,9 +211,13 @@ TEST_F(WalletSigninHelperTest, GetWalletCookieValueWhenPresent) {
|
|
|
| net::CookieList cookie_list;
|
| cookie_list.push_back(*cookie);
|
| +
|
| + content::StoragePartition* partition =
|
| + content::BrowserContext::GetDefaultStoragePartition(&browser_context_);
|
| + net::CookieMonster* cookie_monster =
|
| + partition->GetCookieStoreMap().GetForScheme(
|
| + GetPassiveAuthUrl().scheme())->GetCookieMonster();
|
| cookie_monster->InitializeFrom(cookie_list);
|
| - browser_context_.GetRequestContext()->GetURLRequestContext()
|
| - ->set_cookie_store(cookie_monster);
|
| signin_helper_->StartWalletCookieValueFetch();
|
| base::RunLoop().RunUntilIdle();
|
| }
|
|
|