MADNESS  version 0.9
Public Types | Public Member Functions | Friends | List of all members
testing::internal::UnitTestImpl Class Reference

#include <gtest-internal-inl.h>

Public Types

enum  ReactionToSharding { HONOR_SHARDING_PROTOCOL, IGNORE_SHARDING_PROTOCOL }
 

Public Member Functions

 UnitTestImpl (UnitTest *parent)
 
virtual ~UnitTestImpl ()
 
TestPartResultReporterInterfaceGetGlobalTestPartResultReporter ()
 
void SetGlobalTestPartResultReporter (TestPartResultReporterInterface *reporter)
 
TestPartResultReporterInterfaceGetTestPartResultReporterForCurrentThread ()
 
void SetTestPartResultReporterForCurrentThread (TestPartResultReporterInterface *reporter)
 
int successful_test_case_count () const
 
int failed_test_case_count () const
 
int total_test_case_count () const
 
int test_case_to_run_count () const
 
int successful_test_count () const
 
int failed_test_count () const
 
int reportable_disabled_test_count () const
 
int disabled_test_count () const
 
int reportable_test_count () const
 
int total_test_count () const
 
int test_to_run_count () const
 
TimeInMillis start_timestamp () const
 
TimeInMillis elapsed_time () const
 
bool Passed () const
 
bool Failed () const
 
const TestCaseGetTestCase (int i) const
 
TestCaseGetMutableTestCase (int i)
 
TestEventListenerslisteners ()
 
TestResultcurrent_test_result ()
 
const TestResultad_hoc_test_result () const
 
void set_os_stack_trace_getter (OsStackTraceGetterInterface *getter)
 
OsStackTraceGetterInterfaceos_stack_trace_getter ()
 
std::string CurrentOsStackTraceExceptTop (int skip_count) GTEST_NO_INLINE_
 
TestCaseGetTestCase (const char *test_case_name, const char *type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc)
 
void AddTestInfo (Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc, TestInfo *test_info)
 
void set_current_test_case (TestCase *a_current_test_case)
 
void set_current_test_info (TestInfo *a_current_test_info)
 
void RegisterParameterizedTests ()
 
bool RunAllTests ()
 
void ClearNonAdHocTestResult ()
 
void ClearAdHocTestResult ()
 
void RecordProperty (const TestProperty &test_property)
 
int FilterTests (ReactionToSharding shard_tests)
 
void ListTestsMatchingFilter ()
 
const TestCasecurrent_test_case () const
 
TestInfocurrent_test_info ()
 
const TestInfocurrent_test_info () const
 
std::vector< Environment * > & environments ()
 
std::vector< TraceInfo > & gtest_trace_stack ()
 
const std::vector< TraceInfo > & gtest_trace_stack () const
 
void ConfigureXmlOutput ()
 
void PostFlagParsingInit ()
 
int random_seed () const
 
internal::Randomrandom ()
 
void ShuffleTests ()
 
void UnshuffleTests ()
 
bool catch_exceptions () const
 

Friends

class ::testing::UnitTest
 

Member Enumeration Documentation

Enumerator
HONOR_SHARDING_PROTOCOL 
IGNORE_SHARDING_PROTOCOL 

Constructor & Destructor Documentation

testing::internal::UnitTestImpl::UnitTestImpl ( UnitTest parent)
explicit

References listeners().

testing::internal::UnitTestImpl::~UnitTestImpl ( )
virtual

Member Function Documentation

const TestResult* testing::internal::UnitTestImpl::ad_hoc_test_result ( ) const
inline
void testing::internal::UnitTestImpl::AddTestInfo ( Test::SetUpTestCaseFunc  set_up_tc,
Test::TearDownTestCaseFunc  tear_down_tc,
TestInfo test_info 
)
inline
bool testing::internal::UnitTestImpl::catch_exceptions ( ) const
inline
void testing::internal::UnitTestImpl::ClearAdHocTestResult ( )
inline
void testing::internal::UnitTestImpl::ClearNonAdHocTestResult ( )
inline

References testing::internal::ForEach().

Referenced by RunAllTests().

void testing::internal::UnitTestImpl::ConfigureXmlOutput ( )
const TestCase* testing::internal::UnitTestImpl::current_test_case ( ) const
inline
TestInfo* testing::internal::UnitTestImpl::current_test_info ( )
inline
const TestInfo* testing::internal::UnitTestImpl::current_test_info ( ) const
inline
TestResult * testing::internal::UnitTestImpl::current_test_result ( )
std::string testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop ( int  skip_count)
int testing::internal::UnitTestImpl::disabled_test_count ( ) const
TimeInMillis testing::internal::UnitTestImpl::elapsed_time ( ) const
inline
std::vector<Environment*>& testing::internal::UnitTestImpl::environments ( )
inline
bool testing::internal::UnitTestImpl::Failed ( ) const
inline
int testing::internal::UnitTestImpl::failed_test_case_count ( ) const
int testing::internal::UnitTestImpl::failed_test_count ( ) const
int testing::internal::UnitTestImpl::FilterTests ( ReactionToSharding  shard_tests)
TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetGlobalTestPartResultReporter ( )
TestCase* testing::internal::UnitTestImpl::GetMutableTestCase ( int  i)
inline
const TestCase* testing::internal::UnitTestImpl::GetTestCase ( int  i) const
inline
TestCase * testing::internal::UnitTestImpl::GetTestCase ( const char *  test_case_name,
const char *  type_param,
Test::SetUpTestCaseFunc  set_up_tc,
Test::TearDownTestCaseFunc  tear_down_tc 
)
TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread ( )
std::vector<TraceInfo>& testing::internal::UnitTestImpl::gtest_trace_stack ( )
inline
const std::vector<TraceInfo>& testing::internal::UnitTestImpl::gtest_trace_stack ( ) const
inline
TestEventListeners* testing::internal::UnitTestImpl::listeners ( )
inline
void testing::internal::UnitTestImpl::ListTestsMatchingFilter ( )
OsStackTraceGetterInterface * testing::internal::UnitTestImpl::os_stack_trace_getter ( )
bool testing::internal::UnitTestImpl::Passed ( ) const
inline

Referenced by RunAllTests().

void testing::internal::UnitTestImpl::PostFlagParsingInit ( )
internal::Random* testing::internal::UnitTestImpl::random ( )
inline

Referenced by RunAllTests(), and ShuffleTests().

int testing::internal::UnitTestImpl::random_seed ( ) const
inline
void testing::internal::UnitTestImpl::RecordProperty ( const TestProperty test_property)
void testing::internal::UnitTestImpl::RegisterParameterizedTests ( )

Referenced by PostFlagParsingInit().

int testing::internal::UnitTestImpl::reportable_disabled_test_count ( ) const
int testing::internal::UnitTestImpl::reportable_test_count ( ) const
bool testing::internal::UnitTestImpl::RunAllTests ( )
void testing::internal::UnitTestImpl::set_current_test_case ( TestCase a_current_test_case)
inline
void testing::internal::UnitTestImpl::set_current_test_info ( TestInfo a_current_test_info)
inline
void testing::internal::UnitTestImpl::set_os_stack_trace_getter ( OsStackTraceGetterInterface getter)
void testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter ( TestPartResultReporterInterface reporter)
void testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread ( TestPartResultReporterInterface reporter)
void testing::internal::UnitTestImpl::ShuffleTests ( )

References random(), and testing::internal::ShuffleRange().

Referenced by RunAllTests().

TimeInMillis testing::internal::UnitTestImpl::start_timestamp ( ) const
inline
int testing::internal::UnitTestImpl::successful_test_case_count ( ) const
int testing::internal::UnitTestImpl::successful_test_count ( ) const
int testing::internal::UnitTestImpl::test_case_to_run_count ( ) const
int testing::internal::UnitTestImpl::test_to_run_count ( ) const
int testing::internal::UnitTestImpl::total_test_case_count ( ) const

Referenced by RunAllTests().

int testing::internal::UnitTestImpl::total_test_count ( ) const
void testing::internal::UnitTestImpl::UnshuffleTests ( )

Referenced by RunAllTests().

Friends And Related Function Documentation

friend class ::testing::UnitTest
friend

The documentation for this class was generated from the following files: