| Index: net/quic/test_tools/quic_test_utils.h
|
| diff --git a/net/quic/test_tools/quic_test_utils.h b/net/quic/test_tools/quic_test_utils.h
|
| index edf176ee287117fb9f2ac6c219919e8f184c006b..32f4eb9fbbca105c5aa342de15db61dce8e20946 100644
|
| --- a/net/quic/test_tools/quic_test_utils.h
|
| +++ b/net/quic/test_tools/quic_test_utils.h
|
| @@ -76,7 +76,7 @@ IPAddress Any4();
|
| void GenerateBody(std::string* body, int length);
|
|
|
| // Create an encrypted packet for testing.
|
| -// If versions == nullptr, uses &QuicSupportedVersions().
|
| +// If versions == nullptr, uses &AllSupportedVersions().
|
| // Note that the packet is encrypted with NullEncrypter, so to decrypt the
|
| // constructed packet, the framer must be set to use NullDecrypter.
|
| QuicEncryptedPacket* ConstructEncryptedPacket(
|
| @@ -93,7 +93,7 @@ QuicEncryptedPacket* ConstructEncryptedPacket(
|
| Perspective perspective);
|
|
|
| // Create an encrypted packet for testing.
|
| -// If versions == nullptr, uses &QuicSupportedVersions().
|
| +// If versions == nullptr, uses &AllSupportedVersions().
|
| // Note that the packet is encrypted with NullEncrypter, so to decrypt the
|
| // constructed packet, the framer must be set to use NullDecrypter.
|
| QuicEncryptedPacket* ConstructEncryptedPacket(
|
| @@ -498,6 +498,7 @@ class PacketSavingConnection : public MockQuicConnection {
|
|
|
| class MockQuicSession : public QuicSession {
|
| public:
|
| + // Takes ownership of |connection|.
|
| explicit MockQuicSession(QuicConnection* connection);
|
| ~MockQuicSession() override;
|
|
|
| @@ -554,6 +555,7 @@ class MockQuicSession : public QuicSession {
|
|
|
| class MockQuicSpdySession : public QuicSpdySession {
|
| public:
|
| + // Takes ownership of |connection|.
|
| explicit MockQuicSpdySession(QuicConnection* connection);
|
| ~MockQuicSpdySession() override;
|
|
|
| @@ -640,6 +642,7 @@ class MockQuicSpdySession : public QuicSpdySession {
|
|
|
| class TestQuicSpdyServerSession : public QuicServerSessionBase {
|
| public:
|
| + // Takes ownership of |connection|.
|
| TestQuicSpdyServerSession(QuicConnection* connection,
|
| const QuicConfig& config,
|
| const QuicCryptoServerConfig* crypto_config,
|
| @@ -750,12 +753,14 @@ class MockSendAlgorithm : public SendAlgorithmInterface {
|
| MOCK_METHOD1(OnRttUpdated, void(QuicPacketNumber));
|
| MOCK_CONST_METHOD0(RetransmissionDelay, QuicTime::Delta(void));
|
| MOCK_CONST_METHOD0(GetCongestionWindow, QuicByteCount());
|
| + MOCK_CONST_METHOD0(GetDebugState, std::string());
|
| MOCK_CONST_METHOD0(InSlowStart, bool());
|
| MOCK_CONST_METHOD0(InRecovery, bool());
|
| MOCK_CONST_METHOD0(GetSlowStartThreshold, QuicByteCount());
|
| MOCK_CONST_METHOD0(GetCongestionControlType, CongestionControlType());
|
| MOCK_METHOD2(ResumeConnectionState,
|
| void(const CachedNetworkParameters&, bool));
|
| + MOCK_METHOD1(OnApplicationLimited, void(QuicByteCount));
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(MockSendAlgorithm);
|
| @@ -938,6 +943,7 @@ class MockSentPacketManager : public QuicSentPacketManagerInterface {
|
| QuicPacketCount(QuicByteCount));
|
| MOCK_CONST_METHOD0(GetCongestionWindowInBytes, QuicByteCount(void));
|
| MOCK_CONST_METHOD0(GetSlowStartThresholdInTcpMss, QuicPacketCount(void));
|
| + MOCK_CONST_METHOD0(GetDebugState, std::string());
|
| MOCK_METHOD1(CancelRetransmissionsForStream, void(QuicStreamId));
|
| MOCK_METHOD2(OnConnectionMigration, void(QuicPathId, PeerAddressChangeType));
|
| MOCK_CONST_METHOD0(IsHandshakeConfirmed, bool(void));
|
| @@ -949,6 +955,7 @@ class MockSentPacketManager : public QuicSentPacketManagerInterface {
|
| MOCK_CONST_METHOD0(InSlowStart, bool(void));
|
| MOCK_CONST_METHOD0(GetConsecutiveRtoCount, size_t(void));
|
| MOCK_CONST_METHOD0(GetConsecutiveTlpCount, size_t(void));
|
| + MOCK_METHOD0(OnApplicationLimited, void(void));
|
| };
|
|
|
| class MockConnectionCloseDelegate
|
|
|