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

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

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Rebase. Created 4 years, 11 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
« no previous file with comments | « net/quic/quic_utils.cc ('k') | net/quic/test_tools/quic_test_packet_maker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9769770100dd4dd14e7c9f564a47a8474d47a46b..cad8082bd577c8b3f1e5c3923893643525806c07 100644
--- a/net/quic/test_tools/quic_test_packet_maker.h
+++ b/net/quic/test_tools/quic_test_packet_maker.h
@@ -30,6 +30,8 @@ class QuicTestPacketMaker {
~QuicTestPacketMaker();
void set_hostname(const std::string& host);
+ scoped_ptr<QuicEncryptedPacket> MakePingPacket(QuicPacketNumber num,
+ bool include_version);
scoped_ptr<QuicEncryptedPacket> MakeRstPacket(
QuicPacketNumber num,
bool include_version,
@@ -70,6 +72,15 @@ class QuicTestPacketMaker {
bool fin,
QuicStreamOffset offset,
base::StringPiece data);
+ scoped_ptr<QuicEncryptedPacket> MakeAckAndDataPacket(
+ QuicPacketNumber packet_number,
+ bool include_version,
+ QuicStreamId stream_id,
+ QuicPacketNumber largest_received,
+ QuicPacketNumber least_unacked,
+ bool fin,
+ QuicStreamOffset offset,
+ base::StringPiece data);
// If |spdy_headers_frame_length| is non-null, it will be set to the size of
// the SPDY headers frame created for this packet.
@@ -143,6 +154,9 @@ class QuicTestPacketMaker {
private:
scoped_ptr<QuicEncryptedPacket> MakePacket(const QuicPacketHeader& header,
const QuicFrame& frame);
+ scoped_ptr<QuicEncryptedPacket> MakeMultipleFramesPacket(
+ const QuicPacketHeader& header,
+ const QuicFrames& frames);
void InitializeHeader(QuicPacketNumber packet_number,
bool should_include_version);
« no previous file with comments | « net/quic/quic_utils.cc ('k') | net/quic/test_tools/quic_test_packet_maker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698