#include "extensions/browser/updater/extension_downloader_test_helper.h"
#include "base/run_loop.h"
#include "extensions/common/verifier_formats.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
_;
Invoke;
namespace extensions {
const net::BackoffEntry::Policy kZeroBackoffPolicy = …;
MockExtensionDownloaderDelegate::MockExtensionDownloaderDelegate() = default;
MockExtensionDownloaderDelegate::~MockExtensionDownloaderDelegate() = default;
void MockExtensionDownloaderDelegate::Wait() { … }
void MockExtensionDownloaderDelegate::Quit() { … }
void MockExtensionDownloaderDelegate::DelegateTo(
ExtensionDownloaderDelegate* delegate) { … }
MockExtensionCache::MockExtensionCache() = default;
MockExtensionCache::~MockExtensionCache() = default;
void MockExtensionCache::Start(base::OnceClosure callback) { … }
void MockExtensionCache::Shutdown(base::OnceClosure callback) { … }
ExtensionDownloaderTestHelper::ExtensionDownloaderTestHelper()
: … { … }
ExtensionDownloaderTestHelper::~ExtensionDownloaderTestHelper() = default;
void ExtensionDownloaderTestHelper::StartUpdateCheck(
std::unique_ptr<ManifestFetchData> fetch_data) { … }
network::TestURLLoaderFactory::PendingRequest*
ExtensionDownloaderTestHelper::GetPendingRequest(size_t index) { … }
void ExtensionDownloaderTestHelper::ClearURLLoaderFactoryResponses() { … }
std::unique_ptr<ExtensionDownloader>
ExtensionDownloaderTestHelper::CreateDownloader() { … }
ExtensionDownloaderTask CreateDownloaderTask(const ExtensionId& id,
const GURL& update_url) { … }
void AddExtensionToFetchDataForTesting(ManifestFetchData* fetch_data,
const ExtensionId& id,
const std::string& version,
const GURL& update_url,
DownloadPingData ping_data) { … }
void AddExtensionToFetchDataForTesting(ManifestFetchData* fetch_data,
const ExtensionId& id,
const std::string& version,
const GURL& update_url) { … }
UpdateManifestItem::UpdateManifestItem(ExtensionId id) : … { … }
UpdateManifestItem::~UpdateManifestItem() = default;
UpdateManifestItem::UpdateManifestItem(const UpdateManifestItem&) = default;
UpdateManifestItem& UpdateManifestItem::operator=(const UpdateManifestItem&) =
default;
UpdateManifestItem::UpdateManifestItem(UpdateManifestItem&&) = default;
UpdateManifestItem& UpdateManifestItem::operator=(UpdateManifestItem&&) =
default;
std::string CreateUpdateManifest(
const std::vector<UpdateManifestItem>& extensions) { … }
}