gtest_xml_util.h 854 B

123456789101112131415161718192021222324252627
  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. #include "base/compiler_specific.h"
  8. namespace base {
  9. class FilePath;
  10. struct TestResult;
  11. // Produces a vector of test results based on GTest output file.
  12. // Returns true iff the output file exists and has been successfully parsed.
  13. // On successful return |crashed| is set to true if the test results
  14. // are valid but incomplete.
  15. bool ProcessGTestOutput(const base::FilePath& output_file,
  16. std::vector<TestResult>* results,
  17. bool* crashed) WARN_UNUSED_RESULT;
  18. } // namespace base
  19. #endif // BASE_TEST_GTEST_XML_UTIL_H_