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

Side by Side Diff: components/variations/variations_seed_processor.h

Issue 62953004: Support variation params for forcing_flag groups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/variations/variations_associated_data_unittest.cc ('k') | components/variations/variations_seed_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698