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

Unified Diff: components/offline_pages/background/request_coordinator_unittest.cc

Issue 2450433003: Adding observer functionality to UINetworkQualityService (Closed)
Patch Set: nits Created 4 years, 2 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
Index: components/offline_pages/background/request_coordinator_unittest.cc
diff --git a/components/offline_pages/background/request_coordinator_unittest.cc b/components/offline_pages/background/request_coordinator_unittest.cc
index 0cfd54b476e58847e04495004bb839e1e5a6a980..abba37699cbf7d905e2a3f1ebaf92f114a2c0296 100644
--- a/components/offline_pages/background/request_coordinator_unittest.cc
+++ b/components/offline_pages/background/request_coordinator_unittest.cc
@@ -153,20 +153,28 @@ class NetworkQualityEstimatorStub
: public net::NetworkQualityEstimator::NetworkQualityProvider {
public:
NetworkQualityEstimatorStub()
: connection_type_(
net::EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_3G) {}
net::EffectiveConnectionType GetEffectiveConnectionType() const override {
return connection_type_;
}
+ void AddEffectiveConnectionTypeObserver(
+ net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer)
+ override {}
+
+ void RemoveEffectiveConnectionTypeObserver(
+ net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer)
+ override {}
+
void SetEffectiveConnectionTypeForTest(net::EffectiveConnectionType type) {
connection_type_ = type;
}
private:
net::EffectiveConnectionType connection_type_;
};
class ObserverStub : public RequestCoordinator::Observer {
public:
« no previous file with comments | « chrome/browser/net/nqe/ui_network_quality_estimator_service_browsertest.cc ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698