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

Unified Diff: components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_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/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc
diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc
index c107a30a5eae57f95b3da7d1e0e42f7eae984c49..dbf5bb5ea055683d0f1b244cc174ee28eda5c13b 100644
--- a/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc
+++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle_unittest.cc
@@ -65,10 +65,11 @@ class DataReductionProxyDebugResourceThrottleTest : public testing::Test {
context_.set_job_factory(&test_job_factory_);
- test_context_.reset(new DataReductionProxyTestContext(
- DataReductionProxyParams::kAllowed,
- TestDataReductionProxyParams::HAS_EVERYTHING,
- DataReductionProxyTestContext::DEFAULT_TEST_CONTEXT_OPTIONS));
+ test_context_ =
+ DataReductionProxyTestContext::Builder()
+ .WithParamsFlags(DataReductionProxyParams::kAllowed)
+ .WithParamsDefinitions(TestDataReductionProxyParams::HAS_EVERYTHING)
+ .Build();
request_ = context_.CreateRequest(GURL("http://www.google.com/"), net::IDLE,
&delegate_, NULL);
ui_service_.reset(new ContentDataReductionProxyDebugUIService(

Powered by Google App Engine
This is Rietveld 408576698