OLD | NEW |
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 Loading... |
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 |
OLD | NEW |