Builder class for invocation related purposes. More...
Public Member Functions | |
| InvocationMockerBuilder (StubMatchersCollection< R, I > *in_mocker, BuilderNamespace *in_builderNamespace) | |
| Constructs the invocation mocker builder. | |
| virtual MatchBuilder< R, I > & | match (const MatcherHolder< I > &customMatcher) |
| Adds another matcher. | |
| IdentityBuilder & | expect (const MatcherHolder< I > &expectation) |
| Adds another expectation. | |
| void | id (const String &invocationID) |
| Sets the identifier for the expectation. | |
| virtual void | setStub (const StubHolder< R, I > &stubAction) |
| Sets the stub data for the invocation. | |
Protected Member Functions | |
| virtual MatchBuilder< R, I > & | with_cs (const MOCKPP_CS &constraintset) |
| Indicate a matcher for a set of arguments. | |
| virtual MatchBuilder< R, I > & | internalWith_cs (const MOCKPP_CS &constraintset) |
| Indicate a matcher for a set of arguments. | |
| virtual BuilderNamespace * | getBuilderNamespace () |
| Gets the builder namespace. | |
| virtual StubMatchersCollection < R, I > * | getMocker () |
| Gets the matcher object. | |
Builder class for invocation related purposes.
Definition at line 59 of file InvocationMockerBuilder.h.
| mockpp::InvocationMockerBuilder< AMB >::InvocationMockerBuilder | ( | StubMatchersCollection< R, I > * | in_mocker, | |
| BuilderNamespace * | in_builderNamespace | |||
| ) | [inline] |
Constructs the invocation mocker builder.
| in_mocker | pointer to matcher object | |
| in_builderNamespace | pointer to builder namespace |
Definition at line 72 of file InvocationMockerBuilder.h.
| IdentityBuilder& mockpp::InvocationMockerBuilder< AMB >::expect | ( | const MatcherHolder< I > & | expectation | ) | [inline] |
Adds another expectation.
| expectation | the matcher object |
Definition at line 91 of file InvocationMockerBuilder.h.
| virtual BuilderNamespace* mockpp::InvocationMockerBuilder< AMB >::getBuilderNamespace | ( | ) | [inline, protected, virtual] |
Gets the builder namespace.
Definition at line 138 of file InvocationMockerBuilder.h.
| virtual StubMatchersCollection<R, I>* mockpp::InvocationMockerBuilder< AMB >::getMocker | ( | ) | [inline, protected, virtual] |
Gets the matcher object.
Definition at line 146 of file InvocationMockerBuilder.h.
| virtual MatchBuilder<R, I>& mockpp::InvocationMockerBuilder< AMB >::internalWith_cs | ( | const MOCKPP_CS & | constraintset | ) | [inline, protected, virtual] |
Indicate a matcher for a set of arguments.
Needed for compilers that can't invoke InvocationMockerBuilder<>::with_cs() directly.
| constraintset | constraint set |
Definition at line 130 of file InvocationMockerBuilder.h.
| virtual MatchBuilder<R, I>& mockpp::InvocationMockerBuilder< AMB >::match | ( | const MatcherHolder< I > & | customMatcher | ) | [inline, virtual] |
Adds another matcher.
| customMatcher | the matcher object |
Definition at line 82 of file InvocationMockerBuilder.h.
| virtual void mockpp::InvocationMockerBuilder< AMB >::setStub | ( | const StubHolder< R, I > & | stubAction | ) | [inline, virtual] |
Sets the stub data for the invocation.
| stubAction | the stub object |
Definition at line 109 of file InvocationMockerBuilder.h.
| virtual MatchBuilder<R, I>& mockpp::InvocationMockerBuilder< AMB >::with_cs | ( | const MOCKPP_CS & | constraintset | ) | [inline, protected, virtual] |
Indicate a matcher for a set of arguments.
| constraintset | constraint set |
Definition at line 120 of file InvocationMockerBuilder.h.
1.6.1