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

Unified Diff: net/quic/test_tools/quic_test_packet_maker.cc

Issue 1357953002: Replace the existing SpdyHeaderBlock typedef with a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NET_EXPORT to fix compile error on win_chromium_compile_dbg_ng. Created 5 years, 3 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/quic/spdy_utils.cc ('k') | net/spdy/hpack/hpack_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_packet_maker.cc
diff --git a/net/quic/test_tools/quic_test_packet_maker.cc b/net/quic/test_tools/quic_test_packet_maker.cc
index 2fa60a5fe446d716d2ad6318e48d4d493dfa1d9b..46112634463480fb977ee2d5f6497e20f9743096 100644
--- a/net/quic/test_tools/quic_test_packet_maker.cc
+++ b/net/quic/test_tools/quic_test_packet_maker.cc
@@ -260,16 +260,16 @@ SpdyHeaderBlock QuicTestPacketMaker::GetRequestHeaders(
const std::string& path) {
SpdyHeaderBlock headers;
if (version_ <= QUIC_VERSION_24) {
+ headers[":version"] = "HTTP/1.1";
+ }
+ headers[":method"] = method;
+ if (version_ <= QUIC_VERSION_24) {
headers[":host"] = host_;
} else {
headers[":authority"] = host_;
}
- headers[":path"] = path;
headers[":scheme"] = scheme;
- headers[":method"] = method;
- if (version_ <= QUIC_VERSION_24) {
- headers[":version"] = "HTTP/1.1";
- }
+ headers[":path"] = path;
return headers;
}
« no previous file with comments | « net/quic/spdy_utils.cc ('k') | net/spdy/hpack/hpack_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698