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

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: Addressed mef comments 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
« no previous file with comments | « net/nqe/throughput_analyzer.h ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/throughput_analyzer.cc
diff --git a/net/nqe/throughput_analyzer.cc b/net/nqe/throughput_analyzer.cc
index 5cca08cf3b38f6202b1089cd57157308aeb8c553..716613f4dd113ee1a4206122ec3644add4170169 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_localhost_requests) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ use_localhost_requests_for_tests_ = use_localhost_requests;
+}
+
+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());
« no previous file with comments | « net/nqe/throughput_analyzer.h ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698