|
CHROMA
|
#include <gtest.h>
Public Member Functions | |
| TestResult () | |
| ~TestResult () | |
| int | total_part_count () const |
| int | test_property_count () const |
| bool | Passed () const |
| bool | Failed () const |
| bool | HasFatalFailure () const |
| bool | HasNonfatalFailure () const |
| TimeInMillis | elapsed_time () const |
| const TestPartResult & | GetTestPartResult (int i) const |
| const TestProperty & | GetTestProperty (int i) const |
Private Member Functions | |
| const std::vector< TestPartResult > & | test_part_results () const |
| const std::vector< TestProperty > & | test_properties () const |
| void | set_elapsed_time (TimeInMillis elapsed) |
| void | RecordProperty (const std::string &xml_element, const TestProperty &test_property) |
| void | AddTestPartResult (const TestPartResult &test_part_result) |
| int | death_test_count () const |
| int | increment_death_test_count () |
| void | ClearTestPartResults () |
| void | Clear () |
| GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestResult) | |
Static Private Member Functions | |
| static bool | ValidateTestProperty (const std::string &xml_element, const TestProperty &test_property) |
Private Attributes | |
| internal::Mutex | test_properites_mutex_ |
| std::vector< TestPartResult > | test_part_results_ |
| std::vector< TestProperty > | test_properties_ |
| int | death_test_count_ |
| TimeInMillis | elapsed_time_ |
Friends | |
| class | TestInfo |
| class | TestCase |
| class | UnitTest |
| class | internal::DefaultGlobalTestPartResultReporter |
| class | internal::ExecDeathTest |
| class | internal::TestResultAccessor |
| class | internal::UnitTestImpl |
| class | internal::WindowsDeathTest |
| testing::TestResult::TestResult | ( | ) |
Definition at line 3178 of file gtest-all.cc.
| testing::TestResult::~TestResult | ( | ) |
Definition at line 3184 of file gtest-all.cc.
|
private |
Definition at line 3211 of file gtest-all.cc.
References test_part_results_.
Referenced by testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult().
|
private |
Definition at line 3323 of file gtest-all.cc.
References death_test_count_, elapsed_time_, test_part_results_, and test_properties_.
Referenced by testing::TestCase::ClearResult(), and testing::TestInfo::ClearTestResult().
|
private |
Definition at line 3206 of file gtest-all.cc.
References test_part_results_.
Referenced by testing::internal::TestResultAccessor::ClearTestPartResults().
|
inlineprivate |
|
inline |
Definition at line 17941 of file gtest.h.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), and testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo().
| bool testing::TestResult::Failed | ( | ) | const |
Definition at line 3331 of file gtest-all.cc.
References testing::TestPartResult::failed(), GetTestPartResult(), i, and total_part_count().
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), and testing::TestCase::TestFailed().
| const TestPartResult & testing::TestResult::GetTestPartResult | ( | int | i | ) | const |
Definition at line 3190 of file gtest-all.cc.
References testing::internal::posix::Abort(), i, test_part_results_, and total_part_count().
Referenced by Failed(), and testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo().
| const TestProperty & testing::TestResult::GetTestProperty | ( | int | i | ) | const |
Definition at line 3199 of file gtest-all.cc.
References testing::internal::posix::Abort(), i, test_properties_, and test_property_count().
Referenced by testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes().
|
private |
| bool testing::TestResult::HasFatalFailure | ( | ) | const |
Definition at line 3345 of file gtest-all.cc.
References testing::internal::CountIf(), test_part_results_, and testing::TestPartFatallyFailed().
Referenced by testing::Test::HasFatalFailure().
| bool testing::TestResult::HasNonfatalFailure | ( | ) | const |
Definition at line 3355 of file gtest-all.cc.
References testing::internal::CountIf(), test_part_results_, and testing::TestPartNonfatallyFailed().
|
inlineprivate |
|
inline |
Definition at line 17929 of file gtest.h.
Referenced by testing::internal::PrettyUnitTestResultPrinter::OnTestEnd(), testing::internal::PrettyUnitTestResultPrinter::PrintFailedTests(), and testing::TestCase::TestPassed().
|
private |
Definition at line 3218 of file gtest-all.cc.
References testing::TestProperty::key(), test_properites_mutex_, test_properties_, ValidateTestProperty(), and testing::TestProperty::value().
Referenced by testing::internal::UnitTestImpl::RecordProperty(), and testing::internal::TestResultAccessor::RecordProperty().
|
inlineprivate |
Definition at line 17974 of file gtest.h.
Referenced by testing::TestInfo::Run().
|
inlineprivate |
Definition at line 17964 of file gtest.h.
Referenced by testing::internal::TestResultAccessor::test_part_results().
|
inlineprivate |
| int testing::TestResult::test_property_count | ( | ) | const |
Definition at line 3366 of file gtest-all.cc.
References test_properties_.
Referenced by GetTestProperty(), and testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes().
| int testing::TestResult::total_part_count | ( | ) | const |
Definition at line 3361 of file gtest-all.cc.
References test_part_results_.
Referenced by Failed(), GetTestPartResult(), and testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo().
|
staticprivate |
Definition at line 3316 of file gtest-all.cc.
References testing::GetReservedAttributesForElement(), testing::TestProperty::key(), and testing::ValidateTestPropertyName().
Referenced by RecordProperty().
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
Definition at line 18011 of file gtest.h.
Referenced by AddTestPartResult(), Clear(), ClearTestPartResults(), GetTestPartResult(), HasFatalFailure(), HasNonfatalFailure(), and total_part_count().
|
private |
Definition at line 18008 of file gtest.h.
Referenced by RecordProperty().
|
private |
Definition at line 18013 of file gtest.h.
Referenced by Clear(), GetTestProperty(), RecordProperty(), and test_property_count().