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"
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(); }
107 static std::string ExtractSummary(
const char* message);
111 std::string file_name_;
115 std::string summary_;
116 std::string message_;
120std::ostream&
operator<<(std::ostream& os,
const TestPartResult& result);
140 std::vector<TestPartResult> array_;
169 bool has_new_fatal_failure_;
void Append(const TestPartResult &result)
const TestPartResult & GetTestPartResult(int index) const
TestPartResultArray()
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:128
Definition dsd/test/gtest/include/gtest/gtest-test-part.h:146
virtual ~TestPartResultReporterInterface()
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:148
virtual void ReportTestPartResult(const TestPartResult &result)=0
Definition dsd/test/gtest/include/gtest/gtest-test-part.h:47
const char * message() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:88
const char * summary() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:85
const char * file_name() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:76
bool nonfatally_failed() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:97
TestPartResult(Type a_type, const char *a_file_name, int a_line_number, const char *a_message)
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:60
Type
Definition dsd/test/gtest/include/gtest/gtest-test-part.h:51
@ kSuccess
Definition dsd/test/gtest/include/gtest/gtest-test-part.h:52
@ kFatalFailure
Definition dsd/test/gtest/include/gtest/gtest-test-part.h:54
@ kNonFatalFailure
Definition dsd/test/gtest/include/gtest/gtest-test-part.h:53
bool fatally_failed() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:100
bool failed() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:94
Type type() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:72
bool passed() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:91
int line_number() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:82
Definition dsd/test/gtest/include/gtest/gtest-test-part.h:162
HasNewFatalFailureHelper()
bool has_new_fatal_failure() const
Definition mbelib/test/gtest/include/gtest/gtest-test-part.h:167
virtual void ReportTestPartResult(const TestPartResult &result)
virtual ~HasNewFatalFailureHelper()
#define GTEST_API_
Definition dsd/test/gtest/include/gtest/internal/gtest-port.h:768
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition dsd/test/gtest/include/gtest/internal/gtest-port.h:726
Definition dsd/test/gmock/include/gmock/gmock-actions.h:60
Definition dsd/test/gmock/include/gmock/gmock-actions.h:49
std::ostream & operator<<(std::ostream &os, const Message &sb)
Definition dsd/test/gtest/include/gtest/gtest-message.h:232