#ifndef COMPONENTS_SAFE_BROWSING_CORE_BROWSER_DB_V4_TEST_UTIL_H_
#define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_DB_V4_TEST_UTIL_H_
#include <map>
#include <memory>
#include <ostream>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "components/safe_browsing/core/browser/db/v4_database.h"
#include "components/safe_browsing/core/browser/db/v4_get_hash_protocol_manager.h"
namespace safe_browsing {
struct ThreatMetadata;
struct V4ProtocolConfig;
V4ProtocolConfig GetTestV4ProtocolConfig(bool disable_auto_update = false);
std::ostream& operator<<(std::ostream& os, const ThreatMetadata& meta);
class TestV4Store : public V4Store { … };
class TestV4StoreFactory : public V4StoreFactory { … };
class TestV4Database : public V4Database { … };
class TestV4DatabaseFactory : public V4DatabaseFactory { … };
class TestV4GetHashProtocolManager : public V4GetHashProtocolManager { … };
class TestV4GetHashProtocolManagerFactory
: public V4GetHashProtocolManagerFactory { … };
struct TestV4HashResponseInfo { … };
std::string GetV4HashResponse(
std::vector<TestV4HashResponseInfo> response_infos);
FullHashInfo GetFullHashInfo(const GURL& url, const ListIdentifier& list_id);
FullHashInfo GetFullHashInfoWithMetadata(const GURL& url,
const ListIdentifier& list_id,
const ThreatMetadata& threat_metadata);
}
#endif