| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_prefs_unittest.h" | 5 #include "chrome/browser/extensions/./extension_prefs_unittest.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/prefs/mock_pref_change_callback.h" | 10 #include "base/prefs/mock_pref_change_callback.h" |
| 11 #include "base/prefs/pref_change_registrar.h" | 11 #include "base/prefs/pref_change_registrar.h" |
| 12 #include "base/prefs/scoped_user_pref_update.h" | 12 #include "base/prefs/scoped_user_pref_update.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "chrome/browser/prefs/pref_service_syncable.h" | 17 #include "chrome/browser/prefs/pref_service_syncable.h" |
| 18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 19 #include "components/user_prefs/pref_registry_syncable.h" | 19 #include "components/pref_registry/pref_registry_syncable.h" |
| 20 #include "content/public/browser/notification_details.h" | 20 #include "content/public/browser/notification_details.h" |
| 21 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
| 22 #include "content/public/test/mock_notification_observer.h" | 22 #include "content/public/test/mock_notification_observer.h" |
| 23 #include "extensions/browser/extension_pref_value_map.h" | 23 #include "extensions/browser/extension_pref_value_map.h" |
| 24 #include "extensions/browser/extension_prefs.h" | 24 #include "extensions/browser/extension_prefs.h" |
| 25 #include "extensions/common/extension.h" | 25 #include "extensions/common/extension.h" |
| 26 #include "extensions/common/manifest_constants.h" | 26 #include "extensions/common/manifest_constants.h" |
| 27 #include "extensions/common/permissions/permission_set.h" | 27 #include "extensions/common/permissions/permission_set.h" |
| 28 #include "extensions/common/permissions/permissions_info.h" | 28 #include "extensions/common/permissions/permissions_info.h" |
| 29 #include "sync/api/string_ordinal.h" | 29 #include "sync/api/string_ordinal.h" |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 EXPECT_FALSE(prefs()->IsExtensionBlacklisted(extension_a_->id())); | 905 EXPECT_FALSE(prefs()->IsExtensionBlacklisted(extension_a_->id())); |
| 906 EXPECT_EQ(empty_ids, prefs()->GetBlacklistedExtensions()); | 906 EXPECT_EQ(empty_ids, prefs()->GetBlacklistedExtensions()); |
| 907 } | 907 } |
| 908 | 908 |
| 909 private: | 909 private: |
| 910 scoped_refptr<const Extension> extension_a_; | 910 scoped_refptr<const Extension> extension_a_; |
| 911 }; | 911 }; |
| 912 TEST_F(ExtensionPrefsBlacklistState, ExtensionPrefsBlacklistState) {} | 912 TEST_F(ExtensionPrefsBlacklistState, ExtensionPrefsBlacklistState) {} |
| 913 | 913 |
| 914 } // namespace extensions | 914 } // namespace extensions |
| OLD | NEW |