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

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

Issue 3166023: When extension is blacklisted by admin policy, it should be removed if alread... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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/extensions_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_updater_unittest.cc
===================================================================
--- chrome/browser/extensions/extension_updater_unittest.cc (revision 56844)
+++ chrome/browser/extensions/extension_updater_unittest.cc (working copy)
@@ -40,33 +40,37 @@
virtual ~MockService() {}
virtual const ExtensionList* extensions() const {
- EXPECT_TRUE(false);
+ ADD_FAILURE();
return NULL;
}
virtual const PendingExtensionMap& pending_extensions() const {
- EXPECT_TRUE(false);
+ ADD_FAILURE();
return pending_extensions_;
}
virtual void UpdateExtension(const std::string& id,
const FilePath& extension_path,
const GURL& download_url) {
- EXPECT_TRUE(false);
+ FAIL();
}
virtual Extension* GetExtensionById(const std::string& id, bool) {
- EXPECT_TRUE(false);
+ ADD_FAILURE();
return NULL;
}
virtual void UpdateExtensionBlacklist(
- const std::vector<std::string>& blacklist) {
- EXPECT_TRUE(false);
+ const std::vector<std::string>& blacklist) {
+ FAIL();
}
+ virtual void CheckAdminBlacklist() {
+ FAIL();
+ }
+
virtual bool HasInstalledExtensions() {
- EXPECT_TRUE(false);
+ ADD_FAILURE();
return false;
}
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/extensions/extensions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698