proxygen
gmock-actions.h File Reference
#include <errno.h>
#include <algorithm>
#include <string>
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-port.h"

Go to the source code of this file.

Classes

class  testing::internal::ActionAdaptor< F1, F2 >
 
struct  testing::internal::BuiltInDefaultValueGetter< T, kDefaultConstructible >
 
struct  testing::internal::BuiltInDefaultValueGetter< T, false >
 
class  testing::internal::BuiltInDefaultValue< T >
 
class  testing::internal::BuiltInDefaultValue< const T >
 
class  testing::internal::BuiltInDefaultValue< T * >
 
class  testing::internal::BuiltInDefaultValue< void >
 
class  testing::internal::BuiltInDefaultValue< ::std::string >
 
class  testing::internal::BuiltInDefaultValue< bool >
 
class  testing::internal::BuiltInDefaultValue< unsigned char >
 
class  testing::internal::BuiltInDefaultValue< signed char >
 
class  testing::internal::BuiltInDefaultValue< char >
 
class  testing::internal::BuiltInDefaultValue< unsigned short >
 
class  testing::internal::BuiltInDefaultValue< signed short >
 
class  testing::internal::BuiltInDefaultValue< unsigned int >
 
class  testing::internal::BuiltInDefaultValue< signed int >
 
class  testing::internal::BuiltInDefaultValue< unsigned long >
 
class  testing::internal::BuiltInDefaultValue< signed long >
 
class  testing::internal::BuiltInDefaultValue< UInt64 >
 
class  testing::internal::BuiltInDefaultValue< Int64 >
 
class  testing::internal::BuiltInDefaultValue< float >
 
class  testing::internal::BuiltInDefaultValue< double >
 
class  testing::DefaultValue< T >
 
class  testing::DefaultValue< T >::ValueProducer
 
class  testing::DefaultValue< T >::FixedValueProducer
 
class  testing::DefaultValue< T >::FactoryValueProducer
 
class  testing::DefaultValue< T & >
 
class  testing::DefaultValue< void >
 
class  testing::ActionInterface< F >
 
class  testing::Action< F >
 
class  testing::PolymorphicAction< Impl >
 
class  testing::PolymorphicAction< Impl >::MonomorphicImpl< F >
 
class  testing::internal::ActionAdaptor< F1, F2 >
 
struct  testing::internal::ByMoveWrapper< T >
 
class  testing::internal::ReturnAction< R >
 
class  testing::internal::ReturnAction< R >::Impl< R_, F >
 
class  testing::internal::ReturnAction< R >::Impl< ByMoveWrapper< R_ >, F >
 
class  testing::internal::ReturnNullAction
 
class  testing::internal::ReturnVoidAction
 
class  testing::internal::ReturnRefAction< T >
 
class  testing::internal::ReturnRefAction< T >::Impl< F >
 
class  testing::internal::ReturnRefOfCopyAction< T >
 
class  testing::internal::ReturnRefOfCopyAction< T >::Impl< F >
 
class  testing::internal::DoDefaultAction
 
class  testing::internal::AssignAction< T1, T2 >
 
class  testing::internal::SetErrnoAndReturnAction< T >
 
class  testing::internal::SetArgumentPointeeAction< N, A, kIsProto >
 
class  testing::internal::SetArgumentPointeeAction< N, Proto, true >
 
class  testing::internal::InvokeWithoutArgsAction< FunctionImpl >
 
class  testing::internal::InvokeMethodWithoutArgsAction< Class, MethodPtr >
 
class  testing::internal::IgnoreResultAction< A >
 
class  testing::internal::IgnoreResultAction< A >::Impl< F >
 
class  testing::internal::ReferenceWrapper< T >
 
class  testing::internal::DoBothAction< Action1, Action2 >
 
class  testing::internal::DoBothAction< Action1, Action2 >::Impl< F >
 

Namespaces

 testing
 
 testing::internal
 

Macros

#define GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_(type, value)
 

Functions

template<typename F >
Action< F > testing::MakeAction (ActionInterface< F > *impl)
 
template<typename Impl >
PolymorphicAction< Impl > testing::MakePolymorphicAction (const Impl &impl)
 
template<typename T >
void testing::internal::PrintTo (const ReferenceWrapper< T > &ref,::std::ostream *os)
 
template<typename R >
internal::ReturnAction< R > testing::Return (R value)
 
PolymorphicAction< internal::ReturnNullAction > testing::ReturnNull ()
 
PolymorphicAction< internal::ReturnVoidAction > testing::Return ()
 
template<typename R >
internal::ReturnRefAction< R > testing::ReturnRef (R &x)
 
template<typename R >
internal::ReturnRefOfCopyAction< R > testing::ReturnRefOfCopy (const R &x)
 
template<typename R >
internal::ByMoveWrapper< R > testing::ByMove (R x)
 
internal::DoDefaultAction testing::DoDefault ()
 
template<size_t N, typename T >
PolymorphicAction< internal::SetArgumentPointeeAction< N, T, internal::IsAProtocolMessage< T >::value > > testing::SetArgPointee (const T &x)
 
template<size_t N>
PolymorphicAction< internal::SetArgumentPointeeAction< N, const char *, false > > testing::SetArgPointee (const char *p)
 
template<size_t N>
PolymorphicAction< internal::SetArgumentPointeeAction< N, const wchar_t *, false > > testing::SetArgPointee (const wchar_t *p)
 
template<size_t N, typename T >
PolymorphicAction< internal::SetArgumentPointeeAction< N, T, internal::IsAProtocolMessage< T >::value > > testing::SetArgumentPointee (const T &x)
 
template<typename T1 , typename T2 >
PolymorphicAction< internal::AssignAction< T1, T2 > > testing::Assign (T1 *ptr, T2 val)
 
template<typename T >
PolymorphicAction< internal::SetErrnoAndReturnAction< T > > testing::SetErrnoAndReturn (int errval, T result)
 
template<typename FunctionImpl >
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > testing::InvokeWithoutArgs (FunctionImpl function_impl)
 
template<class Class , typename MethodPtr >
PolymorphicAction< internal::InvokeMethodWithoutArgsAction< Class, MethodPtr > > testing::InvokeWithoutArgs (Class *obj_ptr, MethodPtr method_ptr)
 
template<typename A >
internal::IgnoreResultAction< Atesting::IgnoreResult (const A &an_action)
 
template<typename T >
internal::ReferenceWrapper< Ttesting::ByRef (T &l_value)
 

Macro Definition Documentation

#define GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (   type,
  value 
)
Value:
template <> \
class BuiltInDefaultValue<type> { \
public: \
static bool Exists() { return true; } \
static type Get() { return value; } \
}
PskType type
static const char *const value
Definition: Conv.cpp:50

Definition at line 143 of file gmock-actions.h.