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, |