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

Unified Diff: net/nqe/network_quality_estimator_test_util.cc

Issue 2932993002: Determine proxy connection timeout based on current network quality (Closed)
Patch Set: mmenke comments Created 3 years, 6 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/nqe/network_quality_estimator_test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator_test_util.cc
diff --git a/net/nqe/network_quality_estimator_test_util.cc b/net/nqe/network_quality_estimator_test_util.cc
index 81372b4892cd44ff95c337f9fb0c376c4c03e2e3..84cc8569e443379fd589af98ed37335483c59f68 100644
--- a/net/nqe/network_quality_estimator_test_util.cc
+++ b/net/nqe/network_quality_estimator_test_util.cc
@@ -183,6 +183,13 @@ bool TestNetworkQualityEstimator::GetRecentTransportRTT(
return NetworkQualityEstimator::GetRecentTransportRTT(start_time, rtt);
}
+base::Optional<base::TimeDelta> TestNetworkQualityEstimator::GetTransportRTT()
+ const {
+ if (start_time_null_transport_rtt_)
+ return start_time_null_transport_rtt_;
+ return NetworkQualityEstimator::GetTransportRTT();
+}
+
bool TestNetworkQualityEstimator::GetRecentDownlinkThroughputKbps(
const base::TimeTicks& start_time,
int32_t* kbps) const {
« no previous file with comments | « net/nqe/network_quality_estimator_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698