Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Side by Side Diff: base/test/gtest_xml_util.h

Issue 614103004: replace 'virtual ... OVERRIDE' with '... override' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: process base/ Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_UTIL_H_ 5 #ifndef BASE_TEST_GTEST_XML_UTIL_H_
6 #define BASE_TEST_GTEST_XML_UTIL_H_ 6 #define BASE_TEST_GTEST_XML_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 class XmlUnitTestResultPrinter : public testing::EmptyTestEventListener { 21 class XmlUnitTestResultPrinter : public testing::EmptyTestEventListener {
22 public: 22 public:
23 XmlUnitTestResultPrinter(); 23 XmlUnitTestResultPrinter();
24 virtual ~XmlUnitTestResultPrinter(); 24 virtual ~XmlUnitTestResultPrinter();
25 25
26 // Must be called before adding as a listener. Returns true on success. 26 // Must be called before adding as a listener. Returns true on success.
27 bool Initialize(const FilePath& output_file_path) WARN_UNUSED_RESULT; 27 bool Initialize(const FilePath& output_file_path) WARN_UNUSED_RESULT;
28 28
29 private: 29 private:
30 // testing::EmptyTestEventListener: 30 // testing::EmptyTestEventListener:
31 virtual void OnTestCaseStart(const testing::TestCase& test_case) OVERRIDE; 31 void OnTestCaseStart(const testing::TestCase& test_case) override;
32 virtual void OnTestStart(const testing::TestInfo& test_info) OVERRIDE; 32 void OnTestStart(const testing::TestInfo& test_info) override;
33 virtual void OnTestEnd(const testing::TestInfo& test_info) OVERRIDE; 33 void OnTestEnd(const testing::TestInfo& test_info) override;
34 virtual void OnTestCaseEnd(const testing::TestCase& test_case) OVERRIDE; 34 void OnTestCaseEnd(const testing::TestCase& test_case) override;
35 35
36 FILE* output_file_; 36 FILE* output_file_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(XmlUnitTestResultPrinter); 38 DISALLOW_COPY_AND_ASSIGN(XmlUnitTestResultPrinter);
39 }; 39 };
40 40
41 // Produces a vector of test results based on GTest output file. 41 // Produces a vector of test results based on GTest output file.
42 // Returns true iff the output file exists and has been successfully parsed. 42 // Returns true iff the output file exists and has been successfully parsed.
43 // On successful return |crashed| is set to true if the test results 43 // On successful return |crashed| is set to true if the test results
44 // are valid but incomplete. 44 // are valid but incomplete.
45 bool ProcessGTestOutput(const base::FilePath& output_file, 45 bool ProcessGTestOutput(const base::FilePath& output_file,
46 std::vector<TestResult>* results, 46 std::vector<TestResult>* results,
47 bool* crashed) WARN_UNUSED_RESULT; 47 bool* crashed) WARN_UNUSED_RESULT;
48 48
49 } // namespace base 49 } // namespace base
50 50
51 #endif // BASE_TEST_GTEST_XML_UTIL_H_ 51 #endif // BASE_TEST_GTEST_XML_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698