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

Unified Diff: net/nqe/throughput_analyzer.cc

Issue 2045703003: Enable NQE when Cronet Engine is built (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/throughput_analyzer.cc
diff --git a/net/nqe/throughput_analyzer.cc b/net/nqe/throughput_analyzer.cc
index 5cca08cf3b38f6202b1089cd57157308aeb8c553..69b7f9d8dc142c1841e7370238e8b693d560ed8e 100644
--- a/net/nqe/throughput_analyzer.cc
+++ b/net/nqe/throughput_analyzer.cc
@@ -231,6 +231,18 @@ void ThroughputAnalyzer::OnConnectionTypeChanged() {
last_connection_change_ = base::TimeTicks::Now();
}
+void ThroughputAnalyzer::SetUseLocalHostRequestsForTesting(
+ bool use_local_host_requests_for_tests) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ use_localhost_requests_for_tests_ = use_local_host_requests_for_tests;
+}
+
+void ThroughputAnalyzer::SetUseSmallResponsesForTesting(
+ bool use_small_responses) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ use_small_responses_for_tests_ = use_small_responses;
+}
+
int64_t ThroughputAnalyzer::GetBitsReceived() const {
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698