Electroneum
testing::internal::ActionResultHolder< T > Class Template Reference

#include <gmock-spec-builders.h>

Inheritance diagram for testing::internal::ActionResultHolder< T >:
Collaboration diagram for testing::internal::ActionResultHolder< T >:

Public Member Functions

T Unwrap ()
 
virtual void PrintAsActionResult (::std::ostream *os) const
 
- Public Member Functions inherited from testing::internal::UntypedActionResultHolderBase
virtual ~UntypedActionResultHolderBase ()
 

Static Public Member Functions

template<typename F >
static ActionResultHolderPerformDefaultAction (const FunctionMockerBase< F > *func_mocker, const typename Function< F >::ArgumentTuple &args, const string &call_description)
 
template<typename F >
static ActionResultHolderPerformAction (const Action< F > &action, const typename Function< F >::ArgumentTuple &args)
 

Detailed Description

template<typename T>
class testing::internal::ActionResultHolder< T >

Definition at line 1372 of file gmock-spec-builders.h.

Member Function Documentation

◆ PerformAction()

template<typename T >
template<typename F >
static ActionResultHolder* testing::internal::ActionResultHolder< T >::PerformAction ( const Action< F > &  action,
const typename Function< F >::ArgumentTuple &  args 
)
inlinestatic

Definition at line 1401 of file gmock-spec-builders.h.

1402  {
1403  return new ActionResultHolder(Wrapper(action.Perform(args)));
1404  }

◆ PerformDefaultAction()

template<typename T >
template<typename F >
static ActionResultHolder* testing::internal::ActionResultHolder< T >::PerformDefaultAction ( const FunctionMockerBase< F > *  func_mocker,
const typename Function< F >::ArgumentTuple &  args,
const string call_description 
)
inlinestatic

Definition at line 1389 of file gmock-spec-builders.h.

1392  {
1393  return new ActionResultHolder(Wrapper(
1394  func_mocker->PerformDefaultAction(args, call_description)));
1395  }
Here is the call graph for this function:

◆ PrintAsActionResult()

template<typename T >
virtual void testing::internal::ActionResultHolder< T >::PrintAsActionResult ( ::std::ostream *  os) const
inlinevirtual

Implements testing::internal::UntypedActionResultHolderBase.

Definition at line 1380 of file gmock-spec-builders.h.

1380  {
1381  *os << "\n Returns: ";
1382  // T may be a reference type, so we don't use UniversalPrint().
1383  UniversalPrinter<T>::Print(result_.Peek(), os);
1384  }
static void Print(const T &value, ::std::ostream *os)
Here is the call graph for this function:

◆ Unwrap()

template<typename T >
T testing::internal::ActionResultHolder< T >::Unwrap ( )
inline

Definition at line 1375 of file gmock-spec-builders.h.

1375  {
1376  return result_.Unwrap();
1377  }

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