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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/prefs/pref_registry.h" |
6 #include "base/values.h" | 7 #include "base/values.h" |
7 #include "components/content_settings/core/browser/website_settings_info.h" | 8 #include "components/content_settings/core/browser/website_settings_info.h" |
8 #include "components/content_settings/core/browser/website_settings_registry.h" | 9 #include "components/content_settings/core/browser/website_settings_registry.h" |
9 #include "components/content_settings/core/common/content_settings.h" | 10 #include "components/content_settings/core/common/content_settings.h" |
10 #include "components/content_settings/core/common/content_settings_types.h" | 11 #include "components/content_settings/core/common/content_settings_types.h" |
11 #include "components/pref_registry/pref_registry_syncable.h" | 12 #include "components/pref_registry/pref_registry_syncable.h" |
12 #include "components/prefs/pref_registry.h" | |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace content_settings { | 15 namespace content_settings { |
16 | 16 |
17 class WebsiteSettingsRegistryTest : public testing::Test { | 17 class WebsiteSettingsRegistryTest : public testing::Test { |
18 protected: | 18 protected: |
19 WebsiteSettingsRegistry* registry() { return ®istry_; } | 19 WebsiteSettingsRegistry* registry() { return ®istry_; } |
20 | 20 |
21 private: | 21 private: |
22 WebsiteSettingsRegistry registry_; | 22 WebsiteSettingsRegistry registry_; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 if (info->type() == 10) { | 100 if (info->type() == 10) { |
101 EXPECT_FALSE(found); | 101 EXPECT_FALSE(found); |
102 found = true; | 102 found = true; |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 EXPECT_TRUE(found); | 106 EXPECT_TRUE(found); |
107 } | 107 } |
108 | 108 |
109 } // namespace content_settings | 109 } // namespace content_settings |
OLD | NEW |