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 25 matching lines...) Expand all Loading... |
36 SendAlgorithmInterface* send_algorithm) { | 36 SendAlgorithmInterface* send_algorithm) { |
37 connection->sent_packet_manager_.send_algorithm_.reset(send_algorithm); | 37 connection->sent_packet_manager_.send_algorithm_.reset(send_algorithm); |
38 } | 38 } |
39 | 39 |
40 // static | 40 // static |
41 QuicAckFrame* QuicConnectionPeer::CreateAckFrame(QuicConnection* connection) { | 41 QuicAckFrame* QuicConnectionPeer::CreateAckFrame(QuicConnection* connection) { |
42 return connection->CreateAckFrame(); | 42 return connection->CreateAckFrame(); |
43 } | 43 } |
44 | 44 |
45 // static | 45 // static |
| 46 QuicStopWaitingFrame* QuicConnectionPeer::CreateStopWaitingFrame( |
| 47 QuicConnection* connection) { |
| 48 return connection->CreateStopWaitingFrame(); |
| 49 } |
| 50 |
| 51 // static |
46 QuicConnectionVisitorInterface* QuicConnectionPeer::GetVisitor( | 52 QuicConnectionVisitorInterface* QuicConnectionPeer::GetVisitor( |
47 QuicConnection* connection) { | 53 QuicConnection* connection) { |
48 return connection->visitor_; | 54 return connection->visitor_; |
49 } | 55 } |
50 | 56 |
51 // static | 57 // static |
52 QuicPacketCreator* QuicConnectionPeer::GetPacketCreator( | 58 QuicPacketCreator* QuicConnectionPeer::GetPacketCreator( |
53 QuicConnection* connection) { | 59 QuicConnection* connection) { |
54 return QuicPacketGeneratorPeer::GetPacketCreator( | 60 return QuicPacketGeneratorPeer::GetPacketCreator( |
55 &connection->packet_generator_); | 61 &connection->packet_generator_); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 } | 235 } |
230 | 236 |
231 // static | 237 // static |
232 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, | 238 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, |
233 QuicVersionVector versions) { | 239 QuicVersionVector versions) { |
234 connection->framer_.SetSupportedVersions(versions); | 240 connection->framer_.SetSupportedVersions(versions); |
235 } | 241 } |
236 | 242 |
237 } // namespace test | 243 } // namespace test |
238 } // namespace net | 244 } // namespace net |
OLD | NEW |