Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/testtools/micromock/inc/timediscretemicromockcallmacros.h

raw
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4
5 // THIS FILE IS AUTOGENERATED!
6 // DO NOT EDIT!
7
8
9 #ifndef TIMEDISCRETEMICROMOCKCALLMACROS_H
10 #define TIMEDISCRETEMICROMOCKCALLMACROS_H
11
12 #pragma once
13
14
15 #define MOCK_TD_METHOD_0(prefix, resultType, name) \
16 MOCK_METHOD_0(prefix, resultType, name)\
17 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
18 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
19
20 #define MOCK_STATIC_TD_METHOD_0(prefix, resultType, name) \
21 MOCK_STATIC_METHOD_0(prefix, resultType, name)\
22 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
23 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
24
25 #define MOCK_TD_METHOD_1(prefix, resultType, name, arg1Type, arg1Value) \
26 MOCK_METHOD_1(prefix, resultType, name, arg1Type, arg1Value)\
27 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
28 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
29
30 #define MOCK_STATIC_TD_METHOD_1(prefix, resultType, name, arg1Type, arg1Value) \
31 MOCK_STATIC_METHOD_1(prefix, resultType, name, arg1Type, arg1Value)\
32 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
33 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
34
35 #define MOCK_TD_METHOD_2(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value) \
36 MOCK_METHOD_2(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value)\
37 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
38 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
39
40 #define MOCK_STATIC_TD_METHOD_2(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value) \
41 MOCK_STATIC_METHOD_2(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value)\
42 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
43 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
44
45 #define MOCK_TD_METHOD_3(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value) \
46 MOCK_METHOD_3(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value)\
47 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
48 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
49
50 #define MOCK_STATIC_TD_METHOD_3(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value) \
51 MOCK_STATIC_METHOD_3(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value)\
52 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
53 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
54
55 #define MOCK_TD_METHOD_4(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value) \
56 MOCK_METHOD_4(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value)\
57 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
58 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
59
60 #define MOCK_STATIC_TD_METHOD_4(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value) \
61 MOCK_STATIC_METHOD_4(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value)\
62 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
63 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
64
65 #define MOCK_TD_METHOD_5(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value) \
66 MOCK_METHOD_5(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value)\
67 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
68 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
69
70 #define MOCK_STATIC_TD_METHOD_5(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value) \
71 MOCK_STATIC_METHOD_5(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value)\
72 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
73 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
74
75 #define MOCK_TD_METHOD_6(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value) \
76 MOCK_METHOD_6(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value)\
77 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
78 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
79
80 #define MOCK_STATIC_TD_METHOD_6(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value) \
81 MOCK_STATIC_METHOD_6(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value)\
82 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
83 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
84
85 #define MOCK_TD_METHOD_7(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value) \
86 MOCK_METHOD_7(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value)\
87 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
88 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
89
90 #define MOCK_STATIC_TD_METHOD_7(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value) \
91 MOCK_STATIC_METHOD_7(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value)\
92 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
93 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
94
95 #define MOCK_TD_METHOD_8(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value) \
96 MOCK_METHOD_8(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value)\
97 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
98 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
99
100 #define MOCK_STATIC_TD_METHOD_8(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value) \
101 MOCK_STATIC_METHOD_8(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value)\
102 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
103 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
104
105 #define MOCK_TD_METHOD_9(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value) \
106 MOCK_METHOD_9(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value)\
107 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
108 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
109
110 #define MOCK_STATIC_TD_METHOD_9(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value) \
111 MOCK_STATIC_METHOD_9(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value)\
112 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
113 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
114
115 #define MOCK_TD_METHOD_10(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value) \
116 MOCK_METHOD_10(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value)\
117 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
118 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
119
120 #define MOCK_STATIC_TD_METHOD_10(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value) \
121 MOCK_STATIC_METHOD_10(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value)\
122 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
123 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
124
125 #define MOCK_TD_METHOD_11(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value) \
126 MOCK_METHOD_11(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value)\
127 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
128 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
129
130 #define MOCK_STATIC_TD_METHOD_11(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value) \
131 MOCK_STATIC_METHOD_11(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value)\
132 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
133 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
134
135 #define MOCK_TD_METHOD_12(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value) \
136 MOCK_METHOD_12(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value)\
137 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
138 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
139
140 #define MOCK_STATIC_TD_METHOD_12(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value) \
141 MOCK_STATIC_METHOD_12(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value)\
142 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
143 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
144
145 #define MOCK_TD_METHOD_13(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value) \
146 MOCK_METHOD_13(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value)\
147 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
148 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
149
150 #define MOCK_STATIC_TD_METHOD_13(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value) \
151 MOCK_STATIC_METHOD_13(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value)\
152 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
153 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
154
155 #define MOCK_TD_METHOD_14(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value) \
156 MOCK_METHOD_14(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value)\
157 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
158 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
159
160 #define MOCK_STATIC_TD_METHOD_14(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value) \
161 MOCK_STATIC_METHOD_14(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value)\
162 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
163 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
164
165 #define MOCK_TD_METHOD_15(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value, arg15Type, arg15Value) \
166 MOCK_METHOD_15(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value, arg15Type, arg15Value)\
167 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
168 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
169
170 #define MOCK_STATIC_TD_METHOD_15(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value, arg15Type, arg15Value) \
171 MOCK_STATIC_METHOD_15(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value, arg15Type, arg15Value)\
172 mockMethodCall->AddExtraCallArgument(new CMockCallArgument<UINT32>(MOCK_TIMEPROVIDER(__FUNCTION__)));\
173 result = REMATCH_ACTUAL_STATIC_MOCK_CALL(mockMethodCall);\
174
175 #define STIM_CALL_AT(var, time, ...) var.__VA_ARGS__.SetTime(time, var.getAndIncOrder(time))
176
177 #define DECLARE_STIM_STATIC_TD_METHOD_0(prefix, resultType, name)\
178 class pFunctionCall_Wrapper_##name \
179 {\
180 public:\
181 typedef resultType (*pRealFunctionType)();\
182 static pRealFunctionType realFunction;\
183 };\
184 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
185
186 #define STIM_STATIC_TD_METHOD_0(prefix, resultType, name ) call0Arg<resultType, pFunctionCall_Wrapper_##name > name;
187
188 #define DECLARE_STIM_STATIC_TD_METHOD_1(prefix, resultType, name, arg1Type, arg1Value)\
189 class pFunctionCall_Wrapper_##name \
190 {\
191 public:\
192 typedef resultType (*pRealFunctionType)(arg1Type arg1Value);\
193 static pRealFunctionType realFunction;\
194 };\
195 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
196
197 #define STIM_STATIC_TD_METHOD_1(prefix, resultType, name , arg1Type, arg1Value) call1Arg<resultType, arg1Type, pFunctionCall_Wrapper_##name > name;
198
199 #define DECLARE_STIM_STATIC_TD_METHOD_2(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value)\
200 class pFunctionCall_Wrapper_##name \
201 {\
202 public:\
203 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value);\
204 static pRealFunctionType realFunction;\
205 };\
206 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
207
208 #define STIM_STATIC_TD_METHOD_2(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value) call2Arg<resultType, arg1Type, arg2Type, pFunctionCall_Wrapper_##name > name;
209
210 #define DECLARE_STIM_STATIC_TD_METHOD_3(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value)\
211 class pFunctionCall_Wrapper_##name \
212 {\
213 public:\
214 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value);\
215 static pRealFunctionType realFunction;\
216 };\
217 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
218
219 #define STIM_STATIC_TD_METHOD_3(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value) call3Arg<resultType, arg1Type, arg2Type, arg3Type, pFunctionCall_Wrapper_##name > name;
220
221 #define DECLARE_STIM_STATIC_TD_METHOD_4(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value)\
222 class pFunctionCall_Wrapper_##name \
223 {\
224 public:\
225 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value);\
226 static pRealFunctionType realFunction;\
227 };\
228 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
229
230 #define STIM_STATIC_TD_METHOD_4(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value) call4Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, pFunctionCall_Wrapper_##name > name;
231
232 #define DECLARE_STIM_STATIC_TD_METHOD_5(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value)\
233 class pFunctionCall_Wrapper_##name \
234 {\
235 public:\
236 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value);\
237 static pRealFunctionType realFunction;\
238 };\
239 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
240
241 #define STIM_STATIC_TD_METHOD_5(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value) call5Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, pFunctionCall_Wrapper_##name > name;
242
243 #define DECLARE_STIM_STATIC_TD_METHOD_6(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value)\
244 class pFunctionCall_Wrapper_##name \
245 {\
246 public:\
247 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value);\
248 static pRealFunctionType realFunction;\
249 };\
250 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
251
252 #define STIM_STATIC_TD_METHOD_6(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value) call6Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, pFunctionCall_Wrapper_##name > name;
253
254 #define DECLARE_STIM_STATIC_TD_METHOD_7(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value)\
255 class pFunctionCall_Wrapper_##name \
256 {\
257 public:\
258 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value);\
259 static pRealFunctionType realFunction;\
260 };\
261 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
262
263 #define STIM_STATIC_TD_METHOD_7(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value) call7Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, pFunctionCall_Wrapper_##name > name;
264
265 #define DECLARE_STIM_STATIC_TD_METHOD_8(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value)\
266 class pFunctionCall_Wrapper_##name \
267 {\
268 public:\
269 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value);\
270 static pRealFunctionType realFunction;\
271 };\
272 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
273
274 #define STIM_STATIC_TD_METHOD_8(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value) call8Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, pFunctionCall_Wrapper_##name > name;
275
276 #define DECLARE_STIM_STATIC_TD_METHOD_9(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value)\
277 class pFunctionCall_Wrapper_##name \
278 {\
279 public:\
280 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value);\
281 static pRealFunctionType realFunction;\
282 };\
283 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
284
285 #define STIM_STATIC_TD_METHOD_9(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value) call9Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, pFunctionCall_Wrapper_##name > name;
286
287 #define DECLARE_STIM_STATIC_TD_METHOD_10(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value)\
288 class pFunctionCall_Wrapper_##name \
289 {\
290 public:\
291 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value);\
292 static pRealFunctionType realFunction;\
293 };\
294 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
295
296 #define STIM_STATIC_TD_METHOD_10(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value) call10Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, pFunctionCall_Wrapper_##name > name;
297
298 #define DECLARE_STIM_STATIC_TD_METHOD_11(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value)\
299 class pFunctionCall_Wrapper_##name \
300 {\
301 public:\
302 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value);\
303 static pRealFunctionType realFunction;\
304 };\
305 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
306
307 #define STIM_STATIC_TD_METHOD_11(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value) call11Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, pFunctionCall_Wrapper_##name > name;
308
309 #define DECLARE_STIM_STATIC_TD_METHOD_12(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value)\
310 class pFunctionCall_Wrapper_##name \
311 {\
312 public:\
313 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value);\
314 static pRealFunctionType realFunction;\
315 };\
316 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
317
318 #define STIM_STATIC_TD_METHOD_12(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value) call12Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, pFunctionCall_Wrapper_##name > name;
319
320 #define DECLARE_STIM_STATIC_TD_METHOD_13(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value)\
321 class pFunctionCall_Wrapper_##name \
322 {\
323 public:\
324 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value, arg13Type arg13Value);\
325 static pRealFunctionType realFunction;\
326 };\
327 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
328
329 #define STIM_STATIC_TD_METHOD_13(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value) call13Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, pFunctionCall_Wrapper_##name > name;
330
331 #define DECLARE_STIM_STATIC_TD_METHOD_14(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value)\
332 class pFunctionCall_Wrapper_##name \
333 {\
334 public:\
335 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value, arg13Type arg13Value, arg14Type arg14Value);\
336 static pRealFunctionType realFunction;\
337 };\
338 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
339
340 #define STIM_STATIC_TD_METHOD_14(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value) call14Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, pFunctionCall_Wrapper_##name > name;
341
342 #define DECLARE_STIM_STATIC_TD_METHOD_15(prefix, resultType, name, arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value, arg15Type, arg15Value)\
343 class pFunctionCall_Wrapper_##name \
344 {\
345 public:\
346 typedef resultType (*pRealFunctionType)(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value, arg13Type arg13Value, arg14Type arg14Value, arg15Type arg15Value);\
347 static pRealFunctionType realFunction;\
348 };\
349 pFunctionCall_Wrapper_##name::pRealFunctionType pFunctionCall_Wrapper_##name::realFunction = ::name; /*so this never can go to a header*/
350
351 #define STIM_STATIC_TD_METHOD_15(prefix, resultType, name , arg1Type, arg1Value, arg2Type, arg2Value, arg3Type, arg3Value, arg4Type, arg4Value, arg5Type, arg5Value, arg6Type, arg6Value, arg7Type, arg7Value, arg8Type, arg8Value, arg9Type, arg9Value, arg10Type, arg10Value, arg11Type, arg11Value, arg12Type, arg12Value, arg13Type, arg13Value, arg14Type, arg14Value, arg15Type, arg15Value) call15Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, arg15Type, pFunctionCall_Wrapper_##name > name;
352
353 template<typename resultType,class C>class call0Arg : public canPlay
354 {
355 private:
356 class timeS
357 {
358 public:
359 timeS():
360 time(0), order(0)
361 {
362 }
363 UINT32 time;
364 UINT32 order;
365 };
366 std::vector<timeS> allCalls;
367 public:
368 call0Arg()
369 {
370 stims_base::registerCallXArg(this);
371 }
372
373 virtual ~call0Arg<resultType, C>()
374 {
375 }
376 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
377 {
378 for(UINT32 i=0; i<allCalls.size();i++)
379 {
380 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
381 {
382 C::realFunction();
383 }
384 }
385 }
386
387 call0Arg<resultType, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
388 {
389 if(allCalls.size()==0)
390 {
391 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
392 }
393 else
394 {
395 allCalls[allCalls.size()-1].time=time;
396 allCalls[allCalls.size()-1].order=order;
397 }
398 return *this;
399 }
400
401 call0Arg<resultType, C>& operator()()
402 {
403 timeS s;
404 allCalls.push_back(s); /*time is updated "later" by chaining*/
405 return *this;
406 }
407
408 };
409
410 template<typename resultType,typename arg1Type, class C>class call1Arg : public canPlay
411 {
412 private:
413 class timeS
414 {
415 public:
416 timeS(arg1Type arg1Value):
417 time(0), order(0), arg1(arg1Value)
418 {
419 }
420 UINT32 time;
421 UINT32 order;
422 valueHolder<arg1Type> arg1;
423 };
424 std::vector<timeS> allCalls;
425 public:
426 call1Arg()
427 {
428 stims_base::registerCallXArg(this);
429 }
430
431 virtual ~call1Arg<resultType, arg1Type, C>()
432 {
433 }
434 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
435 {
436 for(UINT32 i=0; i<allCalls.size();i++)
437 {
438 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
439 {
440 C::realFunction(allCalls[i].arg1);
441 }
442 }
443 }
444
445 call1Arg<resultType, arg1Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
446 {
447 if(allCalls.size()==0)
448 {
449 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
450 }
451 else
452 {
453 allCalls[allCalls.size()-1].time=time;
454 allCalls[allCalls.size()-1].order=order;
455 }
456 return *this;
457 }
458
459 call1Arg<resultType, arg1Type, C>& operator()(arg1Type arg1)
460 {
461 timeS s(arg1);
462 allCalls.push_back(s); /*time is updated "later" by chaining*/
463 return *this;
464 }
465
466 call1Arg<resultType, arg1Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
467 {
468 if(allCalls.size()==0)
469 {
470 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
471 }
472 else
473 {
474 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
475 switch(parameter)
476 {
477 case 1:
478 {
479 s.arg1.setArraySize(nElements);
480 break;
481 }
482 default:
483 {
484 ASSERT_FAIL(_T("there are no parameters so big"));
485 }
486 }
487 return *this;
488 }
489 }
490 };
491
492 template<typename resultType,typename arg1Type, typename arg2Type, class C>class call2Arg : public canPlay
493 {
494 private:
495 class timeS
496 {
497 public:
498 timeS(arg1Type arg1Value, arg2Type arg2Value):
499 time(0), order(0), arg1(arg1Value), arg2(arg2Value)
500 {
501 }
502 UINT32 time;
503 UINT32 order;
504 valueHolder<arg1Type> arg1;
505 valueHolder<arg2Type> arg2;
506 };
507 std::vector<timeS> allCalls;
508 public:
509 call2Arg()
510 {
511 stims_base::registerCallXArg(this);
512 }
513
514 virtual ~call2Arg<resultType, arg1Type, arg2Type, C>()
515 {
516 }
517 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
518 {
519 for(UINT32 i=0; i<allCalls.size();i++)
520 {
521 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
522 {
523 C::realFunction(allCalls[i].arg1, allCalls[i].arg2);
524 }
525 }
526 }
527
528 call2Arg<resultType, arg1Type, arg2Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
529 {
530 if(allCalls.size()==0)
531 {
532 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
533 }
534 else
535 {
536 allCalls[allCalls.size()-1].time=time;
537 allCalls[allCalls.size()-1].order=order;
538 }
539 return *this;
540 }
541
542 call2Arg<resultType, arg1Type, arg2Type, C>& operator()(arg1Type arg1,arg2Type arg2)
543 {
544 timeS s(arg1, arg2);
545 allCalls.push_back(s); /*time is updated "later" by chaining*/
546 return *this;
547 }
548
549 call2Arg<resultType, arg1Type, arg2Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
550 {
551 if(allCalls.size()==0)
552 {
553 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
554 }
555 else
556 {
557 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
558 switch(parameter)
559 {
560 case 1:
561 {
562 s.arg1.setArraySize(nElements);
563 break;
564 }
565 case 2:
566 {
567 s.arg2.setArraySize(nElements);
568 break;
569 }
570 default:
571 {
572 ASSERT_FAIL(_T("there are no parameters so big"));
573 }
574 }
575 return *this;
576 }
577 }
578 };
579
580 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, class C>class call3Arg : public canPlay
581 {
582 private:
583 class timeS
584 {
585 public:
586 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value):
587 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value)
588 {
589 }
590 UINT32 time;
591 UINT32 order;
592 valueHolder<arg1Type> arg1;
593 valueHolder<arg2Type> arg2;
594 valueHolder<arg3Type> arg3;
595 };
596 std::vector<timeS> allCalls;
597 public:
598 call3Arg()
599 {
600 stims_base::registerCallXArg(this);
601 }
602
603 virtual ~call3Arg<resultType, arg1Type, arg2Type, arg3Type, C>()
604 {
605 }
606 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
607 {
608 for(UINT32 i=0; i<allCalls.size();i++)
609 {
610 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
611 {
612 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3);
613 }
614 }
615 }
616
617 call3Arg<resultType, arg1Type, arg2Type, arg3Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
618 {
619 if(allCalls.size()==0)
620 {
621 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
622 }
623 else
624 {
625 allCalls[allCalls.size()-1].time=time;
626 allCalls[allCalls.size()-1].order=order;
627 }
628 return *this;
629 }
630
631 call3Arg<resultType, arg1Type, arg2Type, arg3Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3)
632 {
633 timeS s(arg1, arg2, arg3);
634 allCalls.push_back(s); /*time is updated "later" by chaining*/
635 return *this;
636 }
637
638 call3Arg<resultType, arg1Type, arg2Type, arg3Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
639 {
640 if(allCalls.size()==0)
641 {
642 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
643 }
644 else
645 {
646 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
647 switch(parameter)
648 {
649 case 1:
650 {
651 s.arg1.setArraySize(nElements);
652 break;
653 }
654 case 2:
655 {
656 s.arg2.setArraySize(nElements);
657 break;
658 }
659 case 3:
660 {
661 s.arg3.setArraySize(nElements);
662 break;
663 }
664 default:
665 {
666 ASSERT_FAIL(_T("there are no parameters so big"));
667 }
668 }
669 return *this;
670 }
671 }
672 };
673
674 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, class C>class call4Arg : public canPlay
675 {
676 private:
677 class timeS
678 {
679 public:
680 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value):
681 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value)
682 {
683 }
684 UINT32 time;
685 UINT32 order;
686 valueHolder<arg1Type> arg1;
687 valueHolder<arg2Type> arg2;
688 valueHolder<arg3Type> arg3;
689 valueHolder<arg4Type> arg4;
690 };
691 std::vector<timeS> allCalls;
692 public:
693 call4Arg()
694 {
695 stims_base::registerCallXArg(this);
696 }
697
698 virtual ~call4Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, C>()
699 {
700 }
701 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
702 {
703 for(UINT32 i=0; i<allCalls.size();i++)
704 {
705 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
706 {
707 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4);
708 }
709 }
710 }
711
712 call4Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
713 {
714 if(allCalls.size()==0)
715 {
716 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
717 }
718 else
719 {
720 allCalls[allCalls.size()-1].time=time;
721 allCalls[allCalls.size()-1].order=order;
722 }
723 return *this;
724 }
725
726 call4Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4)
727 {
728 timeS s(arg1, arg2, arg3, arg4);
729 allCalls.push_back(s); /*time is updated "later" by chaining*/
730 return *this;
731 }
732
733 call4Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
734 {
735 if(allCalls.size()==0)
736 {
737 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
738 }
739 else
740 {
741 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
742 switch(parameter)
743 {
744 case 1:
745 {
746 s.arg1.setArraySize(nElements);
747 break;
748 }
749 case 2:
750 {
751 s.arg2.setArraySize(nElements);
752 break;
753 }
754 case 3:
755 {
756 s.arg3.setArraySize(nElements);
757 break;
758 }
759 case 4:
760 {
761 s.arg4.setArraySize(nElements);
762 break;
763 }
764 default:
765 {
766 ASSERT_FAIL(_T("there are no parameters so big"));
767 }
768 }
769 return *this;
770 }
771 }
772 };
773
774 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, class C>class call5Arg : public canPlay
775 {
776 private:
777 class timeS
778 {
779 public:
780 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value):
781 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value)
782 {
783 }
784 UINT32 time;
785 UINT32 order;
786 valueHolder<arg1Type> arg1;
787 valueHolder<arg2Type> arg2;
788 valueHolder<arg3Type> arg3;
789 valueHolder<arg4Type> arg4;
790 valueHolder<arg5Type> arg5;
791 };
792 std::vector<timeS> allCalls;
793 public:
794 call5Arg()
795 {
796 stims_base::registerCallXArg(this);
797 }
798
799 virtual ~call5Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, C>()
800 {
801 }
802 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
803 {
804 for(UINT32 i=0; i<allCalls.size();i++)
805 {
806 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
807 {
808 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5);
809 }
810 }
811 }
812
813 call5Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
814 {
815 if(allCalls.size()==0)
816 {
817 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
818 }
819 else
820 {
821 allCalls[allCalls.size()-1].time=time;
822 allCalls[allCalls.size()-1].order=order;
823 }
824 return *this;
825 }
826
827 call5Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5)
828 {
829 timeS s(arg1, arg2, arg3, arg4, arg5);
830 allCalls.push_back(s); /*time is updated "later" by chaining*/
831 return *this;
832 }
833
834 call5Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
835 {
836 if(allCalls.size()==0)
837 {
838 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
839 }
840 else
841 {
842 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
843 switch(parameter)
844 {
845 case 1:
846 {
847 s.arg1.setArraySize(nElements);
848 break;
849 }
850 case 2:
851 {
852 s.arg2.setArraySize(nElements);
853 break;
854 }
855 case 3:
856 {
857 s.arg3.setArraySize(nElements);
858 break;
859 }
860 case 4:
861 {
862 s.arg4.setArraySize(nElements);
863 break;
864 }
865 case 5:
866 {
867 s.arg5.setArraySize(nElements);
868 break;
869 }
870 default:
871 {
872 ASSERT_FAIL(_T("there are no parameters so big"));
873 }
874 }
875 return *this;
876 }
877 }
878 };
879
880 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, class C>class call6Arg : public canPlay
881 {
882 private:
883 class timeS
884 {
885 public:
886 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value):
887 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value)
888 {
889 }
890 UINT32 time;
891 UINT32 order;
892 valueHolder<arg1Type> arg1;
893 valueHolder<arg2Type> arg2;
894 valueHolder<arg3Type> arg3;
895 valueHolder<arg4Type> arg4;
896 valueHolder<arg5Type> arg5;
897 valueHolder<arg6Type> arg6;
898 };
899 std::vector<timeS> allCalls;
900 public:
901 call6Arg()
902 {
903 stims_base::registerCallXArg(this);
904 }
905
906 virtual ~call6Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, C>()
907 {
908 }
909 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
910 {
911 for(UINT32 i=0; i<allCalls.size();i++)
912 {
913 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
914 {
915 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6);
916 }
917 }
918 }
919
920 call6Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
921 {
922 if(allCalls.size()==0)
923 {
924 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
925 }
926 else
927 {
928 allCalls[allCalls.size()-1].time=time;
929 allCalls[allCalls.size()-1].order=order;
930 }
931 return *this;
932 }
933
934 call6Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6)
935 {
936 timeS s(arg1, arg2, arg3, arg4, arg5, arg6);
937 allCalls.push_back(s); /*time is updated "later" by chaining*/
938 return *this;
939 }
940
941 call6Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
942 {
943 if(allCalls.size()==0)
944 {
945 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
946 }
947 else
948 {
949 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
950 switch(parameter)
951 {
952 case 1:
953 {
954 s.arg1.setArraySize(nElements);
955 break;
956 }
957 case 2:
958 {
959 s.arg2.setArraySize(nElements);
960 break;
961 }
962 case 3:
963 {
964 s.arg3.setArraySize(nElements);
965 break;
966 }
967 case 4:
968 {
969 s.arg4.setArraySize(nElements);
970 break;
971 }
972 case 5:
973 {
974 s.arg5.setArraySize(nElements);
975 break;
976 }
977 case 6:
978 {
979 s.arg6.setArraySize(nElements);
980 break;
981 }
982 default:
983 {
984 ASSERT_FAIL(_T("there are no parameters so big"));
985 }
986 }
987 return *this;
988 }
989 }
990 };
991
992 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, class C>class call7Arg : public canPlay
993 {
994 private:
995 class timeS
996 {
997 public:
998 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value):
999 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value)
1000 {
1001 }
1002 UINT32 time;
1003 UINT32 order;
1004 valueHolder<arg1Type> arg1;
1005 valueHolder<arg2Type> arg2;
1006 valueHolder<arg3Type> arg3;
1007 valueHolder<arg4Type> arg4;
1008 valueHolder<arg5Type> arg5;
1009 valueHolder<arg6Type> arg6;
1010 valueHolder<arg7Type> arg7;
1011 };
1012 std::vector<timeS> allCalls;
1013 public:
1014 call7Arg()
1015 {
1016 stims_base::registerCallXArg(this);
1017 }
1018
1019 virtual ~call7Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, C>()
1020 {
1021 }
1022 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1023 {
1024 for(UINT32 i=0; i<allCalls.size();i++)
1025 {
1026 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1027 {
1028 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7);
1029 }
1030 }
1031 }
1032
1033 call7Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1034 {
1035 if(allCalls.size()==0)
1036 {
1037 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1038 }
1039 else
1040 {
1041 allCalls[allCalls.size()-1].time=time;
1042 allCalls[allCalls.size()-1].order=order;
1043 }
1044 return *this;
1045 }
1046
1047 call7Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7)
1048 {
1049 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
1050 allCalls.push_back(s); /*time is updated "later" by chaining*/
1051 return *this;
1052 }
1053
1054 call7Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
1055 {
1056 if(allCalls.size()==0)
1057 {
1058 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
1059 }
1060 else
1061 {
1062 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
1063 switch(parameter)
1064 {
1065 case 1:
1066 {
1067 s.arg1.setArraySize(nElements);
1068 break;
1069 }
1070 case 2:
1071 {
1072 s.arg2.setArraySize(nElements);
1073 break;
1074 }
1075 case 3:
1076 {
1077 s.arg3.setArraySize(nElements);
1078 break;
1079 }
1080 case 4:
1081 {
1082 s.arg4.setArraySize(nElements);
1083 break;
1084 }
1085 case 5:
1086 {
1087 s.arg5.setArraySize(nElements);
1088 break;
1089 }
1090 case 6:
1091 {
1092 s.arg6.setArraySize(nElements);
1093 break;
1094 }
1095 case 7:
1096 {
1097 s.arg7.setArraySize(nElements);
1098 break;
1099 }
1100 default:
1101 {
1102 ASSERT_FAIL(_T("there are no parameters so big"));
1103 }
1104 }
1105 return *this;
1106 }
1107 }
1108 };
1109
1110 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, class C>class call8Arg : public canPlay
1111 {
1112 private:
1113 class timeS
1114 {
1115 public:
1116 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value):
1117 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value)
1118 {
1119 }
1120 UINT32 time;
1121 UINT32 order;
1122 valueHolder<arg1Type> arg1;
1123 valueHolder<arg2Type> arg2;
1124 valueHolder<arg3Type> arg3;
1125 valueHolder<arg4Type> arg4;
1126 valueHolder<arg5Type> arg5;
1127 valueHolder<arg6Type> arg6;
1128 valueHolder<arg7Type> arg7;
1129 valueHolder<arg8Type> arg8;
1130 };
1131 std::vector<timeS> allCalls;
1132 public:
1133 call8Arg()
1134 {
1135 stims_base::registerCallXArg(this);
1136 }
1137
1138 virtual ~call8Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, C>()
1139 {
1140 }
1141 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1142 {
1143 for(UINT32 i=0; i<allCalls.size();i++)
1144 {
1145 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1146 {
1147 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8);
1148 }
1149 }
1150 }
1151
1152 call8Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1153 {
1154 if(allCalls.size()==0)
1155 {
1156 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1157 }
1158 else
1159 {
1160 allCalls[allCalls.size()-1].time=time;
1161 allCalls[allCalls.size()-1].order=order;
1162 }
1163 return *this;
1164 }
1165
1166 call8Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8)
1167 {
1168 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
1169 allCalls.push_back(s); /*time is updated "later" by chaining*/
1170 return *this;
1171 }
1172
1173 call8Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
1174 {
1175 if(allCalls.size()==0)
1176 {
1177 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
1178 }
1179 else
1180 {
1181 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
1182 switch(parameter)
1183 {
1184 case 1:
1185 {
1186 s.arg1.setArraySize(nElements);
1187 break;
1188 }
1189 case 2:
1190 {
1191 s.arg2.setArraySize(nElements);
1192 break;
1193 }
1194 case 3:
1195 {
1196 s.arg3.setArraySize(nElements);
1197 break;
1198 }
1199 case 4:
1200 {
1201 s.arg4.setArraySize(nElements);
1202 break;
1203 }
1204 case 5:
1205 {
1206 s.arg5.setArraySize(nElements);
1207 break;
1208 }
1209 case 6:
1210 {
1211 s.arg6.setArraySize(nElements);
1212 break;
1213 }
1214 case 7:
1215 {
1216 s.arg7.setArraySize(nElements);
1217 break;
1218 }
1219 case 8:
1220 {
1221 s.arg8.setArraySize(nElements);
1222 break;
1223 }
1224 default:
1225 {
1226 ASSERT_FAIL(_T("there are no parameters so big"));
1227 }
1228 }
1229 return *this;
1230 }
1231 }
1232 };
1233
1234 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, typename arg9Type, class C>class call9Arg : public canPlay
1235 {
1236 private:
1237 class timeS
1238 {
1239 public:
1240 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value):
1241 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value), arg9(arg9Value)
1242 {
1243 }
1244 UINT32 time;
1245 UINT32 order;
1246 valueHolder<arg1Type> arg1;
1247 valueHolder<arg2Type> arg2;
1248 valueHolder<arg3Type> arg3;
1249 valueHolder<arg4Type> arg4;
1250 valueHolder<arg5Type> arg5;
1251 valueHolder<arg6Type> arg6;
1252 valueHolder<arg7Type> arg7;
1253 valueHolder<arg8Type> arg8;
1254 valueHolder<arg9Type> arg9;
1255 };
1256 std::vector<timeS> allCalls;
1257 public:
1258 call9Arg()
1259 {
1260 stims_base::registerCallXArg(this);
1261 }
1262
1263 virtual ~call9Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, C>()
1264 {
1265 }
1266 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1267 {
1268 for(UINT32 i=0; i<allCalls.size();i++)
1269 {
1270 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1271 {
1272 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8, allCalls[i].arg9);
1273 }
1274 }
1275 }
1276
1277 call9Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1278 {
1279 if(allCalls.size()==0)
1280 {
1281 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1282 }
1283 else
1284 {
1285 allCalls[allCalls.size()-1].time=time;
1286 allCalls[allCalls.size()-1].order=order;
1287 }
1288 return *this;
1289 }
1290
1291 call9Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8,arg9Type arg9)
1292 {
1293 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
1294 allCalls.push_back(s); /*time is updated "later" by chaining*/
1295 return *this;
1296 }
1297
1298 call9Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
1299 {
1300 if(allCalls.size()==0)
1301 {
1302 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
1303 }
1304 else
1305 {
1306 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
1307 switch(parameter)
1308 {
1309 case 1:
1310 {
1311 s.arg1.setArraySize(nElements);
1312 break;
1313 }
1314 case 2:
1315 {
1316 s.arg2.setArraySize(nElements);
1317 break;
1318 }
1319 case 3:
1320 {
1321 s.arg3.setArraySize(nElements);
1322 break;
1323 }
1324 case 4:
1325 {
1326 s.arg4.setArraySize(nElements);
1327 break;
1328 }
1329 case 5:
1330 {
1331 s.arg5.setArraySize(nElements);
1332 break;
1333 }
1334 case 6:
1335 {
1336 s.arg6.setArraySize(nElements);
1337 break;
1338 }
1339 case 7:
1340 {
1341 s.arg7.setArraySize(nElements);
1342 break;
1343 }
1344 case 8:
1345 {
1346 s.arg8.setArraySize(nElements);
1347 break;
1348 }
1349 case 9:
1350 {
1351 s.arg9.setArraySize(nElements);
1352 break;
1353 }
1354 default:
1355 {
1356 ASSERT_FAIL(_T("there are no parameters so big"));
1357 }
1358 }
1359 return *this;
1360 }
1361 }
1362 };
1363
1364 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, typename arg9Type, typename arg10Type, class C>class call10Arg : public canPlay
1365 {
1366 private:
1367 class timeS
1368 {
1369 public:
1370 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value):
1371 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value), arg9(arg9Value), arg10(arg10Value)
1372 {
1373 }
1374 UINT32 time;
1375 UINT32 order;
1376 valueHolder<arg1Type> arg1;
1377 valueHolder<arg2Type> arg2;
1378 valueHolder<arg3Type> arg3;
1379 valueHolder<arg4Type> arg4;
1380 valueHolder<arg5Type> arg5;
1381 valueHolder<arg6Type> arg6;
1382 valueHolder<arg7Type> arg7;
1383 valueHolder<arg8Type> arg8;
1384 valueHolder<arg9Type> arg9;
1385 valueHolder<arg10Type> arg10;
1386 };
1387 std::vector<timeS> allCalls;
1388 public:
1389 call10Arg()
1390 {
1391 stims_base::registerCallXArg(this);
1392 }
1393
1394 virtual ~call10Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, C>()
1395 {
1396 }
1397 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1398 {
1399 for(UINT32 i=0; i<allCalls.size();i++)
1400 {
1401 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1402 {
1403 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8, allCalls[i].arg9, allCalls[i].arg10);
1404 }
1405 }
1406 }
1407
1408 call10Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1409 {
1410 if(allCalls.size()==0)
1411 {
1412 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1413 }
1414 else
1415 {
1416 allCalls[allCalls.size()-1].time=time;
1417 allCalls[allCalls.size()-1].order=order;
1418 }
1419 return *this;
1420 }
1421
1422 call10Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8,arg9Type arg9,arg10Type arg10)
1423 {
1424 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
1425 allCalls.push_back(s); /*time is updated "later" by chaining*/
1426 return *this;
1427 }
1428
1429 call10Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
1430 {
1431 if(allCalls.size()==0)
1432 {
1433 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
1434 }
1435 else
1436 {
1437 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
1438 switch(parameter)
1439 {
1440 case 1:
1441 {
1442 s.arg1.setArraySize(nElements);
1443 break;
1444 }
1445 case 2:
1446 {
1447 s.arg2.setArraySize(nElements);
1448 break;
1449 }
1450 case 3:
1451 {
1452 s.arg3.setArraySize(nElements);
1453 break;
1454 }
1455 case 4:
1456 {
1457 s.arg4.setArraySize(nElements);
1458 break;
1459 }
1460 case 5:
1461 {
1462 s.arg5.setArraySize(nElements);
1463 break;
1464 }
1465 case 6:
1466 {
1467 s.arg6.setArraySize(nElements);
1468 break;
1469 }
1470 case 7:
1471 {
1472 s.arg7.setArraySize(nElements);
1473 break;
1474 }
1475 case 8:
1476 {
1477 s.arg8.setArraySize(nElements);
1478 break;
1479 }
1480 case 9:
1481 {
1482 s.arg9.setArraySize(nElements);
1483 break;
1484 }
1485 case 10:
1486 {
1487 s.arg10.setArraySize(nElements);
1488 break;
1489 }
1490 default:
1491 {
1492 ASSERT_FAIL(_T("there are no parameters so big"));
1493 }
1494 }
1495 return *this;
1496 }
1497 }
1498 };
1499
1500 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, typename arg9Type, typename arg10Type, typename arg11Type, class C>class call11Arg : public canPlay
1501 {
1502 private:
1503 class timeS
1504 {
1505 public:
1506 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value):
1507 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value), arg9(arg9Value), arg10(arg10Value), arg11(arg11Value)
1508 {
1509 }
1510 UINT32 time;
1511 UINT32 order;
1512 valueHolder<arg1Type> arg1;
1513 valueHolder<arg2Type> arg2;
1514 valueHolder<arg3Type> arg3;
1515 valueHolder<arg4Type> arg4;
1516 valueHolder<arg5Type> arg5;
1517 valueHolder<arg6Type> arg6;
1518 valueHolder<arg7Type> arg7;
1519 valueHolder<arg8Type> arg8;
1520 valueHolder<arg9Type> arg9;
1521 valueHolder<arg10Type> arg10;
1522 valueHolder<arg11Type> arg11;
1523 };
1524 std::vector<timeS> allCalls;
1525 public:
1526 call11Arg()
1527 {
1528 stims_base::registerCallXArg(this);
1529 }
1530
1531 virtual ~call11Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, C>()
1532 {
1533 }
1534 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1535 {
1536 for(UINT32 i=0; i<allCalls.size();i++)
1537 {
1538 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1539 {
1540 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8, allCalls[i].arg9, allCalls[i].arg10, allCalls[i].arg11);
1541 }
1542 }
1543 }
1544
1545 call11Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1546 {
1547 if(allCalls.size()==0)
1548 {
1549 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1550 }
1551 else
1552 {
1553 allCalls[allCalls.size()-1].time=time;
1554 allCalls[allCalls.size()-1].order=order;
1555 }
1556 return *this;
1557 }
1558
1559 call11Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8,arg9Type arg9,arg10Type arg10,arg11Type arg11)
1560 {
1561 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
1562 allCalls.push_back(s); /*time is updated "later" by chaining*/
1563 return *this;
1564 }
1565
1566 call11Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
1567 {
1568 if(allCalls.size()==0)
1569 {
1570 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
1571 }
1572 else
1573 {
1574 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
1575 switch(parameter)
1576 {
1577 case 1:
1578 {
1579 s.arg1.setArraySize(nElements);
1580 break;
1581 }
1582 case 2:
1583 {
1584 s.arg2.setArraySize(nElements);
1585 break;
1586 }
1587 case 3:
1588 {
1589 s.arg3.setArraySize(nElements);
1590 break;
1591 }
1592 case 4:
1593 {
1594 s.arg4.setArraySize(nElements);
1595 break;
1596 }
1597 case 5:
1598 {
1599 s.arg5.setArraySize(nElements);
1600 break;
1601 }
1602 case 6:
1603 {
1604 s.arg6.setArraySize(nElements);
1605 break;
1606 }
1607 case 7:
1608 {
1609 s.arg7.setArraySize(nElements);
1610 break;
1611 }
1612 case 8:
1613 {
1614 s.arg8.setArraySize(nElements);
1615 break;
1616 }
1617 case 9:
1618 {
1619 s.arg9.setArraySize(nElements);
1620 break;
1621 }
1622 case 10:
1623 {
1624 s.arg10.setArraySize(nElements);
1625 break;
1626 }
1627 case 11:
1628 {
1629 s.arg11.setArraySize(nElements);
1630 break;
1631 }
1632 default:
1633 {
1634 ASSERT_FAIL(_T("there are no parameters so big"));
1635 }
1636 }
1637 return *this;
1638 }
1639 }
1640 };
1641
1642 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, typename arg9Type, typename arg10Type, typename arg11Type, typename arg12Type, class C>class call12Arg : public canPlay
1643 {
1644 private:
1645 class timeS
1646 {
1647 public:
1648 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value):
1649 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value), arg9(arg9Value), arg10(arg10Value), arg11(arg11Value), arg12(arg12Value)
1650 {
1651 }
1652 UINT32 time;
1653 UINT32 order;
1654 valueHolder<arg1Type> arg1;
1655 valueHolder<arg2Type> arg2;
1656 valueHolder<arg3Type> arg3;
1657 valueHolder<arg4Type> arg4;
1658 valueHolder<arg5Type> arg5;
1659 valueHolder<arg6Type> arg6;
1660 valueHolder<arg7Type> arg7;
1661 valueHolder<arg8Type> arg8;
1662 valueHolder<arg9Type> arg9;
1663 valueHolder<arg10Type> arg10;
1664 valueHolder<arg11Type> arg11;
1665 valueHolder<arg12Type> arg12;
1666 };
1667 std::vector<timeS> allCalls;
1668 public:
1669 call12Arg()
1670 {
1671 stims_base::registerCallXArg(this);
1672 }
1673
1674 virtual ~call12Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, C>()
1675 {
1676 }
1677 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1678 {
1679 for(UINT32 i=0; i<allCalls.size();i++)
1680 {
1681 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1682 {
1683 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8, allCalls[i].arg9, allCalls[i].arg10, allCalls[i].arg11, allCalls[i].arg12);
1684 }
1685 }
1686 }
1687
1688 call12Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1689 {
1690 if(allCalls.size()==0)
1691 {
1692 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1693 }
1694 else
1695 {
1696 allCalls[allCalls.size()-1].time=time;
1697 allCalls[allCalls.size()-1].order=order;
1698 }
1699 return *this;
1700 }
1701
1702 call12Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8,arg9Type arg9,arg10Type arg10,arg11Type arg11,arg12Type arg12)
1703 {
1704 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
1705 allCalls.push_back(s); /*time is updated "later" by chaining*/
1706 return *this;
1707 }
1708
1709 call12Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
1710 {
1711 if(allCalls.size()==0)
1712 {
1713 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
1714 }
1715 else
1716 {
1717 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
1718 switch(parameter)
1719 {
1720 case 1:
1721 {
1722 s.arg1.setArraySize(nElements);
1723 break;
1724 }
1725 case 2:
1726 {
1727 s.arg2.setArraySize(nElements);
1728 break;
1729 }
1730 case 3:
1731 {
1732 s.arg3.setArraySize(nElements);
1733 break;
1734 }
1735 case 4:
1736 {
1737 s.arg4.setArraySize(nElements);
1738 break;
1739 }
1740 case 5:
1741 {
1742 s.arg5.setArraySize(nElements);
1743 break;
1744 }
1745 case 6:
1746 {
1747 s.arg6.setArraySize(nElements);
1748 break;
1749 }
1750 case 7:
1751 {
1752 s.arg7.setArraySize(nElements);
1753 break;
1754 }
1755 case 8:
1756 {
1757 s.arg8.setArraySize(nElements);
1758 break;
1759 }
1760 case 9:
1761 {
1762 s.arg9.setArraySize(nElements);
1763 break;
1764 }
1765 case 10:
1766 {
1767 s.arg10.setArraySize(nElements);
1768 break;
1769 }
1770 case 11:
1771 {
1772 s.arg11.setArraySize(nElements);
1773 break;
1774 }
1775 case 12:
1776 {
1777 s.arg12.setArraySize(nElements);
1778 break;
1779 }
1780 default:
1781 {
1782 ASSERT_FAIL(_T("there are no parameters so big"));
1783 }
1784 }
1785 return *this;
1786 }
1787 }
1788 };
1789
1790 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, typename arg9Type, typename arg10Type, typename arg11Type, typename arg12Type, typename arg13Type, class C>class call13Arg : public canPlay
1791 {
1792 private:
1793 class timeS
1794 {
1795 public:
1796 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value, arg13Type arg13Value):
1797 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value), arg9(arg9Value), arg10(arg10Value), arg11(arg11Value), arg12(arg12Value), arg13(arg13Value)
1798 {
1799 }
1800 UINT32 time;
1801 UINT32 order;
1802 valueHolder<arg1Type> arg1;
1803 valueHolder<arg2Type> arg2;
1804 valueHolder<arg3Type> arg3;
1805 valueHolder<arg4Type> arg4;
1806 valueHolder<arg5Type> arg5;
1807 valueHolder<arg6Type> arg6;
1808 valueHolder<arg7Type> arg7;
1809 valueHolder<arg8Type> arg8;
1810 valueHolder<arg9Type> arg9;
1811 valueHolder<arg10Type> arg10;
1812 valueHolder<arg11Type> arg11;
1813 valueHolder<arg12Type> arg12;
1814 valueHolder<arg13Type> arg13;
1815 };
1816 std::vector<timeS> allCalls;
1817 public:
1818 call13Arg()
1819 {
1820 stims_base::registerCallXArg(this);
1821 }
1822
1823 virtual ~call13Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, C>()
1824 {
1825 }
1826 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1827 {
1828 for(UINT32 i=0; i<allCalls.size();i++)
1829 {
1830 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1831 {
1832 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8, allCalls[i].arg9, allCalls[i].arg10, allCalls[i].arg11, allCalls[i].arg12, allCalls[i].arg13);
1833 }
1834 }
1835 }
1836
1837 call13Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1838 {
1839 if(allCalls.size()==0)
1840 {
1841 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1842 }
1843 else
1844 {
1845 allCalls[allCalls.size()-1].time=time;
1846 allCalls[allCalls.size()-1].order=order;
1847 }
1848 return *this;
1849 }
1850
1851 call13Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8,arg9Type arg9,arg10Type arg10,arg11Type arg11,arg12Type arg12,arg13Type arg13)
1852 {
1853 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13);
1854 allCalls.push_back(s); /*time is updated "later" by chaining*/
1855 return *this;
1856 }
1857
1858 call13Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
1859 {
1860 if(allCalls.size()==0)
1861 {
1862 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
1863 }
1864 else
1865 {
1866 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
1867 switch(parameter)
1868 {
1869 case 1:
1870 {
1871 s.arg1.setArraySize(nElements);
1872 break;
1873 }
1874 case 2:
1875 {
1876 s.arg2.setArraySize(nElements);
1877 break;
1878 }
1879 case 3:
1880 {
1881 s.arg3.setArraySize(nElements);
1882 break;
1883 }
1884 case 4:
1885 {
1886 s.arg4.setArraySize(nElements);
1887 break;
1888 }
1889 case 5:
1890 {
1891 s.arg5.setArraySize(nElements);
1892 break;
1893 }
1894 case 6:
1895 {
1896 s.arg6.setArraySize(nElements);
1897 break;
1898 }
1899 case 7:
1900 {
1901 s.arg7.setArraySize(nElements);
1902 break;
1903 }
1904 case 8:
1905 {
1906 s.arg8.setArraySize(nElements);
1907 break;
1908 }
1909 case 9:
1910 {
1911 s.arg9.setArraySize(nElements);
1912 break;
1913 }
1914 case 10:
1915 {
1916 s.arg10.setArraySize(nElements);
1917 break;
1918 }
1919 case 11:
1920 {
1921 s.arg11.setArraySize(nElements);
1922 break;
1923 }
1924 case 12:
1925 {
1926 s.arg12.setArraySize(nElements);
1927 break;
1928 }
1929 case 13:
1930 {
1931 s.arg13.setArraySize(nElements);
1932 break;
1933 }
1934 default:
1935 {
1936 ASSERT_FAIL(_T("there are no parameters so big"));
1937 }
1938 }
1939 return *this;
1940 }
1941 }
1942 };
1943
1944 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, typename arg9Type, typename arg10Type, typename arg11Type, typename arg12Type, typename arg13Type, typename arg14Type, class C>class call14Arg : public canPlay
1945 {
1946 private:
1947 class timeS
1948 {
1949 public:
1950 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value, arg13Type arg13Value, arg14Type arg14Value):
1951 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value), arg9(arg9Value), arg10(arg10Value), arg11(arg11Value), arg12(arg12Value), arg13(arg13Value), arg14(arg14Value)
1952 {
1953 }
1954 UINT32 time;
1955 UINT32 order;
1956 valueHolder<arg1Type> arg1;
1957 valueHolder<arg2Type> arg2;
1958 valueHolder<arg3Type> arg3;
1959 valueHolder<arg4Type> arg4;
1960 valueHolder<arg5Type> arg5;
1961 valueHolder<arg6Type> arg6;
1962 valueHolder<arg7Type> arg7;
1963 valueHolder<arg8Type> arg8;
1964 valueHolder<arg9Type> arg9;
1965 valueHolder<arg10Type> arg10;
1966 valueHolder<arg11Type> arg11;
1967 valueHolder<arg12Type> arg12;
1968 valueHolder<arg13Type> arg13;
1969 valueHolder<arg14Type> arg14;
1970 };
1971 std::vector<timeS> allCalls;
1972 public:
1973 call14Arg()
1974 {
1975 stims_base::registerCallXArg(this);
1976 }
1977
1978 virtual ~call14Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, C>()
1979 {
1980 }
1981 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
1982 {
1983 for(UINT32 i=0; i<allCalls.size();i++)
1984 {
1985 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
1986 {
1987 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8, allCalls[i].arg9, allCalls[i].arg10, allCalls[i].arg11, allCalls[i].arg12, allCalls[i].arg13, allCalls[i].arg14);
1988 }
1989 }
1990 }
1991
1992 call14Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
1993 {
1994 if(allCalls.size()==0)
1995 {
1996 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
1997 }
1998 else
1999 {
2000 allCalls[allCalls.size()-1].time=time;
2001 allCalls[allCalls.size()-1].order=order;
2002 }
2003 return *this;
2004 }
2005
2006 call14Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8,arg9Type arg9,arg10Type arg10,arg11Type arg11,arg12Type arg12,arg13Type arg13,arg14Type arg14)
2007 {
2008 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14);
2009 allCalls.push_back(s); /*time is updated "later" by chaining*/
2010 return *this;
2011 }
2012
2013 call14Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
2014 {
2015 if(allCalls.size()==0)
2016 {
2017 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
2018 }
2019 else
2020 {
2021 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
2022 switch(parameter)
2023 {
2024 case 1:
2025 {
2026 s.arg1.setArraySize(nElements);
2027 break;
2028 }
2029 case 2:
2030 {
2031 s.arg2.setArraySize(nElements);
2032 break;
2033 }
2034 case 3:
2035 {
2036 s.arg3.setArraySize(nElements);
2037 break;
2038 }
2039 case 4:
2040 {
2041 s.arg4.setArraySize(nElements);
2042 break;
2043 }
2044 case 5:
2045 {
2046 s.arg5.setArraySize(nElements);
2047 break;
2048 }
2049 case 6:
2050 {
2051 s.arg6.setArraySize(nElements);
2052 break;
2053 }
2054 case 7:
2055 {
2056 s.arg7.setArraySize(nElements);
2057 break;
2058 }
2059 case 8:
2060 {
2061 s.arg8.setArraySize(nElements);
2062 break;
2063 }
2064 case 9:
2065 {
2066 s.arg9.setArraySize(nElements);
2067 break;
2068 }
2069 case 10:
2070 {
2071 s.arg10.setArraySize(nElements);
2072 break;
2073 }
2074 case 11:
2075 {
2076 s.arg11.setArraySize(nElements);
2077 break;
2078 }
2079 case 12:
2080 {
2081 s.arg12.setArraySize(nElements);
2082 break;
2083 }
2084 case 13:
2085 {
2086 s.arg13.setArraySize(nElements);
2087 break;
2088 }
2089 case 14:
2090 {
2091 s.arg14.setArraySize(nElements);
2092 break;
2093 }
2094 default:
2095 {
2096 ASSERT_FAIL(_T("there are no parameters so big"));
2097 }
2098 }
2099 return *this;
2100 }
2101 }
2102 };
2103
2104 template<typename resultType,typename arg1Type, typename arg2Type, typename arg3Type, typename arg4Type, typename arg5Type, typename arg6Type, typename arg7Type, typename arg8Type, typename arg9Type, typename arg10Type, typename arg11Type, typename arg12Type, typename arg13Type, typename arg14Type, typename arg15Type, class C>class call15Arg : public canPlay
2105 {
2106 private:
2107 class timeS
2108 {
2109 public:
2110 timeS(arg1Type arg1Value, arg2Type arg2Value, arg3Type arg3Value, arg4Type arg4Value, arg5Type arg5Value, arg6Type arg6Value, arg7Type arg7Value, arg8Type arg8Value, arg9Type arg9Value, arg10Type arg10Value, arg11Type arg11Value, arg12Type arg12Value, arg13Type arg13Value, arg14Type arg14Value, arg15Type arg15Value):
2111 time(0), order(0), arg1(arg1Value), arg2(arg2Value), arg3(arg3Value), arg4(arg4Value), arg5(arg5Value), arg6(arg6Value), arg7(arg7Value), arg8(arg8Value), arg9(arg9Value), arg10(arg10Value), arg11(arg11Value), arg12(arg12Value), arg13(arg13Value), arg14(arg14Value), arg15(arg15Value)
2112 {
2113 }
2114 UINT32 time;
2115 UINT32 order;
2116 valueHolder<arg1Type> arg1;
2117 valueHolder<arg2Type> arg2;
2118 valueHolder<arg3Type> arg3;
2119 valueHolder<arg4Type> arg4;
2120 valueHolder<arg5Type> arg5;
2121 valueHolder<arg6Type> arg6;
2122 valueHolder<arg7Type> arg7;
2123 valueHolder<arg8Type> arg8;
2124 valueHolder<arg9Type> arg9;
2125 valueHolder<arg10Type> arg10;
2126 valueHolder<arg11Type> arg11;
2127 valueHolder<arg12Type> arg12;
2128 valueHolder<arg13Type> arg13;
2129 valueHolder<arg14Type> arg14;
2130 valueHolder<arg15Type> arg15;
2131 };
2132 std::vector<timeS> allCalls;
2133 public:
2134 call15Arg()
2135 {
2136 stims_base::registerCallXArg(this);
2137 }
2138
2139 virtual ~call15Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, arg15Type, C>()
2140 {
2141 }
2142 virtual void PlayTick(_In_ UINT32 tick, _In_ UINT32 order)
2143 {
2144 for(UINT32 i=0; i<allCalls.size();i++)
2145 {
2146 if((allCalls[i].time==tick)&&(allCalls[i].order==order))
2147 {
2148 C::realFunction(allCalls[i].arg1, allCalls[i].arg2, allCalls[i].arg3, allCalls[i].arg4, allCalls[i].arg5, allCalls[i].arg6, allCalls[i].arg7, allCalls[i].arg8, allCalls[i].arg9, allCalls[i].arg10, allCalls[i].arg11, allCalls[i].arg12, allCalls[i].arg13, allCalls[i].arg14, allCalls[i].arg15);
2149 }
2150 }
2151 }
2152
2153 call15Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, arg15Type, C>& SetTime(_In_ UINT32 time, _In_ UINT32 order)
2154 {
2155 if(allCalls.size()==0)
2156 {
2157 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_TIME_BEFORE_CALL, _T("using SetTime before the call has been defined usually indicates an error in test code"));
2158 }
2159 else
2160 {
2161 allCalls[allCalls.size()-1].time=time;
2162 allCalls[allCalls.size()-1].order=order;
2163 }
2164 return *this;
2165 }
2166
2167 call15Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, arg15Type, C>& operator()(arg1Type arg1,arg2Type arg2,arg3Type arg3,arg4Type arg4,arg5Type arg5,arg6Type arg6,arg7Type arg7,arg8Type arg8,arg9Type arg9,arg10Type arg10,arg11Type arg11,arg12Type arg12,arg13Type arg13,arg14Type arg14,arg15Type arg15)
2168 {
2169 timeS s(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15);
2170 allCalls.push_back(s); /*time is updated "later" by chaining*/
2171 return *this;
2172 }
2173
2174 call15Arg<resultType, arg1Type, arg2Type, arg3Type, arg4Type, arg5Type, arg6Type, arg7Type, arg8Type, arg9Type, arg10Type, arg11Type, arg12Type, arg13Type, arg14Type, arg15Type, C>& setArraySize(_In_ UINT32 parameter, _In_ size_t nElements)
2175 {
2176 if(allCalls.size()==0)
2177 {
2178 throw CMicroMockException(MICROMOCK_EXCEPTION_SET_ARRAY_SIZE_BEFORE_CALL, _T("using setArraySize before the call has been defined usually indicates an error in test code"));
2179 }
2180 else
2181 {
2182 timeS& s = allCalls[allCalls.size()-1]; /*get the last element*/
2183 switch(parameter)
2184 {
2185 case 1:
2186 {
2187 s.arg1.setArraySize(nElements);
2188 break;
2189 }
2190 case 2:
2191 {
2192 s.arg2.setArraySize(nElements);
2193 break;
2194 }
2195 case 3:
2196 {
2197 s.arg3.setArraySize(nElements);
2198 break;
2199 }
2200 case 4:
2201 {
2202 s.arg4.setArraySize(nElements);
2203 break;
2204 }
2205 case 5:
2206 {
2207 s.arg5.setArraySize(nElements);
2208 break;
2209 }
2210 case 6:
2211 {
2212 s.arg6.setArraySize(nElements);
2213 break;
2214 }
2215 case 7:
2216 {
2217 s.arg7.setArraySize(nElements);
2218 break;
2219 }
2220 case 8:
2221 {
2222 s.arg8.setArraySize(nElements);
2223 break;
2224 }
2225 case 9:
2226 {
2227 s.arg9.setArraySize(nElements);
2228 break;
2229 }
2230 case 10:
2231 {
2232 s.arg10.setArraySize(nElements);
2233 break;
2234 }
2235 case 11:
2236 {
2237 s.arg11.setArraySize(nElements);
2238 break;
2239 }
2240 case 12:
2241 {
2242 s.arg12.setArraySize(nElements);
2243 break;
2244 }
2245 case 13:
2246 {
2247 s.arg13.setArraySize(nElements);
2248 break;
2249 }
2250 case 14:
2251 {
2252 s.arg14.setArraySize(nElements);
2253 break;
2254 }
2255 case 15:
2256 {
2257 s.arg15.setArraySize(nElements);
2258 break;
2259 }
2260 default:
2261 {
2262 ASSERT_FAIL(_T("there are no parameters so big"));
2263 }
2264 }
2265 return *this;
2266 }
2267 }
2268 };
2269
2270 #endif // TIMEDISCRETEMICROMOCKCALLMACROS_H
2271