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

Unified Diff: net/nqe/network_quality_estimator_test_util.cc

Issue 2857093002: Expose changes in the network quality to the renderers (Closed)
Patch Set: isherman comments Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/nqe/network_quality_estimator_test_util.h ('k') | tools/metrics/histograms/histograms.xml » ('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 735b27aef5ba91da8eeae59eaa30752c911d2ad2..c6005bb1052aeca1f0530aca939b4475f96db99f 100644
--- a/net/nqe/network_quality_estimator_test_util.cc
+++ b/net/nqe/network_quality_estimator_test_util.cc
@@ -259,6 +259,16 @@ int TestNetworkQualityEstimator::GetNetLogLastIntegerValue(
return return_value;
}
+void TestNetworkQualityEstimator::
+ NotifyObserversOfRTTOrThroughputEstimatesComputed(
+ const net::nqe::internal::NetworkQuality& network_quality) {
+ for (auto& observer : rtt_and_throughput_estimates_observer_list_) {
+ observer.OnRTTOrThroughputEstimatesComputed(
+ network_quality.http_rtt(), network_quality.transport_rtt(),
+ network_quality.downstream_throughput_kbps());
+ }
+}
+
nqe::internal::NetworkID TestNetworkQualityEstimator::GetCurrentNetworkID()
const {
return nqe::internal::NetworkID(current_network_type_, current_network_id_);
« no previous file with comments | « net/nqe/network_quality_estimator_test_util.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698