Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Side by Side Diff: net/quic/test_tools/quic_connection_peer.cc

Issue 467963002: Refactoring: Create per-connection packet writers in QuicDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto ToT Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698