#include "net/reporting/reporting_garbage_collector.h"
#include <optional>
#include <string>
#include "base/memory/raw_ptr.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/time/time.h"
#include "base/timer/mock_timer.h"
#include "net/base/isolation_info.h"
#include "net/base/network_anonymization_key.h"
#include "net/reporting/reporting_cache.h"
#include "net/reporting/reporting_policy.h"
#include "net/reporting/reporting_report.h"
#include "net/reporting/reporting_target_type.h"
#include "net/reporting/reporting_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net {
namespace {
class ReportingGarbageCollectorTest : public ReportingTestBase { … };
TEST_F(ReportingGarbageCollectorTest, Created) { … }
TEST_F(ReportingGarbageCollectorTest, Timer) { … }
TEST_F(ReportingGarbageCollectorTest, Report) { … }
TEST_F(ReportingGarbageCollectorTest, ExpiredReport) { … }
TEST_F(ReportingGarbageCollectorTest, FailedReport) { … }
TEST_F(ReportingGarbageCollectorTest, ExpiredSource) { … }
TEST_F(ReportingGarbageCollectorTest, ExpiredSourceWithPendingReports) { … }
}
}