Index: cc/test/geometry_test_utils.h |
diff --git a/cc/test/geometry_test_utils.h b/cc/test/geometry_test_utils.h |
index d8829e00a1c0512b5e06b9507757aebcd0bb7734..b743f5879a99ac55e38acf20cfef4c8ec4213071 100644 |
--- a/cc/test/geometry_test_utils.h |
+++ b/cc/test/geometry_test_utils.h |
@@ -68,6 +68,12 @@ do { \ |
EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \ |
} while (false) |
+#define EXPECT_VECTOR2DF_NEAR(expected, actual, abs_error) \ |
+ do { \ |
+ EXPECT_NEAR((expected).x(), (actual).x(), (abs_error)); \ |
+ EXPECT_NEAR((expected).y(), (actual).y(), (abs_error)); \ |
+ } while (false) |
+ |
#define EXPECT_FLOAT_ARRAY_EQ(expected, actual, count) \ |
do { \ |
for (int i = 0; i < count; i++) { \ |