Classes | Namespaces | Macros | Functions
protobuf/third_party/googletest/googlemock/include/gmock/gmock-actions.h File Reference
#include <errno.h>
#include <algorithm>
#include <functional>
#include <memory>
#include <string>
#include <type_traits>
#include <utility>
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-port.h"
Include dependency graph for protobuf/third_party/googletest/googlemock/include/gmock/gmock-actions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  testing::Action< F >
 
struct  testing::Action< F >::ActionAdapter
 
class  testing::ActionInterface< F >
 
class  testing::internal::AssignAction< T1, T2 >
 
class  testing::internal::BuiltInDefaultValue< T >
 
class  testing::internal::BuiltInDefaultValue< const T >
 
class  testing::internal::BuiltInDefaultValue< T * >
 
struct  testing::internal::BuiltInDefaultValueGetter< T, kDefaultConstructible >
 
struct  testing::internal::BuiltInDefaultValueGetter< T, false >
 
struct  testing::internal::ByMoveWrapper< T >
 
class  testing::DefaultValue< T >
 
class  testing::DefaultValue< T & >
 
class  testing::DefaultValue< void >
 
struct  testing::internal::DoAllAction< Actions >
 
class  testing::internal::DoDefaultAction
 
class  testing::DefaultValue< T >::FactoryValueProducer
 
class  testing::DefaultValue< T >::FixedValueProducer
 
class  testing::internal::IgnoreResultAction< A >
 
class  testing::internal::IgnoreResultAction< A >::Impl< F >
 
class  testing::internal::ReturnRefOfCopyAction< T >::Impl< F >
 
class  testing::internal::ReturnRefAction< T >::Impl< F >
 
class  testing::internal::ReturnAction< R >::Impl< R_, F >
 
class  testing::internal::ReturnAction< R >::Impl< ByMoveWrapper< R_ >, F >
 
struct  testing::internal::InvokeMethodAction< Class, MethodPtr >
 
struct  testing::internal::InvokeMethodWithoutArgsAction< Class, MethodPtr >
 
struct  testing::internal::InvokeWithoutArgsAction< FunctionImpl >
 
class  testing::PolymorphicAction< Impl >::MonomorphicImpl< F >
 
class  testing::PolymorphicAction< Impl >
 
class  testing::internal::ReturnAction< R >
 
class  testing::internal::ReturnNullAction
 
class  testing::internal::ReturnRefAction< T >
 
class  testing::internal::ReturnRefOfCopyAction< T >
 
class  testing::internal::ReturnVoidAction
 
class  testing::internal::SetArgumentPointeeAction< N, A, typename >
 
class  testing::internal::SetArgumentPointeeAction< N, Proto, true >
 
class  testing::internal::SetErrnoAndReturnAction< T >
 
class  testing::DefaultValue< T >::ValueProducer
 
struct  testing::internal::WithArgsAction< InnerAction, I >
 

Namespaces

 testing
 
 testing::internal
 

Macros

#define GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_(type, value)
 

Functions

template<typename T1 , typename T2 >
PolymorphicAction< internal::AssignAction< T1, T2 > > testing::Assign (T1 *ptr, T2 val)
 
template<typename R >
internal::ByMoveWrapper< R > testing::ByMove (R x)
 
template<typename T >
inline ::std::reference_wrapper< Ttesting::ByRef (T &l_value)
 
template<typename... Action>
internal::DoAllAction< typename std::decay< Action >::type... > testing::DoAll (Action &&... action)
 
internal::DoDefaultAction testing::DoDefault ()
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (::std::string, "")
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (bool, false)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (char, '\0')
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (double, 0)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (float, 0)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (Int64, 0)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed char, '\0')
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed int, 0)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed long, 0L)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (signed short, 0)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (UInt64, 0)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned char, '\0')
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned int, 0U)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned long, 0UL)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (unsigned short, 0U)
 
 testing::internal::GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_ (void,)
 
template<typename A >
internal::IgnoreResultAction< Atesting::IgnoreResult (const A &an_action)
 
template<class Class , typename MethodPtr >
internal::InvokeMethodAction< Class, MethodPtr > testing::Invoke (Class *obj_ptr, MethodPtr method_ptr)
 
template<typename FunctionImpl >
std::decay< FunctionImpl >::type testing::Invoke (FunctionImpl &&function_impl)
 
template<class Class , typename MethodPtr >
internal::InvokeMethodWithoutArgsAction< Class, MethodPtr > testing::InvokeWithoutArgs (Class *obj_ptr, MethodPtr method_ptr)
 
template<typename FunctionImpl >
internal::InvokeWithoutArgsAction< typename std::decay< FunctionImpl >::typetesting::InvokeWithoutArgs (FunctionImpl function_impl)
 
template<typename F >
Action< Ftesting::MakeAction (ActionInterface< F > *impl)
 
template<typename Impl >
PolymorphicAction< Impl > testing::MakePolymorphicAction (const Impl &impl)
 
PolymorphicAction< internal::ReturnVoidAction > testing::Return ()
 
template<typename R >
internal::ReturnAction< R > testing::Return (R value)
 
PolymorphicAction< internal::ReturnNullAction > testing::ReturnNull ()
 
template<typename R >
internal::ReturnRefAction< R > testing::ReturnRef (R &x)
 
template<typename R >
internal::ReturnRefOfCopyAction< R > testing::ReturnRefOfCopy (const R &x)
 
template<size_t N>
PolymorphicAction< internal::SetArgumentPointeeAction< N, const char *, false > > testing::SetArgPointee (const char *p)
 
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 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 T >
PolymorphicAction< internal::SetErrnoAndReturnAction< T > > testing::SetErrnoAndReturn (int errval, T result)
 
template<size_t k, typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type, k > testing::WithArg (InnerAction &&action)
 
template<size_t k, size_t... ks, typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::type, k, ks... > testing::WithArgs (InnerAction &&action)
 
template<typename InnerAction >
internal::WithArgsAction< typename std::decay< InnerAction >::typetesting::WithoutArgs (InnerAction &&action)
 

Macro Definition Documentation

◆ GMOCK_DEFINE_DEFAULT_ACTION_FOR_RETURN_TYPE_

#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; } \
}

Definition at line 133 of file protobuf/third_party/googletest/googlemock/include/gmock/gmock-actions.h.

absl::synchronization_internal::Get
static GraphId Get(const IdMap &id, int num)
Definition: abseil-cpp/absl/synchronization/internal/graphcycles_test.cc:44
value
const char * value
Definition: hpack_parser_table.cc:165
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37


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