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

Unified Diff: net/quic/test_tools/quic_stream_factory_peer.cc

Issue 2327923002: Revert of Remove obsolete QUIC disabling code. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/test_tools/quic_stream_factory_peer.h ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_stream_factory_peer.cc
diff --git a/net/quic/test_tools/quic_stream_factory_peer.cc b/net/quic/test_tools/quic_stream_factory_peer.cc
index c2dd0ca261ed35b47a039f1aa98ae3351e116eaf..5619e627266081be1e3aa97c574ba33d0856dd3c 100644
--- a/net/quic/test_tools/quic_stream_factory_peer.cc
+++ b/net/quic/test_tools/quic_stream_factory_peer.cc
@@ -71,13 +71,20 @@
factory->task_runner_ = task_runner;
}
+int QuicStreamFactoryPeer::GetNumberOfLossyConnections(
+ QuicStreamFactory* factory,
+ uint16_t port) {
+ return factory->number_of_lossy_connections_[port];
+}
+
QuicTime::Delta QuicStreamFactoryPeer::GetPingTimeout(
QuicStreamFactory* factory) {
return factory->ping_timeout_;
}
-bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory) {
- return factory->IsQuicDisabled();
+bool QuicStreamFactoryPeer::IsQuicDisabled(QuicStreamFactory* factory,
+ uint16_t port) {
+ return factory->IsQuicDisabled(port);
}
bool QuicStreamFactoryPeer::GetDelayTcpRace(QuicStreamFactory* factory) {
@@ -123,6 +130,16 @@
QuicStreamFactory* factory,
const QuicServerId& server_id) {
return (factory->active_jobs_[server_id]).size();
+}
+
+int QuicStreamFactoryPeer::GetNumTimeoutsWithOpenStreams(
+ QuicStreamFactory* factory) {
+ return factory->num_timeouts_with_open_streams_;
+}
+
+int QuicStreamFactoryPeer::GetNumPublicResetsPostHandshake(
+ QuicStreamFactory* factory) {
+ return factory->num_public_resets_post_handshake_;
}
void QuicStreamFactoryPeer::MaybeInitialize(QuicStreamFactory* factory) {
« no previous file with comments | « net/quic/test_tools/quic_stream_factory_peer.h ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698