| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/variations/variations_seed_processor.h" | 5 #include "components/variations/variations_seed_processor.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/feature_list.h" | 15 #include "base/feature_list.h" |
| 16 #include "base/format_macros.h" | 16 #include "base/format_macros.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
| 19 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
| 21 #include "components/variations/processed_study.h" | 22 #include "components/variations/processed_study.h" |
| 22 #include "components/variations/variations_associated_data.h" | 23 #include "components/variations/variations_associated_data.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 25 |
| 25 namespace variations { | 26 namespace variations { |
| 26 | 27 |
| 27 namespace { | 28 namespace { |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 // depending on the expected values. | 745 // depending on the expected values. |
| 745 EXPECT_FALSE(base::FieldTrialList::IsTrialActive(study.name())); | 746 EXPECT_FALSE(base::FieldTrialList::IsTrialActive(study.name())); |
| 746 EXPECT_EQ(test_case.expected_feature_state, | 747 EXPECT_EQ(test_case.expected_feature_state, |
| 747 base::FeatureList::IsEnabled(test_case.feature)); | 748 base::FeatureList::IsEnabled(test_case.feature)); |
| 748 EXPECT_EQ(test_case.expected_trial_activated, | 749 EXPECT_EQ(test_case.expected_trial_activated, |
| 749 base::FieldTrialList::IsTrialActive(study.name())); | 750 base::FieldTrialList::IsTrialActive(study.name())); |
| 750 } | 751 } |
| 751 } | 752 } |
| 752 | 753 |
| 753 } // namespace variations | 754 } // namespace variations |
| OLD | NEW |