diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-09-18 18:16:20 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-09-18 18:16:20 +0000 |
commit | e5373af0cb9cae249e7bc618cae3483397332895 (patch) | |
tree | 875de13e45bdf6aff33769448b6934dc11d54bb8 /samples | |
parent | 9f894c2b36e83e9414b3369f9a4974644d843d8d (diff) | |
download | googletest-e5373af0cb9cae249e7bc618cae3483397332895.tar.gz googletest-e5373af0cb9cae249e7bc618cae3483397332895.tar.bz2 googletest-e5373af0cb9cae249e7bc618cae3483397332895.zip |
Renames the TestPartResult type enums and adjusts the order of methods in the event listener interface (by Vlad Losev).
Diffstat (limited to 'samples')
-rw-r--r-- | samples/sample9_unittest.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/samples/sample9_unittest.cc b/samples/sample9_unittest.cc index 8ef70c7c..82297516 100644 --- a/samples/sample9_unittest.cc +++ b/samples/sample9_unittest.cc @@ -95,15 +95,6 @@ class TersePrinter : public EmptyTestEventListener { fflush(stdout); } - // Called after a test ends. - virtual void OnTestEnd(const TestInfo& test_info) { - fprintf(stdout, - "*** Test %s.%s ending.\n", - test_info.test_case_name(), - test_info.name()); - fflush(stdout); - } - // Called after a failed assertion or a SUCCESS(). virtual void OnTestPartResult(const TestPartResult& test_part_result) { fprintf(stdout, @@ -114,6 +105,15 @@ class TersePrinter : public EmptyTestEventListener { test_part_result.summary()); fflush(stdout); } + + // Called after a test ends. + virtual void OnTestEnd(const TestInfo& test_info) { + fprintf(stdout, + "*** Test %s.%s ending.\n", + test_info.test_case_name(), + test_info.name()); + fflush(stdout); + } }; // class TersePrinter TEST(CustomOutputTest, PrintsMessage) { |