| 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_QUIC_TEST_UTILS_H_ | 7 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| 8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 8 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 QuicConnectionHelperInterface* helper); | 155 QuicConnectionHelperInterface* helper); |
| 156 | 156 |
| 157 ~MockTimeWaitListManager() override; | 157 ~MockTimeWaitListManager() override; |
| 158 | 158 |
| 159 MOCK_METHOD3(AddConnectionIdToTimeWait, | 159 MOCK_METHOD3(AddConnectionIdToTimeWait, |
| 160 void(QuicConnectionId connection_id, | 160 void(QuicConnectionId connection_id, |
| 161 QuicVersion version, | 161 QuicVersion version, |
| 162 QuicEncryptedPacket* close_packet)); | 162 QuicEncryptedPacket* close_packet)); |
| 163 | 163 |
| 164 void QuicTimeWaitListManager_AddConnectionIdToTimeWait( | 164 void QuicTimeWaitListManager_AddConnectionIdToTimeWait( |
| 165 QuicConnectionId connection_id, | 165 QuicConnectionId connection_id, |
| 166 QuicVersion version, | 166 QuicVersion version, |
| 167 QuicEncryptedPacket* close_packet) { | 167 QuicEncryptedPacket* close_packet) { |
| 168 QuicTimeWaitListManager::AddConnectionIdToTimeWait(connection_id, | 168 QuicTimeWaitListManager::AddConnectionIdToTimeWait(connection_id, version, |
| 169 version, | |
| 170 close_packet); | 169 close_packet); |
| 171 } | 170 } |
| 172 | 171 |
| 173 MOCK_METHOD5(ProcessPacket, | 172 MOCK_METHOD5(ProcessPacket, |
| 174 void(const IPEndPoint& server_address, | 173 void(const IPEndPoint& server_address, |
| 175 const IPEndPoint& client_address, | 174 const IPEndPoint& client_address, |
| 176 QuicConnectionId connection_id, | 175 QuicConnectionId connection_id, |
| 177 QuicPacketSequenceNumber sequence_number, | 176 QuicPacketSequenceNumber sequence_number, |
| 178 const QuicEncryptedPacket& packet)); | 177 const QuicEncryptedPacket& packet)); |
| 179 }; | 178 }; |
| 180 | 179 |
| 181 } // namespace test | 180 } // namespace test |
| 182 } // namespace tools | 181 } // namespace tools |
| 183 } // namespace net | 182 } // namespace net |
| 184 | 183 |
| 185 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 184 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |