Lines Matching refs:xml_reader
47 XmlReader xml_reader; in ProcessGTestOutput() local
48 if (!xml_reader.Load(xml_contents)) in ProcessGTestOutput()
60 while (xml_reader.Read()) { in ProcessGTestOutput()
61 xml_reader.SkipToElement(); in ProcessGTestOutput()
62 std::string node_name(xml_reader.NodeName()); in ProcessGTestOutput()
66 if (node_name == "testsuites" && !xml_reader.IsClosingElement()) in ProcessGTestOutput()
72 if (node_name == "testsuites" && xml_reader.IsClosingElement()) in ProcessGTestOutput()
74 else if (node_name == "testsuite" && !xml_reader.IsClosingElement()) in ProcessGTestOutput()
80 if (node_name == "testsuite" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
83 !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
89 if (!xml_reader.NodeAttribute("classname", &test_case_name)) in ProcessGTestOutput()
92 if (!xml_reader.NodeAttribute("name", &test_name)) in ProcessGTestOutput()
102 } else if (node_name == "testcase" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
104 if (!xml_reader.NodeAttribute("status", &test_status)) in ProcessGTestOutput()
115 if (!xml_reader.NodeAttribute("classname", &test_case_name)) in ProcessGTestOutput()
118 if (!xml_reader.NodeAttribute("name", &test_name)) in ProcessGTestOutput()
123 if (!xml_reader.NodeAttribute("time", &test_time_str)) in ProcessGTestOutput()
140 } else if (node_name == "failure" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
142 if (!xml_reader.NodeAttribute("message", &failure_message)) in ProcessGTestOutput()
149 } else if (node_name == "testcase" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
152 !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
154 if (!xml_reader.NodeAttribute("type", &result_type)) in ProcessGTestOutput()
158 if (!xml_reader.NodeAttribute("file", &file_name)) in ProcessGTestOutput()
162 if (!xml_reader.NodeAttribute("line", &line_number_str)) in ProcessGTestOutput()
186 if (node_name == "summary" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
188 if (!xml_reader.ReadElementContent(&summary)) in ProcessGTestOutput()
197 } else if (node_name == "summary" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
198 } else if (node_name == "message" && !xml_reader.IsClosingElement()) { in ProcessGTestOutput()
200 if (!xml_reader.ReadElementContent(&message)) in ProcessGTestOutput()
209 } else if (node_name == "message" && xml_reader.IsClosingElement()) { in ProcessGTestOutput()
211 xml_reader.IsClosingElement()) { in ProcessGTestOutput()
218 if (node_name == "failure" && xml_reader.IsClosingElement()) in ProcessGTestOutput()