#include "remoting/client/ui/fling_animation.h"
#include <cmath>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/test/simple_test_tick_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
namespace {
const float kFlingTimeConstant = …;
}
class FlingAnimationTest : public testing::Test { … };
void FlingAnimationTest::SetUp() { … }
void FlingAnimationTest::TearDown() { … }
void FlingAnimationTest::TickAnimation(base::TimeDelta time_delta) { … }
void FlingAnimationTest::AssertDeltaChanged() { … }
void FlingAnimationTest::OnDeltaChanged(float dx, float dy) { … }
TEST_F(FlingAnimationTest, TestNoFling) { … }
TEST_F(FlingAnimationTest, TestFlingWillEventuallyStop) { … }
TEST_F(FlingAnimationTest, TestFlingDeltaIsDecreasing) { … }
TEST_F(FlingAnimationTest, TestIgnoreLowVelocity) { … }
TEST_F(FlingAnimationTest, TestAbortAnimation) { … }
TEST_F(FlingAnimationTest, TestResetVelocity) { … }
}