summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-09-18 18:16:20 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-09-18 18:16:20 +0000
commit334aaead71ccf797a18f2128c320f0304e724860 (patch)
tree875de13e45bdf6aff33769448b6934dc11d54bb8 /samples
parentd586f9f13c5b5ba31bc00c305f3bf2a97d5874f8 (diff)
downloadgoogletest-334aaead71ccf797a18f2128c320f0304e724860.tar.gz
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
Diffstat (limited to 'samples')
-rw-r--r--samples/sample9_unittest.cc18
1 files changed, 9 insertions, 9 deletions
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) {