Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
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, typename RvalueRef< typename Function< F >::ArgumentTuple >::type args, const std::string &call_description)
 
template<typename F >
static ActionResultHolderPerformAction (const Action< F > &action, typename RvalueRef< typename Function< F >::ArgumentTuple >::type args)
 

Detailed Description

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

Definition at line 1384 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,
typename RvalueRef< typename Function< F >::ArgumentTuple >::type args )
inlinestatic

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

1414 {
1415 return new ActionResultHolder(
1416 Wrapper(action.Perform(internal::move(args))));
1417 }
const T & move(const T &t)

◆ PerformDefaultAction()

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

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

1404 {
1405 return new ActionResultHolder(Wrapper(func_mocker->PerformDefaultAction(
1406 internal::move(args), call_description)));
1407 }
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 1392 of file gmock-spec-builders.h.

1392 {
1393 *os << "\n Returns: ";
1394 // T may be a reference type, so we don't use UniversalPrint().
1396 }
static void Print(const T &value, ::std::ostream *os)
os_t os

◆ Unwrap()

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

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

1387 {
1388 return result_.Unwrap();
1389 }

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