Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
testing::TestCase Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/gtest/include/gtest/gtest.h>

Public Member Functions

 TestCase (const char *name, const char *a_type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc)
 
virtual ~TestCase ()
 
int disabled_test_count () const
 
TimeInMillis elapsed_time () const
 
bool Failed () const
 
int failed_test_count () const
 
const TestInfoGetTestInfo (int i) const
 
const char * name () const
 
bool Passed () const
 
bool should_run () const
 
int successful_test_count () const
 
int test_to_run_count () const
 
int total_test_count () const
 
const char * type_param () const
 

Private Member Functions

void AddTestInfo (TestInfo *test_info)
 
void ClearResult ()
 
TestInfoGetMutableTestInfo (int i)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestCase)
 
void Run ()
 
void RunSetUpTestCase ()
 
void RunTearDownTestCase ()
 
void set_should_run (bool should)
 
void ShuffleTests (internal::Random *random)
 
std::vector< TestInfo * > & test_info_list ()
 
const std::vector< TestInfo * > & test_info_list () const
 
void UnshuffleTests ()
 

Static Private Member Functions

static void ClearTestCaseResult (TestCase *test_case)
 
static bool ShouldRunTest (const TestInfo *test_info)
 
static bool TestDisabled (const TestInfo *test_info)
 
static bool TestFailed (const TestInfo *test_info)
 
static bool TestPassed (const TestInfo *test_info)
 

Private Attributes

TimeInMillis elapsed_time_
 
internal::String name_
 
Test::SetUpTestCaseFunc set_up_tc_
 
bool should_run_
 
Test::TearDownTestCaseFunc tear_down_tc_
 
std::vector< int > test_indices_
 
std::vector< TestInfo * > test_info_list_
 
const internal::scoped_ptr< const ::std::string > type_param_
 

Friends

class internal::UnitTestImpl
 
class Test
 

Constructor & Destructor Documentation

testing::TestCase::TestCase ( const char *  name,
const char *  a_type_param,
Test::SetUpTestCaseFunc  set_up_tc,
Test::TearDownTestCaseFunc  tear_down_tc 
)
testing::TestCase::~TestCase ( )
virtual

Member Function Documentation

void testing::TestCase::AddTestInfo ( TestInfo test_info)
private
void testing::TestCase::ClearResult ( )
private
static void testing::TestCase::ClearTestCaseResult ( TestCase test_case)
inlinestaticprivate
int testing::TestCase::disabled_test_count ( ) const
TimeInMillis testing::TestCase::elapsed_time ( ) const
inline
bool testing::TestCase::Failed ( ) const
inline
int testing::TestCase::failed_test_count ( ) const
TestInfo * testing::TestCase::GetMutableTestInfo ( int  i)
private
const TestInfo * testing::TestCase::GetTestInfo ( int  i) const
testing::TestCase::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestCase  )
private
const char* testing::TestCase::name ( ) const
inline
bool testing::TestCase::Passed ( ) const
inline
void testing::TestCase::Run ( )
private
void testing::TestCase::RunSetUpTestCase ( )
inlineprivate
void testing::TestCase::RunTearDownTestCase ( )
inlineprivate
void testing::TestCase::set_should_run ( bool  should)
inlineprivate
bool testing::TestCase::should_run ( ) const
inline
static bool testing::TestCase::ShouldRunTest ( const TestInfo test_info)
inlinestaticprivate
void testing::TestCase::ShuffleTests ( internal::Random random)
private
int testing::TestCase::successful_test_count ( ) const
std::vector<TestInfo*>& testing::TestCase::test_info_list ( )
inlineprivate
const std::vector<TestInfo*>& testing::TestCase::test_info_list ( ) const
inlineprivate
int testing::TestCase::test_to_run_count ( ) const
static bool testing::TestCase::TestDisabled ( const TestInfo test_info)
inlinestaticprivate
static bool testing::TestCase::TestFailed ( const TestInfo test_info)
inlinestaticprivate
static bool testing::TestCase::TestPassed ( const TestInfo test_info)
inlinestaticprivate
int testing::TestCase::total_test_count ( ) const
const char* testing::TestCase::type_param ( ) const
inline
void testing::TestCase::UnshuffleTests ( )
private

Friends And Related Function Documentation

friend class internal::UnitTestImpl
friend
friend class Test
friend

Member Data Documentation

TimeInMillis testing::TestCase::elapsed_time_
private
internal::String testing::TestCase::name_
private
Test::SetUpTestCaseFunc testing::TestCase::set_up_tc_
private
bool testing::TestCase::should_run_
private
Test::TearDownTestCaseFunc testing::TestCase::tear_down_tc_
private
std::vector<int> testing::TestCase::test_indices_
private
std::vector<TestInfo*> testing::TestCase::test_info_list_
private
const internal::scoped_ptr<const ::std::string> testing::TestCase::type_param_
private

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