66#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_
67#define GMOCK_INCLUDE_GMOCK_GMOCK_GENERATED_NICE_STRICT_H_
74template <
class MockClass>
78 ::testing::Mock::AllowUninterestingCalls(
91 explicit NiceMock(
A&& arg) : MockClass(
std::forward<
A>(arg)) {
92 ::testing::Mock::AllowUninterestingCalls(
96 template <
typename A1,
typename A2,
typename... An>
97 NiceMock(A1&& arg1, A2&& arg2, An&&... args)
98 : MockClass(
std::forward<A1>(arg1),
std::forward<A2>(arg2),
99 std::forward<An>(args)...) {
100 ::testing::Mock::AllowUninterestingCalls(
106 template <
typename A1>
108 ::testing::Mock::AllowUninterestingCalls(
111 template <
typename A1,
typename A2>
112 NiceMock(
const A1& a1,
const A2& a2) : MockClass(a1, a2) {
113 ::testing::Mock::AllowUninterestingCalls(
117 template <
typename A1,
typename A2,
typename A3>
118 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3) : MockClass(a1, a2, a3) {
119 ::testing::Mock::AllowUninterestingCalls(
123 template <
typename A1,
typename A2,
typename A3,
typename A4>
125 const A4& a4) : MockClass(a1, a2, a3, a4) {
126 ::testing::Mock::AllowUninterestingCalls(
130 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
131 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
132 const A5& a5) : MockClass(a1, a2, a3, a4, a5) {
133 ::testing::Mock::AllowUninterestingCalls(
137 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
139 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
140 const A5& a5,
const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) {
141 ::testing::Mock::AllowUninterestingCalls(
145 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
146 typename A6,
typename A7>
147 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
148 const A5& a5,
const A6& a6,
const A7& a7) : MockClass(a1, a2, a3, a4, a5,
150 ::testing::Mock::AllowUninterestingCalls(
154 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
155 typename A6,
typename A7,
typename A8>
156 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
157 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8) : MockClass(a1,
158 a2, a3, a4, a5, a6, a7, a8) {
159 ::testing::Mock::AllowUninterestingCalls(
163 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
164 typename A6,
typename A7,
typename A8,
typename A9>
165 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
166 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
167 const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
168 ::testing::Mock::AllowUninterestingCalls(
172 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
173 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
174 NiceMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
175 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
const A9& a9,
176 const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
177 ::testing::Mock::AllowUninterestingCalls(
184 ::testing::Mock::UnregisterCallReaction(
192template <
class MockClass>
196 ::testing::Mock::WarnUninterestingCalls(
208 template <
typename A>
210 ::testing::Mock::WarnUninterestingCalls(
214 template <
typename A1,
typename A2,
typename... An>
215 NaggyMock(A1&& arg1, A2&& arg2, An&&... args)
216 : MockClass(
std::forward<A1>(arg1),
std::forward<A2>(arg2),
217 std::forward<An>(args)...) {
218 ::testing::Mock::WarnUninterestingCalls(
224 template <
typename A1>
226 ::testing::Mock::WarnUninterestingCalls(
229 template <
typename A1,
typename A2>
230 NaggyMock(
const A1& a1,
const A2& a2) : MockClass(a1, a2) {
231 ::testing::Mock::WarnUninterestingCalls(
235 template <
typename A1,
typename A2,
typename A3>
236 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3) : MockClass(a1, a2, a3) {
237 ::testing::Mock::WarnUninterestingCalls(
241 template <
typename A1,
typename A2,
typename A3,
typename A4>
243 const A4& a4) : MockClass(a1, a2, a3, a4) {
244 ::testing::Mock::WarnUninterestingCalls(
248 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
249 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
250 const A5& a5) : MockClass(a1, a2, a3, a4, a5) {
251 ::testing::Mock::WarnUninterestingCalls(
255 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
257 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
258 const A5& a5,
const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) {
259 ::testing::Mock::WarnUninterestingCalls(
263 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
264 typename A6,
typename A7>
265 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
266 const A5& a5,
const A6& a6,
const A7& a7) : MockClass(a1, a2, a3, a4, a5,
268 ::testing::Mock::WarnUninterestingCalls(
272 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
273 typename A6,
typename A7,
typename A8>
274 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
275 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8) : MockClass(a1,
276 a2, a3, a4, a5, a6, a7, a8) {
277 ::testing::Mock::WarnUninterestingCalls(
281 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
282 typename A6,
typename A7,
typename A8,
typename A9>
283 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
284 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
285 const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
286 ::testing::Mock::WarnUninterestingCalls(
290 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
291 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
292 NaggyMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
293 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
const A9& a9,
294 const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
295 ::testing::Mock::WarnUninterestingCalls(
302 ::testing::Mock::UnregisterCallReaction(
310template <
class MockClass>
314 ::testing::Mock::FailUninterestingCalls(
326 template <
typename A>
328 ::testing::Mock::FailUninterestingCalls(
332 template <
typename A1,
typename A2,
typename... An>
333 StrictMock(A1&& arg1, A2&& arg2, An&&... args)
334 : MockClass(
std::forward<A1>(arg1),
std::forward<A2>(arg2),
335 std::forward<An>(args)...) {
336 ::testing::Mock::FailUninterestingCalls(
342 template <
typename A1>
344 ::testing::Mock::FailUninterestingCalls(
347 template <
typename A1,
typename A2>
349 ::testing::Mock::FailUninterestingCalls(
353 template <
typename A1,
typename A2,
typename A3>
354 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3) : MockClass(a1, a2, a3) {
355 ::testing::Mock::FailUninterestingCalls(
359 template <
typename A1,
typename A2,
typename A3,
typename A4>
361 const A4& a4) : MockClass(a1, a2, a3, a4) {
362 ::testing::Mock::FailUninterestingCalls(
366 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5>
367 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
368 const A5& a5) : MockClass(a1, a2, a3, a4, a5) {
369 ::testing::Mock::FailUninterestingCalls(
373 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
375 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
376 const A5& a5,
const A6& a6) : MockClass(a1, a2, a3, a4, a5, a6) {
377 ::testing::Mock::FailUninterestingCalls(
381 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
382 typename A6,
typename A7>
383 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
384 const A5& a5,
const A6& a6,
const A7& a7) : MockClass(a1, a2, a3, a4, a5,
386 ::testing::Mock::FailUninterestingCalls(
390 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
391 typename A6,
typename A7,
typename A8>
392 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
393 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8) : MockClass(a1,
394 a2, a3, a4, a5, a6, a7, a8) {
395 ::testing::Mock::FailUninterestingCalls(
399 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
400 typename A6,
typename A7,
typename A8,
typename A9>
401 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
402 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
403 const A9& a9) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9) {
404 ::testing::Mock::FailUninterestingCalls(
408 template <
typename A1,
typename A2,
typename A3,
typename A4,
typename A5,
409 typename A6,
typename A7,
typename A8,
typename A9,
typename A10>
410 StrictMock(
const A1& a1,
const A2& a2,
const A3& a3,
const A4& a4,
411 const A5& a5,
const A6& a6,
const A7& a7,
const A8& a8,
const A9& a9,
412 const A10& a10) : MockClass(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {
413 ::testing::Mock::FailUninterestingCalls(
420 ::testing::Mock::UnregisterCallReaction(
435template <
typename MockClass>
436class NiceMock<NiceMock<MockClass> >;
437template <
typename MockClass>
438class NiceMock<NaggyMock<MockClass> >;
439template <
typename MockClass>
440class NiceMock<StrictMock<MockClass> >;
442template <
typename MockClass>
443class NaggyMock<NiceMock<MockClass> >;
444template <
typename MockClass>
445class NaggyMock<NaggyMock<MockClass> >;
446template <
typename MockClass>
447class NaggyMock<StrictMock<MockClass> >;
449template <
typename MockClass>
450class StrictMock<NiceMock<MockClass> >;
451template <
typename MockClass>
452class StrictMock<NaggyMock<MockClass> >;
453template <
typename MockClass>
454class StrictMock<StrictMock<MockClass> >;
NaggyMock(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, 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)
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)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
NaggyMock(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)
NaggyMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5)
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)
NiceMock(const A1 &a1, const A2 &a2)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6)
NiceMock(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)
NiceMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4)
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)
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)
StrictMock(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, const A5 &a5)
StrictMock(const A1 &a1, const A2 &a2)
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, const A6 &a6, const A7 &a7, const A8 &a8, const A9 &a9, const A10 &a10)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3, const A4 &a4, const A5 &a5, const A6 &a6, const A7 &a7)
StrictMock(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)
StrictMock(const A1 &a1, const A2 &a2, const A3 &a3)
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)