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