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/AnimatableDoubleTest.cpp

Issue 204743002: Oilpan: Move AnimatableValue's hierarchy to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/AnimatableDouble.cpp ('k') | Source/core/animation/AnimatableFilterOperations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableDoubleTest.cpp
diff --git a/Source/core/animation/AnimatableDoubleTest.cpp b/Source/core/animation/AnimatableDoubleTest.cpp
index a5efd96038378236bc129afa7963456c96d63b45..933b963964ca55a994486701d906535501105d49 100644
--- a/Source/core/animation/AnimatableDoubleTest.cpp
+++ b/Source/core/animation/AnimatableDoubleTest.cpp
@@ -68,8 +68,8 @@ TEST(AnimationAnimatableDoubleTest, ToDouble)
TEST(AnimationAnimatableDoubleTest, Interpolate)
{
- RefPtr<AnimatableDouble> from10 = AnimatableDouble::create(10);
- RefPtr<AnimatableDouble> to20 = AnimatableDouble::create(20);
+ RefPtrWillBeRawPtr<AnimatableDouble> from10 = AnimatableDouble::create(10);
+ RefPtrWillBeRawPtr<AnimatableDouble> to20 = AnimatableDouble::create(20);
EXPECT_EQ(5, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), -0.5).get())->toDouble());
EXPECT_EQ(10, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 0).get())->toDouble());
EXPECT_EQ(14, toAnimatableDouble(AnimatableValue::interpolate(from10.get(), to20.get(), 0.4).get())->toDouble());
@@ -90,9 +90,9 @@ TEST(AnimationAnimatableDoubleTest, Add)
TEST(AnimationAnimatableDoubleTest, Distance)
{
- RefPtr<AnimatableDouble> first = AnimatableDouble::create(-1.5);
- RefPtr<AnimatableDouble> second = AnimatableDouble::create(2.25);
- RefPtr<AnimatableDouble> third = AnimatableDouble::create(3);
+ RefPtrWillBeRawPtr<AnimatableDouble> first = AnimatableDouble::create(-1.5);
+ RefPtrWillBeRawPtr<AnimatableDouble> second = AnimatableDouble::create(2.25);
+ RefPtrWillBeRawPtr<AnimatableDouble> third = AnimatableDouble::create(3);
EXPECT_DOUBLE_EQ(3.75, AnimatableValue::distance(first.get(), second.get()));
EXPECT_DOUBLE_EQ(0.75, AnimatableValue::distance(second.get(), third.get()));
« no previous file with comments | « Source/core/animation/AnimatableDouble.cpp ('k') | Source/core/animation/AnimatableFilterOperations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698