GrPPI  1.0
Generic and Reusable Parallel Pattern Interface
Namespaces | Classes | Typedefs | Functions | Variables
testing Namespace Reference

Namespaces

 internal
 

Classes

class  DefaultValue
 
class  DefaultValue< T & >
 
class  DefaultValue< void >
 
class  ActionInterface
 
class  Action
 
class  PolymorphicAction
 
class  NiceMock
 
class  NaggyMock
 
class  StrictMock
 
class  Matcher
 
class  Message
 
class  Test
 
class  TestProperty
 
class  TestResult
 
class  TestInfo
 
class  TestSuite
 
class  Environment
 
class  TestEventListener
 
class  EmptyTestEventListener
 
class  TestEventListeners
 
class  UnitTest
 
class  WithParamInterface
 
class  TestWithParam
 
class  ScopedTrace
 
struct  TestParamInfo
 
struct  PrintToStringParamName
 

Typedefs

typedef internal::IgnoredValue Unused
 
typedef internal::TimeInMillis TimeInMillis
 
template<typename... Ts>
using Types = internal::ProxyTypeList< Ts... >
 

Functions

template<typename F >
Action< F > MakeAction (ActionInterface< F > *impl)
 
template<typename Impl >
PolymorphicAction< Impl > MakePolymorphicAction (const Impl &impl)
 
template<typename... Action>
internal::DoAllAction< typename std::decay< Action >::type... > DoAll (Action &&... action)
 
template<size_t k, typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type, k > WithArg (InnerAction &&action)
 
template<size_t k, size_t... ks, typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type, k, ks... > WithArgs (InnerAction &&action)
 
template<typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type > WithoutArgs (InnerAction &&action)
 
template<typename R >
internal::ReturnAction< R > Return (R value)
 
PolymorphicAction< internal::ReturnNullActionReturnNull ()
 
PolymorphicAction< internal::ReturnVoidActionReturn ()
 
template<typename R >
internal::ReturnRefAction< R > ReturnRef (R &x)
 
template<typename R , R * = nullptr>
internal::ReturnRefAction< R > ReturnRef (R &&)=delete
 
template<typename R >
internal::ReturnRefOfCopyAction< R > ReturnRefOfCopy (const R &x)
 
template<typename R >
internal::ByMoveWrapper< R > ByMove (R x)
 
template<typename T >
internal::ReturnRoundRobinAction< T > ReturnRoundRobin (std::vector< T > vals)
 
template<typename T >
internal::ReturnRoundRobinAction< T > ReturnRoundRobin (std::initializer_list< T > vals)
 
internal::DoDefaultAction DoDefault ()
 
template<size_t N, typename T >
internal::SetArgumentPointeeAction< N, T > SetArgPointee (T value)
 
template<size_t N, typename T >
internal::SetArgumentPointeeAction< N, T > SetArgumentPointee (T value)
 
template<typename T1 , typename T2 >
PolymorphicAction< internal::AssignAction< T1, T2 > > Assign (T1 *ptr, T2 val)
 
template<typename T >
PolymorphicAction< internal::SetErrnoAndReturnAction< T > > SetErrnoAndReturn (int errval, T result)
 
template<typename FunctionImpl >
std::decay< FunctionImpl >::type Invoke (FunctionImpl &&function_impl)
 
template<class Class , typename MethodPtr >
internal::InvokeMethodAction< Class, MethodPtr > Invoke (Class *obj_ptr, MethodPtr method_ptr)
 
template<typename FunctionImpl >
internal::InvokeWithoutArgsAction< typename std::decay< FunctionImpl >::type > InvokeWithoutArgs (FunctionImpl function_impl)
 
template<class Class , typename MethodPtr >
internal::InvokeMethodWithoutArgsAction< Class, MethodPtr > InvokeWithoutArgs (Class *obj_ptr, MethodPtr method_ptr)
 
template<typename A >
internal::IgnoreResultAction< A > IgnoreResult (const A &an_action)
 
template<typename T >
inline ::std::reference_wrapper< T > ByRef (T &l_value)
 
template<typename T , typename... Params>
internal::ReturnNewAction< T, typename std::decay< Params >::type... > ReturnNew (Params &&... params)
 
template<size_t k>
internal::ReturnArgAction< k > ReturnArg ()
 
template<size_t k, typename Ptr >
internal::SaveArgAction< k, Ptr > SaveArg (Ptr pointer)
 
template<size_t k, typename Ptr >
internal::SaveArgPointeeAction< k, Ptr > SaveArgPointee (Ptr pointer)
 
template<size_t k, typename T >
internal::SetArgRefereeAction< k, typename std::decay< T >::type > SetArgReferee (T &&value)
 
template<size_t k, typename I1 , typename I2 >
internal::SetArrayArgumentAction< k, I1, I2 > SetArrayArgument (I1 first, I2 last)
 
template<size_t k>
internal::DeleteArgAction< k > DeleteArg ()
 
template<typename Ptr >
internal::ReturnPointeeAction< Ptr > ReturnPointee (Ptr pointer)
 
template<std::size_t index, typename... Params>
internal::InvokeArgumentAction< index, typename std::decay< Params >::type... > InvokeArgument (Params &&... params)
 
 MATCHER (IsEmpty, negation ? "isn't empty" :"is empty")
 
 MATCHER (IsTrue, negation ? "is false" :"is true")
 
 MATCHER (IsFalse, negation ? "is true" :"is false")
 
 GMOCK_DECLARE_bool_ (catch_leaked_mocks)
 
 GMOCK_DECLARE_string_ (verbose)
 
 GMOCK_DECLARE_int32_ (default_mock_behavior)
 
GTEST_API_ void InitGoogleMock (int *argc, char **argv)
 
GTEST_API_ void InitGoogleMock (int *argc, wchar_t **argv)
 
GTEST_API_ void InitGoogleMock ()
 
 GTEST_DECLARE_string_ (death_test_style)
 
std::ostream & operator<< (std::ostream &os, const Message &sb)
 
template<typename T , typename IncrementT >
internal::ParamGenerator< T > Range (T start, T end, IncrementT step)
 
template<typename T >
internal::ParamGenerator< T > Range (T start, T end)
 
template<typename ForwardIterator >
internal::ParamGenerator< typename std::iterator_traits< ForwardIterator >::value_type > ValuesIn (ForwardIterator begin, ForwardIterator end)
 
template<typename T , size_t N>
internal::ParamGenerator< T > ValuesIn (const T(&array)[N])
 
template<class Container >
internal::ParamGenerator< typename Container::value_type > ValuesIn (const Container &container)
 
template<typename... T>
internal::ValueArray< T... > Values (T... v)
 
internal::ParamGenerator< bool > Bool ()
 
template<typename... Generator>
internal::CartesianProductHolder< Generator... > Combine (const Generator &... g)
 
template<typename T >
::std::string PrintToString (const T &value)
 
EnvironmentAddGlobalTestEnvironment (Environment *env)
 
GTEST_API_ void InitGoogleTest (int *argc, char **argv)
 
GTEST_API_ void InitGoogleTest (int *argc, wchar_t **argv)
 
GTEST_API_ void InitGoogleTest ()
 
GTEST_API_ AssertionResult IsSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
GTEST_API_ AssertionResult IsSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
GTEST_API_ AssertionResult IsNotSubstring (const char *needle_expr, const char *haystack_expr, const char *needle, const char *haystack)
 
GTEST_API_ AssertionResult IsNotSubstring (const char *needle_expr, const char *haystack_expr, const wchar_t *needle, const wchar_t *haystack)
 
GTEST_API_ AssertionResult IsSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
GTEST_API_ AssertionResult IsNotSubstring (const char *needle_expr, const char *haystack_expr, const ::std::string &needle, const ::std::string &haystack)
 
GTEST_API_ AssertionResult FloatLE (const char *expr1, const char *expr2, float val1, float val2)
 
GTEST_API_ AssertionResult DoubleLE (const char *expr1, const char *expr2, double val1, double val2)
 
template<typename T1 , typename T2 >
constexpr bool StaticAssertTypeEq () noexcept
 
GTEST_API_ std::string TempDir ()
 
template<int &... ExplicitParameterBarrier, typename Factory >
TestInfoRegisterTest (const char *test_suite_name, const char *test_name, const char *type_param, const char *value_param, const char *file, int line, Factory factory)
 
template<typename Pred , typename T1 >
AssertionResult AssertPred1Helper (const char *pred_text, const char *e1, Pred pred, const T1 &v1)
 
template<typename Pred , typename T1 , typename T2 >
AssertionResult AssertPred2Helper (const char *pred_text, const char *e1, const char *e2, Pred pred, const T1 &v1, const T2 &v2)
 
template<typename Pred , typename T1 , typename T2 , typename T3 >
AssertionResult AssertPred3Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3)
 
template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 >
AssertionResult AssertPred4Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4)
 
template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
AssertionResult AssertPred5Helper (const char *pred_text, const char *e1, const char *e2, const char *e3, const char *e4, const char *e5, Pred pred, const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4, const T5 &v5)
 

Variables

class GTEST_API_ testing::ScopedTrace GTEST_ATTRIBUTE_UNUSED_
 

Typedef Documentation

◆ TimeInMillis

◆ Types

template<typename... Ts>
using testing::Types = typedef internal::ProxyTypeList<Ts...>

◆ Unused

Function Documentation

◆ AddGlobalTestEnvironment()

Environment * testing::AddGlobalTestEnvironment ( Environment env)
inline

◆ AssertPred1Helper()

template<typename Pred , typename T1 >
AssertionResult testing::AssertPred1Helper ( const char *  pred_text,
const char *  e1,
Pred  pred,
const T1 &  v1 
)

◆ AssertPred2Helper()

template<typename Pred , typename T1 , typename T2 >
AssertionResult testing::AssertPred2Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
Pred  pred,
const T1 &  v1,
const T2 &  v2 
)

◆ AssertPred3Helper()

template<typename Pred , typename T1 , typename T2 , typename T3 >
AssertionResult testing::AssertPred3Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
const char *  e3,
Pred  pred,
const T1 &  v1,
const T2 &  v2,
const T3 &  v3 
)

◆ AssertPred4Helper()

template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 >
AssertionResult testing::AssertPred4Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
const char *  e3,
const char *  e4,
Pred  pred,
const T1 &  v1,
const T2 &  v2,
const T3 &  v3,
const T4 &  v4 
)

◆ AssertPred5Helper()

template<typename Pred , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
AssertionResult testing::AssertPred5Helper ( const char *  pred_text,
const char *  e1,
const char *  e2,
const char *  e3,
const char *  e4,
const char *  e5,
Pred  pred,
const T1 &  v1,
const T2 &  v2,
const T3 &  v3,
const T4 &  v4,
const T5 &  v5 
)

◆ Assign()

template<typename T1 , typename T2 >
PolymorphicAction< internal::AssignAction< T1, T2 > > testing::Assign ( T1 *  ptr,
T2  val 
)

◆ Bool()

internal::ParamGenerator< bool > testing::Bool ( )
inline

◆ ByMove()

template<typename R >
internal::ByMoveWrapper< R > testing::ByMove ( x)

◆ ByRef()

template<typename T >
inline ::std::reference_wrapper<T> testing::ByRef ( T &  l_value)

◆ Combine()

template<typename... Generator>
internal::CartesianProductHolder< Generator... > testing::Combine ( const Generator &...  g)

◆ DeleteArg()

template<size_t k>
internal::DeleteArgAction< k > testing::DeleteArg ( )

◆ DoAll()

template<typename... Action>
internal::DoAllAction< typename std::decay< Action >::type... > testing::DoAll ( Action &&...  action)

◆ DoDefault()

internal::DoDefaultAction testing::DoDefault ( )
inline

◆ DoubleLE()

GTEST_API_ AssertionResult testing::DoubleLE ( const char *  expr1,
const char *  expr2,
double  val1,
double  val2 
)

◆ FloatLE()

GTEST_API_ AssertionResult testing::FloatLE ( const char *  expr1,
const char *  expr2,
float  val1,
float  val2 
)

◆ GMOCK_DECLARE_bool_()

testing::GMOCK_DECLARE_bool_ ( catch_leaked_mocks  )

◆ GMOCK_DECLARE_int32_()

testing::GMOCK_DECLARE_int32_ ( default_mock_behavior  )

◆ GMOCK_DECLARE_string_()

testing::GMOCK_DECLARE_string_ ( verbose  )

◆ GTEST_DECLARE_string_()

testing::GTEST_DECLARE_string_ ( death_test_style  )

◆ IgnoreResult()

template<typename A >
internal::IgnoreResultAction< A > testing::IgnoreResult ( const A &  an_action)
inline

◆ InitGoogleMock() [1/3]

GTEST_API_ void testing::InitGoogleMock ( )

◆ InitGoogleMock() [2/3]

GTEST_API_ void testing::InitGoogleMock ( int *  argc,
char **  argv 
)

◆ InitGoogleMock() [3/3]

GTEST_API_ void testing::InitGoogleMock ( int *  argc,
wchar_t **  argv 
)

◆ InitGoogleTest() [1/3]

GTEST_API_ void testing::InitGoogleTest ( )

◆ InitGoogleTest() [2/3]

GTEST_API_ void testing::InitGoogleTest ( int *  argc,
char **  argv 
)

◆ InitGoogleTest() [3/3]

GTEST_API_ void testing::InitGoogleTest ( int *  argc,
wchar_t **  argv 
)

◆ Invoke() [1/2]

template<class Class , typename MethodPtr >
internal::InvokeMethodAction< Class, MethodPtr > testing::Invoke ( Class *  obj_ptr,
MethodPtr  method_ptr 
)

◆ Invoke() [2/2]

template<typename FunctionImpl >
std::decay< FunctionImpl >::type testing::Invoke ( FunctionImpl &&  function_impl)

◆ InvokeArgument()

template<std::size_t index, typename... Params>
internal::InvokeArgumentAction< index, typename std::decay< Params >::type... > testing::InvokeArgument ( Params &&...  params)

◆ InvokeWithoutArgs() [1/2]

template<class Class , typename MethodPtr >
internal::InvokeMethodWithoutArgsAction< Class, MethodPtr > testing::InvokeWithoutArgs ( Class *  obj_ptr,
MethodPtr  method_ptr 
)

◆ InvokeWithoutArgs() [2/2]

template<typename FunctionImpl >
internal::InvokeWithoutArgsAction< typename std::decay< FunctionImpl >::type > testing::InvokeWithoutArgs ( FunctionImpl  function_impl)

◆ IsNotSubstring() [1/3]

GTEST_API_ AssertionResult testing::IsNotSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const ::std::string &  needle,
const ::std::string &  haystack 
)

◆ IsNotSubstring() [2/3]

GTEST_API_ AssertionResult testing::IsNotSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const char *  needle,
const char *  haystack 
)

◆ IsNotSubstring() [3/3]

GTEST_API_ AssertionResult testing::IsNotSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const wchar_t *  needle,
const wchar_t *  haystack 
)

◆ IsSubstring() [1/3]

GTEST_API_ AssertionResult testing::IsSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const ::std::string &  needle,
const ::std::string &  haystack 
)

◆ IsSubstring() [2/3]

GTEST_API_ AssertionResult testing::IsSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const char *  needle,
const char *  haystack 
)

◆ IsSubstring() [3/3]

GTEST_API_ AssertionResult testing::IsSubstring ( const char *  needle_expr,
const char *  haystack_expr,
const wchar_t *  needle,
const wchar_t *  haystack 
)

◆ MakeAction()

template<typename F >
Action< F > testing::MakeAction ( ActionInterface< F > *  impl)

◆ MakePolymorphicAction()

template<typename Impl >
PolymorphicAction< Impl > testing::MakePolymorphicAction ( const Impl &  impl)
inline

◆ MATCHER() [1/3]

testing::MATCHER ( IsEmpty  ,
negation ? "isn't empty" :"is empty"   
)

◆ MATCHER() [2/3]

testing::MATCHER ( IsFalse  ,
negation ? "is true" :"is false"   
)

◆ MATCHER() [3/3]

testing::MATCHER ( IsTrue  ,
negation ? "is false" :"is true"   
)

◆ operator<<()

std::ostream & testing::operator<< ( std::ostream &  os,
const Message sb 
)
inline

◆ PrintToString()

template<typename T >
::std::string testing::PrintToString ( const T &  value)

◆ Range() [1/2]

template<typename T >
internal::ParamGenerator< T > testing::Range ( start,
end 
)

◆ Range() [2/2]

template<typename T , typename IncrementT >
internal::ParamGenerator< T > testing::Range ( start,
end,
IncrementT  step 
)

◆ RegisterTest()

template<int &... ExplicitParameterBarrier, typename Factory >
TestInfo * testing::RegisterTest ( const char *  test_suite_name,
const char *  test_name,
const char *  type_param,
const char *  value_param,
const char *  file,
int  line,
Factory  factory 
)

◆ Return() [1/2]

PolymorphicAction< internal::ReturnVoidAction > testing::Return ( )
inline

◆ Return() [2/2]

template<typename R >
internal::ReturnAction< R > testing::Return ( value)

◆ ReturnArg()

template<size_t k>
internal::ReturnArgAction< k > testing::ReturnArg ( )

◆ ReturnNew()

template<typename T , typename... Params>
internal::ReturnNewAction< T, typename std::decay< Params >::type... > testing::ReturnNew ( Params &&...  params)

◆ ReturnNull()

PolymorphicAction< internal::ReturnNullAction > testing::ReturnNull ( )
inline

◆ ReturnPointee()

template<typename Ptr >
internal::ReturnPointeeAction< Ptr > testing::ReturnPointee ( Ptr  pointer)

◆ ReturnRef() [1/2]

template<typename R , R * = nullptr>
internal::ReturnRefAction< R > testing::ReturnRef ( R &&  )
delete

◆ ReturnRef() [2/2]

template<typename R >
internal::ReturnRefAction< R > testing::ReturnRef ( R &  x)
inline

◆ ReturnRefOfCopy()

template<typename R >
internal::ReturnRefOfCopyAction< R > testing::ReturnRefOfCopy ( const R &  x)
inline

◆ ReturnRoundRobin() [1/2]

template<typename T >
internal::ReturnRoundRobinAction< T > testing::ReturnRoundRobin ( std::initializer_list< T >  vals)

◆ ReturnRoundRobin() [2/2]

template<typename T >
internal::ReturnRoundRobinAction< T > testing::ReturnRoundRobin ( std::vector< T >  vals)

◆ SaveArg()

template<size_t k, typename Ptr >
internal::SaveArgAction< k, Ptr > testing::SaveArg ( Ptr  pointer)

◆ SaveArgPointee()

template<size_t k, typename Ptr >
internal::SaveArgPointeeAction< k, Ptr > testing::SaveArgPointee ( Ptr  pointer)

◆ SetArgPointee()

template<size_t N, typename T >
internal::SetArgumentPointeeAction< N, T > testing::SetArgPointee ( value)

◆ SetArgReferee()

template<size_t k, typename T >
internal::SetArgRefereeAction< k, typename std::decay< T >::type > testing::SetArgReferee ( T &&  value)

◆ SetArgumentPointee()

template<size_t N, typename T >
internal::SetArgumentPointeeAction< N, T > testing::SetArgumentPointee ( value)

◆ SetArrayArgument()

template<size_t k, typename I1 , typename I2 >
internal::SetArrayArgumentAction< k, I1, I2 > testing::SetArrayArgument ( I1  first,
I2  last 
)

◆ SetErrnoAndReturn()

template<typename T >
PolymorphicAction< internal::SetErrnoAndReturnAction< T > > testing::SetErrnoAndReturn ( int  errval,
result 
)

◆ StaticAssertTypeEq()

template<typename T1 , typename T2 >
constexpr bool testing::StaticAssertTypeEq ( )
constexprnoexcept

◆ TempDir()

GTEST_API_ std::string testing::TempDir ( )

◆ Values()

template<typename... T>
internal::ValueArray< T... > testing::Values ( T...  v)

◆ ValuesIn() [1/3]

template<class Container >
internal::ParamGenerator< typename Container::value_type > testing::ValuesIn ( const Container &  container)

◆ ValuesIn() [2/3]

template<typename T , size_t N>
internal::ParamGenerator< T > testing::ValuesIn ( const T(&)  array[N])

◆ ValuesIn() [3/3]

template<typename ForwardIterator >
internal::ParamGenerator< typename std::iterator_traits< ForwardIterator >::value_type > testing::ValuesIn ( ForwardIterator  begin,
ForwardIterator  end 
)

◆ WithArg()

template<size_t k, typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type, k > testing::WithArg ( InnerAction &&  action)

◆ WithArgs()

template<size_t k, size_t... ks, typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type, k, ks... > testing::WithArgs ( InnerAction &&  action)

◆ WithoutArgs()

template<typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type > testing::WithoutArgs ( InnerAction &&  action)

Variable Documentation

◆ GTEST_ATTRIBUTE_UNUSED_

class GTEST_API_ testing::ScopedTrace testing::GTEST_ATTRIBUTE_UNUSED_