| 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" |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |