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

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

Issue 682283003: Add a QUIC connection option, 'NTLP', to disable tail loss probes by (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Adding_an_option_for_peers_78462599
Patch Set: Created 6 years, 1 month 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_sent_packet_manager_peer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_sent_packet_manager_peer.h" 5 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/congestion_control/loss_detection_interface.h" 8 #include "net/quic/congestion_control/loss_detection_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_protocol.h" 10 #include "net/quic/quic_protocol.h"
11 #include "net/quic/quic_sent_packet_manager.h" 11 #include "net/quic/quic_sent_packet_manager.h"
12 12
13 namespace net { 13 namespace net {
14 namespace test { 14 namespace test {
15 15
16 // static 16 // static
17 size_t QuicSentPacketManagerPeer::GetMaxTailLossProbes(
18 QuicSentPacketManager* sent_packet_manager) {
19 return sent_packet_manager->max_tail_loss_probes_;
20 }
21
22 // static
17 void QuicSentPacketManagerPeer::SetMaxTailLossProbes( 23 void QuicSentPacketManagerPeer::SetMaxTailLossProbes(
18 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes) { 24 QuicSentPacketManager* sent_packet_manager, size_t max_tail_loss_probes) {
19 sent_packet_manager->max_tail_loss_probes_ = max_tail_loss_probes; 25 sent_packet_manager->max_tail_loss_probes_ = max_tail_loss_probes;
20 } 26 }
21 27
22 // static 28 // static
23 void QuicSentPacketManagerPeer::SetSendAlgorithm( 29 void QuicSentPacketManagerPeer::SetSendAlgorithm(
24 QuicSentPacketManager* sent_packet_manager, 30 QuicSentPacketManager* sent_packet_manager,
25 SendAlgorithmInterface* send_algorithm) { 31 SendAlgorithmInterface* send_algorithm) {
26 sent_packet_manager->send_algorithm_.reset(send_algorithm); 32 sent_packet_manager->send_algorithm_.reset(send_algorithm);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 154 }
149 155
150 // static 156 // static
151 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( 157 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder(
152 QuicSentPacketManager* sent_packet_manager) { 158 QuicSentPacketManager* sent_packet_manager) {
153 return sent_packet_manager->sustained_bandwidth_recorder_; 159 return sent_packet_manager->sustained_bandwidth_recorder_;
154 } 160 }
155 161
156 } // namespace test 162 } // namespace test
157 } // namespace net 163 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698