| 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 c768151d3d609f7892f6bf893813fbb3571b0cd3..70198a6496f2ea0ced61338eaf703cc0ec69e4ad 100644
|
| --- a/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
|
| +++ b/components/autofill/content/browser/wallet/wallet_signin_helper_unittest.cc
|
| @@ -7,9 +7,9 @@
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/strings/stringprintf.h"
|
| -#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/test/test_browser_context.h"
|
| #include "content/public/test/test_browser_thread.h"
|
| #include "google_apis/gaia/gaia_constants.h"
|
| #include "google_apis/gaia/gaia_urls.h"
|
| @@ -79,16 +79,14 @@ class WalletSigninHelperTest : public testing::Test {
|
|
|
| virtual void SetUp() OVERRIDE {
|
| io_thread_.StartIOThread();
|
| - profile_.CreateRequestContext();
|
| signin_helper_.reset(new WalletSigninHelperForTesting(
|
| &mock_delegate_,
|
| - profile_.GetRequestContext()));
|
| + browser_context_.GetRequestContext()));
|
| EXPECT_EQ(WalletSigninHelperForTesting::IDLE, state());
|
| }
|
|
|
| virtual void TearDown() OVERRIDE {
|
| signin_helper_.reset();
|
| - profile_.ResetRequestContext();
|
| io_thread_.Stop();
|
| }
|
|
|
| @@ -180,10 +178,9 @@ class WalletSigninHelperTest : public testing::Test {
|
| MockWalletSigninHelperDelegate mock_delegate_;
|
|
|
| private:
|
| - // The profile's request context must be released on the IO thread.
|
| content::TestBrowserThread io_thread_;
|
| net::TestURLFetcherFactory factory_;
|
| - TestingProfile profile_;
|
| + content::TestBrowserContext browser_context_;
|
| };
|
|
|
| TEST_F(WalletSigninHelperTest, PassiveSigninSuccessful) {
|
|
|