Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: net/quic/test_tools/quic_test_utils.cc

Issue 1548703002: Add class QuicMultipathReceivedPacketManager (not in use currently). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@110446931
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 // called. 758 // called.
759 factory_->current_writer_ = this; 759 factory_->current_writer_ = this;
760 return tools::QuicPerConnectionPacketWriter::WritePacket( 760 return tools::QuicPerConnectionPacketWriter::WritePacket(
761 buffer, buf_len, self_address, peer_address); 761 buffer, buf_len, self_address, peer_address);
762 } 762 }
763 763
764 MockQuicConnectionDebugVisitor::MockQuicConnectionDebugVisitor() {} 764 MockQuicConnectionDebugVisitor::MockQuicConnectionDebugVisitor() {}
765 765
766 MockQuicConnectionDebugVisitor::~MockQuicConnectionDebugVisitor() {} 766 MockQuicConnectionDebugVisitor::~MockQuicConnectionDebugVisitor() {}
767 767
768 MockReceivedPacketManager::MockReceivedPacketManager(QuicConnectionStats* stats)
769 : QuicReceivedPacketManager(stats) {}
770
771 MockReceivedPacketManager::~MockReceivedPacketManager() {}
772
768 void CreateClientSessionForTest(QuicServerId server_id, 773 void CreateClientSessionForTest(QuicServerId server_id,
769 bool supports_stateless_rejects, 774 bool supports_stateless_rejects,
770 QuicTime::Delta connection_start_time, 775 QuicTime::Delta connection_start_time,
771 QuicVersionVector supported_versions, 776 QuicVersionVector supported_versions,
772 MockConnectionHelper* helper, 777 MockConnectionHelper* helper,
773 QuicCryptoClientConfig* crypto_client_config, 778 QuicCryptoClientConfig* crypto_client_config,
774 PacketSavingConnection** client_connection, 779 PacketSavingConnection** client_connection,
775 TestQuicSpdyClientSession** client_session) { 780 TestQuicSpdyClientSession** client_session) {
776 CHECK(crypto_client_config); 781 CHECK(crypto_client_config);
777 CHECK(client_connection); 782 CHECK(client_connection);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 // strike register worries that we've just overflowed a uint32 time. 818 // strike register worries that we've just overflowed a uint32 time.
814 (*server_connection)->AdvanceTime(connection_start_time); 819 (*server_connection)->AdvanceTime(connection_start_time);
815 } 820 }
816 821
817 QuicStreamId QuicClientDataStreamId(int i) { 822 QuicStreamId QuicClientDataStreamId(int i) {
818 return kClientDataStreamId1 + 2 * i; 823 return kClientDataStreamId1 + 2 * i;
819 } 824 }
820 825
821 } // namespace test 826 } // namespace test
822 } // namespace net 827 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698