| 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 #include "net/quic/test_tools/quic_test_utils.h" | 5 #include "net/quic/test_tools/quic_test_utils.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/crypto/crypto_framer.h" | 8 #include "net/quic/crypto/crypto_framer.h" |
| 9 #include "net/quic/crypto/crypto_handshake.h" | 9 #include "net/quic/crypto/crypto_handshake.h" |
| 10 #include "net/quic/crypto/crypto_utils.h" | 10 #include "net/quic/crypto/crypto_utils.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 return &clock_; | 123 return &clock_; |
| 124 } | 124 } |
| 125 | 125 |
| 126 QuicRandom* MockHelper::GetRandomGenerator() { | 126 QuicRandom* MockHelper::GetRandomGenerator() { |
| 127 return &random_generator_; | 127 return &random_generator_; |
| 128 } | 128 } |
| 129 | 129 |
| 130 MockConnection::MockConnection(QuicGuid guid, | 130 MockConnection::MockConnection(QuicGuid guid, |
| 131 IPEndPoint address, | 131 IPEndPoint address, |
| 132 bool is_server) | 132 bool is_server) |
| 133 : QuicConnection(guid, address, new MockHelper(), is_server), | 133 : QuicConnection(guid, address, new MockHelper(), is_server) { |
| 134 helper_(helper()) { | |
| 135 } | 134 } |
| 136 | 135 |
| 137 MockConnection::MockConnection(QuicGuid guid, | 136 MockConnection::MockConnection(QuicGuid guid, |
| 138 IPEndPoint address, | 137 IPEndPoint address, |
| 139 QuicConnectionHelperInterface* helper, | 138 QuicConnectionHelperInterface* helper, |
| 140 bool is_server) | 139 bool is_server) |
| 141 : QuicConnection(guid, address, helper, is_server), | 140 : QuicConnection(guid, address, helper, is_server) { |
| 142 helper_(helper) { | |
| 143 } | 141 } |
| 144 | 142 |
| 145 MockConnection::~MockConnection() { | 143 MockConnection::~MockConnection() { |
| 146 } | 144 } |
| 147 | 145 |
| 148 PacketSavingConnection::PacketSavingConnection(QuicGuid guid, | 146 PacketSavingConnection::PacketSavingConnection(QuicGuid guid, |
| 149 IPEndPoint address, | 147 IPEndPoint address, |
| 150 bool is_server) | 148 bool is_server) |
| 151 : MockConnection(guid, address, is_server) { | 149 : MockConnection(guid, address, is_server) { |
| 152 } | 150 } |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 QuicPacketCreator::StreamFramePacketOverhead(1, include_version); | 373 QuicPacketCreator::StreamFramePacketOverhead(1, include_version); |
| 376 } | 374 } |
| 377 | 375 |
| 378 QuicPacketEntropyHash TestEntropyCalculator::ReceivedEntropyHash( | 376 QuicPacketEntropyHash TestEntropyCalculator::ReceivedEntropyHash( |
| 379 QuicPacketSequenceNumber sequence_number) const { | 377 QuicPacketSequenceNumber sequence_number) const { |
| 380 return 1u; | 378 return 1u; |
| 381 } | 379 } |
| 382 | 380 |
| 383 } // namespace test | 381 } // namespace test |
| 384 } // namespace net | 382 } // namespace net |
| OLD | NEW |