| 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 "extension_prefs_unittest.h" | 5 #include "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/path_service.h" | 9 #include "base/path_service.h" |
| 9 #include "base/prefs/public/pref_change_registrar.h" | 10 #include "base/prefs/public/pref_change_registrar.h" |
| 10 #include "base/scoped_temp_dir.h" | |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 13 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/extensions/extension_pref_value_map.h" | 15 #include "chrome/browser/extensions/extension_pref_value_map.h" |
| 16 #include "chrome/browser/extensions/extension_prefs.h" | 16 #include "chrome/browser/extensions/extension_prefs.h" |
| 17 #include "chrome/browser/prefs/pref_observer_mock.h" |
| 17 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 18 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| 18 #include "chrome/browser/prefs/pref_observer_mock.h" | |
| 19 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
| 20 #include "chrome/common/extensions/extension_manifest_constants.h" | 20 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 21 #include "chrome/common/extensions/permissions/permission_set.h" | 21 #include "chrome/common/extensions/permissions/permission_set.h" |
| 22 #include "chrome/common/extensions/permissions/permissions_info.h" | 22 #include "chrome/common/extensions/permissions/permissions_info.h" |
| 23 #include "content/public/browser/notification_details.h" | 23 #include "content/public/browser/notification_details.h" |
| 24 #include "content/public/browser/notification_source.h" | 24 #include "content/public/browser/notification_source.h" |
| 25 #include "content/public/test/mock_notification_observer.h" | 25 #include "content/public/test/mock_notification_observer.h" |
| 26 #include "sync/api/string_ordinal.h" | 26 #include "sync/api/string_ordinal.h" |
| 27 | 27 |
| 28 using base::Time; | 28 using base::Time; |
| (...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 EXPECT_EQ(string16(), error16); | 1304 EXPECT_EQ(string16(), error16); |
| 1305 EXPECT_TRUE(prefs()->UserMayModifySettings(extension_.get(), &error16)); | 1305 EXPECT_TRUE(prefs()->UserMayModifySettings(extension_.get(), &error16)); |
| 1306 EXPECT_EQ(string16(), error16); | 1306 EXPECT_EQ(string16(), error16); |
| 1307 EXPECT_FALSE(prefs()->MustRemainEnabled(extension_.get(), &error16)); | 1307 EXPECT_FALSE(prefs()->MustRemainEnabled(extension_.get(), &error16)); |
| 1308 EXPECT_EQ(string16(), error16); | 1308 EXPECT_EQ(string16(), error16); |
| 1309 } | 1309 } |
| 1310 }; | 1310 }; |
| 1311 TEST_F(ExtensionPrefsNotRequiredExtension, NotRequiredExtension) {} | 1311 TEST_F(ExtensionPrefsNotRequiredExtension, NotRequiredExtension) {} |
| 1312 | 1312 |
| 1313 } // namespace extensions | 1313 } // namespace extensions |
| OLD | NEW |