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

Unified Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h

Issue 2717153002: NQE: Plumb RTT and throughput estimates to the UI thread (Closed)
Patch Set: Rebase, Fix more compilation errors Created 3 years, 9 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
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_

Powered by Google App Engine
This is Rietveld 408576698