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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
11 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/browser/about_flags.h" | 16 #include "chrome/browser/about_flags.h" |
17 #include "chrome/browser/pref_service_flags_storage.h" | 17 #include "chrome/browser/pref_service_flags_storage.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
20 #include "grit/chromium_strings.h" | 20 #include "chrome/grit/chromium_strings.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "third_party/libxml/chromium/libxml_utils.h" | 22 #include "third_party/libxml/chromium/libxml_utils.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const char kFlags1[] = "flag1"; | 26 const char kFlags1[] = "flag1"; |
27 const char kFlags2[] = "flag2"; | 27 const char kFlags2[] = "flag2"; |
28 const char kFlags3[] = "flag3"; | 28 const char kFlags3[] = "flag3"; |
29 const char kFlags4[] = "flag4"; | 29 const char kFlags4[] = "flag4"; |
30 const char kFlags5[] = "flag5"; | 30 const char kFlags5[] = "flag5"; |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 EXPECT_TRUE(enum_entry != histograms_xml_switches_ids.end() && | 764 EXPECT_TRUE(enum_entry != histograms_xml_switches_ids.end() && |
765 enum_entry->first == *it) | 765 enum_entry->first == *it) |
766 << "histograms.xml enum LoginCustomFlags doesn't contain switch '" | 766 << "histograms.xml enum LoginCustomFlags doesn't contain switch '" |
767 << *it << "' (value=" << uma_id | 767 << *it << "' (value=" << uma_id |
768 << " expected). Consider adding entry:\n" | 768 << " expected). Consider adding entry:\n" |
769 << " " << GetHistogramEnumEntryText(*it, uma_id); | 769 << " " << GetHistogramEnumEntryText(*it, uma_id); |
770 } | 770 } |
771 } | 771 } |
772 | 772 |
773 } // namespace about_flags | 773 } // namespace about_flags |
OLD | NEW |