- 3.0.1 core module.
testing::UnitTest Class Reference

#include <gtest.h>

Public Member Functions

int Run () GTEST_MUST_USE_RESULT_
 
const char * original_working_dir () const
 
const TestSuitecurrent_test_suite () const GTEST_LOCK_EXCLUDED_(mutex_)
 
const TestCase * current_test_case () const GTEST_LOCK_EXCLUDED_(mutex_)
 
const TestInfocurrent_test_info () const GTEST_LOCK_EXCLUDED_(mutex_)
 
int random_seed () const
 
internal::ParameterizedTestSuiteRegistryparameterized_test_registry () GTEST_LOCK_EXCLUDED_(mutex_)
 
int successful_test_suite_count () const
 
int failed_test_suite_count () const
 
int total_test_suite_count () const
 
int test_suite_to_run_count () const
 
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 skipped_test_count () const
 
int failed_test_count () const
 
int reportable_disabled_test_count () const
 
int disabled_test_count () const
 
int reportable_test_count () const
 
int total_test_count () const
 
int test_to_run_count () const
 
TimeInMillis start_timestamp () const
 
TimeInMillis elapsed_time () const
 
bool Passed () const
 
bool Failed () const
 
const TestSuiteGetTestSuite (int i) const
 
const TestCase * GetTestCase (int i) const
 
const TestResultad_hoc_test_result () const
 
TestEventListenerslisteners ()
 

Static Public Member Functions

static UnitTestGetInstance ()
 

Friends

class ScopedTrace
 
class Test
 
class internal::AssertHelper
 
class internal::StreamingListenerTest
 
class internal::UnitTestRecordPropertyTestHelper
 
EnvironmentAddGlobalTestEnvironment (Environment *env)
 
internal::UnitTestImpl * internal::GetUnitTestImpl ()
 
void internal::ReportFailureInUnknownLocation (TestPartResult::Type result_type, const std::string &message)
 

Member Function Documentation

const char * testing::UnitTest::original_working_dir ( ) const
const TestSuite * testing::UnitTest::current_test_suite ( ) const

Referenced by TEST_F().

const TestCase * testing::UnitTest::current_test_case ( ) const
int testing::UnitTest::successful_test_suite_count ( ) const
int testing::UnitTest::failed_test_suite_count ( ) const
int testing::UnitTest::successful_test_case_count ( ) const
int testing::UnitTest::failed_test_case_count ( ) const
int testing::UnitTest::total_test_case_count ( ) const
int testing::UnitTest::test_case_to_run_count ( ) const
int testing::UnitTest::disabled_test_count ( ) const

Referenced by testing::internal::TEST().

int testing::UnitTest::total_test_count ( ) const

Referenced by testing::internal::TEST().

bool testing::UnitTest::Failed ( ) const
const TestCase * testing::UnitTest::GetTestCase ( int  i) const

Friends And Related Function Documentation

friend class ScopedTrace
friend
friend class Test
friend
friend class internal::AssertHelper
friend
friend class internal::StreamingListenerTest
friend
Environment* AddGlobalTestEnvironment ( Environment env)
friend
internal::UnitTestImpl* internal::GetUnitTestImpl ( )
friend
void internal::ReportFailureInUnknownLocation ( TestPartResult::Type  result_type,
const std::string &  message 
)
friend

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