| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( | 162 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( |
| 163 QuicConnection* connection) { | 163 QuicConnection* connection) { |
| 164 return connection->helper_; | 164 return connection->helper_; |
| 165 } | 165 } |
| 166 | 166 |
| 167 // static | 167 // static |
| 168 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { | 168 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { |
| 169 return &connection->framer_; | 169 return &connection->framer_; |
| 170 } | 170 } |
| 171 | 171 |
| 172 // static |
| 172 QuicFecGroup* QuicConnectionPeer::GetFecGroup(QuicConnection* connection, | 173 QuicFecGroup* QuicConnectionPeer::GetFecGroup(QuicConnection* connection, |
| 173 int fec_group) { | 174 int fec_group) { |
| 174 connection->last_header_.fec_group = fec_group; | 175 connection->last_header_.fec_group = fec_group; |
| 175 return connection->GetFecGroup(); | 176 return connection->GetFecGroup(); |
| 176 } | 177 } |
| 177 | 178 |
| 178 // static | 179 // static |
| 179 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { | 180 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { |
| 180 return connection->ack_alarm_.get(); | 181 return connection->ack_alarm_.get(); |
| 181 } | 182 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } | 236 } |
| 236 | 237 |
| 237 // static | 238 // static |
| 238 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, | 239 void QuicConnectionPeer::SetSupportedVersions(QuicConnection* connection, |
| 239 QuicVersionVector versions) { | 240 QuicVersionVector versions) { |
| 240 connection->framer_.SetSupportedVersions(versions); | 241 connection->framer_.SetSupportedVersions(versions); |
| 241 } | 242 } |
| 242 | 243 |
| 243 } // namespace test | 244 } // namespace test |
| 244 } // namespace net | 245 } // namespace net |
| OLD | NEW |