Helper class to handle invocations. More...
Public Types | |
typedef AutoPointer< Invokable < R, I > > | AP |
internal shorthand | |
Public Member Functions | |
Invokable () | |
Constructs the object. | |
virtual bool | matches (const I &invocation)=0 |
Checks if an invocation matches the expectaton. | |
virtual R | invoke (const I &invocation)=0 |
Mock the invocation. | |
virtual bool | hasDescription ()=0 |
Does the object provide meaningful description via describeTo() ?. |
Helper class to handle invocations.
Definition at line 56 of file Invokable.h.
virtual bool mockpp::Invokable< R, I >::hasDescription | ( | ) | [pure virtual] |
Does the object provide meaningful description via describeTo() ?.
Implemented in mockpp::InvocationMockerBase< R, I >, and mockpp::InvocationMockerBase< void, I >.
virtual R mockpp::Invokable< R, I >::invoke | ( | const I & | invocation | ) | [pure virtual] |
Mock the invocation.
invocation | invocation data |
Implemented in mockpp::InvocationMocker< R, I >, and mockpp::InvocationMocker< void, I >.
virtual bool mockpp::Invokable< R, I >::matches | ( | const I & | invocation | ) | [pure virtual] |
Checks if an invocation matches the expectaton.
invocation | the invocation data |
Implemented in mockpp::InvocationMockerBase< R, I >, and mockpp::InvocationMockerBase< void, I >.