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

#include <gmock-spec-builders.h>

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

Public Member Functions

T Unwrap ()
 
virtual void PrintAsActionResult (::std::ostream *os) const
 
T Unwrap ()
 
virtual void PrintAsActionResult (::std::ostream *os) const
 
T Unwrap ()
 
virtual void PrintAsActionResult (::std::ostream *os) const
 
- Public Member Functions inherited from testing::internal::UntypedActionResultHolderBase
virtual ~UntypedActionResultHolderBase ()
 
virtual ~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)
 
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)
 
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)
 

Private Types

typedef ReferenceOrValueWrapper< TWrapper
 
typedef ReferenceOrValueWrapper< TWrapper
 
typedef ReferenceOrValueWrapper< TWrapper
 

Private Member Functions

 ActionResultHolder (Wrapper result)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (ActionResultHolder)
 
 ActionResultHolder (Wrapper result)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (ActionResultHolder)
 
 ActionResultHolder (Wrapper result)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (ActionResultHolder)
 

Private Attributes

Wrapper result_
 

Detailed Description

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

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

Member Typedef Documentation

template<typename T >
typedef ReferenceOrValueWrapper<T> testing::internal::ActionResultHolder< T >::Wrapper
private

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

template<typename T >
typedef ReferenceOrValueWrapper<T> testing::internal::ActionResultHolder< T >::Wrapper
private

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

template<typename T >
typedef ReferenceOrValueWrapper<T> testing::internal::ActionResultHolder< T >::Wrapper
private

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

Constructor & Destructor Documentation

template<typename T >
testing::internal::ActionResultHolder< T >::ActionResultHolder ( Wrapper  result)
inlineexplicitprivate

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

1410  : result_(::testing::internal::move(result)) {
1411  }
const T & move(const T &t)
Definition: gtest-port.h:1317
template<typename T >
testing::internal::ActionResultHolder< T >::ActionResultHolder ( Wrapper  result)
inlineexplicitprivate

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_.

1410  : result_(::testing::internal::move(result)) {
1411  }
const T & move(const T &t)
Definition: gtest-port.h:1317
template<typename T >
testing::internal::ActionResultHolder< T >::ActionResultHolder ( Wrapper  result)
inlineexplicitprivate

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_.

1410  : result_(::testing::internal::move(result)) {
1411  }
const T & move(const T &t)
Definition: gtest-port.h:1317

Member Function Documentation

template<typename T >
testing::internal::ActionResultHolder< T >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( ActionResultHolder< T )
private
template<typename T >
testing::internal::ActionResultHolder< T >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( ActionResultHolder< T )
private
template<typename T >
testing::internal::ActionResultHolder< T >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( ActionResultHolder< T )
private
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.

References testing::Action< F >::Perform().

1402  {
1403  return new ActionResultHolder(Wrapper(action.Perform(args)));
1404  }
ReferenceOrValueWrapper< T > Wrapper
action
Definition: upload.py:393
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.

References testing::Action< F >::Perform().

1402  {
1403  return new ActionResultHolder(Wrapper(action.Perform(args)));
1404  }
ReferenceOrValueWrapper< T > Wrapper
action
Definition: upload.py:393
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.

References testing::Action< F >::Perform().

1402  {
1403  return new ActionResultHolder(Wrapper(action.Perform(args)));
1404  }
ReferenceOrValueWrapper< T > Wrapper
action
Definition: upload.py:393
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.

References testing::internal::FunctionMockerBase< F >::PerformDefaultAction().

1392  {
1393  return new ActionResultHolder(Wrapper(
1394  func_mocker->PerformDefaultAction(args, call_description)));
1395  }
ReferenceOrValueWrapper< T > Wrapper
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.

References testing::internal::FunctionMockerBase< F >::PerformDefaultAction().

1392  {
1393  return new ActionResultHolder(Wrapper(
1394  func_mocker->PerformDefaultAction(args, call_description)));
1395  }
ReferenceOrValueWrapper< T > Wrapper
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.

References testing::internal::FunctionMockerBase< F >::PerformDefaultAction().

1392  {
1393  return new ActionResultHolder(Wrapper(
1394  func_mocker->PerformDefaultAction(args, call_description)));
1395  }
ReferenceOrValueWrapper< T > Wrapper
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.

References testing::internal::UniversalPrinter< T >::Print().

1380  {
1381  *os << "\n Returns: ";
1382  // T may be a reference type, so we don't use UniversalPrint().
1384  }
static void Print(const T &value,::std::ostream *os)
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.

References testing::internal::UniversalPrinter< T >::Print().

1380  {
1381  *os << "\n Returns: ";
1382  // T may be a reference type, so we don't use UniversalPrint().
1384  }
static void Print(const T &value,::std::ostream *os)
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.

References testing::internal::UniversalPrinter< T >::Print().

1380  {
1381  *os << "\n Returns: ";
1382  // T may be a reference type, so we don't use UniversalPrint().
1384  }
static void Print(const T &value,::std::ostream *os)
template<typename T >
T testing::internal::ActionResultHolder< T >::Unwrap ( )
inline
template<typename T >
T testing::internal::ActionResultHolder< T >::Unwrap ( )
inline
template<typename T >
T testing::internal::ActionResultHolder< T >::Unwrap ( )
inline

Member Data Documentation

template<typename T >
Wrapper testing::internal::ActionResultHolder< T >::result_
private

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


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