Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4127)

Unified Diff: chrome/browser/extensions/extension_prefs_unittest.cc

Issue 10854009: Extension white and force lists (set by policy) should have priority over auto-updated Google black… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased and merged Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs_unittest.cc
diff --git a/chrome/browser/extensions/extension_prefs_unittest.cc b/chrome/browser/extensions/extension_prefs_unittest.cc
index da5490a8f54afda38db1dfaff347a9d9eb4a6a66..61177635c640d4d05b001c16487206164d1e8cb3 100644
--- a/chrome/browser/extensions/extension_prefs_unittest.cc
+++ b/chrome/browser/extensions/extension_prefs_unittest.cc
@@ -492,7 +492,7 @@ class ExtensionPrefsBlacklist : public ExtensionPrefsTest {
ExtensionList::const_iterator iter;
for (iter = extensions_.begin(); iter != extensions_.end(); ++iter) {
- EXPECT_FALSE(prefs()->IsExtensionBlacklisted((*iter)->id()));
+ EXPECT_TRUE(prefs()->UserMayLoad(*iter, NULL));
}
// Blacklist one installed and one not-installed extension id.
std::set<std::string> blacklisted_ids;
@@ -502,15 +502,13 @@ class ExtensionPrefsBlacklist : public ExtensionPrefsTest {
}
virtual void Verify() {
- // Make sure the two id's we expect to be blacklisted are.
- EXPECT_TRUE(prefs()->IsExtensionBlacklisted(extensions_[0]->id()));
- EXPECT_TRUE(prefs()->IsExtensionBlacklisted(not_installed_id_));
+ // Make sure the id we expect to be blacklisted is.
+ EXPECT_FALSE(prefs()->UserMayLoad(extensions_[0], NULL));
// Make sure the other id's are not blacklisted.
ExtensionList::const_iterator iter;
- for (iter = extensions_.begin() + 1; iter != extensions_.end(); ++iter) {
- EXPECT_FALSE(prefs()->IsExtensionBlacklisted((*iter)->id()));
- }
+ for (iter = extensions_.begin() + 1; iter != extensions_.end(); ++iter)
+ EXPECT_TRUE(prefs()->UserMayLoad(*iter, NULL));
// Make sure GetInstalledExtensionsInfo returns only the non-blacklisted
// extensions data.
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/extensions/extension_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698