Index: chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h |
diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h |
index d59914d584275d84b80cc5935a802f901e037ea2..35943ce937a7645465ff60b37022c4612263f4c9 100644 |
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h |
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h |
@@ -5,6 +5,7 @@ |
#ifndef CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_UTIL_H_ |
#define CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_UTIL_H_ |
+#include "base/time/time.h" |
#include "net/nqe/effective_connection_type.h" |
namespace nqe_test_util { |
@@ -15,6 +16,12 @@ namespace nqe_test_util { |
// replies. |
void OverrideEffectiveConnectionTypeAndWait(net::EffectiveConnectionType type); |
+// Forces NetworkQualityEstimator to report |rtt| to all its |
+// RTTAndThroughputEstimatesObservers. |
+// This blocks execution on the calling thread until the IO task runs and |
+// replies. |
+void OverrideRTTsAndWait(base::TimeDelta rtt); |
+ |
} // namespace nqe_test_util |
#endif // CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_UTIL_H_ |