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

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

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 years, 4 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/test_tools/quic_sent_packet_manager_peer.cc ('k') | net/quic/test_tools/quic_test_utils.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_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
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698