#include "net/network_error_logging/mock_persistent_nel_store.h"
#include <sstream>
namespace net {
MockPersistentNelStore::Command::Command(
Type type,
NelPoliciesLoadedCallback loaded_callback)
: … { … }
MockPersistentNelStore::Command::Command(
Type type,
const NetworkErrorLoggingService::NelPolicy& policy)
: … { … }
MockPersistentNelStore::Command::Command(Type type) : … { … }
MockPersistentNelStore::Command::Command(const Command& other)
: … { … }
MockPersistentNelStore::Command::Command(Command&& other) = default;
MockPersistentNelStore::Command::~Command() = default;
bool operator==(const MockPersistentNelStore::Command& lhs,
const MockPersistentNelStore::Command& rhs) { … }
bool operator!=(const MockPersistentNelStore::Command& lhs,
const MockPersistentNelStore::Command& rhs) { … }
MockPersistentNelStore::MockPersistentNelStore() = default;
MockPersistentNelStore::~MockPersistentNelStore() = default;
void MockPersistentNelStore::LoadNelPolicies(
NelPoliciesLoadedCallback loaded_callback) { … }
void MockPersistentNelStore::AddNelPolicy(
const NetworkErrorLoggingService::NelPolicy& policy) { … }
void MockPersistentNelStore::UpdateNelPolicyAccessTime(
const NetworkErrorLoggingService::NelPolicy& policy) { … }
void MockPersistentNelStore::DeleteNelPolicy(
const NetworkErrorLoggingService::NelPolicy& policy) { … }
void MockPersistentNelStore::Flush() { … }
void MockPersistentNelStore::SetPrestoredPolicies(
std::vector<NetworkErrorLoggingService::NelPolicy> policies) { … }
void MockPersistentNelStore::FinishLoading(bool load_success) { … }
bool MockPersistentNelStore::VerifyCommands(
const CommandList& expected_commands) const { … }
MockPersistentNelStore::CommandList MockPersistentNelStore::GetAllCommands()
const { … }
}