chromium/third_party/blink/renderer/platform/peerconnection/low_precision_timer_test.cc

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

#include "third_party/webrtc_overrides/low_precision_timer.h"

#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc_overrides/metronome_source.h"
#include "third_party/webrtc_overrides/timer_based_tick_provider.h"

namespace blink {

namespace {

base::TimeDelta TickPeriod() {}

class LowPrecisionTimerTest : public ::testing::Test {};

class CallbackListener {};

class RecursiveStartOneShotter {};

class RecursiveStopper {};

class IsActiveChecker {};

}  // namespace

TEST_F(LowPrecisionTimerTest, StartOneShot) {}

TEST_F(LowPrecisionTimerTest, RecursiveStartOneShot) {}

TEST_F(LowPrecisionTimerTest, MoveToNewTaskRunner) {}

TEST_F(LowPrecisionTimerTest, StartRepeating) {}

TEST_F(LowPrecisionTimerTest, StopRepeatingTimer) {}

// Ensures stopping inside the timer callback does not deadlock.
TEST_F(LowPrecisionTimerTest, StopTimerFromInsideCallback) {}

// Ensures in-parallel stopping while the task may be running does not
// deadlock in race condition. Coverage for https://crbug.com/1281399.
TEST(LowPrecisionTimerRealThreadsTest, StopTimerWithRaceCondition) {}

TEST_F(LowPrecisionTimerTest, IsActive) {}

}  // namespace blink