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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/spdy/spdy_test_util_common.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index f0765a091f8192e9fd304e19794b19206f1d58dd..490af6bd4dc9133a5aa1051c6d3f9311982fb473 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -969,11 +969,14 @@ SpdyFrame* SpdyTestUtil::ConstructSpdyConnect(
const char* const extra_headers[],
int extra_header_count,
int stream_id,
- RequestPriority priority) const {
+ RequestPriority priority,
+ const HostPortPair& host_port_pair) const {
SpdyHeaderBlock block;
block[GetMethodKey()] = "CONNECT";
- block[GetPathKey()] = "www.google.com:443";
- block[GetHostKey()] = "www.google.com";
+ block[GetPathKey()] = host_port_pair.ToString();
+ block[GetHostKey()] = (host_port_pair.port() == 443)
+ ? host_port_pair.host()
+ : host_port_pair.ToString();
MaybeAddVersionHeader(&block);
AppendToHeaderBlock(extra_headers, extra_header_count, &block);
return ConstructSpdySyn(stream_id, block, priority, false, false);
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698