Creates a new XmlUnitTestResultPrinter.
| 4567 | |
| 4568 | // Creates a new XmlUnitTestResultPrinter. |
| 4569 | XmlUnitTestResultPrinter::XmlUnitTestResultPrinter(const char* output_file) |
| 4570 | : output_file_(output_file) { |
| 4571 | if (output_file_.c_str() == NULL || output_file_.empty()) { |
| 4572 | fprintf(stderr, "XML output file may not be null\n"); |
| 4573 | fflush(stderr); |
| 4574 | exit(EXIT_FAILURE); |
| 4575 | } |
| 4576 | } |
| 4577 | |
| 4578 | // Called after the unit test ends. |
| 4579 | void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, |