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),
66 line_number_(a_line_number),
67 summary_(ExtractSummary(a_message)),
76 const char*
file_name()
const {
return file_name_.c_str(); }
83 const char*
summary()
const {
return summary_.c_str(); }
86 const char*
message()
const {
return message_.c_str(); }
89 bool passed()
const {
return type_ == kSuccess; }
92 bool failed()
const {
return type_ != kSuccess; }
147 virtual void ReportTestPartResult(
const TestPartResult& result) = 0;
176 #endif // GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ Definition: gtest-test-part.h:143
const char * message() const
Definition: gtest-test-part.h:86
Definition: gmock-actions.h:49
const char * file_name() const
Definition: gtest-test-part.h:76
internal::String summary_
Definition: gtest-test-part.h:112
TestPartResultReporterInterface * original_reporter_
Definition: gtest-test-part.h:167
#define GTEST_API_
Definition: gtest-port.h:662
Definition: gtest-test-part.h:47
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
std::ostream & operator<<(std::ostream &os, const Message &sb)
Definition: gtest-message.h:224
Definition: gtest-test-part.h:158
bool nonfatally_failed() const
Definition: gtest-test-part.h:95
bool passed() const
Definition: gtest-test-part.h:89
bool failed() const
Definition: gtest-test-part.h:92
bool has_new_fatal_failure_
Definition: gtest-test-part.h:166
Definition: gtest-string.h:81
const char * summary() const
Definition: gtest-test-part.h:83
virtual ~TestPartResultReporterInterface()
Definition: gtest-test-part.h:145
bool has_new_fatal_failure() const
Definition: gtest-test-part.h:164
Definition: gtest-test-part.h:52
Definition: gtest-test-part.h:53
bool fatally_failed() const
Definition: gtest-test-part.h:98
std::vector< TestPartResult > array_
Definition: gtest-test-part.h:137
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition: gtest-port.h:620
int line_number_
Definition: gtest-test-part.h:111
internal::String message_
Definition: gtest-test-part.h:113
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:80
Definition: gtest-test-part.h:123
internal::String file_name_
Definition: gtest-test-part.h:108
Type
Definition: gtest-test-part.h:51
Type type_
Definition: gtest-test-part.h:100
TestPartResultArray()
Definition: gtest-test-part.h:125
Type type() const
Definition: gtest-test-part.h:72