OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/nqe/network_quality_estimator_test_util.h" | 5 #include "net/nqe/network_quality_estimator_test_util.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "net/base/load_flags.h" | 9 #include "net/base/load_flags.h" |
10 #include "net/test/embedded_test_server/http_response.h" | 10 #include "net/test/embedded_test_server/http_response.h" |
11 #include "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" |
12 #include "net/url_request/url_request_test_util.h" | 12 #include "net/url_request/url_request_test_util.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 const base::FilePath::CharType kTestFilePath[] = | 16 const base::FilePath::CharType kTestFilePath[] = |
17 FILE_PATH_LITERAL("net/data/url_request_unittest"); | 17 FILE_PATH_LITERAL("net/data/url_request_unittest"); |
18 | 18 |
19 } // namespace | 19 } // namespace |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
| 23 TestNetworkQualityEstimator::TestNetworkQualityEstimator() |
| 24 : TestNetworkQualityEstimator(std::map<std::string, std::string>()) {} |
| 25 |
23 TestNetworkQualityEstimator::TestNetworkQualityEstimator( | 26 TestNetworkQualityEstimator::TestNetworkQualityEstimator( |
24 const std::map<std::string, std::string>& variation_params, | 27 const std::map<std::string, std::string>& variation_params, |
25 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider) | 28 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider) |
26 : TestNetworkQualityEstimator(std::move(external_estimate_provider), | 29 : TestNetworkQualityEstimator(std::move(external_estimate_provider), |
27 variation_params, | 30 variation_params, |
28 true, | 31 true, |
29 true, | 32 true, |
30 false) {} | 33 false) {} |
31 | 34 |
32 TestNetworkQualityEstimator::TestNetworkQualityEstimator( | 35 TestNetworkQualityEstimator::TestNetworkQualityEstimator( |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 const { | 196 const { |
194 return nqe::internal::NetworkID(current_network_type_, current_network_id_); | 197 return nqe::internal::NetworkID(current_network_type_, current_network_id_); |
195 } | 198 } |
196 | 199 |
197 TestNetworkQualityEstimator::LocalHttpTestServer::LocalHttpTestServer( | 200 TestNetworkQualityEstimator::LocalHttpTestServer::LocalHttpTestServer( |
198 const base::FilePath& document_root) { | 201 const base::FilePath& document_root) { |
199 AddDefaultHandlers(document_root); | 202 AddDefaultHandlers(document_root); |
200 } | 203 } |
201 | 204 |
202 } // namespace net | 205 } // namespace net |
OLD | NEW |