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()); |