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_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" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 return connection->visitor_; | 47 return connection->visitor_; |
48 } | 48 } |
49 | 49 |
50 // static | 50 // static |
51 QuicPacketCreator* QuicConnectionPeer::GetPacketCreator( | 51 QuicPacketCreator* QuicConnectionPeer::GetPacketCreator( |
52 QuicConnection* connection) { | 52 QuicConnection* connection) { |
53 return &connection->packet_creator_; | 53 return &connection->packet_creator_; |
54 } | 54 } |
55 | 55 |
56 // static | 56 // static |
| 57 QuicPacketGenerator* QuicConnectionPeer::GetPacketGenerator( |
| 58 QuicConnection* connection) { |
| 59 return &connection->packet_generator_; |
| 60 } |
| 61 |
| 62 // static |
57 QuicSentPacketManager* QuicConnectionPeer::GetSentPacketManager( | 63 QuicSentPacketManager* QuicConnectionPeer::GetSentPacketManager( |
58 QuicConnection* connection) { | 64 QuicConnection* connection) { |
59 return &connection->sent_packet_manager_; | 65 return &connection->sent_packet_manager_; |
60 } | 66 } |
61 | 67 |
62 // static | 68 // static |
63 QuicReceivedPacketManager* QuicConnectionPeer::GetReceivedPacketManager( | 69 QuicReceivedPacketManager* QuicConnectionPeer::GetReceivedPacketManager( |
64 QuicConnection* connection) { | 70 QuicConnection* connection) { |
65 return &connection->received_packet_manager_; | 71 return &connection->received_packet_manager_; |
66 } | 72 } |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 } | 222 } |
217 | 223 |
218 // static | 224 // static |
219 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, | 225 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, |
220 QuicVersionVector versions) { | 226 QuicVersionVector versions) { |
221 connection->framer_.SetSupportedVersions(versions); | 227 connection->framer_.SetSupportedVersions(versions); |
222 } | 228 } |
223 | 229 |
224 } // namespace test | 230 } // namespace test |
225 } // namespace net | 231 } // namespace net |
OLD | NEW |