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

Unified Diff: content/test/test_url_fetcher_factory.cc

Issue 8054013: Recover from bad proxy settings pointing to non-proxy servers that reply anyway. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, reviewed Created 9 years, 3 months 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
« no previous file with comments | « content/test/test_url_fetcher_factory.h ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_url_fetcher_factory.cc
diff --git a/content/test/test_url_fetcher_factory.cc b/content/test/test_url_fetcher_factory.cc
index b079b3ed285d3342b45a116a055816a4966276d4..f6ebe948b8ada37c4f5c44f17238cfa7cc6f541f 100644
--- a/content/test/test_url_fetcher_factory.cc
+++ b/content/test/test_url_fetcher_factory.cc
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "base/message_loop.h"
+#include "net/http/http_response_headers.h"
#include "net/url_request/url_request_status.h"
ScopedURLFetcherFactory::ScopedURLFetcherFactory(URLFetcher::Factory* factory) {
@@ -48,6 +49,15 @@ void TestURLFetcher::set_status(const net::URLRequestStatus& status) {
fake_status_ = status;
}
+void TestURLFetcher::set_was_fetched_via_proxy(bool flag) {
+ URLFetcher::set_was_fetched_via_proxy(flag);
+}
+
+void TestURLFetcher::set_response_headers(
+ scoped_refptr<net::HttpResponseHeaders> headers) {
+ URLFetcher::set_response_headers(headers);
+}
+
void TestURLFetcher::SetResponseString(const std::string& response) {
SetResponseDestinationForTesting(STRING);
fake_response_string_ = response;
« no previous file with comments | « content/test/test_url_fetcher_factory.h ('k') | net/tools/testserver/testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698