diff options
Diffstat (limited to 'cc/animation/animation_unittest.cc')
-rw-r--r-- | cc/animation/animation_unittest.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cc/animation/animation_unittest.cc b/cc/animation/animation_unittest.cc index 378bb7e..7b70178 100644 --- a/cc/animation/animation_unittest.cc +++ b/cc/animation/animation_unittest.cc @@ -21,12 +21,11 @@ static base::TimeTicks TicksFromSecondsF(double seconds) { scoped_ptr<Animation> CreateAnimation(double iterations, double duration, double playback_rate) { - scoped_ptr<Animation> to_return(Animation::Create( - make_scoped_ptr( - new FakeFloatAnimationCurve(duration)).PassAs<AnimationCurve>(), - 0, - 1, - Animation::Opacity)); + scoped_ptr<Animation> to_return( + Animation::Create(make_scoped_ptr(new FakeFloatAnimationCurve(duration)), + 0, + 1, + Animation::Opacity)); to_return->set_iterations(iterations); to_return->set_playback_rate(playback_rate); return to_return.Pass(); |