| Index: cc/keyframed_animation_curve_unittest.cc
|
| diff --git a/cc/keyframed_animation_curve_unittest.cc b/cc/keyframed_animation_curve_unittest.cc
|
| index 0a0efdd5fcceece5673dca7ebf43fb0f447ebc69..a08ada691dfb3987544ecaa21a2bdd7993ec9336 100644
|
| --- a/cc/keyframed_animation_curve_unittest.cc
|
| +++ b/cc/keyframed_animation_curve_unittest.cc
|
| @@ -4,9 +4,9 @@
|
|
|
| #include "cc/keyframed_animation_curve.h"
|
|
|
| +#include "cc/transform_operations.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| -#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperations.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMatrix.h"
|
|
|
| using WebKit::WebTransformationMatrix;
|
| @@ -87,8 +87,8 @@ TEST(KeyframedAnimationCurveTest, RepeatedFloatKeyTimes)
|
| TEST(KeyframedAnimationCurveTest, OneTransformKeyframe)
|
| {
|
| scoped_ptr<KeyframedTransformAnimationCurve> curve(KeyframedTransformAnimationCurve::create());
|
| - WebKit::WebTransformOperations operations;
|
| - operations.appendTranslate(2, 0, 0);
|
| + TransformOperations operations;
|
| + operations.AppendTranslate(2, 0, 0);
|
| curve->addKeyframe(TransformKeyframe::create(0, operations, scoped_ptr<TimingFunction>()));
|
|
|
| expectTranslateX(2, curve->getValue(-1));
|
| @@ -102,10 +102,10 @@ TEST(KeyframedAnimationCurveTest, OneTransformKeyframe)
|
| TEST(KeyframedAnimationCurveTest, TwoTransformKeyframe)
|
| {
|
| scoped_ptr<KeyframedTransformAnimationCurve> curve(KeyframedTransformAnimationCurve::create());
|
| - WebKit::WebTransformOperations operations1;
|
| - operations1.appendTranslate(2, 0, 0);
|
| - WebKit::WebTransformOperations operations2;
|
| - operations2.appendTranslate(4, 0, 0);
|
| + TransformOperations operations1;
|
| + operations1.AppendTranslate(2, 0, 0);
|
| + TransformOperations operations2;
|
| + operations2.AppendTranslate(4, 0, 0);
|
|
|
| curve->addKeyframe(TransformKeyframe::create(0, operations1, scoped_ptr<TimingFunction>()));
|
| curve->addKeyframe(TransformKeyframe::create(1, operations2, scoped_ptr<TimingFunction>()));
|
| @@ -120,12 +120,12 @@ TEST(KeyframedAnimationCurveTest, TwoTransformKeyframe)
|
| TEST(KeyframedAnimationCurveTest, ThreeTransformKeyframe)
|
| {
|
| scoped_ptr<KeyframedTransformAnimationCurve> curve(KeyframedTransformAnimationCurve::create());
|
| - WebKit::WebTransformOperations operations1;
|
| - operations1.appendTranslate(2, 0, 0);
|
| - WebKit::WebTransformOperations operations2;
|
| - operations2.appendTranslate(4, 0, 0);
|
| - WebKit::WebTransformOperations operations3;
|
| - operations3.appendTranslate(8, 0, 0);
|
| + TransformOperations operations1;
|
| + operations1.AppendTranslate(2, 0, 0);
|
| + TransformOperations operations2;
|
| + operations2.AppendTranslate(4, 0, 0);
|
| + TransformOperations operations3;
|
| + operations3.AppendTranslate(8, 0, 0);
|
| curve->addKeyframe(TransformKeyframe::create(0, operations1, scoped_ptr<TimingFunction>()));
|
| curve->addKeyframe(TransformKeyframe::create(1, operations2, scoped_ptr<TimingFunction>()));
|
| curve->addKeyframe(TransformKeyframe::create(2, operations3, scoped_ptr<TimingFunction>()));
|
| @@ -143,14 +143,14 @@ TEST(KeyframedAnimationCurveTest, RepeatedTransformKeyTimes)
|
| {
|
| scoped_ptr<KeyframedTransformAnimationCurve> curve(KeyframedTransformAnimationCurve::create());
|
| // A step function.
|
| - WebKit::WebTransformOperations operations1;
|
| - operations1.appendTranslate(4, 0, 0);
|
| - WebKit::WebTransformOperations operations2;
|
| - operations2.appendTranslate(4, 0, 0);
|
| - WebKit::WebTransformOperations operations3;
|
| - operations3.appendTranslate(6, 0, 0);
|
| - WebKit::WebTransformOperations operations4;
|
| - operations4.appendTranslate(6, 0, 0);
|
| + TransformOperations operations1;
|
| + operations1.AppendTranslate(4, 0, 0);
|
| + TransformOperations operations2;
|
| + operations2.AppendTranslate(4, 0, 0);
|
| + TransformOperations operations3;
|
| + operations3.AppendTranslate(6, 0, 0);
|
| + TransformOperations operations4;
|
| + operations4.AppendTranslate(6, 0, 0);
|
| curve->addKeyframe(TransformKeyframe::create(0, operations1, scoped_ptr<TimingFunction>()));
|
| curve->addKeyframe(TransformKeyframe::create(1, operations2, scoped_ptr<TimingFunction>()));
|
| curve->addKeyframe(TransformKeyframe::create(1, operations3, scoped_ptr<TimingFunction>()));
|
|
|