| 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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 }; | 809 }; |
| 810 | 810 |
| 811 class MockNetworkChangeVisitor | 811 class MockNetworkChangeVisitor |
| 812 : public QuicSentPacketManagerInterface::NetworkChangeVisitor { | 812 : public QuicSentPacketManagerInterface::NetworkChangeVisitor { |
| 813 public: | 813 public: |
| 814 MockNetworkChangeVisitor(); | 814 MockNetworkChangeVisitor(); |
| 815 ~MockNetworkChangeVisitor() override; | 815 ~MockNetworkChangeVisitor() override; |
| 816 | 816 |
| 817 MOCK_METHOD0(OnCongestionChange, void()); | 817 MOCK_METHOD0(OnCongestionChange, void()); |
| 818 MOCK_METHOD0(OnPathDegrading, void()); | 818 MOCK_METHOD0(OnPathDegrading, void()); |
| 819 MOCK_METHOD1(OnPathMtuIncreased, void(QuicPacketLength)); |
| 819 | 820 |
| 820 private: | 821 private: |
| 821 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); | 822 DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeVisitor); |
| 822 }; | 823 }; |
| 823 | 824 |
| 824 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { | 825 class MockQuicConnectionDebugVisitor : public QuicConnectionDebugVisitor { |
| 825 public: | 826 public: |
| 826 MockQuicConnectionDebugVisitor(); | 827 MockQuicConnectionDebugVisitor(); |
| 827 ~MockQuicConnectionDebugVisitor() override; | 828 ~MockQuicConnectionDebugVisitor() override; |
| 828 | 829 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 TestQuicSpdyServerSession** server_session); | 935 TestQuicSpdyServerSession** server_session); |
| 935 | 936 |
| 936 // Helper to generate client side stream ids, generalizes | 937 // Helper to generate client side stream ids, generalizes |
| 937 // kClientDataStreamId1 etc. above. | 938 // kClientDataStreamId1 etc. above. |
| 938 QuicStreamId QuicClientDataStreamId(int i); | 939 QuicStreamId QuicClientDataStreamId(int i); |
| 939 | 940 |
| 940 } // namespace test | 941 } // namespace test |
| 941 } // namespace net | 942 } // namespace net |
| 942 | 943 |
| 943 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 944 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |