#include "third_party/blink/renderer/platform/scheduler/main_thread/user_model.h"
#include <memory>
#include "base/test/simple_test_tick_clock.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
namespace scheduler {
class UserModelTest : public testing::Test { … };
TEST_F(UserModelTest, TimeLeftInContinuousUserGesture_NoInput) { … }
TEST_F(UserModelTest, TimeLeftInContinuousUserGesture_ImmediatelyAfterInput) { … }
TEST_F(UserModelTest, TimeLeftInContinuousUserGesture_ShortlyAfterInput) { … }
TEST_F(UserModelTest, TimeLeftInContinuousUserGesture_LongAfterInput) { … }
TEST_F(UserModelTest, DidFinishProcessingInputEvent_Delayed) { … }
TEST_F(UserModelTest, GestureExpectedSoon_NoRecentInput) { … }
TEST_F(UserModelTest, GestureExpectedSoon_ShortlyAfter_GestureScrollBegin) { … }
TEST_F(UserModelTest, GestureExpectedSoon_LongAfter_GestureScrollBegin) { … }
TEST_F(UserModelTest, GestureExpectedSoon_ImmediatelyAfter_GestureScrollEnd) { … }
TEST_F(UserModelTest, GestureExpectedSoon_ShortlyAfter_GestureScrollEnd) { … }
TEST_F(UserModelTest, GestureExpectedSoon_LongAfter_GestureScrollEnd) { … }
TEST_F(UserModelTest, GestureExpectedSoon_ShortlyAfter_GesturePinchEnd) { … }
TEST_F(UserModelTest, GestureExpectedSoon_ShortlyAfterInput_GestureTap) { … }
TEST_F(UserModelTest, IsGestureExpectedToContinue_NoGesture) { … }
TEST_F(UserModelTest, IsGestureExpectedToContinue_GestureJustStarted) { … }
TEST_F(UserModelTest, IsGestureExpectedToContinue_GestureJustEnded) { … }
TEST_F(UserModelTest, IsGestureExpectedToContinue_ShortlyAfterGestureStarted) { … }
TEST_F(UserModelTest, IsGestureExpectedToContinue_LongAfterGestureStarted) { … }
TEST_F(UserModelTest, ResetPendingInputCount) { … }
TEST_F(UserModelTest, DiscreteInput) { … }
TEST_F(UserModelTest, DiscreteAndContinuousInput) { … }
}
}