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

Side by Side Diff: chrome/common/metrics/variations/variations_util_unittest.cc

Issue 23097007: Create variations target that depends on base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 (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 #include "chrome/common/metrics/variations/variations_util.h" 5 #include "chrome/common/metrics/variations/variations_util.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chrome/common/metrics/metrics_util.h" 14 #include "components/variations/metrics_util.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace chrome_variations { 17 namespace chrome_variations {
18 18
19 namespace { 19 namespace {
20 20
21 const VariationID TEST_VALUE_A = 3300200; 21 const VariationID TEST_VALUE_A = 3300200;
22 const VariationID TEST_VALUE_B = 3300201; 22 const VariationID TEST_VALUE_B = 3300201;
23 const VariationID TEST_VALUE_C = 3300202; 23 const VariationID TEST_VALUE_C = 3300202;
24 const VariationID TEST_VALUE_D = 3300203; 24 const VariationID TEST_VALUE_D = 3300203;
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 }; 319 };
320 320
321 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) { 321 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
322 std::string non_variation_labels = UTF16ToUTF8( 322 std::string non_variation_labels = UTF16ToUTF8(
323 ExtractNonVariationLabels(ASCIIToUTF16(test_cases[i].input_label))); 323 ExtractNonVariationLabels(ASCIIToUTF16(test_cases[i].input_label)));
324 EXPECT_EQ(test_cases[i].expected_output, non_variation_labels); 324 EXPECT_EQ(test_cases[i].expected_output, non_variation_labels);
325 } 325 }
326 } 326 }
327 327
328 } // namespace chrome_variations 328 } // namespace chrome_variations
OLDNEW
« no previous file with comments | « chrome/common/metrics/variations/variations_util.h ('k') | chrome/renderer/autofill/form_autofill_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698