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

Unified Diff: chrome/browser/signin/signin_browsertest.cc

Issue 48713008: [sync] Allow FakeURLFetcher to return arbitrary HTTP response codes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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
Index: chrome/browser/signin/signin_browsertest.cc
diff --git a/chrome/browser/signin/signin_browsertest.cc b/chrome/browser/signin/signin_browsertest.cc
index f85b8bdd47df488492502c5d3257fa14b2f8f95d..aebd1f8432b38552bc9996a62147aea1a1247eb8 100644
--- a/chrome/browser/signin/signin_browsertest.cc
+++ b/chrome/browser/signin/signin_browsertest.cc
@@ -25,6 +25,7 @@
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/content_switches.h"
#include "google_apis/gaia/gaia_urls.h"
+#include "net/http/http_status_code.h"
#include "net/url_request/test_url_fetcher_factory.h"
namespace {
@@ -56,8 +57,10 @@ class SigninBrowserTest : public InProcessBrowserTest {
fake_factory_->SetFakeResponse(
GaiaUrls::GetInstance()->service_login_url(),
std::string(),
- true);
- fake_factory_->SetFakeResponse(GURL(kNonSigninURL), std::string(), true);
+ net::HTTP_OK);
+ fake_factory_->SetFakeResponse(GURL(kNonSigninURL),
+ std::string(),
+ net::HTTP_OK);
// Yield control back to the InProcessBrowserTest framework.
InProcessBrowserTest::SetUp();
}

Powered by Google App Engine
This is Rietveld 408576698