#include "components/download/internal/background_service/test/test_download_driver.h"
#include "base/files/file_path.h"
#include "components/download/public/background_service/download_params.h"
#include "net/http/http_response_headers.h"
#include "services/network/public/cpp/resource_request_body.h"
namespace download {
namespace test {
TestDownloadDriver::TestDownloadDriver() : … { … }
TestDownloadDriver::~TestDownloadDriver() = default;
void TestDownloadDriver::MakeReady() { … }
void TestDownloadDriver::TriggerHardRecoverComplete(bool success) { … }
void TestDownloadDriver::AddTestData(const std::vector<DriverEntry>& entries) { … }
void TestDownloadDriver::NotifyDownloadUpdate(const DriverEntry& entry) { … }
void TestDownloadDriver::NotifyDownloadFailed(const DriverEntry& entry,
FailureType failure_type) { … }
void TestDownloadDriver::NotifyDownloadSucceeded(const DriverEntry& entry) { … }
void TestDownloadDriver::Initialize(DownloadDriver::Client* client) { … }
void TestDownloadDriver::HardRecover() { … }
bool TestDownloadDriver::IsReady() const { … }
void TestDownloadDriver::Start(
const RequestParams& params,
const std::string& guid,
const base::FilePath& file_path,
scoped_refptr<network::ResourceRequestBody> post_body,
const net::NetworkTrafficAnnotationTag& traffic_annotation) { … }
void TestDownloadDriver::Remove(const std::string& guid, bool remove_file) { … }
void TestDownloadDriver::Pause(const std::string& guid) { … }
void TestDownloadDriver::Resume(const std::string& guid) { … }
std::optional<DriverEntry> TestDownloadDriver::Find(const std::string& guid) { … }
std::set<std::string> TestDownloadDriver::GetActiveDownloads() { … }
size_t TestDownloadDriver::EstimateMemoryUsage() const { … }
}
}