#include "net/reporting/reporting_endpoint_manager.h"
#include <optional>
#include <string>
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/time/time.h"
#include "base/unguessable_token.h"
#include "net/base/backoff_entry.h"
#include "net/base/isolation_info.h"
#include "net/base/network_anonymization_key.h"
#include "net/base/schemeful_site.h"
#include "net/reporting/reporting_cache.h"
#include "net/reporting/reporting_endpoint.h"
#include "net/reporting/reporting_policy.h"
#include "net/reporting/reporting_target_type.h"
#include "net/reporting/reporting_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace net {
namespace {
class TestReportingCache : public ReportingCache { … };
class ReportingEndpointManagerTest : public testing::Test { … };
TEST_F(ReportingEndpointManagerTest, NoEndpoint) { … }
TEST_F(ReportingEndpointManagerTest, DeveloperEndpoint) { … }
TEST_F(ReportingEndpointManagerTest, EnterpriseEndpoint) { … }
TEST_F(ReportingEndpointManagerTest, BackedOffEndpoint) { … }
TEST_F(ReportingEndpointManagerTest, RandomEndpoint) { … }
TEST_F(ReportingEndpointManagerTest, Priority) { … }
TEST_F(ReportingEndpointManagerTest, Weight) { … }
TEST_F(ReportingEndpointManagerTest, ZeroWeights) { … }
TEST_F(ReportingEndpointManagerTest, NetworkAnonymizationKey) { … }
TEST_F(ReportingEndpointManagerTest,
NetworkAnonymizationKeyWithMultipleEndpoints) { … }
TEST_F(ReportingEndpointManagerTest, CacheEviction) { … }
}
}