Chromium Code Reviews| Index: chrome/browser/net/nqe/ui_network_quality_estimator_service.h |
| diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h |
| index 671e35ca435fdf776a206e29e2a0bbf919ceb0b1..90e96b53aa0494c607131e7aef20d3939e9f8056 100644 |
| --- a/chrome/browser/net/nqe/ui_network_quality_estimator_service.h |
| +++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service.h |
| @@ -13,20 +13,25 @@ |
| // UI service to determine the current EffectiveConnectionType. |
| class UINetworkQualityEstimatorService : public KeyedService { |
| public: |
| UINetworkQualityEstimatorService(); |
| ~UINetworkQualityEstimatorService() override; |
| // The current EffectiveConnectionType. |
| net::NetworkQualityEstimator::EffectiveConnectionType |
| GetEffectiveConnectionType() const; |
| + // Tests can manually set EffectiveConnectionType, but browser tests should |
| + // expect that the EffectiveConnectionType could change. |
| + void SetEffectiveConnectionTypeForTest( |
|
tbansal1
2016/07/25 21:35:26
s/ForTest/ForTesting/
https://cs.chromium.org/chro
RyanSturm
2016/07/26 19:48:11
Done.
|
| + net::NetworkQualityEstimator::EffectiveConnectionType type); |
| + |
| private: |
| class IONetworkQualityObserver; |
| // KeyedService implementation: |
| void Shutdown() override; |
| // Called when the EffectiveConnectionType has updated to |type|. |
| // NetworkQualityEstimator::EffectiveConnectionType is an estimate of the |
| // quality of the network that may differ from the actual network type |
| // reported by NetworkchangeNotifier::GetConnectionType. |