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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 QuicConnection* connection) { | 235 QuicConnection* connection) { |
236 return connection->connection_close_packet_.get(); | 236 return connection->connection_close_packet_.get(); |
237 } | 237 } |
238 | 238 |
239 // static | 239 // static |
240 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, | 240 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, |
241 QuicVersionVector versions) { | 241 QuicVersionVector versions) { |
242 connection->framer_.SetSupportedVersions(versions); | 242 connection->framer_.SetSupportedVersions(versions); |
243 } | 243 } |
244 | 244 |
| 245 // static |
| 246 QuicPacketHeader* QuicConnectionPeer::GetLastHeader( |
| 247 QuicConnection* connection) { |
| 248 return &connection->last_header_; |
| 249 } |
| 250 |
245 } // namespace test | 251 } // namespace test |
246 } // namespace net | 252 } // namespace net |
OLD | NEW |