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

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

Issue 2939783003: Enable DataReductionTrustedSpdyProxy experiment by default (Closed)
Patch Set: ps Created 3 years, 6 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
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc
index 5c4f2c15a4a6e9e4a3ae02c7cd3beb79070d1b22..8576bc7770aaecd22d6ce4535c760b2ae0e27a17 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc
@@ -225,9 +225,14 @@ TEST(DataReductionProxyDelegate, IsTrustedSpdyProxy) {
test_context->io_data()->net_log());
base::FieldTrialList field_trial_list(nullptr);
- base::FieldTrialList::CreateFieldTrial(
- params::GetTrustedSpdyProxyFieldTrialName(),
- test.is_in_trusted_spdy_proxy_field_trial ? "Enabled" : "Control");
+ EXPECT_TRUE(params::IsIncludedInTrustedSpdyProxyFieldTrial());
+ if (!test.is_in_trusted_spdy_proxy_field_trial) {
+ // Trusted Spdy proxy field trial experiment is enabled by default.
+ base::FieldTrialList::CreateFieldTrial(
+ params::GetTrustedSpdyProxyFieldTrialName(), "Control");
+ }
+ EXPECT_EQ(test.is_in_trusted_spdy_proxy_field_trial,
+ params::IsIncludedInTrustedSpdyProxyFieldTrial());
EXPECT_EQ(test.expect_proxy_is_trusted,
delegate.IsTrustedSpdyProxy(first_proxy) ||
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698