Orxonox  0.0.5 Codename: Arcturus
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
testing::internal::UnitTestImpl Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/gtest/src/gtest-internal-inl.h>

Public Types

enum  ReactionToSharding { HONOR_SHARDING_PROTOCOL, IGNORE_SHARDING_PROTOCOL }
 

Public Member Functions

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

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (UnitTestImpl)
 
void set_catch_exceptions (bool value)
 

Private Attributes

TestResult ad_hoc_test_result_
 
bool catch_exceptions_
 
TestCasecurrent_test_case_
 
TestInfocurrent_test_info_
 
DefaultGlobalTestPartResultReporter default_global_test_part_result_reporter_
 
DefaultPerThreadTestPartResultReporter default_per_thread_test_part_result_reporter_
 
TimeInMillis elapsed_time_
 
std::vector< Environment * > environments_
 
internal::Mutex global_test_part_result_reporter_mutex_
 
TestPartResultReporterInterfaceglobal_test_part_result_repoter_
 
internal::ThreadLocal< std::vector< TraceInfo > > gtest_trace_stack_
 
int last_death_test_case_
 
TestEventListeners listeners_
 
internal::FilePath original_working_dir_
 
OsStackTraceGetterInterfaceos_stack_trace_getter_
 
UnitTest *const parent_
 
internal::ThreadLocal< TestPartResultReporterInterface * > per_thread_test_part_result_reporter_
 
bool post_flag_parse_init_performed_
 
internal::Random random_
 
int random_seed_
 
std::vector< int > test_case_indices_
 
std::vector< TestCase * > test_cases_
 

Friends

class ::testing::UnitTest
 

Member Enumeration Documentation

Enumerator
HONOR_SHARDING_PROTOCOL 
IGNORE_SHARDING_PROTOCOL 

Constructor & Destructor Documentation

testing::internal::UnitTestImpl::UnitTestImpl ( UnitTest parent)
explicit
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
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 ( )
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 ( )
testing::internal::UnitTestImpl::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( UnitTestImpl  )
private
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
void testing::internal::UnitTestImpl::PostFlagParsingInit ( )
internal::Random* testing::internal::UnitTestImpl::random ( )
inline
int testing::internal::UnitTestImpl::random_seed ( ) const
inline
void testing::internal::UnitTestImpl::RegisterParameterizedTests ( )
bool testing::internal::UnitTestImpl::RunAllTests ( )
void testing::internal::UnitTestImpl::set_catch_exceptions ( bool  value)
inlineprivate
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 ( )
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
int testing::internal::UnitTestImpl::total_test_count ( ) const
void testing::internal::UnitTestImpl::UnshuffleTests ( )

Friends And Related Function Documentation

friend class ::testing::UnitTest
friend

Member Data Documentation

TestResult testing::internal::UnitTestImpl::ad_hoc_test_result_
private
bool testing::internal::UnitTestImpl::catch_exceptions_
private
TestCase* testing::internal::UnitTestImpl::current_test_case_
private
TestInfo* testing::internal::UnitTestImpl::current_test_info_
private
DefaultGlobalTestPartResultReporter testing::internal::UnitTestImpl::default_global_test_part_result_reporter_
private
DefaultPerThreadTestPartResultReporter testing::internal::UnitTestImpl::default_per_thread_test_part_result_reporter_
private
TimeInMillis testing::internal::UnitTestImpl::elapsed_time_
private
std::vector<Environment*> testing::internal::UnitTestImpl::environments_
private
internal::Mutex testing::internal::UnitTestImpl::global_test_part_result_reporter_mutex_
private
TestPartResultReporterInterface* testing::internal::UnitTestImpl::global_test_part_result_repoter_
private
internal::ThreadLocal<std::vector<TraceInfo> > testing::internal::UnitTestImpl::gtest_trace_stack_
private
int testing::internal::UnitTestImpl::last_death_test_case_
private
TestEventListeners testing::internal::UnitTestImpl::listeners_
private
internal::FilePath testing::internal::UnitTestImpl::original_working_dir_
private
OsStackTraceGetterInterface* testing::internal::UnitTestImpl::os_stack_trace_getter_
private
UnitTest* const testing::internal::UnitTestImpl::parent_
private
internal::ThreadLocal<TestPartResultReporterInterface*> testing::internal::UnitTestImpl::per_thread_test_part_result_reporter_
private
bool testing::internal::UnitTestImpl::post_flag_parse_init_performed_
private
internal::Random testing::internal::UnitTestImpl::random_
private
int testing::internal::UnitTestImpl::random_seed_
private
std::vector<int> testing::internal::UnitTestImpl::test_case_indices_
private
std::vector<TestCase*> testing::internal::UnitTestImpl::test_cases_
private

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