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

Unified Diff: net/nqe/network_quality_estimator_test_util.cc

Issue 2710973003: Record RTT prediction accuracy when using average algorithms (Closed)
Patch Set: Add unweighted average Created 3 years, 10 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') | net/nqe/network_quality_estimator_unittest.cc » ('j') | 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 000df14225ffccfba170e51488c6900dea732c38..dc8e28b4513830b531f6489b4350f9af1fc5a988 100644
--- a/net/nqe/network_quality_estimator_test_util.cc
+++ b/net/nqe/network_quality_estimator_test_util.cc
@@ -182,6 +182,19 @@ bool TestNetworkQualityEstimator::GetRecentDownlinkThroughputKbps(
kbps);
}
+base::TimeDelta TestNetworkQualityEstimator::GetRTTEstimateInternal(
+ const std::vector<NetworkQualityObservationSource>&
+ disallowed_observation_sources,
+ base::TimeTicks start_time,
+ const base::Optional<NetworkQualityEstimator::Statistic>& statistic,
+ int percentile) const {
+ if (rtt_estimate_internal_)
+ return rtt_estimate_internal_.value();
+
+ return NetworkQualityEstimator::GetRTTEstimateInternal(
+ disallowed_observation_sources, start_time, statistic, percentile);
+}
+
void TestNetworkQualityEstimator::SetAccuracyRecordingIntervals(
const std::vector<base::TimeDelta>& accuracy_recording_intervals) {
accuracy_recording_intervals_set_ = true;
« no previous file with comments | « net/nqe/network_quality_estimator_test_util.h ('k') | net/nqe/network_quality_estimator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698