| 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 {
|
|
|