Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
index 52254e3c44bc13968d5725f02419a73c93c4b156..66e41e08d1e362f3331806186e8b3ffd0be9437e 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc |
@@ -24,6 +24,7 @@ |
#include "base/strings/string_util.h" |
#include "base/test/histogram_tester.h" |
#include "base/test/mock_entropy_provider.h" |
+#include "base/test/scoped_feature_list.h" |
#include "base/time/time.h" |
#include "base/values.h" |
#include "build/build_config.h" |
@@ -32,6 +33,7 @@ |
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h" |
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h" |
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h" |
+#include "components/data_reduction_proxy/core/common/data_reduction_proxy_features.h" |
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h" |
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h" |
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h" |
@@ -1251,6 +1253,11 @@ TEST_F(DataReductionProxyNetworkDelegateTest, RedirectRequestDataCleared) { |
} |
TEST_F(DataReductionProxyNetworkDelegateTest, NetHistograms) { |
+ // Turn off proxy-decides-transform feature for these unit tests. |
+ base::test::ScopedFeatureList scoped_feature_list; |
+ scoped_feature_list.InitAndDisableFeature( |
+ features::kDataReductionProxyDecidesTransform); |
+ |
Init(USE_INSECURE_PROXY, false); |
base::HistogramTester histogram_tester; |