- 3.0.1 core module.
gtest-param-test.h File Reference

Go to the source code of this file.

Namespaces

 testing
 

Macros

#define TEST_P(test_suite_name, test_name)
 
#define GTEST_EXPAND_(arg)   arg
 
#define GTEST_GET_FIRST_(first, ...)   first
 
#define GTEST_GET_SECOND_(first, second, ...)   second
 
#define INSTANTIATE_TEST_SUITE_P(prefix, test_suite_name, ...)
 
#define INSTANTIATE_TEST_CASE_P
 

Functions

template<typename T , typename IncrementT >
internal::ParamGenerator< T > testing::Range (T start, T end, IncrementT step)
 
template<typename T >
internal::ParamGenerator< T > testing::Range (T start, T end)
 
template<typename ForwardIterator >
internal::ParamGenerator< typename::testing::internal::IteratorTraits< ForwardIterator >::value_type > testing::ValuesIn (ForwardIterator begin, ForwardIterator end)
 
template<typename T , size_t N>
internal::ParamGenerator< T > testing::ValuesIn (const T(&array)[N])
 
template<class Container >
internal::ParamGenerator< typename Container::value_type > testing::ValuesIn (const Container &container)
 
template<typename... T>
internal::ValueArray< T... > testing::Values (T...v)
 
internal::ParamGenerator< bool > testing::Bool ()
 
template<typename... Generator>
internal::CartesianProductHolder< Generator... > testing::Combine (const Generator &...g)
 

Macro Definition Documentation

#define TEST_P (   test_suite_name,
  test_name 
)
Value:
class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name) \
: public test_suite_name { \
public: \
GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() {} \
virtual void TestBody(); \
\
private: \
static int AddToRegistry() { \
.GetTestSuitePatternHolder<test_suite_name>( \
#test_suite_name, \
::testing::internal::CodeLocation(__FILE__, __LINE__)) \
->AddTestPattern( \
GTEST_STRINGIFY_(test_suite_name), GTEST_STRINGIFY_(test_name), \
new ::testing::internal::TestMetaFactory<GTEST_TEST_CLASS_NAME_( \
test_suite_name, test_name)>()); \
return 0; \
} \
static int gtest_registering_dummy_ GTEST_ATTRIBUTE_UNUSED_; \
GTEST_DISALLOW_COPY_AND_ASSIGN_(GTEST_TEST_CLASS_NAME_(test_suite_name, \
test_name)); \
}; \
int GTEST_TEST_CLASS_NAME_(test_suite_name, \
test_name)::gtest_registering_dummy_ = \
GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::AddToRegistry(); \
void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
#define GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)
Definition: gtest-internal.h:1398
ParameterizedTestSuiteInfo< TestSuite > * GetTestSuitePatternHolder(const char *test_suite_name, CodeLocation code_location)
Definition: gtest-param-util.h:666
static UnitTest * GetInstance()
Definition: gtest.cc:4569
internal::ParameterizedTestSuiteRegistry & parameterized_test_registry() GTEST_LOCK_EXCLUDED_(mutex_)
Definition: gtest.cc:4916
#define GTEST_EXPAND_ (   arg)    arg
#define GTEST_GET_FIRST_ (   first,
  ... 
)    first
#define GTEST_GET_SECOND_ (   first,
  second,
  ... 
)    second
#define INSTANTIATE_TEST_SUITE_P (   prefix,
  test_suite_name,
  ... 
)
#define INSTANTIATE_TEST_CASE_P
Value:
static_assert(::testing::internal::InstantiateTestCase_P_IsDeprecated(), \
""); \
#define INSTANTIATE_TEST_SUITE_P(prefix, test_suite_name,...)
Definition: gtest-param-test.h:460