IntValueBetween 69 ui/gfx/animation/animation.cc return Tween::IntValueBetween(GetCurrentValue(), start, target); IntValueBetween 47 ui/gfx/animation/tween.h static int IntValueBetween(double value, int start, int target); IntValueBetween 64 ui/gfx/animation/tween_unittest.cc TEST(TweenTest, IntValueBetween) { IntValueBetween 65 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(0.0, 0, 2)); IntValueBetween 66 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(0.5 / 3.0, 0, 2)); IntValueBetween 67 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(1.0 / 3.0, 0, 2)); IntValueBetween 69 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(1, Tween::IntValueBetween(next_double(1.0 / 3.0), 0, 2)); IntValueBetween 70 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(1, Tween::IntValueBetween(1.5 / 3.0, 0, 2)); IntValueBetween 71 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(1, Tween::IntValueBetween(2.0 / 3.0, 0, 2)); IntValueBetween 73 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(2, Tween::IntValueBetween(next_double(2.0 / 3.0), 0, 2)); IntValueBetween 74 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(2, Tween::IntValueBetween(2.5 / 3.0, 0, 2)); IntValueBetween 75 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(2, Tween::IntValueBetween(3.0 / 3.0, 0, 2)); IntValueBetween 79 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(-2, Tween::IntValueBetween(0.0, -2, 0)); IntValueBetween 80 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(-2, Tween::IntValueBetween(0.5 / 3.0, -2, 0)); IntValueBetween 81 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(-2, Tween::IntValueBetween(1.0 / 3.0, -2, 0)); IntValueBetween 83 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(-1, Tween::IntValueBetween(next_double(1.0 / 3.0), -2, 0)); IntValueBetween 84 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(-1, Tween::IntValueBetween(1.5 / 3.0, -2, 0)); IntValueBetween 85 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(-1, Tween::IntValueBetween(2.0 / 3.0, -2, 0)); IntValueBetween 87 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(next_double(2.0 / 3.0), -2, 0)); IntValueBetween 88 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(2.5 / 3.0, -2, 0)); IntValueBetween 89 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(3.0 / 3.0, -2, 0)); IntValueBetween 93 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(2, Tween::IntValueBetween(0.0, 2, 0)); IntValueBetween 94 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(2, Tween::IntValueBetween(0.5 / 3.0, 2, 0)); IntValueBetween 95 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(2, Tween::IntValueBetween(1.0 / 3.0, 2, 0)); IntValueBetween 97 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(1, Tween::IntValueBetween(next_double(1.0 / 3.0), 2, 0)); IntValueBetween 98 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(1, Tween::IntValueBetween(1.5 / 3.0, 2, 0)); IntValueBetween 99 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(1, Tween::IntValueBetween(2.0 / 3.0, 2, 0)); IntValueBetween 101 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(next_double(2.0 / 3.0), 2, 0)); IntValueBetween 102 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(2.5 / 3.0, 2, 0)); IntValueBetween 103 ui/gfx/animation/tween_unittest.cc EXPECT_EQ(0, Tween::IntValueBetween(3.0 / 3.0, 2, 0));