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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 2596703002: http2: Update priorities of pushed streams (Closed)
Patch Set: actually rebase Created 3 years, 11 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_test_util_common.h ('k') | no next file » | 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 0bf76c627b11053cfce173dc766bd13f0d919673..3a60f17e46b3d588acb331142da57daff3cfb087 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -787,6 +787,19 @@ SpdySerializedFrame SpdyTestUtil::ConstructSpdyRstStream(
headerless_spdy_framer_.SerializeRstStream(rst_ir));
}
+// TODO(jgraettinger): Eliminate uses of this method in tests (prefer
+// SpdyPriorityIR).
+SpdySerializedFrame SpdyTestUtil::ConstructSpdyPriority(
+ SpdyStreamId stream_id,
+ SpdyStreamId parent_stream_id,
+ RequestPriority request_priority,
+ bool exclusive) {
+ int weight = Spdy3PriorityToHttp2Weight(
+ ConvertRequestPriorityToSpdyPriority(request_priority));
+ SpdyPriorityIR ir(stream_id, parent_stream_id, weight, exclusive);
+ return SpdySerializedFrame(headerless_spdy_framer_.SerializePriority(ir));
+}
+
SpdySerializedFrame SpdyTestUtil::ConstructSpdyGet(
const char* const url,
SpdyStreamId stream_id,
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698