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

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

Issue 475113005: Refactoring: Create per-connection packet writers in QuicDispatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add new files to net/BUILD.gn 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 | Annotate | Revision Log
« 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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