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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.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/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 5ef0a75afe067eb27a36dd578b8b57b4d211101f..079660631fbca2d7d208a8179e06ad5a6ea11378 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
@@ -24,6 +24,7 @@
#include "net/base/host_port_pair.h"
#include "net/http/http_auth.h"
#include "net/http/http_auth_cache.h"
+#include "net/http/http_status_code.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -118,10 +119,11 @@ void DataReductionProxySettingsTestBase::SetProbeResult(
} else {
EXPECT_CALL(*settings, GetURLFetcher())
.Times(expected_calls)
- .WillRepeatedly(Return(new net::FakeURLFetcher(GURL(test_url),
- settings,
- response,
- success)));
+ .WillRepeatedly(Return(new net::FakeURLFetcher(
+ GURL(test_url),
+ settings,
+ response,
+ success ? net::HTTP_OK : net::HTTP_INTERNAL_SERVER_ERROR)));
}
}

Powered by Google App Engine
This is Rietveld 408576698