| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); | 821 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); |
| 822 }; | 822 }; |
| 823 | 823 |
| 824 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { | 824 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { |
| 825 public: | 825 public: |
| 826 MockQuicConnectionDebugVisitor(); | 826 MockQuicConnectionDebugVisitor(); |
| 827 ~MockQuicConnectionDebugVisitor() override; | 827 ~MockQuicConnectionDebugVisitor() override; |
| 828 | 828 |
| 829 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); | 829 MOCK_METHOD1(OnFrameAddedToPacket, void(const QuicFrame&)); |
| 830 | 830 |
| 831 MOCK_METHOD4(OnPacketSent, | 831 MOCK_METHOD5(OnPacketSent, |
| 832 void(const SerializedPacket&, | 832 void(const SerializedPacket&, |
| 833 QuicPathId, |
| 833 QuicPacketNumber, | 834 QuicPacketNumber, |
| 834 TransmissionType, | 835 TransmissionType, |
| 835 QuicTime)); | 836 QuicTime)); |
| 836 | 837 |
| 837 MOCK_METHOD3(OnPacketReceived, | 838 MOCK_METHOD3(OnPacketReceived, |
| 838 void(const IPEndPoint&, | 839 void(const IPEndPoint&, |
| 839 const IPEndPoint&, | 840 const IPEndPoint&, |
| 840 const QuicEncryptedPacket&)); | 841 const QuicEncryptedPacket&)); |
| 841 | 842 |
| 842 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId)); | 843 MOCK_METHOD1(OnIncorrectConnectionId, void(QuicConnectionId)); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 TestQuicSpdyServerSession** server_session); | 934 TestQuicSpdyServerSession** server_session); |
| 934 | 935 |
| 935 // Helper to generate client side stream ids, generalizes | 936 // Helper to generate client side stream ids, generalizes |
| 936 // kClientDataStreamId1 etc. above. | 937 // kClientDataStreamId1 etc. above. |
| 937 QuicStreamId QuicClientDataStreamId(int i); | 938 QuicStreamId QuicClientDataStreamId(int i); |
| 938 | 939 |
| 939 } // namespace test | 940 } // namespace test |
| 940 } // namespace net | 941 } // namespace net |
| 941 | 942 |
| 942 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 943 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |