#include "third_party/webrtc_overrides/timer_based_tick_provider.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
namespace {
InSequence;
Invoke;
class TimerBasedTickProviderTest : public ::testing::Test { … };
TEST_F(TimerBasedTickProviderTest, SnapsTimeToNextTick) { … }
TEST_F(TimerBasedTickProviderTest, InvokesRequestedCallbackOnTick) { … }
TEST_F(TimerBasedTickProviderTest, InvokesRequestedCallbackAfterTickElapsed) { … }
TEST_F(TimerBasedTickProviderTest, InvokesTwoCallbacksOnSameTick) { … }
TEST_F(TimerBasedTickProviderTest,
InvokesRequestedCallbackOnTickFromCallbackOnTick) { … }
TEST_F(TimerBasedTickProviderTest,
InvokesRequestedCallbackOnNextTickFromCallbackOnTick) { … }
TEST_F(TimerBasedTickProviderTest, MultipleTickProvidersAreAligned) { … }
}
}