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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h

Issue 1989393004: Remove unnecessary DRPConfiguratorTestUtils and add more DRPConfig tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tarun_test_changes
Patch Set: Fix failing DCHECK Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h
deleted file mode 100644
index c5fa64a6ca5ef04251ebcfce32ba5adf35aae828..0000000000000000000000000000000000000000
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2015 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_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIGURATOR_TEST_UTILS_H_
-#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIGURATOR_TEST_UTILS_H_
-
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h"
-
-namespace net {
-class NetLog;
-class ProxyServer;
-}
-
-namespace data_reduction_proxy {
-
-class DataReductionProxyEventCreator;
-
-class TestDataReductionProxyConfigurator
- : public DataReductionProxyConfigurator {
- public:
- TestDataReductionProxyConfigurator(
- net::NetLog* net_log,
- DataReductionProxyEventCreator* event_creator);
- ~TestDataReductionProxyConfigurator() override;
-
- // Overrides of DataReductionProxyConfigurator
- void Enable(bool secure_transport_restricted,
- const std::vector<net::ProxyServer>& proxies_for_http) override;
-
- void Disable() override;
-
- bool enabled() const {
- return enabled_;
- }
-
- bool restricted() const {
- return restricted_;
- }
-
- // Returns the proxies in use by the proxy config. May include the DIRECT
- // proxy.
- const std::vector<net::ProxyServer>& proxies_for_http() const;
-
- private:
- // True if the proxy has been enabled, i.e., only after |Enable| has been
- // called. Defaults to false.
- bool enabled_;
-
- // Describes whether the proxy has been put in a restricted mode. True if
- // |Enable| is called with |secure_transport_restricted| set to true. Defaults
- // to false.
- bool restricted_;
-
- DISALLOW_COPY_AND_ASSIGN(TestDataReductionProxyConfigurator);
-};
-
-} // namespace data_reduction_proxy
-
-#endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIGURATOR_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698