Creates a new XmlUnitTestResultPrinter.
| 3083 | |
| 3084 | // Creates a new XmlUnitTestResultPrinter. |
| 3085 | XmlUnitTestResultPrinter::XmlUnitTestResultPrinter(const char* output_file) |
| 3086 | : output_file_(output_file) { |
| 3087 | if (output_file_.c_str() == NULL || output_file_.empty()) { |
| 3088 | fprintf(stderr, "XML output file may not be null\n"); |
| 3089 | fflush(stderr); |
| 3090 | exit(EXIT_FAILURE); |
| 3091 | } |
| 3092 | } |
| 3093 | |
| 3094 | // Called after the unit test ends. |
| 3095 | void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, |