| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CCGeometryTestUtils_h | 5 #ifndef CC_TEST_GEOMETRY_TEST_UTILS_H_ |
| 6 #define CCGeometryTestUtils_h | 6 #define CC_TEST_GEOMETRY_TEST_UTILS_H_ |
| 7 | 7 |
| 8 namespace WebKit { | 8 namespace WebKit { |
| 9 class WebTransformationMatrix; | 9 class WebTransformationMatrix; |
| 10 } | 10 } |
| 11 | 11 |
| 12 namespace WebKitTests { | 12 namespace WebKitTests { |
| 13 | 13 |
| 14 // These are macros instead of functions so that we get useful line numbers wher
e a test failed. | 14 // These are macros instead of functions so that we get useful line numbers wher
e a test failed. |
| 15 #define EXPECT_FLOAT_RECT_EQ(expected, actual) \ | 15 #define EXPECT_FLOAT_RECT_EQ(expected, actual) \ |
| 16 { \ | 16 { \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const WebKit::WebTransformationMatrix& actual)
; | 48 const WebKit::WebTransformationMatrix& actual)
; |
| 49 | 49 |
| 50 #define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \ | 50 #define EXPECT_TRANSFORMATION_MATRIX_EQ(expected, actual) \ |
| 51 { \ | 51 { \ |
| 52 SCOPED_TRACE(""); \ | 52 SCOPED_TRACE(""); \ |
| 53 WebKitTests::ExpectTransformationMatrixEq(expected, actual); \ | 53 WebKitTests::ExpectTransformationMatrixEq(expected, actual); \ |
| 54 } | 54 } |
| 55 | 55 |
| 56 } // namespace WebKitTests | 56 } // namespace WebKitTests |
| 57 | 57 |
| 58 #endif // CCGeometryTestUtils_h | 58 #endif // CC_TEST_GEOMETRY_TEST_UTILS_H_ |
| OLD | NEW |