33 #ifndef GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ 34 #define GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ 38 #include "gtest/internal/gtest-internal.h" 39 #include "gtest/internal/gtest-string.h" 64 const char * a_file_name,
66 const char * a_message)
68 file_name_(a_file_name == NULL ?
"" : a_file_name),
69 line_number_(a_line_number),
70 summary_(ExtractSummary(a_message)),
82 return file_name_.empty() ? NULL : file_name_.c_str();
90 const char *
summary()
const {
return summary_.c_str(); }
93 const char *
message()
const {
return message_.c_str(); }
146 std::vector<TestPartResult> array_;
157 virtual void ReportTestPartResult(
const TestPartResult & result) = 0;
173 HasNewFatalFailureHelper();
174 virtual ~HasNewFatalFailureHelper();
178 bool has_new_fatal_failure_;
188 #endif // GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ bool has_new_fatal_failure() const
bool fatally_failed() const
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
const char * summary() const
const char * message() const
virtual ~TestPartResultReporterInterface()
TestPartResult(Type a_type, const char *a_file_name, int a_line_number, const char *a_message)
std::ostream & operator<<(std::ostream &os, const TestPartResult &result)
const char * file_name() const
bool nonfatally_failed() const