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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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') | Source/core/animation/TimedItemCalculationsTest.cpp » ('j') | 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 1bec3cb7c46db0b6197ecbf64b9bf2e05f760dba..7034a8cbccb87a43abcd2ee893d0ea93f0c10bae 100644
--- a/Source/core/animation/PlayerTest.cpp
+++ b/Source/core/animation/PlayerTest.cpp
@@ -73,7 +73,7 @@ protected:
Timing timing;
timing.iterationDuration = duration;
timing.playbackRate = playbackRate;
- return Animation::create(0, 0, timing);
+ return Animation::create(nullptr, nullptr, timing);
}
bool updateTimeline(double time)
@@ -452,7 +452,7 @@ TEST_F(AnimationPlayerTest, FinishRaisesException)
Timing timing;
timing.iterationDuration = 1;
timing.iterationCount = std::numeric_limits<double>::infinity();
- player->setSource(Animation::create(0, 0, timing).get());
+ player->setSource(Animation::create(nullptr, nullptr, timing).get());
player->setCurrentTime(10);
player->finish(exceptionState);
@@ -621,7 +621,7 @@ TEST_F(AnimationPlayerTest, PlayersReturnTimeToNextEffect)
timing.startDelay = 1;
timing.iterationDuration = 1;
timing.endDelay = 1;
- RefPtr<Animation> animation = Animation::create(0, 0, timing);
+ RefPtr<Animation> animation = Animation::create(nullptr, nullptr, timing);
player = timeline->createPlayer(animation.get());
player->setStartTime(0);
@@ -670,7 +670,7 @@ TEST_F(AnimationPlayerTest, AttachedPlayers)
RefPtr<Element> element = document->createElement("foo", ASSERT_NO_EXCEPTION);
Timing timing;
- RefPtr<Animation> animation = Animation::create(element, 0, timing);
+ RefPtr<Animation> animation = Animation::create(element, nullptr, timing);
RefPtr<Player> player = timeline->createPlayer(animation.get());
timeline->serviceAnimations();
EXPECT_EQ(1U, element->activeAnimations()->players().find(player.get())->value);
« no previous file with comments | « Source/core/animation/Player.cpp ('k') | Source/core/animation/TimedItemCalculationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698