OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_TEST_GTEST_XML_UNITTEST_RESULT_PRINTER_H_ | 5 #ifndef BASE_TEST_GTEST_XML_UNITTEST_RESULT_PRINTER_H_ |
6 #define BASE_TEST_GTEST_XML_UNITTEST_RESULT_PRINTER_H_ | 6 #define BASE_TEST_GTEST_XML_UNITTEST_RESULT_PRINTER_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Must be called before adding as a listener. Returns true on success. | 25 // Must be called before adding as a listener. Returns true on success. |
26 bool Initialize(const FilePath& output_file_path) WARN_UNUSED_RESULT; | 26 bool Initialize(const FilePath& output_file_path) WARN_UNUSED_RESULT; |
27 | 27 |
28 private: | 28 private: |
29 // testing::EmptyTestEventListener: | 29 // testing::EmptyTestEventListener: |
30 void OnTestCaseStart(const testing::TestCase& test_case) override; | 30 void OnTestCaseStart(const testing::TestCase& test_case) override; |
31 void OnTestStart(const testing::TestInfo& test_info) override; | 31 void OnTestStart(const testing::TestInfo& test_info) override; |
32 void OnTestEnd(const testing::TestInfo& test_info) override; | 32 void OnTestEnd(const testing::TestInfo& test_info) override; |
33 void OnTestCaseEnd(const testing::TestCase& test_case) override; | 33 void OnTestCaseEnd(const testing::TestCase& test_case) override; |
34 | 34 |
| 35 void WriteTestPartResult(const testing::TestPartResult& test_part_result); |
| 36 |
35 FILE* output_file_; | 37 FILE* output_file_; |
36 | 38 |
37 DISALLOW_COPY_AND_ASSIGN(XmlUnitTestResultPrinter); | 39 DISALLOW_COPY_AND_ASSIGN(XmlUnitTestResultPrinter); |
38 }; | 40 }; |
39 | 41 |
40 } // namespace base | 42 } // namespace base |
41 | 43 |
42 #endif // BASE_TEST_GTEST_XML_UNITTEST_RESULT_PRINTER_H_ | 44 #endif // BASE_TEST_GTEST_XML_UNITTEST_RESULT_PRINTER_H_ |
OLD | NEW |