#ifndef COMPONENTS_DOWNLOAD_INTERNAL_BACKGROUND_SERVICE_TEST_ENTRY_UTILS_H_
#define COMPONENTS_DOWNLOAD_INTERNAL_BACKGROUND_SERVICE_TEST_ENTRY_UTILS_H_
#include <string>
#include <vector>
#include "components/download/internal/background_service/entry.h"
namespace download {
namespace test {
bool CompareEntry(const Entry* const& expected, const Entry* const& actual);
bool CompareEntryList(const std::vector<Entry*>& a,
const std::vector<Entry*>& b);
bool CompareEntryList(const std::vector<Entry>& list1,
const std::vector<Entry>& list2);
bool CompareEntryUsingGuidOnly(const Entry* const& expected,
const Entry* const& actual);
bool CompareEntryListUsingGuidOnly(const std::vector<Entry*>& a,
const std::vector<Entry*>& b);
Entry BuildBasicEntry();
Entry BuildBasicEntry(Entry::State state);
Entry BuildEntry(DownloadClient client, const std::string& guid);
Entry BuildEntry(DownloadClient client,
const std::string& guid,
base::Time cancel_time,
SchedulingParams::NetworkRequirements network_requirements,
SchedulingParams::BatteryRequirements battery_requirements,
SchedulingParams::Priority priority,
const GURL& url,
const std::string& request_method,
Entry::State state,
const base::FilePath& file_path,
base::Time create_time,
base::Time completion_time,
base::Time last_cleanup_check_time,
uint64_t bytes_downloaded,
int attempt_count,
int resumption_count);
}
}
#endif