#include "net/reporting/mock_persistent_reporting_store.h"
#include <vector>
#include "base/location.h"
#include "base/test/bind.h"
#include "base/time/time.h"
#include "net/base/network_anonymization_key.h"
#include "net/reporting/reporting_endpoint.h"
#include "net/reporting/reporting_target_type.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace net {
namespace {
CommandType;
struct ReportingData { … };
ReportingData GetReportingData() { … }
void RunClosureOnClientsLoaded(
base::OnceClosure closure,
std::vector<ReportingEndpoint>* endpoints_out,
std::vector<CachedReportingEndpointGroup>* groups_out,
std::vector<ReportingEndpoint> loaded_endpoints,
std::vector<CachedReportingEndpointGroup> loaded_groups) { … }
MockPersistentReportingStore::ReportingClientsLoadedCallback
MakeExpectedRunReportingClientsLoadedCallback(
std::vector<ReportingEndpoint>* endpoints_out,
std::vector<CachedReportingEndpointGroup>* groups_out) { … }
TEST(MockPersistentReportingStoreTest, FinishLoading) { … }
TEST(MockPersistentReportingStoreTest, PreStoredClients) { … }
TEST(MockPersistentReportingStoreTest, FailedLoad) { … }
TEST(MockPersistentReportingStoreTest, AddFlushDeleteFlush) { … }
TEST(MockPersistentReportingStoreTest, CountCommands) { … }
}
}