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

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

Issue 2883763002: Expose ECT to render frames, Blink and NetInfo (Closed)
Patch Set: rebased 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 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 std::string GetNetLogLastStringValue(NetLogEventType type, 215 std::string GetNetLogLastStringValue(NetLogEventType type,
216 const std::string& key) const; 216 const std::string& key) const;
217 int GetNetLogLastIntegerValue(NetLogEventType type, 217 int GetNetLogLastIntegerValue(NetLogEventType type,
218 const std::string& key) const; 218 const std::string& key) const;
219 219
220 // Notifies the registered observers that the network quality estimate has 220 // Notifies the registered observers that the network quality estimate has
221 // changed to |network_quality|. 221 // changed to |network_quality|.
222 void NotifyObserversOfRTTOrThroughputEstimatesComputed( 222 void NotifyObserversOfRTTOrThroughputEstimatesComputed(
223 const net::nqe::internal::NetworkQuality& network_quality); 223 const net::nqe::internal::NetworkQuality& network_quality);
224 224
225 // Notifies the registered observers that the network quality estimate has
226 // changed to |network_quality|.
227 void NotifyObserversOfEffectiveConnectionType(EffectiveConnectionType type);
228
225 using NetworkQualityEstimator::SetTickClockForTesting; 229 using NetworkQualityEstimator::SetTickClockForTesting;
226 using NetworkQualityEstimator::OnConnectionTypeChanged; 230 using NetworkQualityEstimator::OnConnectionTypeChanged;
227 using NetworkQualityEstimator::OnUpdatedRTTAvailable; 231 using NetworkQualityEstimator::OnUpdatedRTTAvailable;
228 232
229 private: 233 private:
230 class LocalHttpTestServer : public EmbeddedTestServer { 234 class LocalHttpTestServer : public EmbeddedTestServer {
231 public: 235 public:
232 explicit LocalHttpTestServer(const base::FilePath& document_root); 236 explicit LocalHttpTestServer(const base::FilePath& document_root);
233 }; 237 };
234 238
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 283
280 // Net log provided to network quality estimator. 284 // Net log provided to network quality estimator.
281 std::unique_ptr<net::BoundTestNetLog> net_log_; 285 std::unique_ptr<net::BoundTestNetLog> net_log_;
282 286
283 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator); 287 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator);
284 }; 288 };
285 289
286 } // namespace net 290 } // namespace net
287 291
288 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_ 292 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698