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

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

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.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc
deleted file mode 100644
index 763333e351c02bf2547ac4a879754143fe305031..0000000000000000000000000000000000000000
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc
+++ /dev/null
@@ -1,40 +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.
-
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h"
-
-namespace data_reduction_proxy {
-
-TestDataReductionProxyConfigurator::TestDataReductionProxyConfigurator(
- net::NetLog* net_log,
- DataReductionProxyEventCreator* event_creator)
- : DataReductionProxyConfigurator(net_log, event_creator),
- enabled_(false),
- restricted_(false) {
-}
-
-TestDataReductionProxyConfigurator::~TestDataReductionProxyConfigurator() {
-}
-
-void TestDataReductionProxyConfigurator::Enable(
- bool secure_transport_restricted,
- const std::vector<net::ProxyServer>& proxies_for_http) {
- enabled_ = true;
- restricted_ = secure_transport_restricted;
- DataReductionProxyConfigurator::Enable(secure_transport_restricted,
- proxies_for_http);
-}
-
-void TestDataReductionProxyConfigurator::Disable() {
- enabled_ = false;
- restricted_ = false;
- DataReductionProxyConfigurator::Disable();
-}
-
-const std::vector<net::ProxyServer>&
-TestDataReductionProxyConfigurator::proxies_for_http() const {
- return GetProxyConfig().proxy_rules().proxies_for_http.GetAll();
-}
-
-} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698