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

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

Issue 2018513002: Plumb unmodified HTTP/2 stream weight value through SPDY framing code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/quic_headers_stream_test.cc ('k') | net/spdy/buffered_spdy_framer.h » ('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 3984eb6a0e2ae85bb48b27c99d69849329854dd4..7d354301cb5fa22889b7401f0e71877dfd903aaa 100644
--- a/net/quic/test_tools/quic_test_packet_maker.cc
+++ b/net/quic/test_tools/quic_test_packet_maker.cc
@@ -385,7 +385,7 @@ QuicTestPacketMaker::MakeRequestHeadersAndMultipleDataFramesPacket(
SpdyHeadersIR headers_frame(stream_id);
headers_frame.set_header_block(headers);
headers_frame.set_fin(fin);
- headers_frame.set_priority(priority);
+ headers_frame.set_weight(Spdy3PriorityToHttp2Weight(priority));
headers_frame.set_has_priority(true);
spdy_frame = spdy_request_framer_.SerializeFrame(headers_frame);
}
@@ -454,7 +454,7 @@ QuicTestPacketMaker::MakeRequestHeadersPacket(QuicPacketNumber packet_number,
SpdyHeadersIR headers_frame(stream_id);
headers_frame.set_header_block(headers);
headers_frame.set_fin(fin);
- headers_frame.set_priority(priority);
+ headers_frame.set_weight(Spdy3PriorityToHttp2Weight(priority));
headers_frame.set_has_priority(true);
spdy_frame = spdy_request_framer_.SerializeFrame(headers_frame);
}
« no previous file with comments | « net/quic/quic_headers_stream_test.cc ('k') | net/spdy/buffered_spdy_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698