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

Unified Diff: net/base/test_proxy_delegate.h

Issue 2260623002: Race TCP connection to proxies with QUIC connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 4 years, 4 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 | « net/base/proxy_delegate.h ('k') | net/base/test_proxy_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/test_proxy_delegate.h
diff --git a/net/base/test_proxy_delegate.h b/net/base/test_proxy_delegate.h
index 0a045a1722892a08d22ad2c286a4e9249d4b536c..a0957d19976ad3dff7b61380f6abb2c1cf6bf22a 100644
--- a/net/base/test_proxy_delegate.h
+++ b/net/base/test_proxy_delegate.h
@@ -65,6 +65,24 @@ class TestProxyDelegate : public ProxyDelegate {
const HostPortPair& proxy_server,
const HttpResponseHeaders& response_headers) override;
bool IsTrustedSpdyProxy(const net::ProxyServer& proxy_server) override;
+ void GetAlternativeProxy(
+ const GURL& url,
+ const ProxyServer& resolved_proxy_server,
+ ProxyServer* alternative_proxy_server) const override;
+ void OnAlternativeProxyBroken(
+ const ProxyServer& alternative_proxy_server) override;
+
+ void set_alternative_proxy_server(
+ const ProxyServer& alternative_proxy_server) {
+ alternative_proxy_server_ = alternative_proxy_server;
+ }
+ const ProxyServer& alternative_proxy_server() const {
+ return alternative_proxy_server_;
+ }
+
+ int get_alternative_proxy_invocations() const {
+ return get_alternative_proxy_invocations_;
+ }
private:
bool on_before_tunnel_request_called_;
@@ -76,6 +94,10 @@ class TestProxyDelegate : public ProxyDelegate {
HostPortPair on_tunnel_headers_received_origin_;
HostPortPair on_tunnel_headers_received_proxy_server_;
std::string on_tunnel_headers_received_status_line_;
+ ProxyServer alternative_proxy_server_;
+
+ // Number of times GetAlternativeProxy() method has been called.
+ mutable int get_alternative_proxy_invocations_;
};
} // namespace net
« no previous file with comments | « net/base/proxy_delegate.h ('k') | net/base/test_proxy_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698