#include "net/reporting/reporting_network_change_observer.h"
#include <optional>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/unguessable_token.h"
#include "base/values.h"
#include "net/base/network_change_notifier.h"
#include "net/reporting/reporting_cache.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 ReportingNetworkChangeObserverTest : public ReportingTestBase { … };
TEST_F(ReportingNetworkChangeObserverTest, ClearNothing) { … }
TEST_F(ReportingNetworkChangeObserverTest, ClearReports) { … }
TEST_F(ReportingNetworkChangeObserverTest, ClearClients) { … }
TEST_F(ReportingNetworkChangeObserverTest, ClearReportsAndClients) { … }
}
}