OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ | 5 #ifndef CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ |
6 #define CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ | 6 #define CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // associated with Chrome Variations. | 175 // associated with Chrome Variations. |
176 string16 ExtractNonVariationLabels(const string16& labels); | 176 string16 ExtractNonVariationLabels(const string16& labels); |
177 | 177 |
178 // Expose some functions for testing. These functions just wrap functionality | 178 // Expose some functions for testing. These functions just wrap functionality |
179 // that is implemented above. | 179 // that is implemented above. |
180 namespace testing { | 180 namespace testing { |
181 | 181 |
182 // Clears all of the mapped associations. | 182 // Clears all of the mapped associations. |
183 void ClearAllVariationIDs(); | 183 void ClearAllVariationIDs(); |
184 | 184 |
| 185 // Clears all of the associated params. |
| 186 void ClearAllVariationParams(); |
| 187 |
185 void TestGetFieldTrialActiveGroupIds( | 188 void TestGetFieldTrialActiveGroupIds( |
186 const base::FieldTrial::ActiveGroups& active_groups, | 189 const base::FieldTrial::ActiveGroups& active_groups, |
187 std::vector<ActiveGroupId>* name_group_ids); | 190 std::vector<ActiveGroupId>* name_group_ids); |
188 | 191 |
189 } // namespace testing | 192 } // namespace testing |
190 | 193 |
191 } // namespace chrome_variations | 194 } // namespace chrome_variations |
192 | 195 |
193 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ | 196 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ |
OLD | NEW |