| Index: third_party/WebKit/Source/core/animation/AnimationTranslationUtilTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/animation/AnimationTranslationUtilTest.cpp b/third_party/WebKit/Source/core/animation/AnimationTranslationUtilTest.cpp
|
| index 4c04166d2af513068cb93966558e8db02f0a5b45..41973cc9cc0ec057c65c9f736c318c94c3da65f9 100644
|
| --- a/third_party/WebKit/Source/core/animation/AnimationTranslationUtilTest.cpp
|
| +++ b/third_party/WebKit/Source/core/animation/AnimationTranslationUtilTest.cpp
|
| @@ -22,7 +22,7 @@
|
| * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "core/animation/AnimationTranslationUtil.h"
|
| +#include "core/animation/AnimationTranslationUtilTest.h"
|
|
|
| #include "platform/graphics/filters/FilterOperations.h"
|
| #include "platform/transforms/Matrix3DTransformOperation.h"
|
| @@ -30,47 +30,12 @@
|
| #include "platform/transforms/ScaleTransformOperation.h"
|
| #include "platform/transforms/TransformOperations.h"
|
| #include "platform/transforms/TranslateTransformOperation.h"
|
| -#include "public/platform/WebFilterOperations.h"
|
| -#include "public/platform/WebTransformOperations.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "wtf/RefPtr.h"
|
|
|
| namespace blink {
|
|
|
| -class WebTransformOperationsMock : public WebTransformOperations {
|
| -public:
|
| - MOCK_CONST_METHOD1(canBlendWith, bool(const WebTransformOperations&));
|
| - MOCK_METHOD3(appendTranslate, void(double, double, double));
|
| - MOCK_METHOD4(appendRotate, void(double, double, double, double));
|
| - MOCK_METHOD3(appendScale, void(double, double, double));
|
| - MOCK_METHOD2(appendSkew, void(double, double));
|
| - MOCK_METHOD1(appendPerspective, void(double));
|
| - MOCK_METHOD1(appendMatrix, void(const SkMatrix44&));
|
| - MOCK_METHOD0(appendIdentity, void());
|
| - MOCK_CONST_METHOD0(isIdentity, bool());
|
| -};
|
| -
|
| -class WebFilterOperationsMock : public WebFilterOperations {
|
| -public:
|
| - MOCK_METHOD1(appendGrayscaleFilter, void(float));
|
| - MOCK_METHOD1(appendSepiaFilter, void(float));
|
| - MOCK_METHOD1(appendSaturateFilter, void(float));
|
| - MOCK_METHOD1(appendHueRotateFilter, void(float));
|
| - MOCK_METHOD1(appendInvertFilter, void(float));
|
| - MOCK_METHOD1(appendBrightnessFilter, void(float));
|
| - MOCK_METHOD1(appendContrastFilter, void(float));
|
| - MOCK_METHOD1(appendOpacityFilter, void(float));
|
| - MOCK_METHOD1(appendBlurFilter, void(float));
|
| - MOCK_METHOD3(appendDropShadowFilter, void(WebPoint, float, WebColor));
|
| - MOCK_METHOD1(appendColorMatrixFilter, void(SkScalar[20]));
|
| - MOCK_METHOD2(appendZoomFilter, void(float, int));
|
| - MOCK_METHOD1(appendSaturatingBrightnessFilter, void(float));
|
| - MOCK_METHOD1(appendReferenceFilter, void(SkImageFilter*));
|
| - MOCK_METHOD0(clear, void());
|
| - MOCK_CONST_METHOD0(isEmpty, bool());
|
| -};
|
| -
|
| TEST(AnimationTranslationUtilTest, transformsWork)
|
| {
|
| TransformOperations ops;
|
|
|