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