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

Unified Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc

Issue 2183153002: NQE: Move ECT to net:: namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, also fixed comnpilation error Created 4 years, 5 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: chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
index acfbd96288454c3a89f3512235ba304d768370ef..fe3e55cb9248d53d068dd8bc8e5c53f518626571 100644
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/io_thread.h"
#include "content/public/browser/browser_thread.h"
+#include "net/nqe/network_quality_estimator.h"
namespace nqe_test_util {
@@ -16,9 +17,8 @@ namespace {
// Reports |type| to all of NetworkQualityEstimator's
// EffectiveConnectionTypeObservers.
-void OverrideEffectiveConnectionTypeOnIO(
- net::NetworkQualityEstimator::EffectiveConnectionType type,
- IOThread* io_thread) {
+void OverrideEffectiveConnectionTypeOnIO(net::EffectiveConnectionType type,
+ IOThread* io_thread) {
if (!io_thread->globals()->network_quality_estimator)
return;
net::NetworkQualityEstimator* network_quality_estimator =
@@ -30,8 +30,7 @@ void OverrideEffectiveConnectionTypeOnIO(
} // namespace
-void OverrideEffectiveConnectionTypeAndWait(
- net::NetworkQualityEstimator::EffectiveConnectionType type) {
+void OverrideEffectiveConnectionTypeAndWait(net::EffectiveConnectionType type) {
// Block |run_loop| until OverrideEffectiveConnectionTypeOnIO has completed.
// Any UI tasks posted by calling OverrideEffectiveConnectionTypeOnIO will
// complete before the reply unblocks |run_loop|.

Powered by Google App Engine
This is Rietveld 408576698