CHROMA
|
Public Types | |
enum | ReactionToSharding { HONOR_SHARDING_PROTOCOL , IGNORE_SHARDING_PROTOCOL } |
Private Member Functions | |
void | set_catch_exceptions (bool value) |
GTEST_DISALLOW_COPY_AND_ASSIGN_ (UnitTestImpl) | |
Friends | |
class | ::testing::UnitTest |
Definition at line 909 of file gtest-all.cc.
Enumerator | |
---|---|
HONOR_SHARDING_PROTOCOL | |
IGNORE_SHARDING_PROTOCOL |
Definition at line 1127 of file gtest-all.cc.
|
explicit |
Definition at line 5478 of file gtest-all.cc.
References listeners(), and testing::TestEventListeners::SetDefaultResultPrinter().
|
virtual |
Definition at line 5517 of file gtest-all.cc.
References environments_, testing::internal::ForEach(), os_stack_trace_getter_, and test_cases_.
|
inline |
Definition at line 1007 of file gtest-all.cc.
Referenced by testing::UnitTest::ad_hoc_test_result().
|
inline |
Definition at line 1055 of file gtest-all.cc.
References testing::internal::FilePath::GetCurrentDir(), GTEST_CHECK_, testing::TestInfo::test_case_name(), and testing::TestInfo::type_param().
Referenced by testing::internal::MakeAndRegisterTestInfo().
|
inline |
Definition at line 1213 of file gtest-all.cc.
|
inline |
Definition at line 1117 of file gtest-all.cc.
|
inline |
Definition at line 1112 of file gtest-all.cc.
References testing::TestCase::ClearTestCaseResult(), and testing::internal::ForEach().
Referenced by RunAllTests().
void testing::internal::UnitTestImpl::ConfigureXmlOutput | ( | ) |
Definition at line 5560 of file gtest-all.cc.
References testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::UnitTestOptions::GetOutputFormat(), listeners(), and testing::TestEventListeners::SetDefaultXmlGenerator().
Referenced by PostFlagParsingInit().
|
inline |
Definition at line 1143 of file gtest-all.cc.
Referenced by testing::UnitTest::current_test_case(), and testing::Test::HasSameFixtureClass().
|
inline |
Definition at line 1144 of file gtest-all.cc.
Referenced by testing::UnitTest::current_test_info(), and testing::Test::HasSameFixtureClass().
|
inline |
Definition at line 1145 of file gtest-all.cc.
TestResult * testing::internal::UnitTestImpl::current_test_result | ( | ) |
Definition at line 6078 of file gtest-all.cc.
References ad_hoc_test_result_, current_test_info_, and testing::TestInfo::result_.
Referenced by testing::Test::HasFatalFailure(), testing::Test::HasNonfatalFailure(), and testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult().
std::string testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop | ( | int | skip_count | ) |
Definition at line 2258 of file gtest-all.cc.
Referenced by testing::internal::GetCurrentOsStackTraceExceptTop(), and testing::internal::AssertHelper::operator=().
int testing::internal::UnitTestImpl::disabled_test_count | ( | ) | const |
Definition at line 2229 of file gtest-all.cc.
References testing::TestCase::disabled_test_count(), testing::internal::SumOverTestCaseList(), and test_cases_.
Referenced by testing::UnitTest::disabled_test_count().
|
inline |
Definition at line 974 of file gtest-all.cc.
Referenced by testing::UnitTest::elapsed_time().
|
inline |
Definition at line 1149 of file gtest-all.cc.
Referenced by testing::UnitTest::AddEnvironment().
|
inline |
Definition at line 981 of file gtest-all.cc.
Referenced by testing::UnitTest::Failed().
int testing::internal::UnitTestImpl::failed_test_case_count | ( | ) | const |
Definition at line 2197 of file gtest-all.cc.
References testing::internal::CountIf(), test_cases_, and testing::internal::TestCaseFailed().
Referenced by testing::UnitTest::failed_test_case_count().
int testing::internal::UnitTestImpl::failed_test_count | ( | ) | const |
Definition at line 2218 of file gtest-all.cc.
References testing::TestCase::failed_test_count(), testing::internal::SumOverTestCaseList(), and test_cases_.
Referenced by testing::UnitTest::failed_test_count().
int testing::internal::UnitTestImpl::FilterTests | ( | ReactionToSharding | shard_tests | ) |
Definition at line 5939 of file gtest-all.cc.
References testing::internal::UnitTestOptions::FilterMatchesTest(), GTEST_FLAG, HONOR_SHARDING_PROTOCOL, i, IGNORE_SHARDING_PROTOCOL, testing::internal::Int32FromEnvOrDie(), testing::TestInfo::is_disabled_, j, testing::kDisableTestFilter, testing::kTestShardIndex, testing::kTestTotalShards, testing::TestInfo::matches_filter_, testing::internal::UnitTestOptions::MatchesFilter(), testing::TestInfo::name(), testing::TestCase::name(), testing::TestCase::set_should_run(), testing::TestCase::should_run(), testing::TestInfo::should_run_, testing::internal::ShouldRunTestOnShard(), test_cases_, and testing::TestCase::test_info_list().
Referenced by RunAllTests().
TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetGlobalTestPartResultReporter | ( | ) |
Definition at line 2167 of file gtest-all.cc.
References global_test_part_result_reporter_mutex_, and global_test_part_result_repoter_.
Referenced by testing::ScopedFakeTestPartResultReporter::Init(), and testing::internal::DefaultPerThreadTestPartResultReporter::ReportTestPartResult().
|
inline |
Definition at line 994 of file gtest-all.cc.
References testing::internal::GetElementOr(), i, and index.
Referenced by testing::UnitTest::GetMutableTestCase(), and RunAllTests().
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.
References testing::kDeathTestCaseFilter, last_death_test_case_, testing::internal::UnitTestOptions::MatchesFilter(), test_case_indices_, and test_cases_.
|
inline |
Definition at line 987 of file gtest-all.cc.
References testing::internal::GetElementOr(), i, and index.
Referenced by testing::UnitTest::GetTestCase().
TestPartResultReporterInterface * testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread | ( | ) |
Definition at line 2181 of file gtest-all.cc.
References per_thread_test_part_result_reporter_.
Referenced by testing::ScopedFakeTestPartResultReporter::Init().
|
private |
|
inline |
Definition at line 1152 of file gtest-all.cc.
Referenced by testing::UnitTest::PopGTestTrace().
|
inline |
Definition at line 1155 of file gtest-all.cc.
|
inline |
Definition at line 1000 of file gtest-all.cc.
Referenced by ConfigureXmlOutput(), testing::UnitTest::listeners(), testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult(), RunAllTests(), and UnitTestImpl().
void testing::internal::UnitTestImpl::ListTestsMatchingFilter | ( | ) |
Definition at line 6015 of file gtest-all.cc.
References i, j, testing::internal::kTypeParamLabel, testing::internal::kValueParamLabel, testing::TestInfo::matches_filter_, testing::TestInfo::name(), testing::TestCase::name(), testing::internal::PrintOnOneLine(), test_cases_, testing::TestCase::test_info_list(), testing::TestCase::type_param(), and testing::TestInfo::value_param().
Referenced by RunAllTests().
OsStackTraceGetterInterface * testing::internal::UnitTestImpl::os_stack_trace_getter | ( | ) |
Definition at line 6068 of file gtest-all.cc.
References os_stack_trace_getter_.
Referenced by testing::Test::Run(), testing::TestInfo::Run(), and testing::TestCase::Run().
|
inline |
Definition at line 977 of file gtest-all.cc.
Referenced by testing::UnitTest::Passed(), and RunAllTests().
void testing::internal::UnitTestImpl::PostFlagParsingInit | ( | ) |
Definition at line 5596 of file gtest-all.cc.
References ConfigureXmlOutput(), post_flag_parse_init_performed_, and RegisterParameterizedTests().
Referenced by testing::internal::InitGoogleTestImpl(), and RunAllTests().
|
inline |
Definition at line 1202 of file gtest-all.cc.
Referenced by RunAllTests(), and ShuffleTests().
|
inline |
Definition at line 1199 of file gtest-all.cc.
Referenced by testing::UnitTest::random_seed(), and RunAllTests().
void testing::internal::UnitTestImpl::RecordProperty | ( | const TestProperty & | test_property | ) |
Definition at line 5532 of file gtest-all.cc.
References ad_hoc_test_result_, testing::TestCase::ad_hoc_test_result_, current_test_case_, current_test_info_, testing::TestResult::RecordProperty(), and testing::TestInfo::result_.
Referenced by testing::UnitTest::RecordProperty().
void testing::internal::UnitTestImpl::RegisterParameterizedTests | ( | ) |
Definition at line 3771 of file gtest-all.cc.
Referenced by PostFlagParsingInit().
int testing::internal::UnitTestImpl::reportable_disabled_test_count | ( | ) | const |
Definition at line 2223 of file gtest-all.cc.
References testing::TestCase::reportable_disabled_test_count(), testing::internal::SumOverTestCaseList(), and test_cases_.
Referenced by testing::UnitTest::reportable_disabled_test_count().
int testing::internal::UnitTestImpl::reportable_test_count | ( | ) | const |
Definition at line 2234 of file gtest-all.cc.
References testing::TestCase::reportable_test_count(), testing::internal::SumOverTestCaseList(), and test_cases_.
Referenced by testing::UnitTest::reportable_test_count().
bool testing::internal::UnitTestImpl::RunAllTests | ( | ) |
Definition at line 5706 of file gtest-all.cc.
References ClearNonAdHocTestResult(), elapsed_time_, environments_, FilterTests(), testing::internal::ForEach(), testing::internal::g_help_flag, GetMutableTestCase(), testing::internal::GetNextRandomSeed(), testing::internal::GetRandomSeedFromFlag(), testing::internal::GetTimeInMillis(), GTEST_FLAG, testing::internal::GTestIsInitialized(), testing::Test::HasFatalFailure(), HONOR_SHARDING_PROTOCOL, i, IGNORE_SHARDING_PROTOCOL, testing::kTestShardIndex, testing::kTestTotalShards, listeners(), ListTestsMatchingFilter(), testing::TestEventListener::OnEnvironmentsSetUpEnd(), testing::TestEventListener::OnEnvironmentsSetUpStart(), testing::TestEventListener::OnEnvironmentsTearDownEnd(), testing::TestEventListener::OnEnvironmentsTearDownStart(), testing::TestEventListener::OnTestIterationEnd(), testing::TestEventListener::OnTestIterationStart(), testing::TestEventListener::OnTestProgramEnd(), testing::TestEventListener::OnTestProgramStart(), parent_, Passed(), PostFlagParsingInit(), random(), random_seed(), random_seed_, testing::TestEventListeners::repeater(), testing::internal::Random::Reseed(), testing::TestCase::Run(), testing::internal::SetUpEnvironment(), testing::internal::ShouldShard(), ShuffleTests(), start_timestamp_, testing::internal::TearDownEnvironment(), total_test_case_count(), UnshuffleTests(), and testing::internal::WriteToShardStatusFileIfNeeded().
Referenced by testing::UnitTest::Run().
|
inlineprivate |
Definition at line 1220 of file gtest-all.cc.
Referenced by testing::UnitTest::Run().
|
inline |
Definition at line 1086 of file gtest-all.cc.
Referenced by testing::TestCase::Run().
|
inline |
Definition at line 1093 of file gtest-all.cc.
Referenced by testing::TestInfo::Run().
void testing::internal::UnitTestImpl::set_os_stack_trace_getter | ( | OsStackTraceGetterInterface * | getter | ) |
Definition at line 6057 of file gtest-all.cc.
References os_stack_trace_getter_.
void testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter | ( | TestPartResultReporterInterface * | reporter | ) |
Definition at line 2173 of file gtest-all.cc.
References global_test_part_result_reporter_mutex_, and global_test_part_result_repoter_.
Referenced by testing::ScopedFakeTestPartResultReporter::Init(), and testing::ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter().
void testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread | ( | TestPartResultReporterInterface * | reporter | ) |
Definition at line 2186 of file gtest-all.cc.
References per_thread_test_part_result_reporter_.
Referenced by testing::internal::HasNewFatalFailureHelper::HasNewFatalFailureHelper(), testing::ScopedFakeTestPartResultReporter::Init(), testing::internal::HasNewFatalFailureHelper::~HasNewFatalFailureHelper(), and testing::ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter().
void testing::internal::UnitTestImpl::ShuffleTests | ( | ) |
Definition at line 6085 of file gtest-all.cc.
References i, last_death_test_case_, random(), testing::internal::ShuffleRange(), test_case_indices_, and test_cases_.
Referenced by RunAllTests().
|
inline |
Definition at line 971 of file gtest-all.cc.
Referenced by testing::UnitTest::start_timestamp().
int testing::internal::UnitTestImpl::successful_test_case_count | ( | ) | const |
Definition at line 2192 of file gtest-all.cc.
References testing::internal::CountIf(), test_cases_, and testing::internal::TestCasePassed().
Referenced by testing::UnitTest::successful_test_case_count().
int testing::internal::UnitTestImpl::successful_test_count | ( | ) | const |
Definition at line 2213 of file gtest-all.cc.
References testing::TestCase::successful_test_count(), testing::internal::SumOverTestCaseList(), and test_cases_.
Referenced by testing::UnitTest::successful_test_count().
int testing::internal::UnitTestImpl::test_case_to_run_count | ( | ) | const |
Definition at line 2208 of file gtest-all.cc.
References testing::internal::CountIf(), testing::internal::ShouldRunTestCase(), and test_cases_.
Referenced by testing::UnitTest::test_case_to_run_count().
int testing::internal::UnitTestImpl::test_to_run_count | ( | ) | const |
Definition at line 2244 of file gtest-all.cc.
References testing::internal::SumOverTestCaseList(), test_cases_, and testing::TestCase::test_to_run_count().
Referenced by testing::UnitTest::test_to_run_count().
int testing::internal::UnitTestImpl::total_test_case_count | ( | ) | const |
Definition at line 2202 of file gtest-all.cc.
References test_cases_.
Referenced by RunAllTests(), and testing::UnitTest::total_test_case_count().
int testing::internal::UnitTestImpl::total_test_count | ( | ) | const |
Definition at line 2239 of file gtest-all.cc.
References testing::internal::SumOverTestCaseList(), test_cases_, and testing::TestCase::total_test_count().
Referenced by testing::UnitTest::total_test_count().
void testing::internal::UnitTestImpl::UnshuffleTests | ( | ) |
Definition at line 6100 of file gtest-all.cc.
References i, test_case_indices_, and test_cases_.
Referenced by RunAllTests().
|
friend |
Definition at line 1216 of file gtest-all.cc.
|
private |
Definition at line 1290 of file gtest-all.cc.
Referenced by current_test_result(), and RecordProperty().
|
private |
Definition at line 1330 of file gtest-all.cc.
|
private |
Definition at line 1274 of file gtest-all.cc.
Referenced by RecordProperty().
|
private |
Definition at line 1280 of file gtest-all.cc.
Referenced by current_test_result(), and RecordProperty().
|
private |
Definition at line 1230 of file gtest-all.cc.
|
private |
Definition at line 1232 of file gtest-all.cc.
|
private |
Definition at line 1316 of file gtest-all.cc.
Referenced by RunAllTests().
|
private |
Definition at line 1246 of file gtest-all.cc.
Referenced by RunAllTests(), and ~UnitTestImpl().
|
private |
Definition at line 1238 of file gtest-all.cc.
Referenced by GetGlobalTestPartResultReporter(), and SetGlobalTestPartResultReporter().
|
private |
Definition at line 1235 of file gtest-all.cc.
Referenced by GetGlobalTestPartResultReporter(), and SetGlobalTestPartResultReporter().
|
private |
Definition at line 1326 of file gtest-all.cc.
|
private |
Definition at line 1268 of file gtest-all.cc.
Referenced by GetTestCase(), and ShuffleTests().
|
private |
Definition at line 1294 of file gtest-all.cc.
|
private |
Definition at line 1227 of file gtest-all.cc.
Referenced by testing::UnitTest::original_working_dir().
|
private |
Definition at line 1300 of file gtest-all.cc.
Referenced by os_stack_trace_getter(), set_os_stack_trace_getter(), and ~UnitTestImpl().
|
private |
Definition at line 1223 of file gtest-all.cc.
Referenced by RunAllTests().
|
private |
Definition at line 1242 of file gtest-all.cc.
Referenced by GetTestPartResultReporterForCurrentThread(), and SetTestPartResultReporterForCurrentThread().
|
private |
Definition at line 1303 of file gtest-all.cc.
Referenced by PostFlagParsingInit().
|
private |
Definition at line 1309 of file gtest-all.cc.
|
private |
Definition at line 1306 of file gtest-all.cc.
Referenced by RunAllTests().
|
private |
Definition at line 1313 of file gtest-all.cc.
Referenced by RunAllTests().
|
private |
Definition at line 1256 of file gtest-all.cc.
Referenced by GetTestCase(), ShuffleTests(), and UnshuffleTests().
|
private |
Definition at line 1250 of file gtest-all.cc.
Referenced by disabled_test_count(), failed_test_case_count(), failed_test_count(), FilterTests(), GetTestCase(), ListTestsMatchingFilter(), reportable_disabled_test_count(), reportable_test_count(), ShuffleTests(), successful_test_case_count(), successful_test_count(), test_case_to_run_count(), test_to_run_count(), total_test_case_count(), total_test_count(), UnshuffleTests(), and ~UnitTestImpl().