41 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
42 #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
133 #define GMOCK_INTERNAL_DECL_HAS_1_TEMPLATE_PARAMS(kind0, name0) kind0 name0
134 #define GMOCK_INTERNAL_DECL_HAS_2_TEMPLATE_PARAMS(kind0, name0, kind1, \
135 name1) kind0 name0, kind1 name1
136 #define GMOCK_INTERNAL_DECL_HAS_3_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
137 kind2, name2) kind0 name0, kind1 name1, kind2 name2
138 #define GMOCK_INTERNAL_DECL_HAS_4_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
139 kind2, name2, kind3, name3) kind0 name0, kind1 name1, kind2 name2, \
141 #define GMOCK_INTERNAL_DECL_HAS_5_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
142 kind2, name2, kind3, name3, kind4, name4) kind0 name0, kind1 name1, \
143 kind2 name2, kind3 name3, kind4 name4
144 #define GMOCK_INTERNAL_DECL_HAS_6_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
145 kind2, name2, kind3, name3, kind4, name4, kind5, name5) kind0 name0, \
146 kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5
147 #define GMOCK_INTERNAL_DECL_HAS_7_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
148 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
149 name6) kind0 name0, kind1 name1, kind2 name2, kind3 name3, kind4 name4, \
150 kind5 name5, kind6 name6
151 #define GMOCK_INTERNAL_DECL_HAS_8_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
152 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
153 kind7, name7) kind0 name0, kind1 name1, kind2 name2, kind3 name3, \
154 kind4 name4, kind5 name5, kind6 name6, kind7 name7
155 #define GMOCK_INTERNAL_DECL_HAS_9_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
156 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
157 kind7, name7, kind8, name8) kind0 name0, kind1 name1, kind2 name2, \
158 kind3 name3, kind4 name4, kind5 name5, kind6 name6, kind7 name7, \
160 #define GMOCK_INTERNAL_DECL_HAS_10_TEMPLATE_PARAMS(kind0, name0, kind1, \
161 name1, kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
162 name6, kind7, name7, kind8, name8, kind9, name9) kind0 name0, \
163 kind1 name1, kind2 name2, kind3 name3, kind4 name4, kind5 name5, \
164 kind6 name6, kind7 name7, kind8 name8, kind9 name9
167 #define GMOCK_INTERNAL_LIST_HAS_1_TEMPLATE_PARAMS(kind0, name0) name0
168 #define GMOCK_INTERNAL_LIST_HAS_2_TEMPLATE_PARAMS(kind0, name0, kind1, \
170 #define GMOCK_INTERNAL_LIST_HAS_3_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
171 kind2, name2) name0, name1, name2
172 #define GMOCK_INTERNAL_LIST_HAS_4_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
173 kind2, name2, kind3, name3) name0, name1, name2, name3
174 #define GMOCK_INTERNAL_LIST_HAS_5_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
175 kind2, name2, kind3, name3, kind4, name4) name0, name1, name2, name3, \
177 #define GMOCK_INTERNAL_LIST_HAS_6_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
178 kind2, name2, kind3, name3, kind4, name4, kind5, name5) name0, name1, \
179 name2, name3, name4, name5
180 #define GMOCK_INTERNAL_LIST_HAS_7_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
181 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
182 name6) name0, name1, name2, name3, name4, name5, name6
183 #define GMOCK_INTERNAL_LIST_HAS_8_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
184 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
185 kind7, name7) name0, name1, name2, name3, name4, name5, name6, name7
186 #define GMOCK_INTERNAL_LIST_HAS_9_TEMPLATE_PARAMS(kind0, name0, kind1, name1, \
187 kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, name6, \
188 kind7, name7, kind8, name8) name0, name1, name2, name3, name4, name5, \
190 #define GMOCK_INTERNAL_LIST_HAS_10_TEMPLATE_PARAMS(kind0, name0, kind1, \
191 name1, kind2, name2, kind3, name3, kind4, name4, kind5, name5, kind6, \
192 name6, kind7, name7, kind8, name8, kind9, name9) name0, name1, name2, \
193 name3, name4, name5, name6, name7, name8, name9
196 #define GMOCK_INTERNAL_DECL_TYPE_AND_0_VALUE_PARAMS()
197 #define GMOCK_INTERNAL_DECL_TYPE_AND_1_VALUE_PARAMS(p0) , typename p0##_type
198 #define GMOCK_INTERNAL_DECL_TYPE_AND_2_VALUE_PARAMS(p0, p1) , \
199 typename p0##_type, typename p1##_type
200 #define GMOCK_INTERNAL_DECL_TYPE_AND_3_VALUE_PARAMS(p0, p1, p2) , \
201 typename p0##_type, typename p1##_type, typename p2##_type
202 #define GMOCK_INTERNAL_DECL_TYPE_AND_4_VALUE_PARAMS(p0, p1, p2, p3) , \
203 typename p0##_type, typename p1##_type, typename p2##_type, \
205 #define GMOCK_INTERNAL_DECL_TYPE_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) , \
206 typename p0##_type, typename p1##_type, typename p2##_type, \
207 typename p3##_type, typename p4##_type
208 #define GMOCK_INTERNAL_DECL_TYPE_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) , \
209 typename p0##_type, typename p1##_type, typename p2##_type, \
210 typename p3##_type, typename p4##_type, typename p5##_type
211 #define GMOCK_INTERNAL_DECL_TYPE_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
212 p6) , typename p0##_type, typename p1##_type, typename p2##_type, \
213 typename p3##_type, typename p4##_type, typename p5##_type, \
215 #define GMOCK_INTERNAL_DECL_TYPE_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
216 p6, p7) , typename p0##_type, typename p1##_type, typename p2##_type, \
217 typename p3##_type, typename p4##_type, typename p5##_type, \
218 typename p6##_type, typename p7##_type
219 #define GMOCK_INTERNAL_DECL_TYPE_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
220 p6, p7, p8) , typename p0##_type, typename p1##_type, typename p2##_type, \
221 typename p3##_type, typename p4##_type, typename p5##_type, \
222 typename p6##_type, typename p7##_type, typename p8##_type
223 #define GMOCK_INTERNAL_DECL_TYPE_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
224 p6, p7, p8, p9) , typename p0##_type, typename p1##_type, \
225 typename p2##_type, typename p3##_type, typename p4##_type, \
226 typename p5##_type, typename p6##_type, typename p7##_type, \
227 typename p8##_type, typename p9##_type
230 #define GMOCK_INTERNAL_INIT_AND_0_VALUE_PARAMS()\
232 #define GMOCK_INTERNAL_INIT_AND_1_VALUE_PARAMS(p0)\
233 (p0##_type gmock_p0) : p0(::std::move(gmock_p0))
234 #define GMOCK_INTERNAL_INIT_AND_2_VALUE_PARAMS(p0, p1)\
235 (p0##_type gmock_p0, p1##_type gmock_p1) : p0(::std::move(gmock_p0)), \
236 p1(::std::move(gmock_p1))
237 #define GMOCK_INTERNAL_INIT_AND_3_VALUE_PARAMS(p0, p1, p2)\
238 (p0##_type gmock_p0, p1##_type gmock_p1, \
239 p2##_type gmock_p2) : p0(::std::move(gmock_p0)), \
240 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2))
241 #define GMOCK_INTERNAL_INIT_AND_4_VALUE_PARAMS(p0, p1, p2, p3)\
242 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
243 p3##_type gmock_p3) : p0(::std::move(gmock_p0)), \
244 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
245 p3(::std::move(gmock_p3))
246 #define GMOCK_INTERNAL_INIT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)\
247 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
248 p3##_type gmock_p3, p4##_type gmock_p4) : p0(::std::move(gmock_p0)), \
249 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
250 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4))
251 #define GMOCK_INTERNAL_INIT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)\
252 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
253 p3##_type gmock_p3, p4##_type gmock_p4, \
254 p5##_type gmock_p5) : p0(::std::move(gmock_p0)), \
255 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
256 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
257 p5(::std::move(gmock_p5))
258 #define GMOCK_INTERNAL_INIT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)\
259 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
260 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
261 p6##_type gmock_p6) : p0(::std::move(gmock_p0)), \
262 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
263 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
264 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6))
265 #define GMOCK_INTERNAL_INIT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)\
266 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
267 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
268 p6##_type gmock_p6, p7##_type gmock_p7) : p0(::std::move(gmock_p0)), \
269 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
270 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
271 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
272 p7(::std::move(gmock_p7))
273 #define GMOCK_INTERNAL_INIT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
275 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
276 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
277 p6##_type gmock_p6, p7##_type gmock_p7, \
278 p8##_type gmock_p8) : p0(::std::move(gmock_p0)), \
279 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
280 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
281 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
282 p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8))
283 #define GMOCK_INTERNAL_INIT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
285 (p0##_type gmock_p0, p1##_type gmock_p1, p2##_type gmock_p2, \
286 p3##_type gmock_p3, p4##_type gmock_p4, p5##_type gmock_p5, \
287 p6##_type gmock_p6, p7##_type gmock_p7, p8##_type gmock_p8, \
288 p9##_type gmock_p9) : p0(::std::move(gmock_p0)), \
289 p1(::std::move(gmock_p1)), p2(::std::move(gmock_p2)), \
290 p3(::std::move(gmock_p3)), p4(::std::move(gmock_p4)), \
291 p5(::std::move(gmock_p5)), p6(::std::move(gmock_p6)), \
292 p7(::std::move(gmock_p7)), p8(::std::move(gmock_p8)), \
293 p9(::std::move(gmock_p9))
296 #define GMOCK_INTERNAL_DEFN_AND_0_VALUE_PARAMS()
297 #define GMOCK_INTERNAL_DEFN_AND_1_VALUE_PARAMS(p0) p0##_type p0;
298 #define GMOCK_INTERNAL_DEFN_AND_2_VALUE_PARAMS(p0, p1) p0##_type p0; \
300 #define GMOCK_INTERNAL_DEFN_AND_3_VALUE_PARAMS(p0, p1, p2) p0##_type p0; \
301 p1##_type p1; p2##_type p2;
302 #define GMOCK_INTERNAL_DEFN_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0##_type p0; \
303 p1##_type p1; p2##_type p2; p3##_type p3;
304 #define GMOCK_INTERNAL_DEFN_AND_5_VALUE_PARAMS(p0, p1, p2, p3, \
305 p4) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4;
306 #define GMOCK_INTERNAL_DEFN_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, \
307 p5) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
309 #define GMOCK_INTERNAL_DEFN_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
310 p6) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
311 p5##_type p5; p6##_type p6;
312 #define GMOCK_INTERNAL_DEFN_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
313 p7) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; p4##_type p4; \
314 p5##_type p5; p6##_type p6; p7##_type p7;
315 #define GMOCK_INTERNAL_DEFN_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
316 p7, p8) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; \
317 p4##_type p4; p5##_type p5; p6##_type p6; p7##_type p7; p8##_type p8;
318 #define GMOCK_INTERNAL_DEFN_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
319 p7, p8, p9) p0##_type p0; p1##_type p1; p2##_type p2; p3##_type p3; \
320 p4##_type p4; p5##_type p5; p6##_type p6; p7##_type p7; p8##_type p8; \
324 #define GMOCK_INTERNAL_LIST_AND_0_VALUE_PARAMS()
325 #define GMOCK_INTERNAL_LIST_AND_1_VALUE_PARAMS(p0) p0
326 #define GMOCK_INTERNAL_LIST_AND_2_VALUE_PARAMS(p0, p1) p0, p1
327 #define GMOCK_INTERNAL_LIST_AND_3_VALUE_PARAMS(p0, p1, p2) p0, p1, p2
328 #define GMOCK_INTERNAL_LIST_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0, p1, p2, p3
329 #define GMOCK_INTERNAL_LIST_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) p0, p1, \
331 #define GMOCK_INTERNAL_LIST_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) p0, \
333 #define GMOCK_INTERNAL_LIST_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
334 p6) p0, p1, p2, p3, p4, p5, p6
335 #define GMOCK_INTERNAL_LIST_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
336 p7) p0, p1, p2, p3, p4, p5, p6, p7
337 #define GMOCK_INTERNAL_LIST_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
338 p7, p8) p0, p1, p2, p3, p4, p5, p6, p7, p8
339 #define GMOCK_INTERNAL_LIST_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
340 p7, p8, p9) p0, p1, p2, p3, p4, p5, p6, p7, p8, p9
343 #define GMOCK_INTERNAL_LIST_TYPE_AND_0_VALUE_PARAMS()
344 #define GMOCK_INTERNAL_LIST_TYPE_AND_1_VALUE_PARAMS(p0) , p0##_type
345 #define GMOCK_INTERNAL_LIST_TYPE_AND_2_VALUE_PARAMS(p0, p1) , p0##_type, \
347 #define GMOCK_INTERNAL_LIST_TYPE_AND_3_VALUE_PARAMS(p0, p1, p2) , p0##_type, \
349 #define GMOCK_INTERNAL_LIST_TYPE_AND_4_VALUE_PARAMS(p0, p1, p2, p3) , \
350 p0##_type, p1##_type, p2##_type, p3##_type
351 #define GMOCK_INTERNAL_LIST_TYPE_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) , \
352 p0##_type, p1##_type, p2##_type, p3##_type, p4##_type
353 #define GMOCK_INTERNAL_LIST_TYPE_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) , \
354 p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, p5##_type
355 #define GMOCK_INTERNAL_LIST_TYPE_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
356 p6) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, p5##_type, \
358 #define GMOCK_INTERNAL_LIST_TYPE_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
359 p6, p7) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
360 p5##_type, p6##_type, p7##_type
361 #define GMOCK_INTERNAL_LIST_TYPE_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
362 p6, p7, p8) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
363 p5##_type, p6##_type, p7##_type, p8##_type
364 #define GMOCK_INTERNAL_LIST_TYPE_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
365 p6, p7, p8, p9) , p0##_type, p1##_type, p2##_type, p3##_type, p4##_type, \
366 p5##_type, p6##_type, p7##_type, p8##_type, p9##_type
369 #define GMOCK_INTERNAL_DECL_AND_0_VALUE_PARAMS()
370 #define GMOCK_INTERNAL_DECL_AND_1_VALUE_PARAMS(p0) p0##_type p0
371 #define GMOCK_INTERNAL_DECL_AND_2_VALUE_PARAMS(p0, p1) p0##_type p0, \
373 #define GMOCK_INTERNAL_DECL_AND_3_VALUE_PARAMS(p0, p1, p2) p0##_type p0, \
374 p1##_type p1, p2##_type p2
375 #define GMOCK_INTERNAL_DECL_AND_4_VALUE_PARAMS(p0, p1, p2, p3) p0##_type p0, \
376 p1##_type p1, p2##_type p2, p3##_type p3
377 #define GMOCK_INTERNAL_DECL_AND_5_VALUE_PARAMS(p0, p1, p2, p3, \
378 p4) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4
379 #define GMOCK_INTERNAL_DECL_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, \
380 p5) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
382 #define GMOCK_INTERNAL_DECL_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \
383 p6) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
384 p5##_type p5, p6##_type p6
385 #define GMOCK_INTERNAL_DECL_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
386 p7) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, p4##_type p4, \
387 p5##_type p5, p6##_type p6, p7##_type p7
388 #define GMOCK_INTERNAL_DECL_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
389 p7, p8) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
390 p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8
391 #define GMOCK_INTERNAL_DECL_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
392 p7, p8, p9) p0##_type p0, p1##_type p1, p2##_type p2, p3##_type p3, \
393 p4##_type p4, p5##_type p5, p6##_type p6, p7##_type p7, p8##_type p8, \
397 #define GMOCK_INTERNAL_COUNT_AND_0_VALUE_PARAMS()
398 #define GMOCK_INTERNAL_COUNT_AND_1_VALUE_PARAMS(p0) P
399 #define GMOCK_INTERNAL_COUNT_AND_2_VALUE_PARAMS(p0, p1) P2
400 #define GMOCK_INTERNAL_COUNT_AND_3_VALUE_PARAMS(p0, p1, p2) P3
401 #define GMOCK_INTERNAL_COUNT_AND_4_VALUE_PARAMS(p0, p1, p2, p3) P4
402 #define GMOCK_INTERNAL_COUNT_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) P5
403 #define GMOCK_INTERNAL_COUNT_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) P6
404 #define GMOCK_INTERNAL_COUNT_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6) P7
405 #define GMOCK_INTERNAL_COUNT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
407 #define GMOCK_INTERNAL_COUNT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
409 #define GMOCK_INTERNAL_COUNT_AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, \
413 #define GMOCK_ACTION_CLASS_(name, value_params)\
414 GTEST_CONCAT_TOKEN_(name##Action, GMOCK_INTERNAL_COUNT_##value_params)
416 #define ACTION_TEMPLATE(name, template_params, value_params)\
417 template <GMOCK_INTERNAL_DECL_##template_params\
418 GMOCK_INTERNAL_DECL_TYPE_##value_params>\
419 class GMOCK_ACTION_CLASS_(name, value_params) {\
421 explicit GMOCK_ACTION_CLASS_(name, value_params)\
422 GMOCK_INTERNAL_INIT_##value_params {}\
423 template <typename F>\
424 class gmock_Impl : public ::testing::ActionInterface<F> {\
426 typedef F function_type;\
427 typedef typename ::testing::internal::Function<F>::Result return_type;\
428 typedef typename ::testing::internal::Function<F>::ArgumentTuple\
430 explicit gmock_Impl GMOCK_INTERNAL_INIT_##value_params {}\
431 return_type Perform(const args_type& args) override {\
432 return ::testing::internal::ActionHelper<return_type, gmock_Impl>::\
433 Perform(this, args);\
435 template <GMOCK_ACTION_TEMPLATE_ARGS_NAMES_>\
436 return_type gmock_PerformImpl(GMOCK_ACTION_ARG_TYPES_AND_NAMES_) const;\
437 GMOCK_INTERNAL_DEFN_##value_params\
439 template <typename F> operator ::testing::Action<F>() const {\
440 return ::testing::Action<F>(\
441 new gmock_Impl<F>(GMOCK_INTERNAL_LIST_##value_params));\
443 GMOCK_INTERNAL_DEFN_##value_params\
445 template <GMOCK_INTERNAL_DECL_##template_params\
446 GMOCK_INTERNAL_DECL_TYPE_##value_params>\
447 inline GMOCK_ACTION_CLASS_(name, value_params)<\
448 GMOCK_INTERNAL_LIST_##template_params\
449 GMOCK_INTERNAL_LIST_TYPE_##value_params> name(\
450 GMOCK_INTERNAL_DECL_##value_params) {\
451 return GMOCK_ACTION_CLASS_(name, value_params)<\
452 GMOCK_INTERNAL_LIST_##template_params\
453 GMOCK_INTERNAL_LIST_TYPE_##value_params>(\
454 GMOCK_INTERNAL_LIST_##value_params);\
456 template <GMOCK_INTERNAL_DECL_##template_params\
457 GMOCK_INTERNAL_DECL_TYPE_##value_params>\
458 template <typename F>\
459 template <GMOCK_ACTION_TEMPLATE_ARGS_NAMES_>\
460 typename ::testing::internal::Function<F>::Result\
461 GMOCK_ACTION_CLASS_(name, value_params)<\
462 GMOCK_INTERNAL_LIST_##template_params\
463 GMOCK_INTERNAL_LIST_TYPE_##value_params>::gmock_Impl<F>::\
465 GMOCK_ACTION_ARG_TYPES_AND_NAMES_UNUSED_) const
477 # pragma warning(push)
478 # pragma warning(disable:4100)
512 HAS_1_TEMPLATE_PARAMS(
int, k),
513 AND_0_VALUE_PARAMS()) {
516 ::std::get<k>(args));
520 HAS_1_TEMPLATE_PARAMS(
int, k),
521 AND_1_VALUE_PARAMS(p0)) {
524 ::std::get<k>(args), p0);
528 HAS_1_TEMPLATE_PARAMS(
int, k),
529 AND_2_VALUE_PARAMS(p0, p1)) {
532 ::std::get<k>(args), p0, p1);
536 HAS_1_TEMPLATE_PARAMS(
int, k),
537 AND_3_VALUE_PARAMS(p0, p1, p2)) {
540 ::std::get<k>(args), p0, p1, p2);
544 HAS_1_TEMPLATE_PARAMS(
int, k),
545 AND_4_VALUE_PARAMS(p0, p1, p2, p3)) {
548 ::std::get<k>(args), p0, p1, p2, p3);
552 HAS_1_TEMPLATE_PARAMS(
int, k),
553 AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4)) {
556 ::std::get<k>(args), p0, p1, p2, p3, p4);
560 HAS_1_TEMPLATE_PARAMS(
int, k),
561 AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5)) {
564 ::std::get<k>(args), p0, p1, p2, p3, p4, p5);
568 HAS_1_TEMPLATE_PARAMS(
int, k),
569 AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6)) {
572 ::std::get<k>(args), p0, p1, p2, p3, p4, p5, p6);
576 HAS_1_TEMPLATE_PARAMS(
int, k),
577 AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7)) {
580 ::std::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7);
584 HAS_1_TEMPLATE_PARAMS(
int, k),
585 AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8)) {
588 ::std::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7,
593 HAS_1_TEMPLATE_PARAMS(
int, k),
594 AND_10_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9)) {
597 ::std::get<k>(args), p0, p1, p2, p3, p4, p5, p6, p7,
602 # pragma warning(pop)
612 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_ACTIONS_H_
auto InvokeArgumentAdl(AdlTag, F f, Args...args) -> decltype(f(args...))
ACTION_TEMPLATE(InvokeArgument, HAS_1_TEMPLATE_PARAMS(int, k), AND_0_VALUE_PARAMS())