| 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 <vector> | 10 #include <vector> |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 DISALLOW_COPY_AND_ASSIGN(MockConnection); | 244 DISALLOW_COPY_AND_ASSIGN(MockConnection); |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 class PacketSavingConnection : public MockConnection { | 247 class PacketSavingConnection : public MockConnection { |
| 248 public: | 248 public: |
| 249 PacketSavingConnection(QuicGuid guid, IPEndPoint address, bool is_server); | 249 PacketSavingConnection(QuicGuid guid, IPEndPoint address, bool is_server); |
| 250 virtual ~PacketSavingConnection(); | 250 virtual ~PacketSavingConnection(); |
| 251 | 251 |
| 252 virtual bool SendOrQueuePacket( | 252 virtual bool SendOrQueuePacket( |
| 253 EncryptionLevel level, |
| 253 QuicPacketSequenceNumber sequence_number, | 254 QuicPacketSequenceNumber sequence_number, |
| 254 QuicPacket* packet, | 255 QuicPacket* packet, |
| 255 QuicPacketEntropyHash entropy_hash, | 256 QuicPacketEntropyHash entropy_hash, |
| 256 HasRetransmittableData has_retransmittable_data) OVERRIDE; | 257 HasRetransmittableData has_retransmittable_data) OVERRIDE; |
| 257 | 258 |
| 258 std::vector<QuicPacket*> packets_; | 259 std::vector<QuicPacket*> packets_; |
| 259 | 260 |
| 260 private: | 261 private: |
| 261 DISALLOW_COPY_AND_ASSIGN(PacketSavingConnection); | 262 DISALLOW_COPY_AND_ASSIGN(PacketSavingConnection); |
| 262 }; | 263 }; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 320 |
| 320 virtual QuicPacketEntropyHash ReceivedEntropyHash( | 321 virtual QuicPacketEntropyHash ReceivedEntropyHash( |
| 321 QuicPacketSequenceNumber sequence_number) const OVERRIDE; | 322 QuicPacketSequenceNumber sequence_number) const OVERRIDE; |
| 322 }; | 323 }; |
| 323 | 324 |
| 324 } // namespace test | 325 } // namespace test |
| 325 | 326 |
| 326 } // namespace net | 327 } // namespace net |
| 327 | 328 |
| 328 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ | 329 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ |
| OLD | NEW |