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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 959743002: Account for HTTP/2 padding in receive windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 5 years, 10 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
« net/spdy/spdy_framer.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 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) {
« net/spdy/spdy_framer.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