| 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 490af6bd4dc9133a5aa1051c6d3f9311982fb473..06680410b6745608d4aa1bc4d8bfa9708ae17446 100644
|
| --- a/net/spdy/spdy_test_util_common.cc
|
| +++ b/net/spdy/spdy_test_util_common.cc
|
| @@ -1224,6 +1224,18 @@ SpdyFrame* SpdyTestUtil::ConstructSpdyBodyFrame(int stream_id,
|
| return framer.SerializeData(data_ir);
|
| }
|
|
|
| +SpdyFrame* SpdyTestUtil::ConstructSpdyBodyFrame(int stream_id,
|
| + const char* data,
|
| + uint32 len,
|
| + bool fin,
|
| + int padding_length) {
|
| + SpdyFramer framer(spdy_version_);
|
| + SpdyDataIR data_ir(stream_id, base::StringPiece(data, len));
|
| + data_ir.set_fin(fin);
|
| + data_ir.set_padding_len(padding_length);
|
| + return framer.SerializeData(data_ir);
|
| +}
|
| +
|
| SpdyFrame* SpdyTestUtil::ConstructWrappedSpdyFrame(
|
| const scoped_ptr<SpdyFrame>& frame,
|
| int stream_id) {
|
|
|