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/extensions/extension_content_settings_store.h" | 5 #include "chrome/browser/content_settings/extension_content_settings_store.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "chrome/browser/content_settings/content_settings_rule.h" | 8 #include "chrome/browser/content_settings/content_settings_rule.h" |
9 #include "chrome/browser/content_settings/content_settings_utils.h" | 9 #include "chrome/browser/content_settings/content_settings_utils.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 using ::testing::Mock; | 13 using ::testing::Mock; |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 ASSERT_EQ(1u, rules.size()); | 242 ASSERT_EQ(1u, rules.size()); |
243 CheckRule(rules[0], pattern_2, pattern_2, CONTENT_SETTING_BLOCK); | 243 CheckRule(rules[0], pattern_2, pattern_2, CONTENT_SETTING_BLOCK); |
244 | 244 |
245 // Uninstall second extension. | 245 // Uninstall second extension. |
246 store()->UnregisterExtension(ext_id_2); | 246 store()->UnregisterExtension(ext_id_2); |
247 | 247 |
248 GetSettingsForOneTypeFromStore( | 248 GetSettingsForOneTypeFromStore( |
249 store(), CONTENT_SETTINGS_TYPE_COOKIES, "", incognito, &rules); | 249 store(), CONTENT_SETTINGS_TYPE_COOKIES, "", incognito, &rules); |
250 ASSERT_EQ(0u, rules.size()); | 250 ASSERT_EQ(0u, rules.size()); |
251 } | 251 } |
OLD | NEW |