From 334aaead71ccf797a18f2128c320f0304e724860 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Fri, 18 Sep 2009 18:16:20 +0000 Subject: Renames the TestPartResult type enums and adjusts the order of methods in the event listener interface (by Vlad Losev). git-svn-id: http://googletest.googlecode.com/svn/trunk@314 861a406c-534a-0410-8894-cb66d6ee9925 --- samples/sample9_unittest.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'samples') diff --git a/samples/sample9_unittest.cc b/samples/sample9_unittest.cc index 8ef70c7..8229751 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) { -- cgit v1.2.1