| Index: chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h
|
| diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f9ac6098554d566ba3299f00104e8ce968c6edef
|
| --- /dev/null
|
| +++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service_test_util.h
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_UTIL_H_
|
| +#define CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_UTIL_H_
|
| +
|
| +#include "net/nqe/network_quality_estimator.h"
|
| +
|
| +namespace nqe_test_util {
|
| +
|
| +// Forces NetworkQualityEstimator to report |type| to all its
|
| +// EffectiveConnectionTypeObservers.
|
| +// This blocks execution on the calling thread until the IO task runs and
|
| +// replies.
|
| +void OverrideEffectiveConnectionTypeAndWait(
|
| + net::NetworkQualityEstimator::EffectiveConnectionType type);
|
| +
|
| +} // namespace nqe_test_util
|
| +
|
| +#endif // CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_TEST_UTIL_H_
|
|
|