Lines Matching defs:Mock
40 // clash with ::testing::Mock.
41 class Mock {
43 Mock() {}
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
65 // Defines some mock classes needed by the tests.
112 // Tests that a nice mock generates no warning for uninteresting calls.
122 // Tests that a nice mock generates no warning for uninteresting calls
123 // that delete the mock object.
135 // Tests that a nice mock generates informational logs for
145 HasSubstr("Uninteresting mock function call"));
150 HasSubstr("Uninteresting mock function call"));
156 // Tests that a nice mock allows expected calls.
164 // Tests that an unexpected call on a nice mock fails.
172 // Tests that NiceMock works with a mock class that has a non-default
182 // Tests that NiceMock works with a mock class that has a 10-ary
194 // Tests that NiceMock<Mock> compiles where Mock is a user-defined
195 // class (as opposed to ::testing::Mock). We had to workaround an
196 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
203 NiceMock< ::Mock> nice;
209 // Tests that a strict mock allows expected calls.
217 // Tests that an unexpected call on a strict mock fails.
226 // Tests that an uninteresting call on a strict mock fails.
231 "Uninteresting mock function call");
234 // Tests that an uninteresting call on a strict mock fails, even if
235 // the call deletes the mock object.
243 "Uninteresting mock function call");
246 // Tests that StrictMock works with a mock class that has a
253 "Uninteresting mock function call");
256 // Tests that StrictMock works with a mock class that has a 10-ary
264 "Uninteresting mock function call");
268 // Tests that StrictMock<Mock> compiles where Mock is a user-defined
269 // class (as opposed to ::testing::Mock). We had to workaround an
270 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
277 StrictMock< ::Mock> strict;