Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
testing::internal::UnitTestImpl Class Reference

List of all members.

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 909 of file gtest-all.cc.


Member Enumeration Documentation

Enumerator:
HONOR_SHARDING_PROTOCOL 
IGNORE_SHARDING_PROTOCOL 

Definition at line 1127 of file gtest-all.cc.


Constructor & Destructor Documentation

Definition at line 5478 of file gtest-all.cc.

Definition at line 5517 of file gtest-all.cc.


Member Function Documentation

Definition at line 1007 of file gtest-all.cc.

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

Definition at line 1055 of file gtest-all.cc.

Definition at line 1213 of file gtest-all.cc.

Definition at line 1117 of file gtest-all.cc.

Definition at line 1112 of file gtest-all.cc.

Definition at line 5560 of file gtest-all.cc.

Definition at line 1143 of file gtest-all.cc.

Definition at line 1144 of file gtest-all.cc.

Definition at line 1145 of file gtest-all.cc.

Definition at line 6078 of file gtest-all.cc.

Definition at line 2258 of file gtest-all.cc.

Definition at line 2229 of file gtest-all.cc.

Definition at line 974 of file gtest-all.cc.

Definition at line 1149 of file gtest-all.cc.

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

Definition at line 981 of file gtest-all.cc.

Definition at line 2197 of file gtest-all.cc.

Definition at line 2218 of file gtest-all.cc.

Definition at line 5939 of file gtest-all.cc.

Definition at line 2167 of file gtest-all.cc.

Definition at line 994 of file gtest-all.cc.

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

Definition at line 987 of file gtest-all.cc.

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 5657 of file gtest-all.cc.

Definition at line 2181 of file gtest-all.cc.

Definition at line 1152 of file gtest-all.cc.

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

Definition at line 1155 of file gtest-all.cc.

Definition at line 1000 of file gtest-all.cc.

Definition at line 6015 of file gtest-all.cc.

Definition at line 6068 of file gtest-all.cc.

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

Definition at line 977 of file gtest-all.cc.

Definition at line 5596 of file gtest-all.cc.

Definition at line 1202 of file gtest-all.cc.

Definition at line 1199 of file gtest-all.cc.

Definition at line 5532 of file gtest-all.cc.

Definition at line 3771 of file gtest-all.cc.

Definition at line 2223 of file gtest-all.cc.

Definition at line 2234 of file gtest-all.cc.

Definition at line 5706 of file gtest-all.cc.

void testing::internal::UnitTestImpl::set_catch_exceptions ( bool  value) [inline, private]

Definition at line 1220 of file gtest-all.cc.

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

Definition at line 1086 of file gtest-all.cc.

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

Definition at line 1093 of file gtest-all.cc.

Definition at line 6057 of file gtest-all.cc.

Definition at line 2173 of file gtest-all.cc.

Definition at line 2186 of file gtest-all.cc.

Definition at line 6085 of file gtest-all.cc.

Definition at line 971 of file gtest-all.cc.

Definition at line 2192 of file gtest-all.cc.

Definition at line 2213 of file gtest-all.cc.

Definition at line 2208 of file gtest-all.cc.

Definition at line 2244 of file gtest-all.cc.

Definition at line 2202 of file gtest-all.cc.

Definition at line 2239 of file gtest-all.cc.

Definition at line 6100 of file gtest-all.cc.


Friends And Related Function Documentation

friend class ::testing::UnitTest [friend]

Definition at line 1216 of file gtest-all.cc.


Member Data Documentation

Definition at line 1290 of file gtest-all.cc.

Definition at line 1330 of file gtest-all.cc.

Definition at line 1274 of file gtest-all.cc.

Definition at line 1280 of file gtest-all.cc.

Definition at line 1230 of file gtest-all.cc.

Definition at line 1232 of file gtest-all.cc.

Definition at line 1316 of file gtest-all.cc.

Definition at line 1246 of file gtest-all.cc.

Definition at line 1238 of file gtest-all.cc.

Definition at line 1235 of file gtest-all.cc.

Definition at line 1326 of file gtest-all.cc.

Definition at line 1268 of file gtest-all.cc.

Definition at line 1294 of file gtest-all.cc.

Definition at line 1227 of file gtest-all.cc.

Definition at line 1300 of file gtest-all.cc.

Definition at line 1223 of file gtest-all.cc.

Definition at line 1242 of file gtest-all.cc.

Definition at line 1303 of file gtest-all.cc.

Definition at line 1309 of file gtest-all.cc.

Definition at line 1306 of file gtest-all.cc.

Definition at line 1313 of file gtest-all.cc.

Definition at line 1256 of file gtest-all.cc.

Definition at line 1250 of file gtest-all.cc.


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


self_test
Author(s): Kevin Watts, Brice Rebsamen , Jeremy Leibs and Blaise Gassend
autogenerated on Mon Aug 14 2017 02:52:34