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