Chromium Code Reviews| 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 e0437ff6564c35a5719cb09606b9482e1725a19f..4c3e595baf5e2998b6f0e59e5c24bc7b44833333 100644 |
| --- a/net/spdy/spdy_test_util_common.cc |
| +++ b/net/spdy/spdy_test_util_common.cc |
| @@ -1102,6 +1102,15 @@ SpdyFrame* SpdyTestUtil::ConstructSpdyPushHeaders( |
| return CreateFramer(false)->SerializeFrame(headers); |
| } |
| +SpdyFrame* SpdyTestUtil::ConstructSpdyHeaderFrame(int stream_id, |
| + const char* const headers[], |
| + int header_count) { |
| + SpdyHeadersIR spdy_headers(stream_id); |
| + AppendToHeaderBlock(headers, header_count, |
| + spdy_headers.mutable_name_value_block()); |
|
Bence
2015/08/06 18:26:25
You'll need to rebase on https://crrev.com/1263803
xunjieli
2015/08/06 21:02:00
Done.
|
| + return CreateFramer(false)->SerializeFrame(spdy_headers); |
| +} |
| + |
| SpdyFrame* SpdyTestUtil::ConstructSpdySyn(int stream_id, |
| const SpdyHeaderBlock& block, |
| RequestPriority priority, |