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

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

Issue 2147923002: [Extensions] Fixed removing from blacklist. (Closed) Base URL: ssh://bitbucket.browser.yandex-team.ru/chromium/src.git@master
Patch Set: Unnecessary extensions:: namespace is removed. Created 4 years, 5 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 | « no previous file | chrome/browser/extensions/extension_error_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/blacklist_unittest.cc
diff --git a/chrome/browser/extensions/blacklist_unittest.cc b/chrome/browser/extensions/blacklist_unittest.cc
index 644fb4d9741def8faffcd415b0f483fbc14de4a9..8d29c1d7e7b8a163f40bebf805ffcc96aa9f3295 100644
--- a/chrome/browser/extensions/blacklist_unittest.cc
+++ b/chrome/browser/extensions/blacklist_unittest.cc
@@ -124,14 +124,14 @@ TEST_F(BlacklistTest, ClearsPreferencesBlacklist) {
std::string b = AddExtension("b");
// Blacklist an installed extension.
- prefs()->SetExtensionBlacklisted(a, true);
+ prefs()->SetExtensionBlacklistState(a, BLACKLISTED_MALWARE);
// Blacklist some non-installed extensions. This is what the old preferences
// blacklist looked like.
std::string c = "cccccccccccccccccccccccccccccccc";
std::string d = "dddddddddddddddddddddddddddddddd";
- prefs()->SetExtensionBlacklisted(c, true);
- prefs()->SetExtensionBlacklisted(d, true);
+ prefs()->SetExtensionBlacklistState(c, BLACKLISTED_MALWARE);
+ prefs()->SetExtensionBlacklistState(d, BLACKLISTED_MALWARE);
EXPECT_EQ(Set(a, c, d), prefs()->GetBlacklistedExtensions());
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_error_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698