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

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

Issue 1905843003: Split out QuicAlarm creation from QuicConnectionHelper to new QuicAlarmFactory. No behavior change,… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119753783
Patch Set: Rebase Created 4 years, 8 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/quic_connection_peer.h ('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/send_algorithm_interface.h" 8 #include "net/quic/congestion_control/send_algorithm_interface.h"
9 #include "net/quic/quic_packet_writer.h" 9 #include "net/quic/quic_packet_writer.h"
10 #include "net/quic/quic_received_packet_manager.h" 10 #include "net/quic/quic_received_packet_manager.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); 139 QuicFramerPeer::SwapCrypters(framer, &connection->framer_);
140 } 140 }
141 141
142 // static 142 // static
143 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( 143 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper(
144 QuicConnection* connection) { 144 QuicConnection* connection) {
145 return connection->helper_; 145 return connection->helper_;
146 } 146 }
147 147
148 // static 148 // static
149 QuicAlarmFactory* QuicConnectionPeer::GetAlarmFactory(
150 QuicConnection* connection) {
151 return connection->alarm_factory_;
152 }
153
154 // static
149 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { 155 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) {
150 return &connection->framer_; 156 return &connection->framer_;
151 } 157 }
152 158
153 // static 159 // static
154 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { 160 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) {
155 return connection->ack_alarm_.get(); 161 return connection->ack_alarm_.get();
156 } 162 }
157 163
158 // static 164 // static
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 263 }
258 264
259 // static 265 // static
260 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, 266 void QuicConnectionPeer::SetAckMode(QuicConnection* connection,
261 QuicConnection::AckMode ack_mode) { 267 QuicConnection::AckMode ack_mode) {
262 connection->ack_mode_ = ack_mode; 268 connection->ack_mode_ = ack_mode;
263 } 269 }
264 270
265 } // namespace test 271 } // namespace test
266 } // namespace net 272 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698