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

Unified Diff: net/nqe/network_quality.cc

Issue 2417643007: Expose RTT and throughput estimates from Cronet (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.cc
diff --git a/net/nqe/network_quality.cc b/net/nqe/network_quality.cc
index 6831dd4b2135ed838cee6d8bda37f2007ff0b1c0..1a090e28fc1801efedf595efbdf5ec6daa3e6b3a 100644
--- a/net/nqe/network_quality.cc
+++ b/net/nqe/network_quality.cc
@@ -9,7 +9,7 @@ namespace nqe {
namespace internal {
base::TimeDelta InvalidRTT() {
- return base::TimeDelta::Max();
+ return base::TimeDelta::FromMilliseconds(INVALID_RTT_THROUGHPUT_VALUE);
}
NetworkQuality::NetworkQuality()
@@ -21,7 +21,7 @@ NetworkQuality::NetworkQuality(const base::TimeDelta& http_rtt,
: http_rtt_(http_rtt),
transport_rtt_(transport_rtt),
downstream_throughput_kbps_(downstream_throughput_kbps) {
- DCHECK_GE(downstream_throughput_kbps_, 0);
+ DCHECK_GE(downstream_throughput_kbps_, kInvalidThroughput);
}
NetworkQuality::NetworkQuality(const NetworkQuality& other)

Powered by Google App Engine
This is Rietveld 408576698