Home
last modified time | relevance | path

Searched refs:IntValueBetween (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/ui/gfx/animation/
Dtween_unittest.cc61 TEST(TweenTest, IntValueBetween) { in TEST() argument
62 EXPECT_EQ(0, Tween::IntValueBetween(0.0, 0, 2)); in TEST()
63 EXPECT_EQ(0, Tween::IntValueBetween(0.5 / 3.0, 0, 2)); in TEST()
64 EXPECT_EQ(0, Tween::IntValueBetween(1.0 / 3.0, 0, 2)); in TEST()
66 EXPECT_EQ(1, Tween::IntValueBetween(next_double(1.0 / 3.0), 0, 2)); in TEST()
67 EXPECT_EQ(1, Tween::IntValueBetween(1.5 / 3.0, 0, 2)); in TEST()
68 EXPECT_EQ(1, Tween::IntValueBetween(2.0 / 3.0, 0, 2)); in TEST()
70 EXPECT_EQ(2, Tween::IntValueBetween(next_double(2.0 / 3.0), 0, 2)); in TEST()
71 EXPECT_EQ(2, Tween::IntValueBetween(2.5 / 3.0, 0, 2)); in TEST()
72 EXPECT_EQ(2, Tween::IntValueBetween(3.0 / 3.0, 0, 2)); in TEST()
[all …]
Dtween.h40 static int IntValueBetween(double value, int start, int target);
Danimation.cc69 return Tween::IntValueBetween(GetCurrentValue(), start, target); in CurrentValueBetween()
Dtween.cc125 int Tween::IntValueBetween(double value, int start, int target) { in IntValueBetween() function in gfx::Tween