diff --git a/tests/AP_gtest.h b/tests/AP_gtest.h index ee9eceb2d6..c7d0734783 100644 --- a/tests/AP_gtest.h +++ b/tests/AP_gtest.h @@ -3,6 +3,13 @@ */ #include + +#define AP_GTEST_PRINTATBLE_PARAM_MEMBER(class_name_, printable_member_) \ +::std::ostream& operator<<(::std::ostream& os, const class_name_& param) \ +{ \ + return os << param.printable_member_; \ +} + #define AP_GTEST_MAIN() \ int main(int argc, char *argv[]) \ { \