OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/flags_ui/flags_state.h" | 5 #include "components/flags_ui/flags_state.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/test/scoped_feature_list.h" | 22 #include "base/test/scoped_feature_list.h" |
23 #include "base/values.h" | 23 #include "base/values.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "components/flags_ui/feature_entry.h" | 25 #include "components/flags_ui/feature_entry.h" |
26 #include "components/flags_ui/flags_ui_pref_names.h" | 26 #include "components/flags_ui/flags_ui_pref_names.h" |
27 #include "components/flags_ui/flags_ui_switches.h" | 27 #include "components/flags_ui/flags_ui_switches.h" |
28 #include "components/flags_ui/pref_service_flags_storage.h" | 28 #include "components/flags_ui/pref_service_flags_storage.h" |
29 #include "components/prefs/pref_registry_simple.h" | 29 #include "components/prefs/pref_registry_simple.h" |
30 #include "components/prefs/testing_pref_service.h" | 30 #include "components/prefs/testing_pref_service.h" |
| 31 #include "components/strings/grit/components_strings.h" |
31 #include "components/variations/variations_associated_data.h" | 32 #include "components/variations/variations_associated_data.h" |
32 #include "grit/components_strings.h" | |
33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
34 | 34 |
35 namespace flags_ui { | 35 namespace flags_ui { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 const char kFlags1[] = "flag1"; | 39 const char kFlags1[] = "flag1"; |
40 const char kFlags2[] = "flag2"; | 40 const char kFlags2[] = "flag2"; |
41 const char kFlags3[] = "flag3"; | 41 const char kFlags3[] = "flag3"; |
42 const char kFlags4[] = "flag4"; | 42 const char kFlags4[] = "flag4"; |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 &supported_entries, &unsupported_entries, | 781 &supported_entries, &unsupported_entries, |
782 base::Bind(&SkipFeatureEntry)); | 782 base::Bind(&SkipFeatureEntry)); |
783 // All |kEntries| except for |kFlags3| should be supported. | 783 // All |kEntries| except for |kFlags3| should be supported. |
784 EXPECT_EQ(7u, supported_entries.GetSize()); | 784 EXPECT_EQ(7u, supported_entries.GetSize()); |
785 EXPECT_EQ(1u, unsupported_entries.GetSize()); | 785 EXPECT_EQ(1u, unsupported_entries.GetSize()); |
786 EXPECT_EQ(arraysize(kEntries), | 786 EXPECT_EQ(arraysize(kEntries), |
787 supported_entries.GetSize() + unsupported_entries.GetSize()); | 787 supported_entries.GetSize() + unsupported_entries.GetSize()); |
788 } | 788 } |
789 | 789 |
790 } // namespace flags_ui | 790 } // namespace flags_ui |
OLD | NEW |