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_UTIL_H_ | 5 #ifndef CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ |
6 #define CHROME_COMMON_METRICS_VARIATIONS_UTIL_H_ | 6 #define CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/common/metrics/variation_ids.h" | 13 #include "chrome/common/metrics/variations/variation_ids.h" |
14 | 14 |
15 // This namespace provides various helpers that extend the functionality around | 15 // This namespace provides various helpers that extend the functionality around |
16 // base::FieldTrial. | 16 // base::FieldTrial. |
17 // | 17 // |
18 // This includes a simple API used to handle getting and setting | 18 // This includes a simple API used to handle getting and setting |
19 // data related to Google-specific variations in the browser. This is meant to | 19 // data related to Google-specific variations in the browser. This is meant to |
20 // be an extension to the base::FieldTrial for Google-specific functionality. | 20 // be an extension to the base::FieldTrial for Google-specific functionality. |
21 // | 21 // |
22 // These calls are meant to be made directly after appending all your groups to | 22 // These calls are meant to be made directly after appending all your groups to |
23 // a FieldTrial (for associating IDs) and any time after the group selection has | 23 // a FieldTrial (for associating IDs) and any time after the group selection has |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 namespace testing { | 116 namespace testing { |
117 | 117 |
118 void TestGetFieldTrialSelectedGroupIdsForSelectedGroups( | 118 void TestGetFieldTrialSelectedGroupIdsForSelectedGroups( |
119 const base::FieldTrial::SelectedGroups& selected_groups, | 119 const base::FieldTrial::SelectedGroups& selected_groups, |
120 std::vector<chrome_variations::SelectedGroupId>* name_group_ids); | 120 std::vector<chrome_variations::SelectedGroupId>* name_group_ids); |
121 | 121 |
122 uint32 TestHashName(const std::string& name); | 122 uint32 TestHashName(const std::string& name); |
123 | 123 |
124 } // namespace testing | 124 } // namespace testing |
125 | 125 |
126 #endif // CHROME_COMMON_METRICS_VARIATIONS_UTIL_H_ | 126 #endif // CHROME_COMMON_METRICS_VARIATIONS_VARIATIONS_UTIL_H_ |
OLD | NEW |