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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params_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 | « components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
index 54e586d93206f3f635a106ab7ee8586999257b2d..e5fda3814df5a3c5d037e4c50f3f9a494e993001 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
@@ -373,6 +373,27 @@ TEST_F(DataReductionProxyParamsTest, LoFiPreviewFieldTrial) {
}
}
+TEST_F(DataReductionProxyParamsTest, TrustedSpdyProxyFieldTrial) {
+ const struct {
+ std::string trial_group_name;
+ bool expected_enabled;
+ } tests[] = {
+ {"Enabled", true}, {"Enabled_Control", true}, {"Control", false},
+ {"Disabled", false}, {"enabled", true}, {"Enabled", true},
+ {std::string(), true},
+ };
+
+ for (const auto& test : tests) {
+ variations::testing::ClearAllVariationParams();
+ base::FieldTrialList field_trial_list(nullptr);
+ base::FieldTrialList::CreateFieldTrial(
+ params::GetTrustedSpdyProxyFieldTrialName(), test.trial_group_name);
+
+ EXPECT_EQ(test.expected_enabled,
+ params::IsIncludedInTrustedSpdyProxyFieldTrial());
+ }
+}
+
// Tests if the QUIC field trial is set correctly.
TEST_F(DataReductionProxyParamsTest, QuicFieldTrial) {
const struct {
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698