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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc

Issue 60923002: [sync] Allow FakeURLFetcher to return an arbitrary URLRequestStatus (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
index 079660631fbca2d7d208a8179e06ad5a6ea11378..ad59508887ebd524bd1da278150b43e429ffbf99 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
@@ -123,7 +123,10 @@ void DataReductionProxySettingsTestBase::SetProbeResult(
GURL(test_url),
settings,
response,
- success ? net::HTTP_OK : net::HTTP_INTERNAL_SERVER_ERROR)));
+ success ? net::URLRequestStatus(net::URLRequestStatus::SUCCESS,
+ net::HTTP_OK) :
+ net::URLRequestStatus(net::URLRequestStatus::FAILED,
+ net::HTTP_INTERNAL_SERVER_ERROR))));
}
}

Powered by Google App Engine
This is Rietveld 408576698