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

Side by Side Diff: chrome/browser/about_flags_unittest.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/prefs/pref_registry_simple.h"
5 #include "base/strings/string_number_conversions.h" 6 #include "base/strings/string_number_conversions.h"
6 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
7 #include "base/values.h" 8 #include "base/values.h"
8 #include "chrome/browser/about_flags.h" 9 #include "chrome/browser/about_flags.h"
9 #include "chrome/browser/prefs/pref_registry_simple.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "chrome/test/base/testing_pref_service.h" 12 #include "chrome/test/base/testing_pref_service.h"
13 #include "grit/chromium_strings.h" 13 #include "grit/chromium_strings.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 const char kFlags1[] = "flag1"; 16 const char kFlags1[] = "flag1";
17 const char kFlags2[] = "flag2"; 17 const char kFlags2[] = "flag2";
18 const char kFlags3[] = "flag3"; 18 const char kFlags3[] = "flag3";
19 const char kFlags4[] = "flag4"; 19 const char kFlags4[] = "flag4";
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 testing::SetExperiments(NULL, 0); 317 testing::SetExperiments(NULL, 0);
318 size_t count; 318 size_t count;
319 const Experiment* experiments = testing::GetExperiments(&count); 319 const Experiment* experiments = testing::GetExperiments(&count);
320 for (size_t i = 0; i < count; ++i) { 320 for (size_t i = 0; i < count; ++i) {
321 std::string name = experiments->internal_name; 321 std::string name = experiments->internal_name;
322 EXPECT_EQ(std::string::npos, name.find(testing::kMultiSeparator)) << i; 322 EXPECT_EQ(std::string::npos, name.find(testing::kMultiSeparator)) << i;
323 } 323 }
324 } 324 }
325 325
326 } // namespace about_flags 326 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698