| 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 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ | 5 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ |
| 6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ | 6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public: | 30 public: |
| 31 TestNetworkQualityEstimator( | 31 TestNetworkQualityEstimator( |
| 32 const std::map<std::string, std::string>& variation_params, | 32 const std::map<std::string, std::string>& variation_params, |
| 33 std::unique_ptr<net::ExternalEstimateProvider> | 33 std::unique_ptr<net::ExternalEstimateProvider> |
| 34 external_estimate_provider); | 34 external_estimate_provider); |
| 35 | 35 |
| 36 TestNetworkQualityEstimator( | 36 TestNetworkQualityEstimator( |
| 37 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider, | 37 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider, |
| 38 const std::map<std::string, std::string>& variation_params, | 38 const std::map<std::string, std::string>& variation_params, |
| 39 bool allow_local_host_requests_for_tests, | 39 bool allow_local_host_requests_for_tests, |
| 40 bool allow_smaller_responses_for_tests); | 40 bool allow_smaller_responses_for_tests, |
| 41 bool add_default_platform_observations); |
| 41 | 42 |
| 42 explicit TestNetworkQualityEstimator( | 43 explicit TestNetworkQualityEstimator( |
| 43 const std::map<std::string, std::string>& variation_params); | 44 const std::map<std::string, std::string>& variation_params); |
| 44 | 45 |
| 45 ~TestNetworkQualityEstimator() override; | 46 ~TestNetworkQualityEstimator() override; |
| 46 | 47 |
| 47 // Runs one URL request to completion. | 48 // Runs one URL request to completion. |
| 48 void RunOneRequest(); | 49 void RunOneRequest(); |
| 49 | 50 |
| 50 // Overrides the current network type and id. | 51 // Overrides the current network type and id. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 double rand_double_; | 220 double rand_double_; |
| 220 | 221 |
| 221 LocalHttpTestServer embedded_test_server_; | 222 LocalHttpTestServer embedded_test_server_; |
| 222 | 223 |
| 223 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator); | 224 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator); |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 } // namespace net | 227 } // namespace net |
| 227 | 228 |
| 228 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ | 229 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ |
| OLD | NEW |