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

Side by Side Diff: chrome/browser/metrics/variations/variations_registry_syncer_unittest_win.cc

Issue 12378016: chrome: Update include paths of string_split.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/string_split.h"
6 #include "base/string_util.h" 5 #include "base/string_util.h"
6 #include "base/strings/string_split.h"
7 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h" 7 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h"
8 #include "chrome/common/metrics/variations/variations_util.h" 8 #include "chrome/common/metrics/variations/variations_util.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 TEST(VariationsRegistrySyncer, BuildGoogleUpdateExperimentLabel) { 11 TEST(VariationsRegistrySyncer, BuildGoogleUpdateExperimentLabel) {
12 struct { 12 struct {
13 const char* active_group_pairs; 13 const char* active_group_pairs;
14 const wchar_t* expected_ids; 14 const wchar_t* expected_ids;
15 } test_cases[] = { 15 } test_cases[] = {
16 // Empty group. 16 // Empty group.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 {L";;;;", L""}, 173 {L";;;;", L""},
174 }; 174 };
175 175
176 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) { 176 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) {
177 string16 non_variation_labels = 177 string16 non_variation_labels =
178 chrome_variations::VariationsRegistrySyncer::ExtractNonVariationLabels( 178 chrome_variations::VariationsRegistrySyncer::ExtractNonVariationLabels(
179 test_cases[i].input_label); 179 test_cases[i].input_label);
180 EXPECT_EQ(test_cases[i].expected_output, non_variation_labels); 180 EXPECT_EQ(test_cases[i].expected_output, non_variation_labels);
181 } 181 }
182 } 182 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/thread_watcher_unittest.cc ('k') | chrome/browser/metrics/variations/variations_registry_syncer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698