Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
testing::internal::ParameterizedTestCaseInfo< TestCase > Class Template Reference

#include <gtest.h>

Inheritance diagram for testing::internal::ParameterizedTestCaseInfo< TestCase >:
Inheritance graph
[legend]

Classes

struct  InstantiationInfo
 
struct  TestInfo
 

Public Types

typedef ParamNameGenFunc< ParamType >::Type ParamNameGeneratorFunc
 
typedef TestCase::ParamType ParamType
 

Public Member Functions

int AddTestCaseInstantiation (const string &instantiation_name, GeneratorCreationFunc *func, ParamNameGeneratorFunc *name_func, const char *file, int line)
 
void AddTestPattern (const char *test_case_name, const char *test_base_name, TestMetaFactoryBase< ParamType > *meta_factory)
 
virtual const stringGetTestCaseName () const
 
virtual TypeId GetTestCaseTypeId () const
 
 ParameterizedTestCaseInfo (const char *name, CodeLocation code_location)
 
typedef ParamGenerator (GeneratorCreationFunc)()
 
virtual void RegisterTests ()
 
- Public Member Functions inherited from testing::internal::ParameterizedTestCaseInfoBase
virtual ~ParameterizedTestCaseInfoBase ()
 

Private Types

typedef ::std::vector< InstantiationInfoInstantiationContainer
 
typedef ::std::vector< linked_ptr< TestInfo > > TestInfoContainer
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (ParameterizedTestCaseInfo)
 

Static Private Member Functions

static bool IsValidParamName (const std::string &name)
 

Private Attributes

CodeLocation code_location_
 
InstantiationContainer instantiations_
 
const string test_case_name_
 
TestInfoContainer tests_
 

Additional Inherited Members

- Protected Member Functions inherited from testing::internal::ParameterizedTestCaseInfoBase
 ParameterizedTestCaseInfoBase ()
 

Detailed Description

template<class TestCase>
class testing::internal::ParameterizedTestCaseInfo< TestCase >

Definition at line 11542 of file cares/cares/test/gmock-1.8.0/gtest/gtest.h.

Member Typedef Documentation

◆ InstantiationContainer

template<class TestCase >
typedef ::std::vector<InstantiationInfo> testing::internal::ParameterizedTestCaseInfo< TestCase >::InstantiationContainer
private

◆ ParamNameGeneratorFunc

◆ ParamType

template<class TestCase >
typedef TestCase::ParamType testing::internal::ParameterizedTestCaseInfo< TestCase >::ParamType

◆ TestInfoContainer

template<class TestCase >
typedef ::std::vector<linked_ptr<TestInfo> > testing::internal::ParameterizedTestCaseInfo< TestCase >::TestInfoContainer
private

Constructor & Destructor Documentation

◆ ParameterizedTestCaseInfo()

template<class TestCase >
testing::internal::ParameterizedTestCaseInfo< TestCase >::ParameterizedTestCaseInfo ( const char *  name,
CodeLocation  code_location 
)
inlineexplicit

Member Function Documentation

◆ AddTestCaseInstantiation()

template<class TestCase >
int testing::internal::ParameterizedTestCaseInfo< TestCase >::AddTestCaseInstantiation ( const string instantiation_name,
GeneratorCreationFunc *  func,
ParamNameGeneratorFunc name_func,
const char *  file,
int  line 
)
inline

◆ AddTestPattern()

template<class TestCase >
void testing::internal::ParameterizedTestCaseInfo< TestCase >::AddTestPattern ( const char *  test_case_name,
const char *  test_base_name,
TestMetaFactoryBase< ParamType > *  meta_factory 
)
inline

◆ GetTestCaseName()

template<class TestCase >
virtual const string& testing::internal::ParameterizedTestCaseInfo< TestCase >::GetTestCaseName ( ) const
inlinevirtual

◆ GetTestCaseTypeId()

template<class TestCase >
virtual TypeId testing::internal::ParameterizedTestCaseInfo< TestCase >::GetTestCaseTypeId ( ) const
inlinevirtual

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_()

template<class TestCase >
testing::internal::ParameterizedTestCaseInfo< TestCase >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( ParameterizedTestCaseInfo< TestCase )
private

◆ IsValidParamName()

template<class TestCase >
static bool testing::internal::ParameterizedTestCaseInfo< TestCase >::IsValidParamName ( const std::string &  name)
inlinestaticprivate

◆ ParamGenerator()

template<class TestCase >
typedef testing::internal::ParameterizedTestCaseInfo< TestCase >::ParamGenerator ( GeneratorCreationFunc  )

◆ RegisterTests()

template<class TestCase >
virtual void testing::internal::ParameterizedTestCaseInfo< TestCase >::RegisterTests ( )
inlinevirtual

Member Data Documentation

◆ code_location_

template<class TestCase >
CodeLocation testing::internal::ParameterizedTestCaseInfo< TestCase >::code_location_
private

◆ instantiations_

template<class TestCase >
InstantiationContainer testing::internal::ParameterizedTestCaseInfo< TestCase >::instantiations_
private

◆ test_case_name_

template<class TestCase >
const string testing::internal::ParameterizedTestCaseInfo< TestCase >::test_case_name_
private

◆ tests_

template<class TestCase >
TestInfoContainer testing::internal::ParameterizedTestCaseInfo< TestCase >::tests_
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:50