Prints a TestPartResult.
| 4400 | |
| 4401 | // Prints a TestPartResult. |
| 4402 | static void PrintTestPartResult(const TestPartResult& test_part_result) { |
| 4403 | const std::string& result = |
| 4404 | PrintTestPartResultToString(test_part_result); |
| 4405 | printf("%s\n", result.c_str()); |
| 4406 | fflush(stdout); |
| 4407 | // If the test program runs in Visual Studio or a debugger, the |
| 4408 | // following statements add the test part result message to the Output |
| 4409 | // window such that the user can double-click on it to jump to the |
| 4410 | // corresponding source code location; otherwise they do nothing. |
| 4411 | #if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE |
| 4412 | // We don't call OutputDebugString*() on Windows Mobile, as printing |
| 4413 | // to stdout is done by OutputDebugString() there already - we don't |
| 4414 | // want the same message printed twice. |
| 4415 | ::OutputDebugStringA(result.c_str()); |
| 4416 | ::OutputDebugStringA("\n"); |
| 4417 | #endif |
| 4418 | } |
| 4419 | |
| 4420 | // class PrettyUnitTestResultPrinter |
| 4421 | #if GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MOBILE && \ |
no test coverage detected