| 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/sha1.h" | 7 #include "base/sha1.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "net/quic/crypto/crypto_framer.h" | 10 #include "net/quic/crypto/crypto_framer.h" |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 // called. | 751 // called. |
| 752 factory_->current_writer_ = this; | 752 factory_->current_writer_ = this; |
| 753 return tools::QuicPerConnectionPacketWriter::WritePacket( | 753 return tools::QuicPerConnectionPacketWriter::WritePacket( |
| 754 buffer, buf_len, self_address, peer_address); | 754 buffer, buf_len, self_address, peer_address); |
| 755 } | 755 } |
| 756 | 756 |
| 757 MockQuicConnectionDebugVisitor::MockQuicConnectionDebugVisitor() {} | 757 MockQuicConnectionDebugVisitor::MockQuicConnectionDebugVisitor() {} |
| 758 | 758 |
| 759 MockQuicConnectionDebugVisitor::~MockQuicConnectionDebugVisitor() {} | 759 MockQuicConnectionDebugVisitor::~MockQuicConnectionDebugVisitor() {} |
| 760 | 760 |
| 761 MockReceivedPacketManager::MockReceivedPacketManager(QuicConnectionStats* stats) |
| 762 : QuicReceivedPacketManager(stats) {} |
| 763 |
| 764 MockReceivedPacketManager::~MockReceivedPacketManager() {} |
| 765 |
| 761 void CreateClientSessionForTest(QuicServerId server_id, | 766 void CreateClientSessionForTest(QuicServerId server_id, |
| 762 bool supports_stateless_rejects, | 767 bool supports_stateless_rejects, |
| 763 QuicTime::Delta connection_start_time, | 768 QuicTime::Delta connection_start_time, |
| 764 QuicVersionVector supported_versions, | 769 QuicVersionVector supported_versions, |
| 765 MockConnectionHelper* helper, | 770 MockConnectionHelper* helper, |
| 766 QuicCryptoClientConfig* crypto_client_config, | 771 QuicCryptoClientConfig* crypto_client_config, |
| 767 PacketSavingConnection** client_connection, | 772 PacketSavingConnection** client_connection, |
| 768 TestQuicSpdyClientSession** client_session) { | 773 TestQuicSpdyClientSession** client_session) { |
| 769 CHECK(crypto_client_config); | 774 CHECK(crypto_client_config); |
| 770 CHECK(client_connection); | 775 CHECK(client_connection); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 // strike register worries that we've just overflowed a uint32_t time. | 811 // strike register worries that we've just overflowed a uint32_t time. |
| 807 (*server_connection)->AdvanceTime(connection_start_time); | 812 (*server_connection)->AdvanceTime(connection_start_time); |
| 808 } | 813 } |
| 809 | 814 |
| 810 QuicStreamId QuicClientDataStreamId(int i) { | 815 QuicStreamId QuicClientDataStreamId(int i) { |
| 811 return kClientDataStreamId1 + 2 * i; | 816 return kClientDataStreamId1 + 2 * i; |
| 812 } | 817 } |
| 813 | 818 |
| 814 } // namespace test | 819 } // namespace test |
| 815 } // namespace net | 820 } // namespace net |
| OLD | NEW |