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

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 some includes. 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
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 99c2ca4be9d0620f2edddb59000ee8132ba526e7..d05166532d1e099bb6ac3a360c7b2f89e17cd864 100644
--- a/net/quic/test_tools/quic_test_packet_maker.cc
+++ b/net/quic/test_tools/quic_test_packet_maker.cc
@@ -230,16 +230,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;
}

Powered by Google App Engine
This is Rietveld 408576698