| Index: cc/test/geometry_test_utils.h
|
| diff --git a/cc/test/geometry_test_utils.h b/cc/test/geometry_test_utils.h
|
| index 6e015131fa7d676dd378130cc2ff279e10b9657a..18618d14692397fa0f787966949dd1f0f90b63ea 100644
|
| --- a/cc/test/geometry_test_utils.h
|
| +++ b/cc/test/geometry_test_utils.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef CC_TEST_GEOMETRY_TEST_UTILS_H_
|
| #define CC_TEST_GEOMETRY_TEST_UTILS_H_
|
|
|
| +#include "cc/cc_export.h"
|
| +
|
| namespace gfx {
|
| class Transform;
|
| }
|
| @@ -96,6 +98,16 @@ void ExpectTransformationMatrixEq(const gfx::Transform& expected,
|
| ExpectTransformationMatrixEq(expected, actual); \
|
| } while (false)
|
|
|
| +void ExpectTransformationMatrixNear(const gfx::Transform& expected,
|
| + const gfx::Transform& actual,
|
| + float abs_error);
|
| +
|
| +#define EXPECT_TRANSFORMATION_MATRIX_NEAR(expected, actual, abs_error) \
|
| + do { \
|
| + SCOPED_TRACE(""); \
|
| + ExpectTransformationMatrixNear(expected, actual, abs_error); \
|
| + } while (false)
|
| +
|
| // Should be used in test code only, for convenience. Production code should use
|
| // the gfx::Transform::GetInverse() API.
|
| gfx::Transform Inverse(const gfx::Transform& transform);
|
|
|