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

Unified Diff: net/quic/chromium/quic_network_transaction_unittest.cc

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: Rebased, fix compile error Created 4 years, 2 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/http/http_response_info.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_network_transaction_unittest.cc
diff --git a/net/quic/chromium/quic_network_transaction_unittest.cc b/net/quic/chromium/quic_network_transaction_unittest.cc
index 772abd1d3cb7d04db09d1451c487a8854bf8d44f..fa6499b9e6559f82f929e1f645bce34aab89e976 100644
--- a/net/quic/chromium/quic_network_transaction_unittest.cc
+++ b/net/quic/chromium/quic_network_transaction_unittest.cc
@@ -545,6 +545,11 @@ class QuicNetworkTransactionTest
CheckResponsePort(&trans, port);
CheckResponseData(&trans, expected);
EXPECT_EQ(used_proxy, headers_handler.was_proxied());
+ if (used_proxy) {
+ EXPECT_TRUE(trans.GetResponseInfo()->proxy_server.is_https());
+ } else {
+ EXPECT_TRUE(trans.GetResponseInfo()->proxy_server.is_direct());
+ }
}
void SendRequestAndExpectQuicResponse(const std::string& expected) {
@@ -711,6 +716,11 @@ class QuicNetworkTransactionTest
CheckResponsePort(&trans, port);
CheckResponseData(&trans, expected);
EXPECT_EQ(used_proxy, headers_handler.was_proxied());
+ if (used_proxy) {
+ EXPECT_TRUE(trans.GetResponseInfo()->proxy_server.is_quic());
+ } else {
+ EXPECT_TRUE(trans.GetResponseInfo()->proxy_server.is_direct());
+ }
}
};
« no previous file with comments | « net/http/http_response_info.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698