Renames the TestPartResult type enums and adjusts the order of methods in the event listener interface (by Vlad Losev).
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user