| Index: cc/test/geometry_test_utils.h
|
| diff --git a/cc/test/geometry_test_utils.h b/cc/test/geometry_test_utils.h
|
| index 27be79085e9b564b83c1f60d1e0bdb59d309b4ed..92a37c3d8ce0e7c62060d986c1265bd9718e069d 100644
|
| --- a/cc/test/geometry_test_utils.h
|
| +++ b/cc/test/geometry_test_utils.h
|
| @@ -50,6 +50,13 @@ do { \
|
| EXPECT_EQ((expected).y(), (actual).y()); \
|
| } while (false)
|
|
|
| +#define EXPECT_FLOAT_ARRAY_EQ(expected, actual, count) \
|
| +do { \
|
| + for (int i = 0; i < count; i++) {\
|
| + EXPECT_FLOAT_EQ((expected)[i], (actual)[i]); \
|
| + }\
|
| +} while (false)
|
| +
|
| // This is a function rather than a macro because when this is included as a macro
|
| // in bulk, it causes a significant slow-down in compilation time. This problem
|
| // exists with both gcc and clang, and bugs have been filed at
|
|
|