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

Side by Side Diff: chrome/common/variations/experiment_labels_unittest.cc

Issue 292663009: Move chrome/common/metrics/variations to chrome/common/variations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 #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
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
OLDNEW
« no previous file with comments | « chrome/common/variations/experiment_labels.cc ('k') | chrome/common/variations/uniformity_field_trials.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698