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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "chrome/common/metrics/variations/variations_associated_data.h" | 12 #include "components/variations/variations_associated_data.h" |
13 | 13 |
14 namespace chrome_variations { | 14 namespace chrome_variations { |
15 | 15 |
16 // Fills the supplied vector |name_group_ids| (which must be empty when called) | 16 // Fills the supplied vector |name_group_ids| (which must be empty when called) |
17 // with unique ActiveGroupIds for each Field Trial that has a chosen group. | 17 // with unique ActiveGroupIds for each Field Trial that has a chosen group. |
18 // Field Trials for which a group has not been chosen yet are NOT returned in | 18 // Field Trials for which a group has not been chosen yet are NOT returned in |
19 // this list. | 19 // this list. |
20 void GetFieldTrialActiveGroupIds(std::vector<ActiveGroupId>* name_group_ids); | 20 void GetFieldTrialActiveGroupIds(std::vector<ActiveGroupId>* name_group_ids); |
21 | 21 |
22 // Fills the supplied vector |output| (which must be empty when called) with | 22 // Fills the supplied vector |output| (which must be empty when called) with |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 void TestGetFieldTrialActiveGroupIds( | 63 void TestGetFieldTrialActiveGroupIds( |
64 const base::FieldTrial::ActiveGroups& active_groups, | 64 const base::FieldTrial::ActiveGroups& active_groups, |
65 std::vector<ActiveGroupId>* name_group_ids); | 65 std::vector<ActiveGroupId>* name_group_ids); |
66 | 66 |
67 } // namespace testing | 67 } // namespace testing |
68 | 68 |
69 } // namespace chrome_variations | 69 } // namespace chrome_variations |
70 | 70 |
71 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ | 71 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ |
OLD | NEW |