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

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

Issue 2301453002: Quic use reduced PING timeout when previous connection times out with open streams (Closed)
Patch Set: address nits Created 4 years, 3 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_stream_factory_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_stream_factory_peer.h" 5 #include "net/quic/test_tools/quic_stream_factory_peer.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "net/cert/x509_certificate.h" 10 #include "net/cert/x509_certificate.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 base::TaskRunner* task_runner) { 70 base::TaskRunner* task_runner) {
71 factory->task_runner_ = task_runner; 71 factory->task_runner_ = task_runner;
72 } 72 }
73 73
74 int QuicStreamFactoryPeer::GetNumberOfLossyConnections( 74 int QuicStreamFactoryPeer::GetNumberOfLossyConnections(
75 QuicStreamFactory* factory, 75 QuicStreamFactory* factory,
76 uint16_t port) { 76 uint16_t port) {
77 return factory->number_of_lossy_connections_[port]; 77 return factory->number_of_lossy_connections_[port];
78 } 78 }
79 79
80 QuicTime::Delta QuicStreamFactoryPeer::GetPingTimeout(
81 QuicStreamFactory* factory) {
82 return factory->ping_timeout_;
83 }
84
80 bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory, 85 bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory,
81 uint16_t port) { 86 uint16_t port) {
82 return factory->IsQuicDisabled(port); 87 return factory->IsQuicDisabled(port);
83 } 88 }
84 89
85 bool QuicStreamFactoryPeer::GetDelayTcpRace(QuicStreamFactory* factory) { 90 bool QuicStreamFactoryPeer::GetDelayTcpRace(QuicStreamFactory* factory) {
86 return factory->delay_tcp_race_; 91 return factory->delay_tcp_race_;
87 } 92 }
88 93
89 void QuicStreamFactoryPeer::SetDelayTcpRace(QuicStreamFactory* factory, 94 void QuicStreamFactoryPeer::SetDelayTcpRace(QuicStreamFactory* factory,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return &factory->push_promise_index_; 206 return &factory->push_promise_index_;
202 } 207 }
203 208
204 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( 209 int QuicStreamFactoryPeer::GetNumPushStreamsCreated(
205 QuicStreamFactory* factory) { 210 QuicStreamFactory* factory) {
206 return factory->num_push_streams_created_; 211 return factory->num_push_streams_created_;
207 } 212 }
208 213
209 } // namespace test 214 } // namespace test
210 } // namespace net 215 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_stream_factory_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698