webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
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 disabled_test_count () const
 
int total_test_count () const
 
int test_to_run_count () const
 
TimeInMillis elapsed_time () const
 
bool Passed () const
 
bool Failed () const
 
const TestCase * GetTestCase (int i) const
 
TestCase * GetMutableTestCase (int i)
 
TestEventListeners * listeners ()
 
TestResult * current_test_result ()
 
const TestResult * ad_hoc_test_result () const
 
void set_os_stack_trace_getter (OsStackTraceGetterInterface *getter)
 
OsStackTraceGetterInterfaceos_stack_trace_getter ()
 
String CurrentOsStackTraceExceptTop (int skip_count)
 
TestCase * GetTestCase (const char *test_case_name, const char *comment, 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 ()
 
int RunAllTests ()
 
void ClearResult ()
 
int FilterTests (ReactionToSharding shard_tests)
 
void ListTestsMatchingFilter ()
 
const TestCase * current_test_case () const
 
TestInfo * current_test_info ()
 
const TestInfo * current_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 ()
 

Friends

class ::testing::UnitTest
 

Member Enumeration Documentation

◆ ReactionToSharding

Enumerator
HONOR_SHARDING_PROTOCOL 
IGNORE_SHARDING_PROTOCOL 

Constructor & Destructor Documentation

◆ UnitTestImpl()

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

◆ ~UnitTestImpl()

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

Member Function Documentation

◆ ad_hoc_test_result()

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

◆ AddTestInfo()

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

◆ ClearResult()

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

◆ ConfigureXmlOutput()

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

◆ current_test_case()

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

◆ current_test_info() [1/2]

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

◆ current_test_info() [2/2]

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

◆ current_test_result()

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

◆ CurrentOsStackTraceExceptTop()

String testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop ( int  skip_count)

◆ disabled_test_count()

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

◆ elapsed_time()

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

◆ environments()

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

◆ Failed()

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

◆ failed_test_case_count()

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

◆ failed_test_count()

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

◆ FilterTests()

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

◆ GetGlobalTestPartResultReporter()

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

◆ GetMutableTestCase()

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

◆ GetTestCase() [1/2]

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

◆ GetTestCase() [2/2]

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

◆ GetTestPartResultReporterForCurrentThread()

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

◆ gtest_trace_stack() [1/2]

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

◆ gtest_trace_stack() [2/2]

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

◆ listeners()

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

◆ ListTestsMatchingFilter()

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

◆ os_stack_trace_getter()

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

◆ Passed()

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

◆ PostFlagParsingInit()

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

◆ random()

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

◆ random_seed()

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

◆ RegisterParameterizedTests()

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

◆ RunAllTests()

int testing::internal::UnitTestImpl::RunAllTests ( )

◆ set_current_test_case()

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

◆ set_current_test_info()

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

◆ set_os_stack_trace_getter()

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

◆ SetGlobalTestPartResultReporter()

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

◆ SetTestPartResultReporterForCurrentThread()

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

◆ ShuffleTests()

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

◆ successful_test_case_count()

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

◆ successful_test_count()

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

◆ test_case_to_run_count()

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

◆ test_to_run_count()

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

◆ total_test_case_count()

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

◆ total_test_count()

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

◆ UnshuffleTests()

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

Friends And Related Function Documentation

◆ ::testing::UnitTest

friend class ::testing::UnitTest
friend

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