#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 { … };
}
TEST_F(LowPrecisionTimerTest, StartOneShot) { … }
TEST_F(LowPrecisionTimerTest, RecursiveStartOneShot) { … }
TEST_F(LowPrecisionTimerTest, MoveToNewTaskRunner) { … }
TEST_F(LowPrecisionTimerTest, StartRepeating) { … }
TEST_F(LowPrecisionTimerTest, StopRepeatingTimer) { … }
TEST_F(LowPrecisionTimerTest, StopTimerFromInsideCallback) { … }
TEST(LowPrecisionTimerRealThreadsTest, StopTimerWithRaceCondition) { … }
TEST_F(LowPrecisionTimerTest, IsActive) { … }
}