Searched refs:IntValueBetween (Results 1 – 4 of 4) sorted by relevance
/external/chromium_org/ui/gfx/animation/ |
D | tween_unittest.cc | 61 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 …]
|
D | tween.h | 40 static int IntValueBetween(double value, int start, int target);
|
D | animation.cc | 69 return Tween::IntValueBetween(GetCurrentValue(), start, target); in CurrentValueBetween()
|
D | tween.cc | 125 int Tween::IntValueBetween(double value, int start, int target) { in IntValueBetween() function in gfx::Tween
|