| Index: cc/test/geometry_test_utils.cc
|
| diff --git a/cc/test/geometry_test_utils.cc b/cc/test/geometry_test_utils.cc
|
| index 6b9033b5d1838e18ca65275c30d223c43d34e2b7..9bf5811ec9c9044412ab205f5214f2796ffec0e4 100644
|
| --- a/cc/test/geometry_test_utils.cc
|
| +++ b/cc/test/geometry_test_utils.cc
|
| @@ -16,38 +16,22 @@ namespace cc {
|
|
|
| void ExpectTransformationMatrixEq(const gfx::Transform& expected,
|
| const gfx::Transform& actual) {
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(0, 0),
|
| - (actual).matrix().getDouble(0, 0));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(1, 0),
|
| - (actual).matrix().getDouble(1, 0));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(2, 0),
|
| - (actual).matrix().getDouble(2, 0));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(3, 0),
|
| - (actual).matrix().getDouble(3, 0));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(0, 1),
|
| - (actual).matrix().getDouble(0, 1));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(1, 1),
|
| - (actual).matrix().getDouble(1, 1));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(2, 1),
|
| - (actual).matrix().getDouble(2, 1));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(3, 1),
|
| - (actual).matrix().getDouble(3, 1));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(0, 2),
|
| - (actual).matrix().getDouble(0, 2));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(1, 2),
|
| - (actual).matrix().getDouble(1, 2));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(2, 2),
|
| - (actual).matrix().getDouble(2, 2));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(3, 2),
|
| - (actual).matrix().getDouble(3, 2));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(0, 3),
|
| - (actual).matrix().getDouble(0, 3));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(1, 3),
|
| - (actual).matrix().getDouble(1, 3));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(2, 3),
|
| - (actual).matrix().getDouble(2, 3));
|
| - EXPECT_FLOAT_EQ((expected).matrix().getDouble(3, 3),
|
| - (actual).matrix().getDouble(3, 3));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(0, 0), (actual).matrix().get(0, 0));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(1, 0), (actual).matrix().get(1, 0));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(2, 0), (actual).matrix().get(2, 0));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(3, 0), (actual).matrix().get(3, 0));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(0, 1), (actual).matrix().get(0, 1));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(1, 1), (actual).matrix().get(1, 1));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(2, 1), (actual).matrix().get(2, 1));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(3, 1), (actual).matrix().get(3, 1));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(0, 2), (actual).matrix().get(0, 2));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(1, 2), (actual).matrix().get(1, 2));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(2, 2), (actual).matrix().get(2, 2));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(3, 2), (actual).matrix().get(3, 2));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(0, 3), (actual).matrix().get(0, 3));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(1, 3), (actual).matrix().get(1, 3));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(2, 3), (actual).matrix().get(2, 3));
|
| + EXPECT_FLOAT_EQ((expected).matrix().get(3, 3), (actual).matrix().get(3, 3));
|
| }
|
|
|
| gfx::Transform Inverse(const gfx::Transform& transform) {
|
|
|