#include "extensions/browser/updater/extension_cache_fake.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
namespace extensions {
ExtensionCacheFake::ExtensionCacheFake() = default;
ExtensionCacheFake::~ExtensionCacheFake() = default;
void ExtensionCacheFake::Start(base::OnceClosure callback) { … }
void ExtensionCacheFake::Shutdown(base::OnceClosure callback) { … }
void ExtensionCacheFake::AllowCaching(const std::string& id) { … }
bool ExtensionCacheFake::GetExtension(const std::string& id,
const std::string& expected_hash,
base::FilePath* file_path,
std::string* version) { … }
void ExtensionCacheFake::PutExtension(const std::string& id,
const std::string& expected_hash,
const base::FilePath& file_path,
const std::string& version,
PutExtensionCallback callback) { … }
bool ExtensionCacheFake::OnInstallFailed(const std::string& id,
const std::string& hash,
const CrxInstallError& error) { … }
}