diff options
author | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-30 09:21:41 +0000 |
---|---|---|
committer | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-30 09:21:41 +0000 |
commit | ea845f5f6c2d322ac7be14a66ce38a852d755e11 (patch) | |
tree | cfb6abad45a75dcf689558676de8599535f3ca7b /chrome/browser/signin | |
parent | bd2d54cb001abada988c146a9c4ffd86f373b8cc (diff) | |
download | chromium_src-ea845f5f6c2d322ac7be14a66ce38a852d755e11.zip chromium_src-ea845f5f6c2d322ac7be14a66ce38a852d755e11.tar.gz chromium_src-ea845f5f6c2d322ac7be14a66ce38a852d755e11.tar.bz2 |
Consolidate TestURLFetcherFactory::SetFakeResponse
Remove the std::string version of the function and convert all callers
to the GURL version.
BUG=None
TBR=brettw@chromium.org
Review URL: https://codereview.chromium.org/23625015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/signin')
-rw-r--r-- | chrome/browser/signin/signin_browsertest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/signin/signin_browsertest.cc b/chrome/browser/signin/signin_browsertest.cc index e9cbfda..d3031c0 100644 --- a/chrome/browser/signin/signin_browsertest.cc +++ b/chrome/browser/signin/signin_browsertest.cc @@ -28,7 +28,7 @@ #include "net/url_request/test_url_fetcher_factory.h" namespace { - const char kNonSigninURL[] = "www.google.com"; +const char kNonSigninURL[] = "www.google.com"; } class SigninBrowserTest : public InProcessBrowserTest { @@ -53,11 +53,11 @@ class SigninBrowserTest : public InProcessBrowserTest { virtual void SetUp() OVERRIDE { factory_.reset(new net::URLFetcherImplFactory()); fake_factory_.reset(new net::FakeURLFetcherFactory(factory_.get())); - fake_factory_->SetFakeResponseForURL( + fake_factory_->SetFakeResponse( GaiaUrls::GetInstance()->service_login_url(), std::string(), true); - fake_factory_->SetFakeResponse(kNonSigninURL, std::string(), true); + fake_factory_->SetFakeResponse(GURL(kNonSigninURL), std::string(), true); // Yield control back to the InProcessBrowserTest framework. InProcessBrowserTest::SetUp(); } |