#ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_
#define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_
#include <string>
#include <vector>
#include "chrome/browser/extensions/extension_service.h"
namespace extensions {
class CrxInstaller;
class Extension;
}
class TestExtensionService : public ExtensionServiceInterface {
public:
virtual ~TestExtensionService();
virtual const extensions::ExtensionSet* extensions() const OVERRIDE;
virtual extensions::PendingExtensionManager*
pending_extension_manager() OVERRIDE;
virtual bool UpdateExtension(
const std::string& id,
const base::FilePath& path,
bool file_ownership_passed,
const GURL& download_url,
extensions::CrxInstaller** out_crx_installer) OVERRIDE;
virtual const extensions::Extension* GetExtensionById(
const std::string& id, bool include_disabled) const OVERRIDE;
virtual const extensions::Extension* GetInstalledExtension(
const std::string& id) const OVERRIDE;
virtual const extensions::Extension* GetPendingExtensionUpdate(
const std::string& extension_id) const OVERRIDE;
virtual void FinishDelayedInstallation(
const std::string& extension_id) OVERRIDE;
virtual bool IsExtensionEnabled(
const std::string& extension_id) const OVERRIDE;
virtual void CheckManagementPolicy() OVERRIDE;
virtual void CheckForUpdatesSoon() OVERRIDE;
virtual bool is_ready() OVERRIDE;
virtual base::SequencedTaskRunner* GetFileTaskRunner() OVERRIDE;
virtual void AddExtension(const extensions::Extension* extension) OVERRIDE;
virtual void AddComponentExtension(
const extensions::Extension* extension) OVERRIDE;
virtual void UnloadExtension(
const std::string& extension_id,
extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE;
virtual void RemoveComponentExtension(const std::string & extension_id)
OVERRIDE;
};
#endif