| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/quic_connection.h" | 5 #include "net/quic/quic_connection.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| (...skipping 3826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3837 visitor->OnCongestionWindowChange(1000 * kDefaultTCPMSS); | 3837 visitor->OnCongestionWindowChange(1000 * kDefaultTCPMSS); |
| 3838 EXPECT_LT(max_packets_per_fec_group, creator->max_packets_per_fec_group()); | 3838 EXPECT_LT(max_packets_per_fec_group, creator->max_packets_per_fec_group()); |
| 3839 } | 3839 } |
| 3840 | 3840 |
| 3841 class MockQuicConnectionDebugVisitor | 3841 class MockQuicConnectionDebugVisitor |
| 3842 : public QuicConnectionDebugVisitor { | 3842 : public QuicConnectionDebugVisitor { |
| 3843 public: | 3843 public: |
| 3844 MOCK_METHOD1(OnFrameAddedToPacket, | 3844 MOCK_METHOD1(OnFrameAddedToPacket, |
| 3845 void(const QuicFrame&)); | 3845 void(const QuicFrame&)); |
| 3846 | 3846 |
| 3847 MOCK_METHOD5(OnPacketSent, | 3847 MOCK_METHOD6(OnPacketSent, |
| 3848 void(QuicPacketSequenceNumber, | 3848 void(QuicPacketSequenceNumber, |
| 3849 QuicPacketSequenceNumber, |
| 3849 EncryptionLevel, | 3850 EncryptionLevel, |
| 3850 TransmissionType, | 3851 TransmissionType, |
| 3851 const QuicEncryptedPacket&, | 3852 const QuicEncryptedPacket&, |
| 3852 WriteResult)); | 3853 WriteResult)); |
| 3853 | 3854 |
| 3854 MOCK_METHOD2(OnPacketRetransmitted, | |
| 3855 void(QuicPacketSequenceNumber, | |
| 3856 QuicPacketSequenceNumber)); | |
| 3857 | |
| 3858 MOCK_METHOD3(OnPacketReceived, | 3855 MOCK_METHOD3(OnPacketReceived, |
| 3859 void(const IPEndPoint&, | 3856 void(const IPEndPoint&, |
| 3860 const IPEndPoint&, | 3857 const IPEndPoint&, |
| 3861 const QuicEncryptedPacket&)); | 3858 const QuicEncryptedPacket&)); |
| 3862 | 3859 |
| 3863 MOCK_METHOD1(OnProtocolVersionMismatch, | 3860 MOCK_METHOD1(OnProtocolVersionMismatch, |
| 3864 void(QuicVersion)); | 3861 void(QuicVersion)); |
| 3865 | 3862 |
| 3866 MOCK_METHOD1(OnPacketHeader, | 3863 MOCK_METHOD1(OnPacketHeader, |
| 3867 void(const QuicPacketHeader& header)); | 3864 void(const QuicPacketHeader& header)); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3932 QuicBlockedFrame blocked; | 3929 QuicBlockedFrame blocked; |
| 3933 blocked.stream_id = 3; | 3930 blocked.stream_id = 3; |
| 3934 EXPECT_CALL(visitor_, OnBlockedFrames(_)); | 3931 EXPECT_CALL(visitor_, OnBlockedFrames(_)); |
| 3935 ProcessFramePacket(QuicFrame(&blocked)); | 3932 ProcessFramePacket(QuicFrame(&blocked)); |
| 3936 EXPECT_TRUE(ack_alarm->IsSet()); | 3933 EXPECT_TRUE(ack_alarm->IsSet()); |
| 3937 } | 3934 } |
| 3938 | 3935 |
| 3939 } // namespace | 3936 } // namespace |
| 3940 } // namespace test | 3937 } // namespace test |
| 3941 } // namespace net | 3938 } // namespace net |
| OLD | NEW |