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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 2596703002: http2: Update priorities of pushed streams (Closed)
Patch Set: Created 4 years 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
« net/spdy/spdy_session.cc ('K') | « 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 913287c34dbc302b01ba2b81eaf464d039b75db3..36e94f42638a9528fc26a091195e73f06e39a434 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -808,6 +808,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,
« net/spdy/spdy_session.cc ('K') | « 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