chromium/content/browser/aggregation_service/report_scheduler_timer_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// TODO(apaseltiner): Figure out how to test the case in which the network
// connection tracker is uninitialized.
TEST(ReportSchedulerTimer, Constructor_AdjustsOfflineReportTimes) {}

}  // namespace

}  // namespace content