aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-test-part.cc
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
commite5373af0cb9cae249e7bc618cae3483397332895 (patch)
tree875de13e45bdf6aff33769448b6934dc11d54bb8 /src/gtest-test-part.cc
parent9f894c2b36e83e9414b3369f9a4974644d843d8d (diff)
downloadgoogletest-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 'src/gtest-test-part.cc')
-rw-r--r--src/gtest-test-part.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gtest-test-part.cc b/src/gtest-test-part.cc
index f053773f..4f36df66 100644
--- a/src/gtest-test-part.cc
+++ b/src/gtest-test-part.cc
@@ -56,12 +56,12 @@ internal::String TestPartResult::ExtractSummary(const char* message) {
// Prints a TestPartResult object.
std::ostream& operator<<(std::ostream& os, const TestPartResult& result) {
- return os << result.file_name() << ":"
- << result.line_number() << ": "
- << (result.type() == TPRT_SUCCESS ? "Success" :
- result.type() == TPRT_FATAL_FAILURE ? "Fatal failure" :
- "Non-fatal failure") << ":\n"
- << result.message() << std::endl;
+ return os
+ << result.file_name() << ":" << result.line_number() << ": "
+ << (result.type() == TestPartResult::kSuccess ? "Success" :
+ result.type() == TestPartResult::kFatalFailure ? "Fatal failure" :
+ "Non-fatal failure") << ":\n"
+ << result.message() << std::endl;
}
// Constructs an empty TestPartResultArray.