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

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

Issue 331573002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compiler error - use push_back to initialize vectors Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/quic_packet_creator_peer.h » ('j') | 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_connection_peer.h" 5 #include "net/quic/test_tools/quic_connection_peer.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/congestion_control/receive_algorithm_interface.h" 8 #include "net/quic/congestion_control/receive_algorithm_interface.h"
9 #include "net/quic/congestion_control/send_algorithm_interface.h" 9 #include "net/quic/congestion_control/send_algorithm_interface.h"
10 #include "net/quic/quic_connection.h" 10 #include "net/quic/quic_connection.h"
11 #include "net/quic/quic_packet_writer.h" 11 #include "net/quic/quic_packet_writer.h"
12 #include "net/quic/quic_received_packet_manager.h" 12 #include "net/quic/quic_received_packet_manager.h"
13 #include "net/quic/test_tools/quic_framer_peer.h" 13 #include "net/quic/test_tools/quic_framer_peer.h"
14 #include "net/quic/test_tools/quic_packet_generator_peer.h"
14 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" 15 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
15 16
16 namespace net { 17 namespace net {
17 namespace test { 18 namespace test {
18 19
19 // static 20 // static
20 void QuicConnectionPeer::SendAck(QuicConnection* connection) { 21 void QuicConnectionPeer::SendAck(QuicConnection* connection) {
21 connection->SendAck(); 22 connection->SendAck();
22 } 23 }
23 24
(...skipping 19 matching lines...) Expand all
43 44
44 // static 45 // static
45 QuicConnectionVisitorInterface* QuicConnectionPeer::GetVisitor( 46 QuicConnectionVisitorInterface* QuicConnectionPeer::GetVisitor(
46 QuicConnection* connection) { 47 QuicConnection* connection) {
47 return connection->visitor_; 48 return connection->visitor_;
48 } 49 }
49 50
50 // static 51 // static
51 QuicPacketCreator* QuicConnectionPeer::GetPacketCreator( 52 QuicPacketCreator* QuicConnectionPeer::GetPacketCreator(
52 QuicConnection* connection) { 53 QuicConnection* connection) {
53 return &connection->packet_creator_; 54 return QuicPacketGeneratorPeer::GetPacketCreator(
55 &connection->packet_generator_);
54 } 56 }
55 57
56 // static 58 // static
57 QuicPacketGenerator* QuicConnectionPeer::GetPacketGenerator( 59 QuicPacketGenerator* QuicConnectionPeer::GetPacketGenerator(
58 QuicConnection* connection) { 60 QuicConnection* connection) {
59 return &connection->packet_generator_; 61 return &connection->packet_generator_;
60 } 62 }
61 63
62 // static 64 // static
63 QuicSentPacketManager* QuicConnectionPeer::GetSentPacketManager( 65 QuicSentPacketManager* QuicConnectionPeer::GetSentPacketManager(
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 224 }
223 225
224 // static 226 // static
225 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, 227 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection,
226 QuicVersionVector versions) { 228 QuicVersionVector versions) {
227 connection->framer_.SetSupportedVersions(versions); 229 connection->framer_.SetSupportedVersions(versions);
228 } 230 }
229 231
230 } // namespace test 232 } // namespace test
231 } // namespace net 233 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/quic_packet_creator_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698