Set up visitable mock method expectations with 4 parameters. More...

Public Member Functions | |
| VisitableMockMethod4 (const String &name, VisitableMockObject *parent) | |
| Constructs the mock object. | |
| R | forward (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4) const |
| Actually verifies the mocked method. | |
| void | addResponseValue (const R &rv, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, unsigned count=MOCKPP_UNLIMITED) |
| Adds another response value. | |
| void | addResponseValue (const R &rv, const ConstraintHolder< P1 > &p1, const ConstraintHolder< P2 > &p2, const ConstraintHolder< P3 > &p3, const ConstraintHolder< P4 > &p4, unsigned count=MOCKPP_UNLIMITED) |
| Adds another response value. | |
Set up visitable mock method expectations with 4 parameters.
Definition at line 181 of file VisitableMockMethod4.h.
| mockpp::VisitableMockMethod4< R, P1, P2, P3, P4 >::VisitableMockMethod4 | ( | const String & | name, | |
| VisitableMockObject * | parent | |||
| ) | [inline] |
Constructs the mock object.
| name | human readable description about the expectation | |
| parent | parent Visitable mock object |
Definition at line 190 of file VisitableMockMethod4.h.
| void mockpp::VisitableMockMethod4< R, P1, P2, P3, P4 >::addResponseValue | ( | const R & | rv, | |
| const ConstraintHolder< P1 > & | p1, | |||
| const ConstraintHolder< P2 > & | p2, | |||
| const ConstraintHolder< P3 > & | p3, | |||
| const ConstraintHolder< P4 > & | p4, | |||
| unsigned | count = MOCKPP_UNLIMITED | |||
| ) | [inline] |
Adds another response value.
Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.
| rv | the return value | |
| p1 | mock method parameter 1 | |
| p2 | mock method parameter 2 | |
| p3 | mock method parameter 3 | |
| p4 | mock method parameter 4 | |
| count | the number of times this value shall be returned. Default is unlimited. |
Definition at line 260 of file VisitableMockMethod4.h.
| void mockpp::VisitableMockMethod4< R, P1, P2, P3, P4 >::addResponseValue | ( | const R & | rv, | |
| const P1 & | p1, | |||
| const P2 & | p2, | |||
| const P3 & | p3, | |||
| const P4 & | p4, | |||
| unsigned | count = MOCKPP_UNLIMITED | |||
| ) | [inline] |
Adds another response value.
Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.
| rv | the return value | |
| p1 | mock method parameter 1 | |
| p2 | mock method parameter 2 | |
| p3 | mock method parameter 3 | |
| p4 | mock method parameter 4 | |
| count | the number of times this value shall be returned. Default is unlimited. |
Definition at line 244 of file VisitableMockMethod4.h.
| R mockpp::VisitableMockMethod4< R, P1, P2, P3, P4 >::forward | ( | const P1 & | p1, | |
| const P2 & | p2, | |||
| const P3 & | p3, | |||
| const P4 & | p4 | |||
| ) | const [inline] |
Actually verifies the mocked method.
Must be called by the client code.
| p1 | mock method parameter 1 | |
| p2 | mock method parameter 2 | |
| p3 | mock method parameter 3 | |
| p4 | mock method parameter 4 |
Definition at line 203 of file VisitableMockMethod4.h.
1.6.1