#include "components/policy/test_support/client_storage.h"
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/not_fatal_until.h"
#include "crypto/sha2.h"
namespace policy {
ClientStorage::ClientInfo::ClientInfo() = default;
ClientStorage::ClientInfo::ClientInfo(
const ClientStorage::ClientInfo& client_info) = default;
ClientStorage::ClientInfo& ClientStorage::ClientInfo::operator=(
const ClientStorage::ClientInfo& client_info) = default;
ClientStorage::ClientInfo::ClientInfo(ClientStorage::ClientInfo&& client_info) =
default;
ClientStorage::ClientInfo& ClientStorage::ClientInfo::operator=(
ClientStorage::ClientInfo&& client_info) = default;
ClientStorage::ClientInfo::~ClientInfo() = default;
ClientStorage::ClientStorage() = default;
ClientStorage::ClientStorage(ClientStorage&& client_storage) = default;
ClientStorage& ClientStorage::operator=(ClientStorage&& client_storage) =
default;
ClientStorage::~ClientStorage() = default;
void ClientStorage::RegisterClient(const ClientInfo& client_info) { … }
bool ClientStorage::HasClient(const std::string& device_id) const { … }
const ClientStorage::ClientInfo& ClientStorage::GetClient(
const std::string& device_id) const { … }
const ClientStorage::ClientInfo* ClientStorage::GetClientOrNull(
const std::string& device_id) const { … }
const ClientStorage::ClientInfo* ClientStorage::LookupByStateKey(
const std::string& state_key) const { … }
bool ClientStorage::DeleteClient(const std::string& device_token) { … }
size_t ClientStorage::GetNumberOfRegisteredClients() const { … }
std::vector<std::string> ClientStorage::GetMatchingStateKeyHashes(
uint64_t modulus,
uint64_t remainder) const { … }
std::vector<ClientStorage::ClientInfo> ClientStorage::GetAllClients() { … }
}