gtest_xml_util.h 830 B

12345678910111213141516171819202122232425
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_TEST_GTEST_XML_UTIL_H_
  5. #define BASE_TEST_GTEST_XML_UTIL_H_
  6. #include <vector>
  7. namespace base {
  8. class FilePath;
  9. struct TestResult;
  10. // Produces a vector of test results based on GTest output file.
  11. // Returns true iff the output file exists and has been successfully parsed.
  12. // On successful return and if non-null, |crashed| is set to true if the test
  13. // results are valid but incomplete.
  14. [[nodiscard]] bool ProcessGTestOutput(const base::FilePath& output_file,
  15. std::vector<TestResult>* results,
  16. bool* crashed);
  17. } // namespace base
  18. #endif // BASE_TEST_GTEST_XML_UTIL_H_