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

Unified Diff: Source/WebKit/chromium/tests/AnimationTranslationUtilTest.cpp

Issue 14391005: Rename Animation -> PrimitiveAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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 | « no previous file | Source/core/core.gypi » ('j') | Source/core/platform/animation/PrimitiveAnimation.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/tests/AnimationTranslationUtilTest.cpp
diff --git a/Source/WebKit/chromium/tests/AnimationTranslationUtilTest.cpp b/Source/WebKit/chromium/tests/AnimationTranslationUtilTest.cpp
index 7b184fa343be138da56840b7dac4f172184403aa..0dc538b448e9f55481b40778a805ac8db6c37bda 100644
--- a/Source/WebKit/chromium/tests/AnimationTranslationUtilTest.cpp
+++ b/Source/WebKit/chromium/tests/AnimationTranslationUtilTest.cpp
@@ -26,7 +26,7 @@
#include "AnimationTranslationUtil.h"
-#include "Animation.h"
+#include "PrimitiveAnimation.h"
#include "GraphicsLayer.h" // For KeyframeValueList
#include "IntSize.h"
#include "Matrix3DTransformOperation.h"
@@ -43,7 +43,7 @@ using namespace WebKit;
namespace {
-bool animationCanBeTranslated(const KeyframeValueList& values, Animation* animation)
+bool animationCanBeTranslated(const KeyframeValueList& values, PrimitiveAnimation* animation)
{
IntSize boxSize;
return createWebAnimation(values, animation, 0, 0, boxSize);
@@ -56,7 +56,7 @@ TEST(AnimationTranslationUtilTest, createOpacityAnimation)
values.insert(new FloatAnimationValue(0, 0));
values.insert(new FloatAnimationValue(duration, 1));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -75,7 +75,7 @@ TEST(AnimationTranslationUtilTest, createTransformAnimation)
operations2.operations().append(TranslateTransformOperation::create(Length(4, WebCore::Fixed), Length(0, WebCore::Fixed), TransformOperation::TRANSLATE_X));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -94,7 +94,7 @@ TEST(AnimationTranslationUtilTest, createTransformAnimationWithBigRotation)
operations2.operations().append(RotateTransformOperation::create(270, TransformOperation::ROTATE));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -112,7 +112,7 @@ TEST(AnimationTranslationUtilTest, createTransformAnimationWithBigRotationAndEmp
operations2.operations().append(RotateTransformOperation::create(270, TransformOperation::ROTATE));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -131,7 +131,7 @@ TEST(AnimationTranslationUtilTest, createTransformAnimationWithRotationInvolving
operations2.operations().append(RotateTransformOperation::create(-320, TransformOperation::ROTATE));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -150,7 +150,7 @@ TEST(AnimationTranslationUtilTest, createTransformAnimationWithSmallRotationInvo
operations2.operations().append(RotateTransformOperation::create(360, TransformOperation::ROTATE));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -172,7 +172,7 @@ TEST(AnimationTranslationUtilTest, createTransformAnimationWithNonDecomposableMa
operations2.operations().append(Matrix3DTransformOperation::create(matrix2));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_FALSE(animationCanBeTranslated(values, animation.get()));
@@ -191,7 +191,7 @@ TEST(AnimationTranslationUtilTest, createTransformAnimationWithNonInvertibleTran
operations2.operations().append(ScaleTransformOperation::create(1, 0, 1, TransformOperation::SCALE_3D));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -210,9 +210,9 @@ TEST(AnimationTranslationUtilTest, createReversedAnimation)
operations2.operations().append(TranslateTransformOperation::create(Length(4, WebCore::Fixed), Length(0, WebCore::Fixed), TransformOperation::TRANSLATE_X));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
- animation->setDirection(Animation::AnimationDirectionReverse);
+ animation->setDirection(PrimitiveAnimation::AnimationDirectionReverse);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
}
@@ -230,9 +230,9 @@ TEST(AnimationTranslationUtilTest, createAlternatingAnimation)
operations2.operations().append(TranslateTransformOperation::create(Length(4, WebCore::Fixed), Length(0, WebCore::Fixed), TransformOperation::TRANSLATE_X));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
- animation->setDirection(Animation::AnimationDirectionAlternate);
+ animation->setDirection(PrimitiveAnimation::AnimationDirectionAlternate);
animation->setIterationCount(2);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
@@ -251,9 +251,9 @@ TEST(AnimationTranslationUtilTest, createReversedAlternatingAnimation)
operations2.operations().append(TranslateTransformOperation::create(Length(4, WebCore::Fixed), Length(0, WebCore::Fixed), TransformOperation::TRANSLATE_X));
values.insert(new TransformAnimationValue(duration, &operations2));
- RefPtr<Animation> animation = Animation::create();
+ RefPtr<PrimitiveAnimation> animation = PrimitiveAnimation::create();
animation->setDuration(duration);
- animation->setDirection(Animation::AnimationDirectionAlternateReverse);
+ animation->setDirection(PrimitiveAnimation::AnimationDirectionAlternateReverse);
animation->setIterationCount(2);
EXPECT_TRUE(animationCanBeTranslated(values, animation.get()));
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | Source/core/platform/animation/PrimitiveAnimation.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698