Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::internal::FunctionMockerBase< F > Class Template Reference

#include <JETSCAPE/blob/main/external_packages/googletest/googlemock/include/gmock/gmock-spec-builders.h>

+ Inheritance diagram for testing::internal::FunctionMockerBase< F >:
+ Collaboration diagram for testing::internal::FunctionMockerBase< F >:

Public Types

typedef Function< F >::Result Result
 
typedef Function< F >
::ArgumentTuple 
ArgumentTuple
 
typedef Function< F >
::ArgumentMatcherTuple 
ArgumentMatcherTuple
 

Public Member Functions

 FunctionMockerBase ()
 
virtual ~FunctionMockerBase () GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
const OnCallSpec< F > * FindOnCallSpec (const ArgumentTuple &args) const
 
Result PerformDefaultAction (const ArgumentTuple &args, const string &call_description) const
 
virtual
UntypedActionResultHolderBase
UntypedPerformDefaultAction (const void *untyped_args, const string &call_description) const
 
virtual
UntypedActionResultHolderBase
UntypedPerformAction (const void *untyped_action, const void *untyped_args) const
 
virtual void ClearDefaultActionsLocked () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
- Public Member Functions inherited from testing::internal::UntypedFunctionMockerBase
 UntypedFunctionMockerBase ()
 
virtual ~UntypedFunctionMockerBase ()
 
bool VerifyAndClearExpectationsLocked () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void RegisterOwner (const void *mock_obj) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
void SetOwnerAndName (const void *mock_obj, const char *name) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
const void * MockObject () const GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
const char * Name () const GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
UntypedActionResultHolderBaseUntypedInvokeWith (const void *untyped_args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 

Protected Types

typedef ActionResultHolder
< Result
ResultHolder
 
- Protected Types inherited from testing::internal::UntypedFunctionMockerBase
typedef std::vector< const void * > UntypedOnCallSpecs
 
typedef std::vector
< internal::linked_ptr
< ExpectationBase > > 
UntypedExpectations
 

Protected Member Functions

Result InvokeWith (const ArgumentTuple &args) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
OnCallSpec< F > & AddNewOnCallSpec (const char *file, int line, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
TypedExpectation< F > & AddNewExpectation (const char *file, int line, const string &source_text, const ArgumentMatcherTuple &m) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
MockSpec< F > & current_spec ()
 
- Protected Member Functions inherited from testing::internal::UntypedFunctionMockerBase
Expectation GetHandleOf (ExpectationBase *exp)
 

Private Member Functions

void DescribeDefaultActionTo (const ArgumentTuple &args,::std::ostream *os) const
 
virtual void UntypedDescribeUninterestingCall (const void *untyped_args,::std::ostream *os) const GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
virtual const ExpectationBaseUntypedFindMatchingExpectation (const void *untyped_args, const void **untyped_action, bool *is_excessive,::std::ostream *what,::std::ostream *why) GTEST_LOCK_EXCLUDED_(g_gmock_mutex)
 
virtual void UntypedPrintArgs (const void *untyped_args,::std::ostream *os) const
 
TypedExpectation< F > * FindMatchingExpectationLocked (const ArgumentTuple &args) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void FormatUnexpectedCallMessageLocked (const ArgumentTuple &args,::std::ostream *os,::std::ostream *why) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void PrintTriedExpectationsLocked (const ArgumentTuple &args,::std::ostream *why) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (FunctionMockerBase)
 

Private Attributes

MockSpec< Fcurrent_spec_
 

Friends

template<typename Function >
class MockSpec
 
template<typename Func >
class TypedExpectation
 

Additional Inherited Members

- Protected Attributes inherited from testing::internal::UntypedFunctionMockerBase
const void * mock_obj_
 
const char * name_
 
UntypedOnCallSpecs untyped_on_call_specs_
 
UntypedExpectations untyped_expectations_
 

Detailed Description

template<typename F>
class testing::internal::FunctionMockerBase< F >

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

View newest version in sPHENIX GitHub at line 1456 of file gmock-spec-builders.h

Member Typedef Documentation

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

View newest version in sPHENIX GitHub at line 1460 of file gmock-spec-builders.h

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

View newest version in sPHENIX GitHub at line 1459 of file gmock-spec-builders.h

template<typename F>
typedef Function<F>::Result testing::internal::FunctionMockerBase< F >::Result

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

View newest version in sPHENIX GitHub at line 1458 of file gmock-spec-builders.h

template<typename F>
typedef ActionResultHolder<Result> testing::internal::FunctionMockerBase< F >::ResultHolder
protected

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

View newest version in sPHENIX GitHub at line 1577 of file gmock-spec-builders.h

Constructor & Destructor Documentation

template<typename F>
testing::internal::FunctionMockerBase< F >::FunctionMockerBase ( )
inline

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

View newest version in sPHENIX GitHub at line 1462 of file gmock-spec-builders.h

template<typename F>
virtual testing::internal::FunctionMockerBase< F >::~FunctionMockerBase ( )
inlinevirtual

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

View newest version in sPHENIX GitHub at line 1467 of file gmock-spec-builders.h

Member Function Documentation

template<typename F>
TypedExpectation<F>& testing::internal::FunctionMockerBase< F >::AddNewExpectation ( const char *  file,
int  line,
const string source_text,
const ArgumentMatcherTuple m 
)
inlineprotected

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

View newest version in sPHENIX GitHub at line 1601 of file gmock-spec-builders.h

template<typename F>
OnCallSpec<F>& testing::internal::FunctionMockerBase< F >::AddNewOnCallSpec ( const char *  file,
int  line,
const ArgumentMatcherTuple m 
)
inlineprotected

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

View newest version in sPHENIX GitHub at line 1590 of file gmock-spec-builders.h

template<typename F>
virtual void testing::internal::FunctionMockerBase< F >::ClearDefaultActionsLocked ( )
inlinevirtual

Implements testing::internal::UntypedFunctionMockerBase.

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

View newest version in sPHENIX GitHub at line 1547 of file gmock-spec-builders.h

template<typename F>
MockSpec<F>& testing::internal::FunctionMockerBase< F >::current_spec ( )
inlineprotected

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

View newest version in sPHENIX GitHub at line 1624 of file gmock-spec-builders.h

template<typename F>
void testing::internal::FunctionMockerBase< F >::DescribeDefaultActionTo ( const ArgumentTuple args,
::std::ostream *  os 
) const
inlineprivate

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

View newest version in sPHENIX GitHub at line 1634 of file gmock-spec-builders.h

template<typename F>
TypedExpectation<F>* testing::internal::FunctionMockerBase< F >::FindMatchingExpectationLocked ( const ArgumentTuple args) const
inlineprivate

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

View newest version in sPHENIX GitHub at line 1714 of file gmock-spec-builders.h

template<typename F>
const OnCallSpec<F>* testing::internal::FunctionMockerBase< F >::FindOnCallSpec ( const ArgumentTuple args) const
inline

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

View newest version in sPHENIX GitHub at line 1478 of file gmock-spec-builders.h

template<typename F>
void testing::internal::FunctionMockerBase< F >::FormatUnexpectedCallMessageLocked ( const ArgumentTuple args,
::std::ostream *  os,
::std::ostream *  why 
) const
inlineprivate

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

View newest version in sPHENIX GitHub at line 1731 of file gmock-spec-builders.h

template<typename F>
testing::internal::FunctionMockerBase< F >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( FunctionMockerBase< F )
private
template<typename F>
Result testing::internal::FunctionMockerBase< F >::InvokeWith ( const ArgumentTuple args)
inlineprotected

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

View newest version in sPHENIX GitHub at line 1582 of file gmock-spec-builders.h

template<typename F>
Result testing::internal::FunctionMockerBase< F >::PerformDefaultAction ( const ArgumentTuple args,
const string call_description 
) const
inline

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

View newest version in sPHENIX GitHub at line 1498 of file gmock-spec-builders.h

Referenced by testing::internal::ActionResultHolder< T >::PerformDefaultAction(), and testing::internal::ActionResultHolder< void >::PerformDefaultAction().

+ Here is the caller graph for this function:

template<typename F>
void testing::internal::FunctionMockerBase< F >::PrintTriedExpectationsLocked ( const ArgumentTuple args,
::std::ostream *  why 
) const
inlineprivate

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

View newest version in sPHENIX GitHub at line 1744 of file gmock-spec-builders.h

template<typename F>
virtual void testing::internal::FunctionMockerBase< F >::UntypedDescribeUninterestingCall ( const void *  untyped_args,
::std::ostream *  os 
) const
inlineprivatevirtual

Implements testing::internal::UntypedFunctionMockerBase.

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

View newest version in sPHENIX GitHub at line 1651 of file gmock-spec-builders.h

template<typename F>
virtual const ExpectationBase* testing::internal::FunctionMockerBase< F >::UntypedFindMatchingExpectation ( const void *  untyped_args,
const void **  untyped_action,
bool *  is_excessive,
::std::ostream *  what,
::std::ostream *  why 
)
inlineprivatevirtual

Implements testing::internal::UntypedFunctionMockerBase.

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

View newest version in sPHENIX GitHub at line 1679 of file gmock-spec-builders.h

template<typename F>
virtual UntypedActionResultHolderBase* testing::internal::FunctionMockerBase< F >::UntypedPerformAction ( const void *  untyped_action,
const void *  untyped_args 
) const
inlinevirtual

Implements testing::internal::UntypedFunctionMockerBase.

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

View newest version in sPHENIX GitHub at line 1535 of file gmock-spec-builders.h

template<typename F>
virtual UntypedActionResultHolderBase* testing::internal::FunctionMockerBase< F >::UntypedPerformDefaultAction ( const void *  untyped_args,
const string call_description 
) const
inlinevirtual

Implements testing::internal::UntypedFunctionMockerBase.

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

View newest version in sPHENIX GitHub at line 1523 of file gmock-spec-builders.h

template<typename F>
virtual void testing::internal::FunctionMockerBase< F >::UntypedPrintArgs ( const void *  untyped_args,
::std::ostream *  os 
) const
inlineprivatevirtual

Implements testing::internal::UntypedFunctionMockerBase.

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

View newest version in sPHENIX GitHub at line 1705 of file gmock-spec-builders.h

Friends And Related Function Documentation

template<typename F>
template<typename Function >
friend class MockSpec
friend

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

View newest version in sPHENIX GitHub at line 1575 of file gmock-spec-builders.h

template<typename F>
template<typename Func >
friend class TypedExpectation
friend

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

View newest version in sPHENIX GitHub at line 1627 of file gmock-spec-builders.h

Member Data Documentation

template<typename F>
MockSpec<F> testing::internal::FunctionMockerBase< F >::current_spec_
private

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

View newest version in sPHENIX GitHub at line 1770 of file gmock-spec-builders.h


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