diff options
Diffstat (limited to 'net/quic/test_tools/quic_connection_peer.h')
-rw-r--r-- | net/quic/test_tools/quic_connection_peer.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/net/quic/test_tools/quic_connection_peer.h b/net/quic/test_tools/quic_connection_peer.h index 46b20929..deb313e0 100644 --- a/net/quic/test_tools/quic_connection_peer.h +++ b/net/quic/test_tools/quic_connection_peer.h @@ -6,6 +6,7 @@ #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ #include "base/basictypes.h" +#include "net/quic/quic_protocol.h" namespace net { @@ -13,8 +14,8 @@ struct QuicAckFrame; class QuicConnection; class QuicConnectionVisitorInterface; class QuicPacketCreator; -class QuicReceiptMetricsCollector; -class QuicSendScheduler; +class ReceiveAlgorithmInterface; +class SendAlgorithmInterface; namespace test { @@ -23,11 +24,11 @@ class QuicConnectionPeer { public: static void SendAck(QuicConnection* connection); - static void SetCollector(QuicConnection* connection, - QuicReceiptMetricsCollector* collector); + static void SetReceiveAlgorithm(QuicConnection* connection, + ReceiveAlgorithmInterface* receive_algorithm); - static void SetScheduler(QuicConnection* connection, - QuicSendScheduler* scheduler); + static void SetSendAlgorithm(QuicConnection* connection, + SendAlgorithmInterface* send_algorithm); static QuicAckFrame* GetOutgoingAck(QuicConnection* connection); @@ -38,6 +39,16 @@ class QuicConnectionPeer { static bool GetReceivedTruncatedAck(QuicConnection* connection); + static size_t GetNumRetransmissionTimeouts(QuicConnection* connection); + + static bool IsSavedForRetransmission( + QuicConnection* connection, + QuicPacketSequenceNumber sequence_number); + + static size_t GetRetransmissionCount( + QuicConnection* connection, + QuicPacketSequenceNumber sequence_number); + private: DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); }; |