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 "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <set> | 10 #include <set> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/feature_list.h" | 13 #include "base/feature_list.h" |
12 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
13 #include "base/format_macros.h" | 15 #include "base/format_macros.h" |
14 #include "base/path_service.h" | 16 #include "base/path_service.h" |
15 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
18 #include "base/values.h" | 20 #include "base/values.h" |
| 21 #include "build/build_config.h" |
19 #include "components/flags_ui/feature_entry.h" | 22 #include "components/flags_ui/feature_entry.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "third_party/libxml/chromium/libxml_utils.h" | 24 #include "third_party/libxml/chromium/libxml_utils.h" |
22 | 25 |
23 namespace about_flags { | 26 namespace about_flags { |
24 | 27 |
25 namespace { | 28 namespace { |
26 | 29 |
27 typedef base::HistogramBase::Sample Sample; | 30 typedef base::HistogramBase::Sample Sample; |
28 typedef std::map<std::string, Sample> SwitchToIdMap; | 31 typedef std::map<std::string, Sample> SwitchToIdMap; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 EXPECT_TRUE(enum_entry != histograms_xml_switches_ids.end() && | 301 EXPECT_TRUE(enum_entry != histograms_xml_switches_ids.end() && |
299 enum_entry->first == flag) | 302 enum_entry->first == flag) |
300 << "histograms.xml enum LoginCustomFlags doesn't contain switch '" | 303 << "histograms.xml enum LoginCustomFlags doesn't contain switch '" |
301 << flag << "' (value=" << uma_id | 304 << flag << "' (value=" << uma_id |
302 << " expected). Consider adding entry:\n" | 305 << " expected). Consider adding entry:\n" |
303 << " " << GetHistogramEnumEntryText(flag, uma_id); | 306 << " " << GetHistogramEnumEntryText(flag, uma_id); |
304 } | 307 } |
305 } | 308 } |
306 | 309 |
307 } // namespace about_flags | 310 } // namespace about_flags |
OLD | NEW |