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));
106 GTEST_DISALLOW_COPY_AND_ASSIGN_(
NiceMock);
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_ Definition: gmock-nice-strict.h:72
Definition: gmock-actions.h:59
~StrictMock()
Definition: gmock-nice-strict.h:176
usr bin c fPIC pthread std
Definition: link.txt:1
StrictMock(A &&arg)
Definition: gmock-nice-strict.h:163
~NiceMock()
Definition: gmock-nice-strict.h:100
NiceMock(A &&arg)
Definition: gmock-nice-strict.h:87
StrictMock()
Definition: gmock-nice-strict.h:150
Definition: gmock-nice-strict.h:110
NaggyMock(A &&arg)
Definition: gmock-nice-strict.h:125
NaggyMock(A1 &&arg1, A2 &&arg2, An &&...args)
Definition: gmock-nice-strict.h:131
~NaggyMock()
Definition: gmock-nice-strict.h:138
StrictMock(A1 &&arg1, A2 &&arg2, An &&...args)
Definition: gmock-nice-strict.h:169
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)
Definition: gtest-port.h:688
NiceMock()
Definition: gmock-nice-strict.h:74
NaggyMock()
Definition: gmock-nice-strict.h:112
NiceMock(A1 &&arg1, A2 &&arg2, An &&...args)
Definition: gmock-nice-strict.h:93
Definition: gmock-nice-strict.h:148