71 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ 72 #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ 80 template <
class MockClass>
81 class NiceMock :
public MockClass
88 ::testing::Mock::AllowUninterestingCalls(
89 internal::ImplicitCast_<MockClass *>(
this));
94 template <
typename A1>
95 explicit NiceMock(
const A1 & a1) : MockClass(a1)
97 ::testing::Mock::AllowUninterestingCalls(
98 internal::ImplicitCast_<MockClass *>(
this));
100 template <
typename A1,
typename A2>
101 NiceMock(
const A1 & a1,
const A2 & a2) : MockClass(a1, a2)
103 ::testing::Mock::AllowUninterestingCalls(
104 internal::ImplicitCast_<MockClass *>(
this));
107 template <
typename A1,
typename A2,
typename A3>
108 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3) : MockClass(a1, a2, a3)
110 ::testing::Mock::AllowUninterestingCalls(
111 internal::ImplicitCast_<MockClass *>(
this));
114 template <
typename A1,
typename A2,
typename A3,
typename A4>
115 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
116 const A4 & a4) : MockClass(a1, a2, a3, a4)
118 ::testing::Mock::AllowUninterestingCalls(
119 internal::ImplicitCast_<MockClass *>(
this));
122 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
123 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
124 const A5 & a5) : MockClass(a1, a2, a3, a4, a5)
126 ::testing::Mock::AllowUninterestingCalls(
127 internal::ImplicitCast_<MockClass *>(
this));
130 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
132 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
133 const A5 & a5,
const A6 & a6) : MockClass(a1, a2, a3, a4, a5, a6)
135 ::testing::Mock::AllowUninterestingCalls(
136 internal::ImplicitCast_<MockClass *>(
this));
139 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
140 typename A6,
typename A7>
141 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
142 const A5 & a5,
const A6 & a6,
const A7 & a7) : MockClass(a1, a2, a3, a4, a5,
145 ::testing::Mock::AllowUninterestingCalls(
146 internal::ImplicitCast_<MockClass *>(
this));
149 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
150 typename A6,
typename A7,
typename A8>
151 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
152 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8) : MockClass(a1,
153 a2, a3, a4, a5, a6, a7, a8)
155 ::testing::Mock::AllowUninterestingCalls(
156 internal::ImplicitCast_<MockClass *>(
this));
159 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
160 typename A6,
typename A7,
typename A8,
typename A9>
161 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
162 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8,
163 const A9 & a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9)
165 ::testing::Mock::AllowUninterestingCalls(
166 internal::ImplicitCast_<MockClass *>(
this));
169 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
170 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
171 NiceMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
172 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8,
const A9 & a9,
173 const A10 & a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
175 ::testing::Mock::AllowUninterestingCalls(
176 internal::ImplicitCast_<MockClass *>(
this));
181 ::testing::Mock::UnregisterCallReaction(
182 internal::ImplicitCast_<MockClass *>(
this));
189 template <
class MockClass>
197 ::testing::Mock::WarnUninterestingCalls(
198 internal::ImplicitCast_<MockClass *>(
this));
203 template <
typename A1>
206 ::testing::Mock::WarnUninterestingCalls(
207 internal::ImplicitCast_<MockClass *>(
this));
209 template <
typename A1,
typename A2>
210 NaggyMock(
const A1 & a1,
const A2 & a2) : MockClass(a1, a2)
212 ::testing::Mock::WarnUninterestingCalls(
213 internal::ImplicitCast_<MockClass *>(
this));
216 template <
typename A1,
typename A2,
typename A3>
217 NaggyMock(
const A1 & a1,
const A2 & a2,
const A3 & a3) : MockClass(a1, a2, a3)
219 ::testing::Mock::WarnUninterestingCalls(
220 internal::ImplicitCast_<MockClass *>(
this));
223 template <
typename A1,
typename A2,
typename A3,
typename A4>
225 const A4 & a4) : MockClass(a1, a2, a3, a4)
227 ::testing::Mock::WarnUninterestingCalls(
228 internal::ImplicitCast_<MockClass *>(
this));
231 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
232 NaggyMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
233 const A5 & a5) : MockClass(a1, a2, a3, a4, a5)
235 ::testing::Mock::WarnUninterestingCalls(
236 internal::ImplicitCast_<MockClass *>(
this));
239 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
241 NaggyMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
242 const A5 & a5,
const A6 & a6) : MockClass(a1, a2, a3, a4, a5, a6)
244 ::testing::Mock::WarnUninterestingCalls(
245 internal::ImplicitCast_<MockClass *>(
this));
248 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
249 typename A6,
typename A7>
250 NaggyMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
251 const A5 & a5,
const A6 & a6,
const A7 & a7) : MockClass(a1, a2, a3, a4, a5,
254 ::testing::Mock::WarnUninterestingCalls(
255 internal::ImplicitCast_<MockClass *>(
this));
258 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
259 typename A6,
typename A7,
typename A8>
260 NaggyMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
261 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8) : MockClass(a1,
262 a2, a3, a4, a5, a6, a7, a8)
264 ::testing::Mock::WarnUninterestingCalls(
265 internal::ImplicitCast_<MockClass *>(
this));
268 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
269 typename A6,
typename A7,
typename A8,
typename A9>
270 NaggyMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
271 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8,
272 const A9 & a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9)
274 ::testing::Mock::WarnUninterestingCalls(
275 internal::ImplicitCast_<MockClass *>(
this));
278 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
279 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
280 NaggyMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
281 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8,
const A9 & a9,
282 const A10 & a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
284 ::testing::Mock::WarnUninterestingCalls(
285 internal::ImplicitCast_<MockClass *>(
this));
290 ::testing::Mock::UnregisterCallReaction(
291 internal::ImplicitCast_<MockClass *>(
this));
298 template <
class MockClass>
306 ::testing::Mock::FailUninterestingCalls(
307 internal::ImplicitCast_<MockClass *>(
this));
312 template <
typename A1>
315 ::testing::Mock::FailUninterestingCalls(
316 internal::ImplicitCast_<MockClass *>(
this));
318 template <
typename A1,
typename A2>
321 ::testing::Mock::FailUninterestingCalls(
322 internal::ImplicitCast_<MockClass *>(
this));
325 template <
typename A1,
typename A2,
typename A3>
326 StrictMock(
const A1 & a1,
const A2 & a2,
const A3 & a3) : MockClass(a1, a2, a3)
328 ::testing::Mock::FailUninterestingCalls(
329 internal::ImplicitCast_<MockClass *>(
this));
332 template <
typename A1,
typename A2,
typename A3,
typename A4>
334 const A4 & a4) : MockClass(a1, a2, a3, a4)
336 ::testing::Mock::FailUninterestingCalls(
337 internal::ImplicitCast_<MockClass *>(
this));
340 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
341 StrictMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
342 const A5 & a5) : MockClass(a1, a2, a3, a4, a5)
344 ::testing::Mock::FailUninterestingCalls(
345 internal::ImplicitCast_<MockClass *>(
this));
348 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
350 StrictMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
351 const A5 & a5,
const A6 & a6) : MockClass(a1, a2, a3, a4, a5, a6)
353 ::testing::Mock::FailUninterestingCalls(
354 internal::ImplicitCast_<MockClass *>(
this));
357 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
358 typename A6,
typename A7>
359 StrictMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
360 const A5 & a5,
const A6 & a6,
const A7 & a7) : MockClass(a1, a2, a3, a4, a5,
363 ::testing::Mock::FailUninterestingCalls(
364 internal::ImplicitCast_<MockClass *>(
this));
367 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
368 typename A6,
typename A7,
typename A8>
369 StrictMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
370 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8) : MockClass(a1,
371 a2, a3, a4, a5, a6, a7, a8)
373 ::testing::Mock::FailUninterestingCalls(
374 internal::ImplicitCast_<MockClass *>(
this));
377 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
378 typename A6,
typename A7,
typename A8,
typename A9>
379 StrictMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
380 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8,
381 const A9 & a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9)
383 ::testing::Mock::FailUninterestingCalls(
384 internal::ImplicitCast_<MockClass *>(
this));
387 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
388 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
389 StrictMock(
const A1 & a1,
const A2 & a2,
const A3 & a3,
const A4 & a4,
390 const A5 & a5,
const A6 & a6,
const A7 & a7,
const A8 & a8,
const A9 & a9,
391 const A10 & a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
393 ::testing::Mock::FailUninterestingCalls(
394 internal::ImplicitCast_<MockClass *>(
this));
399 ::testing::Mock::UnregisterCallReaction(
400 internal::ImplicitCast_<MockClass *>(
this));
414 template <
typename MockClass>
415 class NiceMock<NiceMock<MockClass> >;
416 template <
typename MockClass>
417 class NiceMock<NaggyMock<MockClass> >;
418 template <
typename MockClass>
419 class NiceMock<StrictMock<MockClass> >;
421 template <
typename MockClass>
422 class NaggyMock<NiceMock<MockClass> >;
423 template <
typename MockClass>
424 class NaggyMock<NaggyMock<MockClass> >;
425 template <
typename MockClass>
426 class NaggyMock<StrictMock<MockClass> >;
428 template <
typename MockClass>
429 class StrictMock<NiceMock<MockClass> >;
430 template <
typename MockClass>
431 class StrictMock<NaggyMock<MockClass> >;
432 template <
typename MockClass>
433 class StrictMock<StrictMock<MockClass> >;
437 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
NaggyMock(const A1 &a1, const A2 &a2)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
NiceMock(const A1 &a1, const A2 &a2)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9, const A10 &a10)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9)
GTEST_DISALLOW_COPY_AND_ASSIGN_(NiceMock)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9, const A10 &a10)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9, const A10 &a10)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7, const A8 &a8)
StrictMock(const A1 &a1, const A2 &a2)