Index: net/tools/quic/test_tools/quic_test_utils.h |
diff --git a/net/tools/quic/test_tools/quic_test_utils.h b/net/tools/quic/test_tools/quic_test_utils.h |
index 8eb0a57e4810bcdfcbb9a28780ce0ae891d309f2..44dbd2bdf87c133c57e543752b067afde46b74ec 100644 |
--- a/net/tools/quic/test_tools/quic_test_utils.h |
+++ b/net/tools/quic/test_tools/quic_test_utils.h |
@@ -29,6 +29,11 @@ static const QuicConnectionId kTestConnectionId = 42; |
static const int kTestPort = 123; |
static const uint32 kInitialFlowControlWindowForTest = 32 * 1024; // 32 KB |
+// Testing convenience method to construct a QuicAckFrame with |num_nack_ranges| |
+// nack ranges of width 1 packet, starting from |least_unacked|. |
+QuicAckFrame MakeAckFrameWithNackRanges(size_t num_nack_ranges, |
+ QuicPacketSequenceNumber least_unacked); |
+ |
// Simple random number generator used to compute random numbers suitable |
// for pseudo-randomly dropping packets in tests. It works by computing |
// the sha1 hash of the current seed, and using the first 64 bits as |