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_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
8 #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 8 #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
9 | 9 |
10 #include "net/tools/quic/quic_time_wait_list_manager.h" | 10 #include "net/tools/quic/quic_time_wait_list_manager.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 namespace test { | 14 namespace test { |
15 | 15 |
16 class MockTimeWaitListManager : public QuicTimeWaitListManager { | 16 class MockTimeWaitListManager : public QuicTimeWaitListManager { |
17 public: | 17 public: |
18 MockTimeWaitListManager(QuicPacketWriter* writer, | 18 MockTimeWaitListManager(QuicPacketWriter* writer, |
19 QuicServerSessionVisitor* visitor, | 19 QuicServerSessionVisitor* visitor, |
20 QuicConnectionHelperInterface* helper); | 20 QuicConnectionHelperInterface* helper, |
| 21 QuicAlarmFactory* alarm_factory); |
21 ~MockTimeWaitListManager() override; | 22 ~MockTimeWaitListManager() override; |
22 | 23 |
23 MOCK_METHOD4(AddConnectionIdToTimeWait, | 24 MOCK_METHOD4(AddConnectionIdToTimeWait, |
24 void(QuicConnectionId connection_id, | 25 void(QuicConnectionId connection_id, |
25 QuicVersion version, | 26 QuicVersion version, |
26 bool connection_rejected_statelessly, | 27 bool connection_rejected_statelessly, |
27 std::vector<QuicEncryptedPacket*>* termination_packets)); | 28 std::vector<QuicEncryptedPacket*>* termination_packets)); |
28 | 29 |
29 void QuicTimeWaitListManager_AddConnectionIdToTimeWait( | 30 void QuicTimeWaitListManager_AddConnectionIdToTimeWait( |
30 QuicConnectionId connection_id, | 31 QuicConnectionId connection_id, |
(...skipping 16 matching lines...) Expand all Loading... |
47 void(QuicConnectionId connection_id, | 48 void(QuicConnectionId connection_id, |
48 const QuicVersionVector& supported_versions, | 49 const QuicVersionVector& supported_versions, |
49 const IPEndPoint& server_address, | 50 const IPEndPoint& server_address, |
50 const IPEndPoint& client_address)); | 51 const IPEndPoint& client_address)); |
51 }; | 52 }; |
52 | 53 |
53 } // namespace test | 54 } // namespace test |
54 } // namespace net | 55 } // namespace net |
55 | 56 |
56 #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 57 #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
OLD | NEW |