| 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 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ | 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ |
| 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ | 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 CheckStudyVersionWildcards); | 41 CheckStudyVersionWildcards); |
| 42 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, ForceGroupWithFlag1); | 42 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, ForceGroupWithFlag1); |
| 43 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, ForceGroupWithFlag2); | 43 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, ForceGroupWithFlag2); |
| 44 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, | 44 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, |
| 45 ForceGroup_ChooseFirstGroupWithFlag); | 45 ForceGroup_ChooseFirstGroupWithFlag); |
| 46 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, | 46 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, |
| 47 ForceGroup_DontChooseGroupWithFlag); | 47 ForceGroup_DontChooseGroupWithFlag); |
| 48 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, IsStudyExpired); | 48 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, IsStudyExpired); |
| 49 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, ValidateStudy); | 49 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, ValidateStudy); |
| 50 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, VariationParams); | 50 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, VariationParams); |
| 51 FRIEND_TEST_ALL_PREFIXES(VariationsSeedProcessorTest, |
| 52 VariationParamsWithForcingFlag); |
| 51 | 53 |
| 52 // Checks whether a study is applicable for the given |channel| per |filter|. | 54 // Checks whether a study is applicable for the given |channel| per |filter|. |
| 53 bool CheckStudyChannel(const Study_Filter& filter, Study_Channel channel); | 55 bool CheckStudyChannel(const Study_Filter& filter, Study_Channel channel); |
| 54 | 56 |
| 55 // Checks whether a study is applicable for the given |locale| per |filter|. | 57 // Checks whether a study is applicable for the given |locale| per |filter|. |
| 56 bool CheckStudyLocale(const Study_Filter& filter, const std::string& locale); | 58 bool CheckStudyLocale(const Study_Filter& filter, const std::string& locale); |
| 57 | 59 |
| 58 // Checks whether a study is applicable for the given |platform| per |filter|. | 60 // Checks whether a study is applicable for the given |platform| per |filter|. |
| 59 bool CheckStudyPlatform(const Study_Filter& filter, Study_Platform platform); | 61 bool CheckStudyPlatform(const Study_Filter& filter, Study_Platform platform); |
| 60 | 62 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 87 bool ValidateStudyAndComputeTotalProbability( | 89 bool ValidateStudyAndComputeTotalProbability( |
| 88 const Study& study, | 90 const Study& study, |
| 89 base::FieldTrial::Probability* total_probability); | 91 base::FieldTrial::Probability* total_probability); |
| 90 | 92 |
| 91 DISALLOW_COPY_AND_ASSIGN(VariationsSeedProcessor); | 93 DISALLOW_COPY_AND_ASSIGN(VariationsSeedProcessor); |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 } // namespace chrome_variations | 96 } // namespace chrome_variations |
| 95 | 97 |
| 96 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ | 98 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ |
| OLD | NEW |