Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Side by Side Diff: net/nqe/network_quality_estimator_test_util.h

Issue 2481373004: NQE: Add default RTT and throughput observations (Closed)
Patch Set: PS Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
35 public: 35 public:
36 TestNetworkQualityEstimator( 36 TestNetworkQualityEstimator(
37 const std::map<std::string, std::string>& variation_params, 37 const std::map<std::string, std::string>& variation_params,
38 std::unique_ptr<net::ExternalEstimateProvider> 38 std::unique_ptr<net::ExternalEstimateProvider>
39 external_estimate_provider); 39 external_estimate_provider);
40 40
41 TestNetworkQualityEstimator( 41 TestNetworkQualityEstimator(
42 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider, 42 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider,
43 const std::map<std::string, std::string>& variation_params, 43 const std::map<std::string, std::string>& variation_params,
44 bool allow_local_host_requests_for_tests, 44 bool allow_local_host_requests_for_tests,
45 bool allow_smaller_responses_for_tests); 45 bool allow_smaller_responses_for_tests,
46 bool use_default_platform_values);
46 47
47 explicit TestNetworkQualityEstimator( 48 explicit TestNetworkQualityEstimator(
48 const std::map<std::string, std::string>& variation_params); 49 const std::map<std::string, std::string>& variation_params);
49 50
50 ~TestNetworkQualityEstimator() override; 51 ~TestNetworkQualityEstimator() override;
51 52
52 // Runs one URL request to completion. 53 // Runs one URL request to completion.
53 void RunOneRequest(); 54 void RunOneRequest();
54 55
55 // Overrides the current network type and id. 56 // Overrides the current network type and id.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 double rand_double_; 225 double rand_double_;
225 226
226 LocalHttpTestServer embedded_test_server_; 227 LocalHttpTestServer embedded_test_server_;
227 228
228 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator); 229 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator);
229 }; 230 };
230 231
231 } // namespace net 232 } // namespace net
232 233
233 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ 234 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698