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 #include "chrome/common/metrics/variations/experiment_labels.h" | 5 #include "chrome/common/variations/experiment_labels.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "components/variations/variations_associated_data.h" | 15 #include "components/variations/variations_associated_data.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) { | 185 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) { |
186 std::string non_variation_labels = base::UTF16ToUTF8( | 186 std::string non_variation_labels = base::UTF16ToUTF8( |
187 ExtractNonVariationLabels( | 187 ExtractNonVariationLabels( |
188 base::ASCIIToUTF16(test_cases[i].input_label))); | 188 base::ASCIIToUTF16(test_cases[i].input_label))); |
189 EXPECT_EQ(test_cases[i].expected_output, non_variation_labels); | 189 EXPECT_EQ(test_cases[i].expected_output, non_variation_labels); |
190 } | 190 } |
191 } | 191 } |
192 | 192 |
193 } // namespace chrome_variations | 193 } // namespace chrome_variations |
OLD | NEW |