| Index: net/nqe/network_quality_estimator.cc
|
| diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
|
| index 7750e2faff832b75c6063e3551e24aa924905d94..347ef949ca519cdf1909c4b28cd2e130c112f367 100644
|
| --- a/net/nqe/network_quality_estimator.cc
|
| +++ b/net/nqe/network_quality_estimator.cc
|
| @@ -730,20 +730,28 @@ void NetworkQualityEstimator::SetUseLocalHostRequestsForTesting(
|
| use_localhost_requests_);
|
| }
|
|
|
| void NetworkQualityEstimator::SetUseSmallResponsesForTesting(
|
| bool use_small_responses) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| use_small_responses_ = use_small_responses;
|
| throughput_analyzer_->SetUseSmallResponsesForTesting(use_small_responses_);
|
| }
|
|
|
| +void NetworkQualityEstimator::ReportEffectiveConnectionTypeForTesting(
|
| + EffectiveConnectionType effective_connection_type) {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| + FOR_EACH_OBSERVER(
|
| + EffectiveConnectionTypeObserver, effective_connection_type_observer_list_,
|
| + OnEffectiveConnectionTypeChanged(effective_connection_type));
|
| +}
|
| +
|
| bool NetworkQualityEstimator::RequestProvidesRTTObservation(
|
| const URLRequest& request) const {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
| return (use_localhost_requests_ || !IsLocalhost(request.url().host())) &&
|
| // Verify that response headers are received, so it can be ensured that
|
| // response is not cached.
|
| !request.response_info().response_time.is_null() &&
|
| !request.was_cached() &&
|
| request.creation_time() >= last_connection_change_;
|
|
|