Classes | |
| struct | BoundArgumentStorageType |
| Defines the type used to store the values of bound arguments. More... | |
| struct | BoundArgumentStorageType< T & > |
| Defines storage type for references. More... | |
| struct | BoundArgumentStorageType< const T & > |
| Defines storage type for const references. More... | |
| struct | ReturnTypeWrapper |
| struct | ReturnTypeWrapper< void > |
| struct | DefaultValue |
| struct | DefaultValue< T & > |
| struct | DefaultValue< const T & > |
| struct | IsSameType |
| struct | IsSameType< T, T > |
| struct | IsSameValue |
| struct | IsSameValue< T & > |
| struct | IsSameValue< const T & > |
| class | BoundFunctionBase |
| Base functionality for the BoundFunction template. More... | |
| class | CallDriver |
| A thin wrapper around BoundFunction. More... | |
| class | DelayedCallDriver |
| class | ExpectationDriver |
| A thin wrapper around ExpectedFunction. More... | |
| class | ExpectationsList |
| A list of expected function calls on a mock object. More... | |
| struct | ExpectationPair |
| Helper for expectation factories and willCall(), willEmit(). More... | |
| class | ExpectedFunctionBase |
| Base functionality for the ExpectedFunction template. More... | |
| struct | MockBase |
| struct | SignalWaitHelper |
| class | TesterApplication |
| Extends QCoreApplication to support tests requiring an event loop. More... | |
| struct | ReturnTypeWrapper< std::auto_ptr< T > > |
Namespaces | |
| namespace | Testing |
Functions | |
| CallDriver< BoundFunction< SignalWaitHelper, void(int)> > | waitFor (int maxTime) |
| Returns a CallDriver bound to SignalWaitHelper::processEvents(). | |
| template<typename Host, typename Func> | |
| CallDriver< BoundFunction< Host, Func > > | call (auto_ptr< BoundFunction< Host, Func > > f) |
| template<typename Host, typename Func> | |
| CallDriver< BoundFunction< Host, Func > > | callMsg (auto_ptr< BoundFunction< Host, Func > > f, const std::string &expressionString, const SourceLine &sourceLine) |
| template<typename Checker> | |
| auto_ptr< ExpectedFunction< typename Checker::Function > > | checker (const Checker &checker) |
| template<typename T> | |
| void | willBeEqual (T v1, T v2) |
| template<typename T> | |
| void | willBeEqualMsg (T v1, T v2, const std::string &expectationString, const SourceLine &sourceLine) |
| void | willFail (const std::string &reason) |
|
||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||
|
|
|
|
Returns a CallDriver bound to SignalWaitHelper::processEvents(). Use this function to create a context in which you could set expectations for signals, which are emitted with a delay, e.g. from slots connected on a Qt::QueuedConnection. Example:
wait()
.willEmit (transport->connected())
.returns();
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
|
|