Merge pull request #3513 from victordk13:patch-1

PiperOrigin-RevId: 392665206
This commit is contained in:
CJ Johnson 2021-08-24 12:29:05 -04:00
commit ff21b36e1e

View File

@ -4436,15 +4436,15 @@ void XmlUnitTestResultPrinter::OutputXmlTestProperties(
return; return;
} }
*stream << "<" << kProperties << ">\n"; *stream << " <" << kProperties << ">\n";
for (int i = 0; i < result.test_property_count(); ++i) { for (int i = 0; i < result.test_property_count(); ++i) {
const TestProperty& property = result.GetTestProperty(i); const TestProperty& property = result.GetTestProperty(i);
*stream << "<" << kProperty; *stream << " <" << kProperty;
*stream << " name=\"" << EscapeXmlAttribute(property.key()) << "\""; *stream << " name=\"" << EscapeXmlAttribute(property.key()) << "\"";
*stream << " value=\"" << EscapeXmlAttribute(property.value()) << "\""; *stream << " value=\"" << EscapeXmlAttribute(property.value()) << "\"";
*stream << "/>\n"; *stream << "/>\n";
} }
*stream << "</" << kProperties << ">\n"; *stream << " </" << kProperties << ">\n";
} }
// End XmlUnitTestResultPrinter // End XmlUnitTestResultPrinter