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

Unified Diff: net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc

Issue 9705046: Switch CreateSpdyHeadersFromHttpRequest to construct the correct headers based on the spdy protocol… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix raman's comments. Created 8 years, 9 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/spdy/spdy_proxy_client_socket.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc
diff --git a/net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc b/net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc
index 00732430c06b8153071d1a5564f119edefe66e72..966daf30f698de69d6f305ba61ce3824edac0a53 100644
--- a/net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc
+++ b/net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc
@@ -328,11 +328,11 @@ SpdyProxyClientSocketSpdy3Test::ConstructConnectRequestFrame() {
spdy::DATA_FLAG_NONE
};
const char* const kConnectHeaders[] = {
- "method", "CONNECT",
- "url", kOriginHostPort,
- "host", kOriginHost,
+ ":method", "CONNECT",
+ ":path", kOriginHostPort,
+ ":host", kOriginHost,
"user-agent", kUserAgent,
- "version", "HTTP/1.1",
+ ":version", "HTTP/1.1",
};
return ConstructSpdyPacket(
kSynStartHeader, NULL, 0, kConnectHeaders, arraysize(kConnectHeaders)/2);
@@ -355,11 +355,11 @@ SpdyProxyClientSocketSpdy3Test::ConstructConnectAuthRequestFrame() {
spdy::DATA_FLAG_NONE
};
const char* const kConnectHeaders[] = {
- "method", "CONNECT",
- "url", kOriginHostPort,
- "host", kOriginHost,
+ ":method", "CONNECT",
+ ":path", kOriginHostPort,
+ ":host", kOriginHost,
"user-agent", kUserAgent,
- "version", "HTTP/1.1",
+ ":version", "HTTP/1.1",
"proxy-authorization", "Basic Zm9vOmJhcg==",
};
return ConstructSpdyPacket(
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698