diff options
Diffstat (limited to 'chrome/browser/extensions/extension_updater_unittest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_updater_unittest.cc | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_updater_unittest.cc b/chrome/browser/extensions/extension_updater_unittest.cc index 1e48668..5c93424 100644 --- a/chrome/browser/extensions/extension_updater_unittest.cc +++ b/chrome/browser/extensions/extension_updater_unittest.cc @@ -48,7 +48,7 @@ const ManifestFetchData::PingData kNeverPingedData( } // namespace // Base class for further specialized test classes. -class MockService : public ExtensionUpdateService { +class MockService : public ExtensionServiceInterface { public: MockService() : pending_extension_manager_(ALLOW_THIS_IN_INITIALIZER_LIST(*this)) {} @@ -59,6 +59,11 @@ class MockService : public ExtensionUpdateService { return NULL; } + virtual const ExtensionList* disabled_extensions() const { + ADD_FAILURE(); + return NULL; + } + virtual PendingExtensionManager* pending_extension_manager() { ADD_FAILURE() << "Subclass should override this if it will " << "be accessed by a test."; @@ -77,6 +82,20 @@ class MockService : public ExtensionUpdateService { return NULL; } + virtual void UninstallExtension(const std::string& extension_id, + bool external_uninstall) { + FAIL(); + } + + virtual void EnableExtension(const std::string& extension_id) { + FAIL(); + } + + virtual void DisableExtension(const std::string& extension_id) { + FAIL(); + } + + virtual void UpdateExtensionBlacklist( const std::vector<std::string>& blacklist) { FAIL(); @@ -91,11 +110,21 @@ class MockService : public ExtensionUpdateService { return false; } + virtual void SetIsIncognitoEnabled(const Extension* extension, + bool enabled) { + FAIL(); + } + virtual ExtensionPrefs* extension_prefs() { return prefs_.prefs(); } virtual const ExtensionPrefs& const_extension_prefs() const { return prefs_.const_prefs(); } + virtual ExtensionUpdater* updater() { + ADD_FAILURE(); + return NULL; + } + virtual Profile* profile() { return &profile_; } PrefService* pref_service() { return prefs_.pref_service(); } |