Index: net/nqe/network_quality_estimator.cc |
diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc |
index d1f87e981fd3a0524aacb73a4a3f8849fd22a8d8..8bd94fb9963a9f4a4fa66ade5fae59971f50790d 100644 |
--- a/net/nqe/network_quality_estimator.cc |
+++ b/net/nqe/network_quality_estimator.cc |
@@ -808,6 +808,17 @@ void NetworkQualityEstimator::ReportEffectiveConnectionTypeForTesting( |
effective_connection_type)); |
} |
+void NetworkQualityEstimator::ReportRTTsAndThroughputForTesting( |
+ base::TimeDelta http_rtt, |
+ base::TimeDelta transport_rtt, |
+ int32_t downstream_throughput_kbps) { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ |
+ for (auto& observer : rtt_and_throughput_estimates_observer_list_) |
+ observer.OnRTTOrThroughputEstimatesComputed(http_rtt, transport_rtt, |
+ downstream_throughput_kbps); |
+} |
+ |
bool NetworkQualityEstimator::RequestProvidesRTTObservation( |
const URLRequest& request) const { |
DCHECK(thread_checker_.CalledOnValidThread()); |