| 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/string_number_conversions.h" | 5 #include "base/string_number_conversions.h" |
| 6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/browser/about_flags.h" | 8 #include "chrome/browser/about_flags.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
| 11 #include "chrome/test/testing_pref_service.h" | 11 #include "chrome/test/base/testing_pref_service.h" |
| 12 #include "grit/chromium_strings.h" | 12 #include "grit/chromium_strings.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 const char kFlags1[] = "flag1"; | 15 const char kFlags1[] = "flag1"; |
| 16 const char kFlags2[] = "flag2"; | 16 const char kFlags2[] = "flag2"; |
| 17 const char kFlags3[] = "flag3"; | 17 const char kFlags3[] = "flag3"; |
| 18 const char kFlags4[] = "flag4"; | 18 const char kFlags4[] = "flag4"; |
| 19 | 19 |
| 20 const char kSwitch1[] = "switch"; | 20 const char kSwitch1[] = "switch"; |
| 21 const char kSwitch2[] = "switch2"; | 21 const char kSwitch2[] = "switch2"; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 testing::SetExperiments(NULL, 0); | 328 testing::SetExperiments(NULL, 0); |
| 329 size_t count; | 329 size_t count; |
| 330 const Experiment* experiments = testing::GetExperiments(&count); | 330 const Experiment* experiments = testing::GetExperiments(&count); |
| 331 for (size_t i = 0; i < count; ++i) { | 331 for (size_t i = 0; i < count; ++i) { |
| 332 std::string name = experiments->internal_name; | 332 std::string name = experiments->internal_name; |
| 333 EXPECT_EQ(std::string::npos, name.find(testing::kMultiSeparator)) << i; | 333 EXPECT_EQ(std::string::npos, name.find(testing::kMultiSeparator)) << i; |
| 334 } | 334 } |
| 335 } | 335 } |
| 336 | 336 |
| 337 } // namespace about_flags | 337 } // namespace about_flags |
| OLD | NEW |