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

Unified Diff: net/nqe/network_quality_estimator_test_util.h

Issue 2406763003: Add Network Quality observer to NQE (Closed)
Patch Set: ps Created 4 years, 2 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: net/nqe/network_quality_estimator_test_util.h
diff --git a/net/nqe/network_quality_estimator_test_util.h b/net/nqe/network_quality_estimator_test_util.h
index 15203aac232c4597dbe4a88e4a7a7f02cf0797b8..da98abd0b8d25e3345522a429406588c289f819e 100644
--- a/net/nqe/network_quality_estimator_test_util.h
+++ b/net/nqe/network_quality_estimator_test_util.h
@@ -82,6 +82,15 @@ class TestNetworkQualityEstimator : public NetworkQualityEstimator {
EffectiveConnectionType GetRecentEffectiveConnectionType(
const base::TimeTicks& start_time) const override;
+ // Returns the effective connection type that was set using
+ // |set_effective_connection_type|. If the connection type has not been set,
+ // then the base implementation is called.
RyanSturm 2016/10/11 01:46:26 Add comments about how |http_rtt|, |transport_rtt|
tbansal1 2016/10/11 17:46:12 Done.
+ EffectiveConnectionType GetRecentEffectiveConnectionTypeAndNetworkQuality(
+ const base::TimeTicks& start_time,
+ base::TimeDelta* http_rtt,
+ base::TimeDelta* transport_rtt,
+ int32_t* downstream_throughput_kbps) const override;
+
void set_http_rtt(const base::TimeDelta& http_rtt) {
http_rtt_set_ = true;
http_rtt_ = http_rtt;

Powered by Google App Engine
This is Rietveld 408576698