Prints a TestPartResult.
| 4298 | |
| 4299 | // Prints a TestPartResult. |
| 4300 | static void PrintTestPartResult(const TestPartResult& test_part_result) { |
| 4301 | const std::string& result = |
| 4302 | PrintTestPartResultToString(test_part_result); |
| 4303 | printf("%s\n", result.c_str()); |
| 4304 | fflush(stdout); |
| 4305 | // If the test program runs in Visual Studio or a debugger, the |
| 4306 | // following statements add the test part result message to the Output |
| 4307 | // window such that the user can double-click on it to jump to the |
| 4308 | // corresponding source code location; otherwise they do nothing. |
| 4309 | #if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE |
| 4310 | // We don't call OutputDebugString*() on Windows Mobile, as printing |
| 4311 | // to stdout is done by OutputDebugString() there already - we don't |
| 4312 | // want the same message printed twice. |
| 4313 | ::OutputDebugStringA(result.c_str()); |
| 4314 | ::OutputDebugStringA("\n"); |
| 4315 | #endif |
| 4316 | } |
| 4317 | |
| 4318 | // class PrettyUnitTestResultPrinter |
| 4319 |
no test coverage detected