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

Unified Diff: net/nqe/network_quality_estimator_unittest.cc

Issue 2322183002: Add Network Quality Estimator (NQE) pref manager (Closed)
Patch Set: rebased Created 4 years, 3 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 | « net/nqe/network_quality_estimator_test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator_unittest.cc
diff --git a/net/nqe/network_quality_estimator_unittest.cc b/net/nqe/network_quality_estimator_unittest.cc
index 092f3fa97e179a6dfbe8de45d50f661edf71486a..a7b5a1ca8b4a1b1e2491a2bee1ff0453a6214e82 100644
--- a/net/nqe/network_quality_estimator_unittest.cc
+++ b/net/nqe/network_quality_estimator_unittest.cc
@@ -2003,8 +2003,7 @@ TEST(NetworkQualityEstimatorTest, CacheObserver) {
TestNetworkQualityEstimator estimator(variation_params);
// Add |observer| as a persistent caching observer.
- estimator.NetworkQualityStoreForTesting()->AddNetworkQualitiesCacheObserver(
- &observer);
+ estimator.AddNetworkQualitiesCacheObserver(&observer);
estimator.set_recent_effective_connection_type(EFFECTIVE_CONNECTION_TYPE_3G);
estimator.SimulateNetworkChange(
@@ -2037,8 +2036,7 @@ TEST(NetworkQualityEstimatorTest, CacheObserver) {
EXPECT_EQ(1u, observer.get_notification_received_and_reset());
// Remove |observer|, and it should not receive any notifications.
- estimator.NetworkQualityStoreForTesting()
- ->RemoveNetworkQualitiesCacheObserver(&observer);
+ estimator.RemoveNetworkQualitiesCacheObserver(&observer);
estimator.set_recent_effective_connection_type(EFFECTIVE_CONNECTION_TYPE_3G);
estimator.SimulateNetworkChange(
NetworkChangeNotifier::ConnectionType::CONNECTION_2G, "test2g");
« no previous file with comments | « net/nqe/network_quality_estimator_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698