#include "content/browser/aggregation_service/report_scheduler_timer.h"
#include <memory>
#include <optional>
#include <utility>
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/test/gmock_move_support.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "services/network/public/mojom/network_change_manager.mojom.h"
#include "services/network/test/test_network_connection_tracker.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
_;
InSequence;
Invoke;
Checkpoint;
constexpr auto kExampleTime = …;
class MockReportSchedulerTimerDelegate : public ReportSchedulerTimer::Delegate { … };
class ReportSchedulerTimerTest : public testing::Test { … };
TEST_F(ReportSchedulerTimerTest, SetTimer_FiredAtAppropriateTime) { … }
TEST_F(ReportSchedulerTimerTest, MultipleSetTimers_FiredAtAppropriateTime) { … }
TEST_F(ReportSchedulerTimerTest, NetworkChange) { … }
TEST(ReportSchedulerTimer, Constructor_AdjustsOfflineReportTimes) { … }
}
}