| 5215 | } |
| 5216 | |
| 5217 | void XmlUnitTestResultPrinter::OutputXmlAttribute( |
| 5218 | std::ostream* stream, |
| 5219 | const std::string& element_name, |
| 5220 | const std::string& name, |
| 5221 | const std::string& value) { |
| 5222 | const std::vector<std::string>& allowed_names = |
| 5223 | GetReservedOutputAttributesForElement(element_name); |
| 5224 | |
| 5225 | GTEST_CHECK_(std::find(allowed_names.begin(), allowed_names.end(), name) != |
| 5226 | allowed_names.end()) |
| 5227 | << "Attribute " << name << " is not allowed for element <" << element_name |
| 5228 | << ">."; |
| 5229 | |
| 5230 | *stream << " " << name << "=\"" << EscapeXmlAttribute(value) << "\""; |
| 5231 | } |
| 5232 | |
| 5233 | // Prints an XML representation of a TestInfo object. |
| 5234 | void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream, |
nothing calls this directly
no test coverage detected