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

Unified Diff: net/quic/test_tools/quic_test_packet_maker.h

Issue 1856073002: Coalesce small buffers in net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Javadoc Created 4 years, 8 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
Index: net/quic/test_tools/quic_test_packet_maker.h
diff --git a/net/quic/test_tools/quic_test_packet_maker.h b/net/quic/test_tools/quic_test_packet_maker.h
index 3574ab7185c051c9781226deec7fecb41dd17744..0c5b6ebf650c432987a6273210856f65439f8ae1 100644
--- a/net/quic/test_tools/quic_test_packet_maker.h
+++ b/net/quic/test_tools/quic_test_packet_maker.h
@@ -84,6 +84,13 @@ class QuicTestPacketMaker {
bool fin,
QuicStreamOffset offset,
base::StringPiece data);
+ scoped_ptr<QuicReceivedPacket> MakeMultipleDataFramesPacket(
+ QuicPacketNumber packet_number,
+ QuicStreamId stream_id,
+ bool should_include_version,
+ bool fin,
+ QuicStreamOffset offset,
+ const std::vector<std::string>& data_writes);
scoped_ptr<QuicReceivedPacket> MakeAckAndDataPacket(
QuicPacketNumber packet_number,
bool include_version,
@@ -94,6 +101,16 @@ class QuicTestPacketMaker {
QuicStreamOffset offset,
base::StringPiece data);
+ scoped_ptr<QuicReceivedPacket> MakeRequestHeadersAndMultipleDataFramesPacket(
+ QuicPacketNumber packet_number,
+ QuicStreamId stream_id,
+ bool should_include_version,
+ bool fin,
+ SpdyPriority priority,
+ const SpdyHeaderBlock& headers,
+ size_t* spdy_headers_frame_length,
+ const std::vector<std::string>& data_writes);
+
// If |spdy_headers_frame_length| is non-null, it will be set to the size of
// the SPDY headers frame created for this packet.
scoped_ptr<QuicReceivedPacket> MakeRequestHeadersPacket(
@@ -170,6 +187,13 @@ class QuicTestPacketMaker {
const QuicPacketHeader& header,
const QuicFrames& frames);
+ // Each of |data_writes| will be made into a data frame.
+ QuicFrames MakeMultipleDataFrames(
+ QuicStreamId stream_id,
+ bool fin,
+ QuicStreamOffset offset,
+ const std::vector<std::string>& data_writes);
+
void InitializeHeader(QuicPacketNumber packet_number,
bool should_include_version);

Powered by Google App Engine
This is Rietveld 408576698