Lines Matching refs:xml_reader
57 XmlReader xml_reader; in ProcessGTestOutput() local
58 if (!xml_reader.Load(xml_contents)) in ProcessGTestOutput()
76 while (xml_reader.Read()) { in ProcessGTestOutput()
77 xml_reader.SkipToElement(); in ProcessGTestOutput()
78 std::string node_name(xml_reader.NodeName()); in ProcessGTestOutput()
82 if (node_name == "testsuites" && !xml_reader.IsClosingElement()) in ProcessGTestOutput()
88 if (node_name == "testsuites" && xml_reader.IsClosingElement()) in ProcessGTestOutput()
90 else if (node_name == "testsuite" && !xml_reader.IsClosingElement()) in ProcessGTestOutput()
96 if (node_name == "testsuite" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
99 !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
105 if (!xml_reader.NodeAttribute("classname", &test_case_name)) in ProcessGTestOutput()
108 if (!xml_reader.NodeAttribute("name", &test_name)) in ProcessGTestOutput()
116 if (xml_reader.NodeAttribute("timestamp", &test_timestamp_str) && in ProcessGTestOutput()
125 } else if (node_name == "testcase" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
127 if (!xml_reader.NodeAttribute("status", &test_status)) in ProcessGTestOutput()
138 if (!xml_reader.NodeAttribute("classname", &test_case_name)) in ProcessGTestOutput()
141 if (!xml_reader.NodeAttribute("name", &test_name)) in ProcessGTestOutput()
146 if (!xml_reader.NodeAttribute("time", &test_time_str)) in ProcessGTestOutput()
158 if (xml_reader.NodeAttribute("timestamp", &test_timestamp_str) && in ProcessGTestOutput()
190 } else if (node_name == "link" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
192 if (!xml_reader.NodeAttribute("name", &link.name)) in ProcessGTestOutput()
194 if (!xml_reader.NodeAttribute("classname", &link.classname)) in ProcessGTestOutput()
196 if (!xml_reader.NodeAttribute("link_name", &link.link_name)) in ProcessGTestOutput()
198 if (!xml_reader.ReadElementContent(&link.link)) in ProcessGTestOutput()
201 } else if (node_name == "link" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
203 } else if (node_name == "tag" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
205 if (!xml_reader.NodeAttribute("name", &tag.name)) in ProcessGTestOutput()
207 if (!xml_reader.NodeAttribute("classname", &tag.classname)) in ProcessGTestOutput()
209 if (!xml_reader.NodeAttribute("tag_name", &tag.tag_name)) in ProcessGTestOutput()
211 if (!xml_reader.ReadElementContent(&tag.tag_value)) in ProcessGTestOutput()
214 } else if (node_name == "tag" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
217 !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
219 } else if (node_name == "property" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
221 if (!xml_reader.NodeAttribute("name", &property.name)) in ProcessGTestOutput()
223 if (!xml_reader.NodeAttribute("value", &property.value)) in ProcessGTestOutput()
226 } else if (node_name == "properties" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
228 } else if (node_name == "failure" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
230 if (!xml_reader.NodeAttribute("message", &failure_message)) in ProcessGTestOutput()
237 } else if (node_name == "testcase" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
240 !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
242 if (!xml_reader.NodeAttribute("type", &result_type)) in ProcessGTestOutput()
246 if (!xml_reader.NodeAttribute("file", &file_name)) in ProcessGTestOutput()
250 if (!xml_reader.NodeAttribute("line", &line_number_str)) in ProcessGTestOutput()
274 if (node_name == "summary" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
276 if (!xml_reader.ReadElementContent(&summary)) in ProcessGTestOutput()
285 } else if (node_name == "summary" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
286 } else if (node_name == "message" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
288 if (!xml_reader.ReadElementContent(&message)) in ProcessGTestOutput()
297 } else if (node_name == "message" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
299 xml_reader.IsClosingElement()) { in ProcessGTestOutput()
306 if (node_name == "failure" && xml_reader.IsClosingElement()) in ProcessGTestOutput()