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

Unified Diff: Source/core/animation/PlayerTest.cpp

Issue 48523004: Have Player take the DocumentTimeline object by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « Source/core/animation/Player.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/PlayerTest.cpp
diff --git a/Source/core/animation/PlayerTest.cpp b/Source/core/animation/PlayerTest.cpp
index 94c8c310d9d57e9c3640e7d3243cd3f4629a5405..5296d2f6d2b9739545f16348cd411dcded7a6a70 100644
--- a/Source/core/animation/PlayerTest.cpp
+++ b/Source/core/animation/PlayerTest.cpp
@@ -50,7 +50,7 @@ protected:
document = Document::create();
document->animationClock().resetTimeForTesting();
timeline = DocumentTimeline::create(document.get());
- player = Player::create(timeline.get(), 0);
+ player = Player::create(*timeline, 0);
timeline->setZeroTime(0);
}
@@ -80,7 +80,7 @@ TEST_F(CoreAnimationPlayerTest, CreatePlayerAfterTimelineStarted)
{
updateTimeline(1234);
EXPECT_EQ(1234, timeline->currentTime());
- RefPtr<Player> player = Player::create(timeline.get(), 0);
+ RefPtr<Player> player = Player::create(*timeline, 0);
EXPECT_EQ(1234, player->startTime());
EXPECT_EQ(0, player->currentTime());
}
@@ -279,7 +279,7 @@ TEST_F(CoreAnimationPlayerTest, PlayersReturnTimeToNextEffect)
timing.iterationDuration = 1;
timing.hasIterationDuration = true;
RefPtr<Animation> animation = Animation::create(0, 0, timing);
- player = Player::create(timeline.get(), animation.get());
+ player = Player::create(*timeline, animation.get());
double timeToNextEffect;
updateTimeline(0, &timeToNextEffect);
« no previous file with comments | « Source/core/animation/Player.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698