Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
testing::TestCase Class Reference

#include <gtest.h>

List of all members.

Public Member Functions

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
 TestCase (const char *name, const char *a_type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc)
int total_test_count () const
const char * type_param () const
virtual ~TestCase ()

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

Detailed Description

Definition at line 744 of file gtest.h.


Constructor & Destructor Documentation

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

Definition at line 2391 of file gtest.cc.

Definition at line 2403 of file gtest.cc.


Member Function Documentation

void testing::TestCase::AddTestInfo ( TestInfo test_info) [private]

Definition at line 2424 of file gtest.cc.

void testing::TestCase::ClearResult ( ) [private]

Definition at line 2458 of file gtest.cc.

static void testing::TestCase::ClearTestCaseResult ( TestCase test_case) [inline, static, private]

Definition at line 834 of file gtest.h.

Definition at line 2368 of file gtest.cc.

Definition at line 801 of file gtest.h.

bool testing::TestCase::Failed ( ) const [inline]

Definition at line 798 of file gtest.h.

Definition at line 2364 of file gtest.cc.

Definition at line 2417 of file gtest.cc.

const TestInfo * testing::TestCase::GetTestInfo ( int  i) const

Definition at line 2410 of file gtest.cc.

const char* testing::TestCase::name ( ) const [inline]

Definition at line 766 of file gtest.h.

bool testing::TestCase::Passed ( ) const [inline]

Definition at line 795 of file gtest.h.

void testing::TestCase::Run ( ) [private]

Definition at line 2430 of file gtest.cc.

void testing::TestCase::RunSetUpTestCase ( ) [inline, private]

Definition at line 843 of file gtest.h.

void testing::TestCase::RunTearDownTestCase ( ) [inline, private]

Definition at line 847 of file gtest.h.

void testing::TestCase::set_should_run ( bool  should) [inline, private]

Definition at line 824 of file gtest.h.

bool testing::TestCase::should_run ( ) const [inline]

Definition at line 777 of file gtest.h.

static bool testing::TestCase::ShouldRunTest ( const TestInfo test_info) [inline, static, private]

Definition at line 865 of file gtest.h.

void testing::TestCase::ShuffleTests ( internal::Random random) [private]

Definition at line 2463 of file gtest.cc.

Definition at line 2359 of file gtest.cc.

std::vector<TestInfo*>& testing::TestCase::test_info_list ( ) [inline, private]

Definition at line 812 of file gtest.h.

const std::vector<TestInfo*>& testing::TestCase::test_info_list ( ) const [inline, private]

Definition at line 815 of file gtest.h.

Definition at line 2373 of file gtest.cc.

static bool testing::TestCase::TestDisabled ( const TestInfo test_info) [inline, static, private]

Definition at line 860 of file gtest.h.

static bool testing::TestCase::TestFailed ( const TestInfo test_info) [inline, static, private]

Definition at line 855 of file gtest.h.

static bool testing::TestCase::TestPassed ( const TestInfo test_info) [inline, static, private]

Definition at line 850 of file gtest.h.

Definition at line 2378 of file gtest.cc.

const char* testing::TestCase::type_param ( ) const [inline]

Definition at line 770 of file gtest.h.

Definition at line 2468 of file gtest.cc.


Friends And Related Function Documentation

friend class internal::UnitTestImpl [friend]

Definition at line 809 of file gtest.h.

friend class Test [friend]

Definition at line 808 of file gtest.h.


Member Data Documentation

Definition at line 894 of file gtest.h.

Definition at line 876 of file gtest.h.

Definition at line 888 of file gtest.h.

Definition at line 892 of file gtest.h.

Definition at line 890 of file gtest.h.

std::vector<int> testing::TestCase::test_indices_ [private]

Definition at line 886 of file gtest.h.

Definition at line 882 of file gtest.h.

Definition at line 879 of file gtest.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:47:36