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

Unified Diff: components/offline_pages/background/network_quality_provider_stub.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: more rebase Created 4 years, 1 month 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/network_quality_provider_stub.h
diff --git a/components/offline_pages/background/network_quality_provider_stub.h b/components/offline_pages/background/network_quality_provider_stub.h
deleted file mode 100644
index bd71b1777c9728818ca5db416ef23a7bd149d315..0000000000000000000000000000000000000000
--- a/components/offline_pages/background/network_quality_provider_stub.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// 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 COMPONENTS_OFFLINE_PAGES_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H_
-#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H_
-
-#include "base/supports_user_data.h"
-#include "net/nqe/effective_connection_type.h"
-#include "net/nqe/network_quality_estimator.h"
-
-namespace offline_pages {
-
-// Test class stubbing out the functionality of NQE::NetworkQualityProvider.
-// It is only used for test support.
-class NetworkQualityProviderStub
- : public net::NetworkQualityEstimator::NetworkQualityProvider,
- public base::SupportsUserData::Data {
- public:
- NetworkQualityProviderStub();
- ~NetworkQualityProviderStub() override;
-
- static NetworkQualityProviderStub* GetUserData(
- base::SupportsUserData* supports_user_data);
- static void SetUserData(base::SupportsUserData* supports_user_data,
- NetworkQualityProviderStub* stub);
-
- net::EffectiveConnectionType GetEffectiveConnectionType() const override;
-
- 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_;
-};
-
-} // namespace offline_pages
-
-#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_NETWORK_QUALITY_PROVIDER_STUB_H_

Powered by Google App Engine
This is Rietveld 408576698