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

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

Issue 1916783003: QUIC - enable "delay_tcp_race" parameter by default. This feature showed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted unneeded hanging get calls from unittests Created 4 years, 7 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
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 "net/quic/crypto/quic_crypto_client_config.h" 7 #include "net/quic/crypto/quic_crypto_client_config.h"
8 #include "net/quic/quic_chromium_client_session.h" 8 #include "net/quic/quic_chromium_client_session.h"
9 #include "net/quic/quic_clock.h" 9 #include "net/quic/quic_clock.h"
10 #include "net/quic/quic_http_stream.h" 10 #include "net/quic/quic_http_stream.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 QuicStreamFactory* factory, 66 QuicStreamFactory* factory,
67 uint16_t port) { 67 uint16_t port) {
68 return factory->number_of_lossy_connections_[port]; 68 return factory->number_of_lossy_connections_[port];
69 } 69 }
70 70
71 bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory, 71 bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory,
72 uint16_t port) { 72 uint16_t port) {
73 return factory->IsQuicDisabled(port); 73 return factory->IsQuicDisabled(port);
74 } 74 }
75 75
76 bool QuicStreamFactoryPeer::GetDelayTcpRace(QuicStreamFactory* factory) {
77 return factory->delay_tcp_race_;
78 }
79
80 void QuicStreamFactoryPeer::SetDelayTcpRace(QuicStreamFactory* factory,
81 bool delay_tcp_race) {
82 factory->delay_tcp_race_ = delay_tcp_race;
83 }
84
85 void QuicStreamFactoryPeer::SetYieldAfterPackets(QuicStreamFactory* factory, 76 void QuicStreamFactoryPeer::SetYieldAfterPackets(QuicStreamFactory* factory,
86 int yield_after_packets) { 77 int yield_after_packets) {
87 factory->yield_after_packets_ = yield_after_packets; 78 factory->yield_after_packets_ = yield_after_packets;
88 } 79 }
89 80
90 void QuicStreamFactoryPeer::SetYieldAfterDuration( 81 void QuicStreamFactoryPeer::SetYieldAfterDuration(
91 QuicStreamFactory* factory, 82 QuicStreamFactory* factory,
92 QuicTime::Delta yield_after_duration) { 83 QuicTime::Delta yield_after_duration) {
93 factory->yield_after_duration_ = yield_after_duration; 84 factory->yield_after_duration_ = yield_after_duration;
94 } 85 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 return &factory->push_promise_index_; 157 return &factory->push_promise_index_;
167 } 158 }
168 159
169 int QuicStreamFactoryPeer::GetNumPushStreamsCreated( 160 int QuicStreamFactoryPeer::GetNumPushStreamsCreated(
170 QuicStreamFactory* factory) { 161 QuicStreamFactory* factory) {
171 return factory->num_push_streams_created_; 162 return factory->num_push_streams_created_;
172 } 163 }
173 164
174 } // namespace test 165 } // namespace test
175 } // namespace net 166 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_stream_factory_peer.h ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698