Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc |
index 07a4e3345efecbb337826633be9f5157f1a4d2cc..10827bdb5912e288aad8bd5915ccdf5c763fafe3 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc |
@@ -38,16 +38,19 @@ class DataReductionProxyConfigTest : public testing::Test { |
~DataReductionProxyConfigTest() override {} |
void SetUp() override { |
- test_context_.reset(new DataReductionProxyTestContext( |
- DataReductionProxyParams::kAllowed | |
- DataReductionProxyParams::kFallbackAllowed | |
- DataReductionProxyParams::kPromoAllowed, |
- TestDataReductionProxyParams::HAS_EVERYTHING & |
- ~TestDataReductionProxyParams::HAS_DEV_ORIGIN & |
- ~TestDataReductionProxyParams::HAS_DEV_FALLBACK_ORIGIN, |
- DataReductionProxyTestContext::USE_MOCK_CONFIG | |
- DataReductionProxyTestContext::USE_TEST_CONFIGURATOR | |
- DataReductionProxyTestContext::USE_MOCK_SERVICE)); |
+ test_context_ = |
+ DataReductionProxyTestContext::Builder() |
+ .WithParamsFlags(DataReductionProxyParams::kAllowed | |
+ DataReductionProxyParams::kFallbackAllowed | |
+ DataReductionProxyParams::kPromoAllowed) |
+ .WithParamsDefinitions( |
+ TestDataReductionProxyParams::HAS_EVERYTHING & |
+ ~TestDataReductionProxyParams::HAS_DEV_ORIGIN & |
+ ~TestDataReductionProxyParams::HAS_DEV_FALLBACK_ORIGIN) |
+ .WithMockConfig() |
+ .WithTestConfigurator() |
+ .WithMockDataReductionProxyService() |
+ .Build(); |
ResetSettings(true, true, false, true, false); |