71 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ 72 #define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ 79 template <
class MockClass>
85 ::testing::Mock::AllowUninterestingCalls(
86 internal::ImplicitCast_<MockClass*>(
this));
91 template <
typename A1>
92 explicit NiceMock(
const A1& a1) : MockClass(a1) {
93 ::testing::Mock::AllowUninterestingCalls(
94 internal::ImplicitCast_<MockClass*>(
this));
96 template <
typename A1,
typename A2>
97 NiceMock(
const A1& a1,
const A2& a2) : MockClass(a1, a2) {
98 ::testing::Mock::AllowUninterestingCalls(
99 internal::ImplicitCast_<MockClass*>(
this));
102 template <
typename A1,
typename A2,
typename A3>
103 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3) : MockClass(a1, a2, a3) {
104 ::testing::Mock::AllowUninterestingCalls(
105 internal::ImplicitCast_<MockClass*>(
this));
108 template <
typename A1,
typename A2,
typename A3,
typename A4>
110 const A4& a4) : MockClass(a1, a2, a3, a4) {
111 ::testing::Mock::AllowUninterestingCalls(
112 internal::ImplicitCast_<MockClass*>(
this));
115 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
116 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
117 const A5& a5) : MockClass(a1, a2, a3, a4, a5) {
118 ::testing::Mock::AllowUninterestingCalls(
119 internal::ImplicitCast_<MockClass*>(
this));
122 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
124 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
125 const A5& a5,
const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) {
126 ::testing::Mock::AllowUninterestingCalls(
127 internal::ImplicitCast_<MockClass*>(
this));
130 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
131 typename A6,
typename A7>
132 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
133 const A5& a5,
const A6& a6,
const A7& a7) : MockClass(a1, a2, a3, a4, a5,
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,
typename A8>
141 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
142 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8) : MockClass(a1,
143 a2, a3, a4, a5, a6, a7, a8) {
144 ::testing::Mock::AllowUninterestingCalls(
145 internal::ImplicitCast_<MockClass*>(
this));
148 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
149 typename A6,
typename A7,
typename A8,
typename A9>
150 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
151 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
152 const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
153 ::testing::Mock::AllowUninterestingCalls(
154 internal::ImplicitCast_<MockClass*>(
this));
157 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
158 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
159 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
160 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
const A9& a9,
161 const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
162 ::testing::Mock::AllowUninterestingCalls(
163 internal::ImplicitCast_<MockClass*>(
this));
167 ::testing::Mock::UnregisterCallReaction(
168 internal::ImplicitCast_<MockClass*>(
this));
172 GTEST_DISALLOW_COPY_AND_ASSIGN_(
NiceMock);
175 template <
class MockClass>
181 ::testing::Mock::WarnUninterestingCalls(
182 internal::ImplicitCast_<MockClass*>(
this));
187 template <
typename A1>
189 ::testing::Mock::WarnUninterestingCalls(
190 internal::ImplicitCast_<MockClass*>(
this));
192 template <
typename A1,
typename A2>
193 NaggyMock(
const A1& a1,
const A2& a2) : MockClass(a1, a2) {
194 ::testing::Mock::WarnUninterestingCalls(
195 internal::ImplicitCast_<MockClass*>(
this));
198 template <
typename A1,
typename A2,
typename A3>
199 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3) : MockClass(a1, a2, a3) {
200 ::testing::Mock::WarnUninterestingCalls(
201 internal::ImplicitCast_<MockClass*>(
this));
204 template <
typename A1,
typename A2,
typename A3,
typename A4>
206 const A4& a4) : MockClass(a1, a2, a3, a4) {
207 ::testing::Mock::WarnUninterestingCalls(
208 internal::ImplicitCast_<MockClass*>(
this));
211 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
212 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
213 const A5& a5) : MockClass(a1, a2, a3, a4, a5) {
214 ::testing::Mock::WarnUninterestingCalls(
215 internal::ImplicitCast_<MockClass*>(
this));
218 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
220 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
221 const A5& a5,
const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) {
222 ::testing::Mock::WarnUninterestingCalls(
223 internal::ImplicitCast_<MockClass*>(
this));
226 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
227 typename A6,
typename A7>
228 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
229 const A5& a5,
const A6& a6,
const A7& a7) : MockClass(a1, a2, a3, a4, a5,
231 ::testing::Mock::WarnUninterestingCalls(
232 internal::ImplicitCast_<MockClass*>(
this));
235 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
236 typename A6,
typename A7,
typename A8>
237 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
238 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8) : MockClass(a1,
239 a2, a3, a4, a5, a6, a7, a8) {
240 ::testing::Mock::WarnUninterestingCalls(
241 internal::ImplicitCast_<MockClass*>(
this));
244 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
245 typename A6,
typename A7,
typename A8,
typename A9>
246 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
247 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
248 const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
249 ::testing::Mock::WarnUninterestingCalls(
250 internal::ImplicitCast_<MockClass*>(
this));
253 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
254 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
255 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
256 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
const A9& a9,
257 const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
258 ::testing::Mock::WarnUninterestingCalls(
259 internal::ImplicitCast_<MockClass*>(
this));
263 ::testing::Mock::UnregisterCallReaction(
264 internal::ImplicitCast_<MockClass*>(
this));
271 template <
class MockClass>
277 ::testing::Mock::FailUninterestingCalls(
278 internal::ImplicitCast_<MockClass*>(
this));
283 template <
typename A1>
285 ::testing::Mock::FailUninterestingCalls(
286 internal::ImplicitCast_<MockClass*>(
this));
288 template <
typename A1,
typename A2>
290 ::testing::Mock::FailUninterestingCalls(
291 internal::ImplicitCast_<MockClass*>(
this));
294 template <
typename A1,
typename A2,
typename A3>
295 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3) : MockClass(a1, a2, a3) {
296 ::testing::Mock::FailUninterestingCalls(
297 internal::ImplicitCast_<MockClass*>(
this));
300 template <
typename A1,
typename A2,
typename A3,
typename A4>
302 const A4& a4) : MockClass(a1, a2, a3, a4) {
303 ::testing::Mock::FailUninterestingCalls(
304 internal::ImplicitCast_<MockClass*>(
this));
307 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
308 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
309 const A5& a5) : MockClass(a1, a2, a3, a4, a5) {
310 ::testing::Mock::FailUninterestingCalls(
311 internal::ImplicitCast_<MockClass*>(
this));
314 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
316 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
317 const A5& a5,
const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) {
318 ::testing::Mock::FailUninterestingCalls(
319 internal::ImplicitCast_<MockClass*>(
this));
322 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
323 typename A6,
typename A7>
324 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
325 const A5& a5,
const A6& a6,
const A7& a7) : MockClass(a1, a2, a3, a4, a5,
327 ::testing::Mock::FailUninterestingCalls(
328 internal::ImplicitCast_<MockClass*>(
this));
331 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
332 typename A6,
typename A7,
typename A8>
333 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
334 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8) : MockClass(a1,
335 a2, a3, a4, a5, a6, a7, a8) {
336 ::testing::Mock::FailUninterestingCalls(
337 internal::ImplicitCast_<MockClass*>(
this));
340 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
341 typename A6,
typename A7,
typename A8,
typename A9>
342 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
343 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
344 const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
345 ::testing::Mock::FailUninterestingCalls(
346 internal::ImplicitCast_<MockClass*>(
this));
349 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
350 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
351 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
352 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
const A9& a9,
353 const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
354 ::testing::Mock::FailUninterestingCalls(
355 internal::ImplicitCast_<MockClass*>(
this));
359 ::testing::Mock::UnregisterCallReaction(
360 internal::ImplicitCast_<MockClass*>(
this));
374 template <
typename MockClass>
375 class NiceMock<NiceMock<MockClass> >;
376 template <
typename MockClass>
377 class NiceMock<NaggyMock<MockClass> >;
378 template <
typename MockClass>
379 class NiceMock<StrictMock<MockClass> >;
381 template <
typename MockClass>
382 class NaggyMock<NiceMock<MockClass> >;
383 template <
typename MockClass>
384 class NaggyMock<NaggyMock<MockClass> >;
385 template <
typename MockClass>
386 class NaggyMock<StrictMock<MockClass> >;
388 template <
typename MockClass>
389 class StrictMock<NiceMock<MockClass> >;
390 template <
typename MockClass>
391 class StrictMock<NaggyMock<MockClass> >;
392 template <
typename MockClass>
393 class StrictMock<StrictMock<MockClass> >;
397 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_ NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
Definition: gmock-generated-nice-strict.h:220
NiceMock(const A1 &a1)
Definition: gmock-generated-nice-strict.h:92
Definition: gmock-actions.h:53
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)
Definition: gmock-generated-nice-strict.h:333
virtual ~NaggyMock()
Definition: gmock-generated-nice-strict.h:262
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
Definition: gmock-generated-nice-strict.h:205
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3)
Definition: gmock-generated-nice-strict.h:199
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
Definition: gmock-generated-nice-strict.h:228
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)
Definition: gmock-generated-nice-strict.h:351
NaggyMock(const A1 &a1)
Definition: gmock-generated-nice-strict.h:188
Definition: gmock-generated-nice-strict.h:176
Definition: gmock-generated-nice-strict.h:272
NaggyMock()
Definition: gmock-generated-nice-strict.h:180
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)
Definition: gmock-generated-nice-strict.h:237
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
Definition: gmock-generated-nice-strict.h:116
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)
Definition: gmock-generated-nice-strict.h:342
virtual ~NiceMock()
Definition: gmock-generated-nice-strict.h:166
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)
Definition: gmock-generated-nice-strict.h:150
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
Definition: gmock-generated-nice-strict.h:212
StrictMock(const A1 &a1)
Definition: gmock-generated-nice-strict.h:284
NaggyMock(const A1 &a1, const A2 &a2)
Definition: gmock-generated-nice-strict.h:193
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
Definition: gmock-generated-nice-strict.h:132
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
Definition: gmock-generated-nice-strict.h:124
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)
Definition: gmock-generated-nice-strict.h:141
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
Definition: gmock-generated-nice-strict.h:109
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)
Definition: gmock-generated-nice-strict.h:246
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)
Definition: gmock-generated-nice-strict.h:255
Definition: gmock-generated-nice-strict.h:80
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition: gtest-port.h:874
NiceMock(const A1 &a1, const A2 &a2)
Definition: gmock-generated-nice-strict.h:97
NiceMock()
Definition: gmock-generated-nice-strict.h:84
StrictMock(const A1 &a1, const A2 &a2)
Definition: gmock-generated-nice-strict.h:289
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
Definition: gmock-generated-nice-strict.h:324
StrictMock()
Definition: gmock-generated-nice-strict.h:276
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
Definition: gmock-generated-nice-strict.h:308
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3)
Definition: gmock-generated-nice-strict.h:295
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
Definition: gmock-generated-nice-strict.h:316
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3)
Definition: gmock-generated-nice-strict.h:103
virtual ~StrictMock()
Definition: gmock-generated-nice-strict.h:358
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)
Definition: gmock-generated-nice-strict.h:159
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
Definition: gmock-generated-nice-strict.h:301