33 #ifndef GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ 34 #define GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ 61 const char* a_file_name,
63 const char* a_message)
65 file_name_(a_file_name == NULL ?
"" : a_file_name),
66 line_number_(a_line_number),
67 summary_(ExtractSummary(a_message)),
77 return file_name_.empty() ? NULL : file_name_.c_str();
85 const char*
summary()
const {
return summary_.c_str(); }
88 const char*
message()
const {
return message_.c_str(); }
91 bool passed()
const {
return type_ == kSuccess; }
94 bool failed()
const {
return type_ != kSuccess; }
140 std::vector<TestPartResult> array_;
150 virtual void ReportTestPartResult(
const TestPartResult& result) = 0;
169 bool has_new_fatal_failure_;
179 #endif // GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ Definition: gtest-test-part.h:146
Definition: gmock-actions.h:53
::std::string string
Definition: gtest-port.h:1097
#define GTEST_API_
Definition: gtest-port.h:934
bool passed() const
Definition: gtest-test-part.h:91
Definition: gtest-test-part.h:47
std::ostream & operator<<(std::ostream &os, const Message &sb)
Definition: gtest-message.h:232
Definition: gtest-test-part.h:161
const char * file_name() const
Definition: gtest-test-part.h:76
bool nonfatally_failed() const
Definition: gtest-test-part.h:97
const char * message() const
Definition: gtest-test-part.h:88
const char * summary() const
Definition: gtest-test-part.h:85
bool failed() const
Definition: gtest-test-part.h:94
virtual ~TestPartResultReporterInterface()
Definition: gtest-test-part.h:148
bool fatally_failed() const
Definition: gtest-test-part.h:100
Definition: gtest-test-part.h:52
Definition: gtest-test-part.h:53
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition: gtest-port.h:874
bool has_new_fatal_failure() const
Definition: gtest-test-part.h:167
TestPartResult(Type a_type, const char *a_file_name, int a_line_number, const char *a_message)
Definition: gtest-test-part.h:60
int line_number() const
Definition: gtest-test-part.h:82
Type type() const
Definition: gtest-test-part.h:72
Definition: gtest-test-part.h:126
tuple message
Definition: gtest_output_test.py:331
Type
Definition: gtest-test-part.h:51
TestPartResultArray()
Definition: gtest-test-part.h:128