Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2139)

Unified Diff: cc/animation/animation_unittest.cc

Issue 609663003: cc: Remove use of PassAs() and constructor-casting with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc-passas: PassAs-presubmit-warning Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/PRESUBMIT.py ('k') | cc/animation/keyframed_animation_curve.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_unittest.cc
diff --git a/cc/animation/animation_unittest.cc b/cc/animation/animation_unittest.cc
index 378bb7e92d442bafe7f9c70fe82f0a8473ea5223..7b701784f8246cbcdb3bbf3e94ebbdf44fe0940a 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();
« no previous file with comments | « cc/PRESUBMIT.py ('k') | cc/animation/keyframed_animation_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698