63 #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_NICE_STRICT_H_
64 #define GMOCK_INCLUDE_GMOCK_GMOCK_NICE_STRICT_H_
71 template <
class MockClass>
75 ::testing::Mock::AllowUninterestingCalls(
76 internal::ImplicitCast_<MockClass*>(
this));
87 explicit NiceMock(
A&& arg) : MockClass(std::forward<
A>(arg)) {
88 ::testing::Mock::AllowUninterestingCalls(
89 internal::ImplicitCast_<MockClass*>(
this));
92 template <
typename A1,
typename A2,
typename... An>
94 : MockClass(std::forward<A1>(arg1), std::forward<A2>(arg2),
95 std::forward<An>(args)...) {
96 ::testing::Mock::AllowUninterestingCalls(
97 internal::ImplicitCast_<MockClass*>(
this));
101 ::testing::Mock::UnregisterCallReaction(
102 internal::ImplicitCast_<MockClass*>(
this));
109 template <
class MockClass>
113 ::testing::Mock::WarnUninterestingCalls(
114 internal::ImplicitCast_<MockClass*>(
this));
124 template <
typename A>
126 ::testing::Mock::WarnUninterestingCalls(
127 internal::ImplicitCast_<MockClass*>(
this));
130 template <
typename A1,
typename A2,
typename... An>
132 : MockClass(std::forward<A1>(arg1), std::forward<A2>(arg2),
133 std::forward<An>(args)...) {
134 ::testing::Mock::WarnUninterestingCalls(
135 internal::ImplicitCast_<MockClass*>(
this));
139 ::testing::Mock::UnregisterCallReaction(
140 internal::ImplicitCast_<MockClass*>(
this));
147 template <
class MockClass>
151 ::testing::Mock::FailUninterestingCalls(
152 internal::ImplicitCast_<MockClass*>(
this));
162 template <
typename A>
164 ::testing::Mock::FailUninterestingCalls(
165 internal::ImplicitCast_<MockClass*>(
this));
168 template <
typename A1,
typename A2,
typename... An>
170 : MockClass(std::forward<A1>(arg1), std::forward<A2>(arg2),
171 std::forward<An>(args)...) {
172 ::testing::Mock::FailUninterestingCalls(
173 internal::ImplicitCast_<MockClass*>(
this));
177 ::testing::Mock::UnregisterCallReaction(
178 internal::ImplicitCast_<MockClass*>(
this));
192 template <
typename MockClass>
193 class NiceMock<NiceMock<MockClass> >;
194 template <
typename MockClass>
195 class NiceMock<NaggyMock<MockClass> >;
196 template <
typename MockClass>
197 class NiceMock<StrictMock<MockClass> >;
199 template <
typename MockClass>
200 class NaggyMock<NiceMock<MockClass> >;
201 template <
typename MockClass>
202 class NaggyMock<NaggyMock<MockClass> >;
203 template <
typename MockClass>
204 class NaggyMock<StrictMock<MockClass> >;
206 template <
typename MockClass>
207 class StrictMock<NiceMock<MockClass> >;
208 template <
typename MockClass>
209 class StrictMock<NaggyMock<MockClass> >;
210 template <
typename MockClass>
211 class StrictMock<StrictMock<MockClass> >;
215 #endif // GMOCK_INCLUDE_GMOCK_GMOCK_NICE_STRICT_H_
GTEST_DISALLOW_COPY_AND_ASSIGN_(StrictMock)
GTEST_DISALLOW_COPY_AND_ASSIGN_(NaggyMock)
GTEST_DISALLOW_COPY_AND_ASSIGN_(NiceMock)
NaggyMock(A1 &&arg1, A2 &&arg2, An &&...args)
StrictMock(A1 &&arg1, A2 &&arg2, An &&...args)
NiceMock(A1 &&arg1, A2 &&arg2, An &&...args)