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

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

Issue 959913002: Create fluent Builder for DataReductionProxyTestContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sclittle CR comments + 1 unittest cleanup Created 5 years, 10 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_metrics_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc
index f12182d99e41d4a845b53f47be2eeb26bdd415cf..24140c9e29a3947e35ba784dff253adf1dd14aba 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc
@@ -673,9 +673,10 @@ TEST_F(ChromeNetworkDailyDataSavingMetricsTest, BackwardTwoDays) {
TEST_F(ChromeNetworkDailyDataSavingMetricsTest,
GetDataReductionProxyRequestType) {
scoped_ptr<DataReductionProxyTestContext> test_context =
- make_scoped_ptr(new DataReductionProxyTestContext(
- DataReductionProxyParams::kAllowed,
- TestDataReductionProxyParams::HAS_ORIGIN, 0));
+ DataReductionProxyTestContext::Builder()
+ .WithParamsFlags(DataReductionProxyParams::kAllowed)
+ .WithParamsDefinitions(TestDataReductionProxyParams::HAS_ORIGIN)
+ .Build();
TestDataReductionProxyParams* params = test_context->config()->test_params();
net::ProxyConfig data_reduction_proxy_config;

Powered by Google App Engine
This is Rietveld 408576698