Public Types | Public Member Functions | Private Member Functions | Private Attributes | 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

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 ()
 
std::string CurrentOsStackTraceExceptTop (int skip_count) GTEST_NO_INLINE_
 
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 RecordProperty (const TestProperty &test_property)
 
void RegisterParameterizedTests ()
 
int reportable_disabled_test_count () const
 
int reportable_test_count () const
 
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 ()
 
TimeInMillis start_timestamp () const
 
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
 
 UnitTestImpl (UnitTest *parent)
 
void UnshuffleTests ()
 
virtual ~UnitTestImpl ()
 

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_
 
TimeInMillis start_timestamp_
 
std::vector< int > test_case_indices_
 
std::vector< TestCase * > test_cases_
 

Friends

class ::testing::UnitTest
 

Detailed Description

Definition at line 508 of file gtest-internal-inl.h.

Member Enumeration Documentation

Enumerator
HONOR_SHARDING_PROTOCOL 
IGNORE_SHARDING_PROTOCOL 

Definition at line 726 of file gtest-internal-inl.h.

Constructor & Destructor Documentation

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

Definition at line 4288 of file gtest.cc.

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

Definition at line 4320 of file gtest.cc.

Member Function Documentation

const TestResult* testing::internal::UnitTestImpl::ad_hoc_test_result ( ) const
inline

Definition at line 606 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::AddTestInfo ( Test::SetUpTestCaseFunc  set_up_tc,
Test::TearDownTestCaseFunc  tear_down_tc,
TestInfo test_info 
)
inline

Definition at line 654 of file gtest-internal-inl.h.

bool testing::internal::UnitTestImpl::catch_exceptions ( ) const
inline

Definition at line 812 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::ClearAdHocTestResult ( )
inline

Definition at line 716 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::ClearNonAdHocTestResult ( )
inline

Definition at line 711 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::ConfigureXmlOutput ( )

Definition at line 4363 of file gtest.cc.

const TestCase* testing::internal::UnitTestImpl::current_test_case ( ) const
inline

Definition at line 742 of file gtest-internal-inl.h.

TestInfo* testing::internal::UnitTestImpl::current_test_info ( )
inline

Definition at line 743 of file gtest-internal-inl.h.

const TestInfo* testing::internal::UnitTestImpl::current_test_info ( ) const
inline

Definition at line 744 of file gtest-internal-inl.h.

TestResult * testing::internal::UnitTestImpl::current_test_result ( )

Definition at line 4881 of file gtest.cc.

std::string testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop ( int  skip_count)

Definition at line 780 of file gtest.cc.

int testing::internal::UnitTestImpl::disabled_test_count ( ) const

Definition at line 751 of file gtest.cc.

TimeInMillis testing::internal::UnitTestImpl::elapsed_time ( ) const
inline

Definition at line 573 of file gtest-internal-inl.h.

std::vector<Environment*>& testing::internal::UnitTestImpl::environments ( )
inline

Definition at line 748 of file gtest-internal-inl.h.

bool testing::internal::UnitTestImpl::Failed ( ) const
inline

Definition at line 580 of file gtest-internal-inl.h.

int testing::internal::UnitTestImpl::failed_test_case_count ( ) const

Definition at line 719 of file gtest.cc.

int testing::internal::UnitTestImpl::failed_test_count ( ) const

Definition at line 740 of file gtest.cc.

int testing::internal::UnitTestImpl::FilterTests ( ReactionToSharding  shard_tests)

Definition at line 4742 of file gtest.cc.

TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetGlobalTestPartResultReporter ( )

Definition at line 689 of file gtest.cc.

TestCase* testing::internal::UnitTestImpl::GetMutableTestCase ( int  i)
inline

Definition at line 593 of file gtest-internal-inl.h.

const TestCase* testing::internal::UnitTestImpl::GetTestCase ( int  i) const
inline

Definition at line 586 of file gtest-internal-inl.h.

TestCase * testing::internal::UnitTestImpl::GetTestCase ( const char *  test_case_name,
const char *  type_param,
Test::SetUpTestCaseFunc  set_up_tc,
Test::TearDownTestCaseFunc  tear_down_tc 
)

Definition at line 4460 of file gtest.cc.

TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread ( )

Definition at line 703 of file gtest.cc.

testing::internal::UnitTestImpl::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( UnitTestImpl  )
private
std::vector<TraceInfo>& testing::internal::UnitTestImpl::gtest_trace_stack ( )
inline

Definition at line 751 of file gtest-internal-inl.h.

const std::vector<TraceInfo>& testing::internal::UnitTestImpl::gtest_trace_stack ( ) const
inline

Definition at line 754 of file gtest-internal-inl.h.

TestEventListeners* testing::internal::UnitTestImpl::listeners ( )
inline

Definition at line 599 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::ListTestsMatchingFilter ( )

Definition at line 4818 of file gtest.cc.

OsStackTraceGetterInterface * testing::internal::UnitTestImpl::os_stack_trace_getter ( )

Definition at line 4871 of file gtest.cc.

bool testing::internal::UnitTestImpl::Passed ( ) const
inline

Definition at line 576 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::PostFlagParsingInit ( )

Definition at line 4399 of file gtest.cc.

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

Definition at line 801 of file gtest-internal-inl.h.

int testing::internal::UnitTestImpl::random_seed ( ) const
inline

Definition at line 798 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::RecordProperty ( const TestProperty test_property)

Definition at line 4335 of file gtest.cc.

void testing::internal::UnitTestImpl::RegisterParameterizedTests ( )

Definition at line 2573 of file gtest.cc.

int testing::internal::UnitTestImpl::reportable_disabled_test_count ( ) const

Definition at line 745 of file gtest.cc.

int testing::internal::UnitTestImpl::reportable_test_count ( ) const

Definition at line 756 of file gtest.cc.

bool testing::internal::UnitTestImpl::RunAllTests ( )

Definition at line 4509 of file gtest.cc.

void testing::internal::UnitTestImpl::set_catch_exceptions ( bool  value)
inlineprivate

Definition at line 819 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::set_current_test_case ( TestCase a_current_test_case)
inline

Definition at line 685 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::set_current_test_info ( TestInfo a_current_test_info)
inline

Definition at line 692 of file gtest-internal-inl.h.

void testing::internal::UnitTestImpl::set_os_stack_trace_getter ( OsStackTraceGetterInterface getter)

Definition at line 4860 of file gtest.cc.

void testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter ( TestPartResultReporterInterface reporter)

Definition at line 695 of file gtest.cc.

void testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread ( TestPartResultReporterInterface reporter)

Definition at line 708 of file gtest.cc.

void testing::internal::UnitTestImpl::ShuffleTests ( )

Definition at line 4888 of file gtest.cc.

TimeInMillis testing::internal::UnitTestImpl::start_timestamp ( ) const
inline

Definition at line 570 of file gtest-internal-inl.h.

int testing::internal::UnitTestImpl::successful_test_case_count ( ) const

Definition at line 714 of file gtest.cc.

int testing::internal::UnitTestImpl::successful_test_count ( ) const

Definition at line 735 of file gtest.cc.

int testing::internal::UnitTestImpl::test_case_to_run_count ( ) const

Definition at line 730 of file gtest.cc.

int testing::internal::UnitTestImpl::test_to_run_count ( ) const

Definition at line 766 of file gtest.cc.

int testing::internal::UnitTestImpl::total_test_case_count ( ) const

Definition at line 724 of file gtest.cc.

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

Definition at line 761 of file gtest.cc.

void testing::internal::UnitTestImpl::UnshuffleTests ( )

Definition at line 4903 of file gtest.cc.

Friends And Related Function Documentation

friend class ::testing::UnitTest
friend

Definition at line 815 of file gtest-internal-inl.h.

Member Data Documentation

TestResult testing::internal::UnitTestImpl::ad_hoc_test_result_
private

Definition at line 889 of file gtest-internal-inl.h.

bool testing::internal::UnitTestImpl::catch_exceptions_
private

Definition at line 929 of file gtest-internal-inl.h.

TestCase* testing::internal::UnitTestImpl::current_test_case_
private

Definition at line 873 of file gtest-internal-inl.h.

TestInfo* testing::internal::UnitTestImpl::current_test_info_
private

Definition at line 879 of file gtest-internal-inl.h.

DefaultGlobalTestPartResultReporter testing::internal::UnitTestImpl::default_global_test_part_result_reporter_
private

Definition at line 829 of file gtest-internal-inl.h.

DefaultPerThreadTestPartResultReporter testing::internal::UnitTestImpl::default_per_thread_test_part_result_reporter_
private

Definition at line 831 of file gtest-internal-inl.h.

TimeInMillis testing::internal::UnitTestImpl::elapsed_time_
private

Definition at line 915 of file gtest-internal-inl.h.

std::vector<Environment*> testing::internal::UnitTestImpl::environments_
private

Definition at line 845 of file gtest-internal-inl.h.

internal::Mutex testing::internal::UnitTestImpl::global_test_part_result_reporter_mutex_
private

Definition at line 837 of file gtest-internal-inl.h.

TestPartResultReporterInterface* testing::internal::UnitTestImpl::global_test_part_result_repoter_
private

Definition at line 834 of file gtest-internal-inl.h.

internal::ThreadLocal<std::vector<TraceInfo> > testing::internal::UnitTestImpl::gtest_trace_stack_
private

Definition at line 925 of file gtest-internal-inl.h.

int testing::internal::UnitTestImpl::last_death_test_case_
private

Definition at line 867 of file gtest-internal-inl.h.

TestEventListeners testing::internal::UnitTestImpl::listeners_
private

Definition at line 893 of file gtest-internal-inl.h.

internal::FilePath testing::internal::UnitTestImpl::original_working_dir_
private

Definition at line 826 of file gtest-internal-inl.h.

OsStackTraceGetterInterface* testing::internal::UnitTestImpl::os_stack_trace_getter_
private

Definition at line 899 of file gtest-internal-inl.h.

UnitTest* const testing::internal::UnitTestImpl::parent_
private

Definition at line 822 of file gtest-internal-inl.h.

internal::ThreadLocal<TestPartResultReporterInterface*> testing::internal::UnitTestImpl::per_thread_test_part_result_reporter_
private

Definition at line 841 of file gtest-internal-inl.h.

bool testing::internal::UnitTestImpl::post_flag_parse_init_performed_
private

Definition at line 902 of file gtest-internal-inl.h.

internal::Random testing::internal::UnitTestImpl::random_
private

Definition at line 908 of file gtest-internal-inl.h.

int testing::internal::UnitTestImpl::random_seed_
private

Definition at line 905 of file gtest-internal-inl.h.

TimeInMillis testing::internal::UnitTestImpl::start_timestamp_
private

Definition at line 912 of file gtest-internal-inl.h.

std::vector<int> testing::internal::UnitTestImpl::test_case_indices_
private

Definition at line 855 of file gtest-internal-inl.h.

std::vector<TestCase*> testing::internal::UnitTestImpl::test_cases_
private

Definition at line 849 of file gtest-internal-inl.h.


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


rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:18