| 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 // Common utilities for Quic tests | 5 // Common utilities for Quic tests |
| 6 | 6 |
| 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 PerConnectionPacketWriter* current_writer_; | 686 PerConnectionPacketWriter* current_writer_; |
| 687 }; | 687 }; |
| 688 | 688 |
| 689 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { | 689 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { |
| 690 public: | 690 public: |
| 691 MockQuicConnectionDebugVisitor(); | 691 MockQuicConnectionDebugVisitor(); |
| 692 ~MockQuicConnectionDebugVisitor() override; | 692 ~MockQuicConnectionDebugVisitor() override; |
| 693 | 693 |
| 694 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); | 694 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); |
| 695 | 695 |
| 696 MOCK_METHOD6(OnPacketSent, | 696 MOCK_METHOD5(OnPacketSent, |
| 697 void(const SerializedPacket&, | 697 void(const SerializedPacket&, |
| 698 QuicPacketNumber, | 698 QuicPacketNumber, |
| 699 EncryptionLevel, | |
| 700 TransmissionType, | 699 TransmissionType, |
| 701 size_t encrypted_length, | 700 size_t encrypted_length, |
| 702 QuicTime)); | 701 QuicTime)); |
| 703 | 702 |
| 704 MOCK_METHOD3(OnPacketReceived, | 703 MOCK_METHOD3(OnPacketReceived, |
| 705 void(const IPEndPoint&, | 704 void(const IPEndPoint&, |
| 706 const IPEndPoint&, | 705 const IPEndPoint&, |
| 707 const QuicEncryptedPacket&)); | 706 const QuicEncryptedPacket&)); |
| 708 | 707 |
| 709 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId)); | 708 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId)); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 TestQuicSpdyServerSession** server_session); | 781 TestQuicSpdyServerSession** server_session); |
| 783 | 782 |
| 784 // Helper to generate client side stream ids, generalizes | 783 // Helper to generate client side stream ids, generalizes |
| 785 // kClientDataStreamId1 etc. above. | 784 // kClientDataStreamId1 etc. above. |
| 786 QuicStreamId QuicClientDataStreamId(int i); | 785 QuicStreamId QuicClientDataStreamId(int i); |
| 787 | 786 |
| 788 } // namespace test | 787 } // namespace test |
| 789 } // namespace net | 788 } // namespace net |
| 790 | 789 |
| 791 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 790 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |