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

Unified Diff: net/nqe/network_quality_estimator_test_util.h

Issue 2908233002: NetInfo default values (Closed)
Patch Set: ps Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/net_info_browsertest.cc ('k') | net/nqe/network_quality_estimator_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator_test_util.h
diff --git a/net/nqe/network_quality_estimator_test_util.h b/net/nqe/network_quality_estimator_test_util.h
index 4b12fce080d9240c4e99875b1c558645e5585ade..a0365ea5c0d98809e994c8afc43cd284a3c39217 100644
--- a/net/nqe/network_quality_estimator_test_util.h
+++ b/net/nqe/network_quality_estimator_test_util.h
@@ -48,15 +48,6 @@ class TestNetworkQualityEstimator : public NetworkQualityEstimator {
bool add_default_platform_observations,
std::unique_ptr<BoundTestNetLog> net_log);
- TestNetworkQualityEstimator(
- std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider,
- const std::map<std::string, std::string>& variation_params,
- bool allow_local_host_requests_for_tests,
- bool allow_smaller_responses_for_tests,
- bool add_default_platform_observations,
- bool suppress_notifications_for_testing,
- std::unique_ptr<BoundTestNetLog> net_log);
-
~TestNetworkQualityEstimator() override;
// Runs one URL request to completion.
@@ -226,6 +217,9 @@ class TestNetworkQualityEstimator : public NetworkQualityEstimator {
// changed to |network_quality|.
void NotifyObserversOfEffectiveConnectionType(EffectiveConnectionType type);
+ void SetSuppressNotificationsForTesting(
+ bool suppress_notifications_for_testing);
+
using NetworkQualityEstimator::SetTickClockForTesting;
using NetworkQualityEstimator::OnConnectionTypeChanged;
using NetworkQualityEstimator::OnUpdatedRTTAvailable;
@@ -279,7 +273,7 @@ class TestNetworkQualityEstimator : public NetworkQualityEstimator {
LocalHttpTestServer embedded_test_server_;
// If true, notifications are not sent to any of the observers.
- const bool suppress_notifications_for_testing_;
+ bool suppress_notifications_for_testing_;
// Net log provided to network quality estimator.
std::unique_ptr<net::BoundTestNetLog> net_log_;
« no previous file with comments | « content/browser/net_info_browsertest.cc ('k') | net/nqe/network_quality_estimator_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698