Skip to content
Snippets Groups Projects
Commit d3898725 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

gtest utils PRINT_TEST_FINISHED

parent f72c0c78
No related branches found
No related tags found
1 merge request!140Eigen pred
...@@ -71,6 +71,14 @@ extern void ColoredPrintf(GTestColor color, const char* fmt, ...); ...@@ -71,6 +71,14 @@ extern void ColoredPrintf(GTestColor color, const char* fmt, ...);
testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, __VA_ARGS__); } \ testing::internal::ColoredPrintf(testing::internal::COLOR_YELLOW, __VA_ARGS__); } \
while(0) while(0)
#define PRINT_TEST_FINISHED \
{ \
const ::testing::TestInfo* const test_info = \
::testing::UnitTest::GetInstance()->current_test_info(); \
PRINTF(std::string("Finished test case ").append(test_info->test_case_name()).\
append(" of test ").append(test_info->name()).append(".\n").c_str()); \
}
// C++ stream interface // C++ stream interface
class TestCout : public std::stringstream class TestCout : public std::stringstream
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment