#include "extensions/browser/mock_external_provider.h"
#include <memory>
#include "base/containers/contains.h"
#include "base/version.h"
#include "extensions/browser/external_install_info.h"
#include "extensions/common/extension.h"
namespace extensions {
MockExternalProvider::MockExternalProvider(VisitorInterface* visitor,
mojom::ManifestLocation location)
: … { … }
MockExternalProvider::~MockExternalProvider() = default;
void MockExternalProvider::UpdateOrAddExtension(const ExtensionId& id,
const std::string& version_str,
const base::FilePath& path) { … }
void MockExternalProvider::UpdateOrAddExtension(
std::unique_ptr<ExternalInstallInfoFile> info) { … }
void MockExternalProvider::UpdateOrAddExtension(
std::unique_ptr<ExternalInstallInfoUpdateUrl> info) { … }
void MockExternalProvider::RemoveExtension(const ExtensionId& id) { … }
void MockExternalProvider::VisitRegisteredExtension() { … }
void MockExternalProvider::TriggerOnExternalExtensionFound() { … }
bool MockExternalProvider::HasExtension(const std::string& id) const { … }
bool MockExternalProvider::GetExtensionDetails(
const std::string& id,
mojom::ManifestLocation* location,
std::unique_ptr<base::Version>* version) const { … }
bool MockExternalProvider::IsReady() const { … }
}