Creates a new XmlUnitTestResultPrinter.
| 3418 | |
| 3419 | // Creates a new XmlUnitTestResultPrinter. |
| 3420 | XmlUnitTestResultPrinter::XmlUnitTestResultPrinter(const char* output_file) |
| 3421 | : output_file_(output_file) { |
| 3422 | if (output_file_.c_str() == NULL || output_file_.empty()) { |
| 3423 | fprintf(stderr, "XML output file may not be null\n"); |
| 3424 | fflush(stderr); |
| 3425 | exit(EXIT_FAILURE); |
| 3426 | } |
| 3427 | } |
| 3428 | |
| 3429 | // Called after the unit test ends. |
| 3430 | void XmlUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, |