MockObjects that can be chained under control. More...
Go to the source code of this file.
Classes | |
class | mockpp::ChainableMockObjectBase |
Base for a generic object that can be used to replace a real world object for testing purposes. More... | |
class | mockpp::ChainableMockObject |
A generic object that can be used to replace a real world object for testing purposes. More... | |
Namespaces | |
namespace | mockpp |
Namespace for project "Mock Objects for C++". | |
Defines | |
#define | MOCKPP_CHAINER_FOR(clsname, methname) clsname::ChainerFor ## methname |
Implements a chainer for a method. | |
#define | MOCKPP_CHAINER_FOR_EXT(clsname, m_methname, x_methname) MOCKPP_CHAINER_FOR(clsname, m_methname ## x_methname) |
Implements a chainer for a method. | |
#define | MOCKPP_VOID_CHAINABLE0(classname, name) |
Implements a method with 0 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE0(classname, name) |
Implements a const method with 0 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE_EXT0(classname, m_name, x_name) |
Implements a method with 0 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE_EXT0(classname, m_name,x_name) |
Implements a method with 0 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE1(classname, name, type1) |
Implements a method with 1 parameter for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE1(classname, name, type1) |
Implements a const method with 1 parameter for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE_EXT1(classname, m_name, m_type1, x_name, v_type1) |
Implements a method with 1 parameter for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE_EXT1(classname, m_name, m_type1, x_name, v_type1) |
Implements a const method with 1 parameter for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE2(classname, name, type1, type2) |
Implements a method with 2 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE2(classname, name, type1, type2) |
Implements a const method with 2 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE_EXT2(classname, m_name, m_type1, m_type2, x_name, v_type1, v_type2) |
Implements a method with 2 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE_EXT2(classname, m_name, m_type1, m_type2, x_name, v_type1, v_type2) |
Implements a const method with 2 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE3(classname, name, type1, type2, type3) |
Implements a method with 3 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE3(classname, name, type1, type2, type3) |
Implements a const method with 3 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE_EXT3(classname, m_name, m_type1, m_type2, m_type3, x_name, v_type1, v_type2, v_type3) |
Implements a method with 3 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE_EXT3(classname, m_name, m_type1, m_type2, m_type3, x_name, v_type1, v_type2, v_type3) |
Implements a const method with 3 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE4(classname, name, type1, type2, type3, type4) |
Implements a method with 4 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE4(classname, name, type1, type2, type3, type4) |
Implements a const method with 4 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE_EXT4(classname, m_name, m_type1, m_type2, m_type3, m_type4, x_name, v_type1, v_type2, v_type3, v_type4) |
Implements a method with 4 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE_EXT4(classname, m_name, m_type1, m_type2, m_type3, m_type4, x_name, v_type1, v_type2, v_type3, v_type4) |
Implements a const method with 4 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE5(classname, name, type1, type2, type3, type4, type5) |
Implements a method with 5 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE5(classname, name, type1, type2, type3, type4, type5) |
Implements a const method with 5 parameters for a mock object. | |
#define | MOCKPP_VOID_CHAINABLE_EXT5(classname, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, x_name, v_type1, v_type2, v_type3, v_type4, v_type5) |
Implements a method with 5 parameters for a mock object. | |
#define | MOCKPP_VOID_CONST_CHAINABLE_EXT5(classname, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, x_name, v_type1, v_type2, v_type3, v_type4, v_type5) |
Implements a const method with 5 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE0(classname, ret_type, name) |
Implements a method with 0 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE0(classname, ret_type, name) |
Implements a const method with 0 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE_EXT0(classname, m_ret_type, m_name,v_ret_type, x_name) |
Implements a method with 0 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE_EXT0(classname, m_ret_type, m_name,v_ret_type, x_name) |
Implements a method with 0 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE1(classname, ret_type, name, type1) |
Implements a method with 1 parameter for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE1(classname, ret_type, name, type1) |
Implements a const method with 1 parameter for a mock object. | |
#define | MOCKPP_CHAINABLE_EXT1(classname, m_ret_type, m_name, m_type1, v_ret_type, x_name, v_type1) |
Implements a method with 1 parameter for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE_EXT1(classname, m_ret_type, m_name, m_type1, v_ret_type, x_name, v_type1) |
Implements a const method with 1 parameter for a mock object. | |
#define | MOCKPP_CHAINABLE2(classname, ret_type, name, type1, type2) |
Implements a method with 2 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE2(classname, ret_type, name, type1, type2) |
Implements a const method with 2 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE_EXT2(classname, m_ret_type, m_name, m_type1, m_type2, v_ret_type, x_name, v_type1, v_type2) |
Implements a method with 2 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE_EXT2(classname, m_ret_type, m_name, m_type1, m_type2, v_ret_type, x_name, v_type1, v_type2) |
Implements a const method with 2 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE3(classname, ret_type, name, type1, type2, type3) |
Implements a method with 3 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE3(classname, ret_type, name, type1, type2, type3) |
Implements a const method with 3 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE_EXT3(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, v_ret_type, x_name, v_type1, v_type2, v_type3) |
Implements a method with 3 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE_EXT3(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, v_ret_type, x_name, v_type1, v_type2, v_type3) |
Implements a const method with 3 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE4(classname, ret_type, name, type1, type2, type3, type4) |
Implements a method with 4 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE4(classname, ret_type, name, type1, type2, type3, type4) |
Implements a const method with 4 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE_EXT4(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4) |
Implements a method with 4 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE_EXT4(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4) |
Implements a const method with 4 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE5(classname, ret_type, name, type1, type2, type3, type4, type5) |
Implements a method with 5 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE5(classname, ret_type, name, type1, type2, type3, type4, type5) |
Implements a const method with 5 parameters for a mock object. | |
#define | MOCKPP_CHAINABLE_EXT5(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4, v_type5) |
Implements a method with 5 parameters for a mock object. | |
#define | MOCKPP_CONST_CHAINABLE_EXT5(classname, m_ret_type, m_name, m_type1, m_type2, m_type3, m_type4, m_type5, v_ret_type, x_name, v_type1, v_type2, v_type3, v_type4, v_type5) |
Implements a const method with 5 parameters for a mock object. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE0(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 0 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT0(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE0(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with no parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE1(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 1 parameter. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT1(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE1(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 1 parameter. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE2(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 2 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT2(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE2(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 2 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE3(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 3 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT3(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE3(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 3 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE4(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 4 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT4(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE4(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 4 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE5(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 5 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT5(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE5(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 5 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE0(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 0 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT0(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE0(m_name ## x_name) |
Implements the initializers for the internal variables of a method with no parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE1(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 1 parameter. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT1(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE1(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 1 parameter. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE2(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 2 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT2(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE2(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 5 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE3(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 3 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT3(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE3(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 4 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE4(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 4 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT4(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE4(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 4 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE5(name) MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 5 parameters. | |
#define | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT5(m_name, x_name) MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE5(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 5 parameters. |
MockObjects that can be chained under control.
Definition in file ChainableMockObject.h.
#define MOCKPP_CHAINABLE0 | ( | classname, | |||
ret_type, | |||||
name | ) |
public: \
ret_type name() \
MOCKPP_CHAINABLE0_IMPL(classname, ret_type, name, \
ret_type, name)
Implements a method with 0 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name |
Definition at line 622 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE1 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1 | ) |
public: \ ret_type name(const type1 ¶m1) \ MOCKPP_CHAINABLE1_IMPL(classname, ret_type, name , const type1 &, \ ret_type, name, type1)
Implements a method with 1 parameter for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter |
Definition at line 682 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE2 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2) \ MOCKPP_CHAINABLE2_IMPL(classname, ret_type, name, const type1 &, const type2 &, \ ret_type, name, type1, type2)
Implements a method with 2 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter |
Definition at line 748 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE3 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2, | |||||
type3 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3) \ MOCKPP_CHAINABLE3_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, \ ret_type, name, type1, type2, type3)
Implements a method with 3 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter |
Definition at line 821 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE4 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4) \ MOCKPP_CHAINABLE4_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, const type4 &, \ ret_type, name, type1, type2, type3, type4)
Implements a method with 4 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter |
Definition at line 900 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE5 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4, | |||||
type5 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4, const type5 ¶m5) \ MOCKPP_CHAINABLE5_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \ ret_type, name, type1, type2, type3, type4, type5)
Implements a method with 5 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter | |
type5 | the data type of the 5. parameter |
Definition at line 985 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE_EXT0 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
v_ret_type, | |||||
x_name | ) |
public: \
m_ret_type m_name() \
MOCKPP_CHAINABLE0_IMPL(classname, m_ret_type, m_name ## x_name, \
v_ret_type, m_name)
Implements a method with 0 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name |
Definition at line 650 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE_EXT1 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1 | ) |
public: \
m_ret_type m_name(m_type1 param1) \
MOCKPP_CHAINABLE1_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, \
v_ret_type, m_name, v_type1)
Implements a method with 1 parameter for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter |
Definition at line 713 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE_EXT2 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2 | ) |
public: \
m_ret_type m_name(m_type1 param1, m_type2 param2) \
MOCKPP_CHAINABLE2_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, \
v_ret_type, m_name, v_type1, v_type2)
Implements a method with 2 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter |
Definition at line 782 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE_EXT3 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3 | ) |
public: \
m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3) \
MOCKPP_CHAINABLE3_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, \
v_ret_type, m_name, v_type1, v_type2, v_type3)
Implements a method with 3 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter |
Definition at line 858 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE_EXT4 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4 | ) |
public: \
m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) \
MOCKPP_CHAINABLE4_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \
v_ret_type, m_name, v_type1, v_type2, v_type3, v_type4)
Implements a method with 4 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter |
Definition at line 940 of file ChainableMockObject.h.
#define MOCKPP_CHAINABLE_EXT5 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
m_type5, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4, | |||||
v_type5 | ) |
public: \
m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) \
MOCKPP_CHAINABLE5_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \
v_ret_type, m_name, v_type1, v_type2, v_type3, v_type4, v_type5)
Implements a method with 5 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
m_type5 | the data type of the 5. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter | |
v_type5 | the data type of the internal variable of 5. parameter |
Definition at line 1028 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE0 | ( | classname, | |||
ret_type, | |||||
name | ) |
public: \
ret_type name() const \
MOCKPP_CHAINABLE0_IMPL(classname, ret_type, name, \
ret_type, name)
Implements a const method with 0 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name |
Definition at line 634 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE1 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1 | ) |
public: \ ret_type name(const type1 ¶m1) const \ MOCKPP_CHAINABLE1_IMPL(classname, ret_type, name, const type1 &, \ ret_type, name, type1)
Implements a const method with 1 parameter for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter |
Definition at line 695 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE2 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2) const \ MOCKPP_CHAINABLE2_IMPL(classname, ret_type, name, const type1 &, const type2 &, \ ret_type, name, type1, type2)
Implements a const method with 2 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter |
Definition at line 762 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE3 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2, | |||||
type3 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3) const \ MOCKPP_CHAINABLE3_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, \ ret_type, name, type1, type2, type3)
Implements a const method with 3 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter |
Definition at line 836 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE4 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4) const \ MOCKPP_CHAINABLE4_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, const type4 &, \ ret_type, name, type1, type2, type3, type4)
Implements a const method with 4 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter |
Definition at line 916 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE5 | ( | classname, | |||
ret_type, | |||||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4, | |||||
type5 | ) |
public: \ ret_type name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4, const type5 ¶m5) const \ MOCKPP_CHAINABLE5_IMPL(classname, ret_type, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \ ret_type, name, type1, type2, type3, type4, type5)
Implements a const method with 5 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
ret_type | the data type of the return value | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter | |
type5 | the data type of the 5. parameter |
Definition at line 1002 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE_EXT0 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
v_ret_type, | |||||
x_name | ) |
public: \ m_ret_type m_name() const \ MOCKPP_CHAINABLE0_IMPL(classname, m_ret_type, m_name ## x_name, \ v_ret_type, m_name)
Implements a method with 0 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name |
Definition at line 666 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE_EXT1 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1 | ) |
public: \ m_ret_type m_name(m_type1 param1) const \ MOCKPP_CHAINABLE1_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, \ v_ret_type, m_name, v_type1)
Implements a const method with 1 parameter for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter |
Definition at line 731 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE_EXT2 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2 | ) |
public: \ m_ret_type m_name(m_type1 param1, m_type2 param2) const \ MOCKPP_CHAINABLE2_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, \ v_ret_type, m_name, v_type1, v_type2)
Implements a const method with 2 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter |
Definition at line 802 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE_EXT3 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3 | ) |
public: \ m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3) const \ MOCKPP_CHAINABLE3_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, \ v_ret_type, m_name, v_type1, v_type2, v_type3)
Implements a const method with 3 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter |
Definition at line 880 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE_EXT4 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4 | ) |
public: \ m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) const \ MOCKPP_CHAINABLE4_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \ v_ret_type, m_name, v_type1, v_type2, v_type3, v_type4)
Implements a const method with 4 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter |
Definition at line 964 of file ChainableMockObject.h.
#define MOCKPP_CONST_CHAINABLE_EXT5 | ( | classname, | |||
m_ret_type, | |||||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
m_type5, | |||||
v_ret_type, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4, | |||||
v_type5 | ) |
public: \ m_ret_type m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) const \ MOCKPP_CHAINABLE5_IMPL(classname, m_ret_type, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \ v_ret_type, m_name, v_type1, v_type2, v_type3, v_type4, v_type5)
Implements a const method with 5 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_ret_type | the data type of the return value | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
m_type5 | the data type of the 5. method parameter | |
v_ret_type | the data type of the internal return value respesentation | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter | |
v_type5 | the data type of the internal variable of 5. parameter |
Definition at line 1054 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE0 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 0 parameters.
name | the method name |
Definition at line 1165 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE1 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 1 parameter.
name | the method name |
Definition at line 1180 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE2 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 2 parameters.
name | the method name |
Definition at line 1196 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE3 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 3 parameters.
name | the method name |
Definition at line 1212 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE4 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 4 parameters.
name | the method name |
Definition at line 1228 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE5 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a method with 5 parameters.
name | the method name |
Definition at line 1244 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT0 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE0(m_name ## x_name) |
Implements the initializers for the internal variables of a method with no parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1173 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT1 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE1(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 1 parameter.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1188 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT2 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE2(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 5 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1204 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT3 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE3(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 4 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1220 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT4 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE4(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 4 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1236 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE_EXT5 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_CHAINABLE5(m_name ## x_name) |
Implements the initializers for the internal variables of a method with 5 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1252 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE0 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 0 parameters.
name | the method name |
Definition at line 1068 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE1 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 1 parameter.
name | the method name |
Definition at line 1084 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE2 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 2 parameters.
name | the method name |
Definition at line 1100 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE3 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 3 parameters.
name | the method name |
Definition at line 1116 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE4 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 4 parameters.
name | the method name |
Definition at line 1131 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE5 | ( | name | ) | MOCKPP_CONSTRUCT_CHAINABLE_MEMBERS(name) |
Implements the initializers for the internal variables of a void method with 5 parameters.
name | the method name |
Definition at line 1147 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT0 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE0(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with no parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1076 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT1 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE1(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 1 parameter.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1092 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT2 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE2(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 2 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1108 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT3 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE3(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 3 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1124 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT4 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE4(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 4 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1139 of file ChainableMockObject.h.
#define MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE_EXT5 | ( | m_name, | |||
x_name | ) | MOCKPP_CONSTRUCT_MEMBERS_FOR_VOID_CHAINABLE5(m_name ## x_name) |
Implements the initializers for the internal variables of a void method with 5 parameters.
m_name | the method name | |
x_name | extension for internal naming |
Definition at line 1155 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE0 | ( | classname, | |||
name | ) |
public: \ void name() \ MOCKPP_VOID_CHAINABLE0_IMPL(classname, name, \ name)
Implements a method with 0 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name |
Definition at line 210 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE1 | ( | classname, | |||
name, | |||||
type1 | ) |
public: \ void name(const type1 ¶m1) \ MOCKPP_VOID_CHAINABLE1_IMPL(classname, name , const type1 &, \ name, type1)
Implements a method with 1 parameter for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter |
Definition at line 264 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE2 | ( | classname, | |||
name, | |||||
type1, | |||||
type2 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2) \ MOCKPP_VOID_CHAINABLE2_IMPL(classname, name, const type1 &, const type2 &, \ name, type1, type2)
Implements a method with 2 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter |
Definition at line 324 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE3 | ( | classname, | |||
name, | |||||
type1, | |||||
type2, | |||||
type3 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3) \ MOCKPP_VOID_CHAINABLE3_IMPL(classname, name, const type1 &, const type2 &, const type3 &, \ name, type1, type2, type3)
Implements a method with 3 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter |
Definition at line 391 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE4 | ( | classname, | |||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4) \ MOCKPP_VOID_CHAINABLE4_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, \ name, type1, type2, type3, type4)
Implements a method with 4 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter |
Definition at line 464 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE5 | ( | classname, | |||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4, | |||||
type5 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4, const type5 ¶m5) \ MOCKPP_VOID_CHAINABLE5_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \ name, type1, type2, type3, type4, type5)
Implements a method with 5 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter | |
type5 | the data type of the 5. parameter |
Definition at line 543 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE_EXT0 | ( | classname, | |||
m_name, | |||||
x_name | ) |
public: \ void m_name() \ MOCKPP_VOID_CHAINABLE0_IMPL(classname, m_name ## x_name, \ m_name)
Implements a method with 0 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
x_name | optional extension for the internal variable names based on the method name |
Definition at line 235 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE_EXT1 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
x_name, | |||||
v_type1 | ) |
public: \ void m_name(m_type1 param1) \ MOCKPP_VOID_CHAINABLE1_IMPL(classname, m_name ## x_name, m_type1, \ m_name, v_type1)
Implements a method with 1 parameter for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter |
Definition at line 292 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE_EXT2 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
x_name, | |||||
v_type1, | |||||
v_type2 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2) \ MOCKPP_VOID_CHAINABLE2_IMPL(classname, m_name ## x_name, m_type1, m_type2, \ m_name, v_type1, v_type2)
Implements a method with 2 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter |
Definition at line 355 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE_EXT3 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2, m_type3 param3) \ MOCKPP_VOID_CHAINABLE3_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, \ m_name, v_type1, v_type2, v_type3)
Implements a method with 3 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter |
Definition at line 425 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE_EXT4 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) \ MOCKPP_VOID_CHAINABLE4_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \ m_name, v_type1, v_type2, v_type3, v_type4)
Implements a method with 4 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter |
Definition at line 501 of file ChainableMockObject.h.
#define MOCKPP_VOID_CHAINABLE_EXT5 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
m_type5, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4, | |||||
v_type5 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) \ MOCKPP_VOID_CHAINABLE5_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \ m_name, v_type1, v_type2, v_type3, v_type4, v_type5)
Implements a method with 5 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
m_type5 | the data type of the 5. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter | |
v_type5 | the data type of the internal variable of 5. parameter |
Definition at line 583 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE0 | ( | classname, | |||
name | ) |
public: \ void name() const \ MOCKPP_VOID_CHAINABLE0_IMPL(classname, name, \ name)
Implements a const method with 0 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name |
Definition at line 221 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE1 | ( | classname, | |||
name, | |||||
type1 | ) |
public: \ void name(const type1 ¶m1) const \ MOCKPP_VOID_CHAINABLE1_IMPL(classname, name, const type1 &, \ name, type1)
Implements a const method with 1 parameter for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter |
Definition at line 276 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE2 | ( | classname, | |||
name, | |||||
type1, | |||||
type2 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2) const \ MOCKPP_VOID_CHAINABLE2_IMPL(classname, name, const type1&, const type2&, \ name, type1, type2)
Implements a const method with 2 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter |
Definition at line 337 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE3 | ( | classname, | |||
name, | |||||
type1, | |||||
type2, | |||||
type3 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3) const \ MOCKPP_VOID_CHAINABLE3_IMPL(classname, name, const type1 &, const type2 &, const type3 &, \ name, type1, type2, type3)
Implements a const method with 3 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter |
Definition at line 405 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE4 | ( | classname, | |||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4) const \ MOCKPP_VOID_CHAINABLE4_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, \ name, type1, type2, type3, type4)
Implements a const method with 4 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter |
Definition at line 479 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE5 | ( | classname, | |||
name, | |||||
type1, | |||||
type2, | |||||
type3, | |||||
type4, | |||||
type5 | ) |
public: \ void name(const type1 ¶m1, const type2 ¶m2, const type3 ¶m3, const type4 ¶m4, const type5 ¶m5) const \ MOCKPP_VOID_CHAINABLE5_IMPL(classname, name, const type1 &, const type2 &, const type3 &, const type4 &, const type5 &, \ name, type1, type2, type3, type4, type5)
Implements a const method with 5 parameters for a mock object.
Serves also as a backwards compatibility macro.
classname | the name of the mock class to which the method belongs | |
name | the method name | |
type1 | the data type of the 1. parameter | |
type2 | the data type of the 2. parameter | |
type3 | the data type of the 3. parameter | |
type4 | the data type of the 4. parameter | |
type5 | the data type of the 5. parameter |
Definition at line 559 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE_EXT0 | ( | classname, | |||
m_name, | |||||
x_name | ) |
public: \ void m_name() const \ MOCKPP_VOID_CHAINABLE0_IMPL(classname, m_name ## x_name, \ m_name)
Implements a method with 0 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
x_name | optional extension for the internal variable names based on the method name |
Definition at line 249 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE_EXT1 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
x_name, | |||||
v_type1 | ) |
public: \ void m_name(m_type1 param1) const \ MOCKPP_VOID_CHAINABLE1_IMPL(classname, m_name ## x_name, m_type1, \ m_name, v_type1)
Implements a const method with 1 parameter for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter |
Definition at line 308 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE_EXT2 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
x_name, | |||||
v_type1, | |||||
v_type2 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2) const \ MOCKPP_VOID_CHAINABLE2_IMPL(classname, m_name ## x_name, m_type1, m_type2, \ m_name, v_type1, v_type2)
Implements a const method with 2 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter |
Definition at line 373 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE_EXT3 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2, m_type3 param3) const \ MOCKPP_VOID_CHAINABLE3_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, \ m_name, v_type1, v_type2, v_type3)
Implements a const method with 3 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter |
Definition at line 445 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE_EXT4 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4) const \ MOCKPP_VOID_CHAINABLE4_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, \ m_name, v_type1, v_type2, v_type3, v_type4)
Implements a const method with 4 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter |
Definition at line 523 of file ChainableMockObject.h.
#define MOCKPP_VOID_CONST_CHAINABLE_EXT5 | ( | classname, | |||
m_name, | |||||
m_type1, | |||||
m_type2, | |||||
m_type3, | |||||
m_type4, | |||||
m_type5, | |||||
x_name, | |||||
v_type1, | |||||
v_type2, | |||||
v_type3, | |||||
v_type4, | |||||
v_type5 | ) |
public: \ void m_name(m_type1 param1, m_type2 param2, m_type3 param3, m_type4 param4, m_type5 param5) const \ MOCKPP_VOID_CHAINABLE5_IMPL(classname, m_name ## x_name, m_type1, m_type2, m_type3, m_type4, m_type5, \ m_name, v_type1, v_type2, v_type3, v_type4, v_type5)
Implements a const method with 5 parameters for a mock object.
The macro distinguishes between the methods parameter and the types for the internal variables.
classname | the name of the mock class to which the method belongs | |
m_name | the method name | |
m_type1 | the data type of the 1. method parameter | |
m_type2 | the data type of the 2. method parameter | |
m_type3 | the data type of the 3. method parameter | |
m_type4 | the data type of the 4. method parameter | |
m_type5 | the data type of the 5. method parameter | |
x_name | optional extension for the internal variable names based on the method name | |
v_type1 | the data type of the internal variable of 1. parameter | |
v_type2 | the data type of the internal variable of 2. parameter | |
v_type3 | the data type of the internal variable of 3. parameter | |
v_type4 | the data type of the internal variable of 4. parameter | |
v_type5 | the data type of the internal variable of 5. parameter |
Definition at line 607 of file ChainableMockObject.h.