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

Unified Diff: net/http/http_network_transaction_unittest.cc

Issue 1257623004: Send appropriate pseudo-headers in HTTP/2 CONNECT request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | net/spdy/spdy_http_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction_unittest.cc
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index 8fbc13d750e41fec8ebd139c8876d3c4af33545b..c5fc1ef6e6258d1a72deaca0de3ed2902c8d14e9 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -3840,8 +3840,12 @@ TEST_P(HttpNetworkTransactionTest,
// CONNECT to mail.example.org:443 via SPDY.
SpdyHeaderBlock connect2_block;
connect2_block[spdy_util_.GetMethodKey()] = "CONNECT";
- connect2_block[spdy_util_.GetPathKey()] = "mail.example.org:443";
- connect2_block[spdy_util_.GetHostKey()] = "mail.example.org";
+ if (GetParam() >= kProtoHTTP2MinimumVersion) {
+ connect2_block[spdy_util_.GetHostKey()] = "mail.example.org:443";
+ } else {
+ connect2_block[spdy_util_.GetPathKey()] = "mail.example.org:443";
+ connect2_block[spdy_util_.GetHostKey()] = "mail.example.org";
+ }
spdy_util_.MaybeAddVersionHeader(&connect2_block);
scoped_ptr<SpdyFrame> connect2(
spdy_util_.ConstructSpdySyn(3, connect2_block, LOWEST, false, false));
« no previous file with comments | « no previous file | net/spdy/spdy_http_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698