#ifndef CCLayerTreeTestCommon_h
#define CCLayerTreeTestCommon_h
#include <public/WebTransformationMatrix.h>
namespace WebKitTests {
#define EXPECT_FLOAT_RECT_EQ(expected, actual) \
EXPECT_FLOAT_EQ((expected).location().x(), (actual).location().x()); \
EXPECT_FLOAT_EQ((expected).location().y(), (actual).location().y()); \
EXPECT_FLOAT_EQ((expected).size().width(), (actual).size().width()); \
EXPECT_FLOAT_EQ((expected).size().height(), (actual).size().height())
#define EXPECT_INT_RECT_EQ(expected, actual) \
EXPECT_EQ((expected).location().x(), (actual).location().x()); \
EXPECT_EQ((expected).location().y(), (actual).location().y()); \
EXPECT_EQ((expected).size().width(), (actual).size().width()); \
EXPECT_EQ((expected).size().height(), (actual).size().height())
void ExpectTransformationMatrixEq(WebKit::WebTransformationMatrix expected,
WebKit::WebTransformationMatrix actual);
#define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \
{ \
SCOPED_TRACE(""); \
WebKitTests::ExpectTransformationMatrixEq(expected, actual); \
}
}
#endif