Home | History | Annotate | Download | only in test

Lines Matching defs:Mock

40 // clash with ::testing::Mock.
41 class Mock {
43 Mock() {}
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
66 // Defines some mock classes needed by the tests.
113 // Tests that a raw mock generates warnings for uninteresting calls.
124 HasSubstr("Uninteresting mock function call"));
129 // Tests that a raw mock generates warnings for uninteresting calls
130 // that delete the mock object.
143 HasSubstr("Uninteresting mock function call"));
148 // Tests that a raw mock generates informational logs for
158 HasSubstr("Uninteresting mock function call"));
163 // Tests that a nice mock generates no warning for uninteresting calls.
173 // Tests that a nice mock generates no warning for uninteresting calls
174 // that delete the mock object.
186 // Tests that a nice mock generates informational logs for
196 HasSubstr("Uninteresting mock function call"));
203 // Tests that a nice mock allows expected calls.
211 // Tests that an unexpected call on a nice mock fails.
219 // Tests that NiceMock works with a mock class that has a non-default
229 // Tests that NiceMock works with a mock class that has a 10-ary
241 // Tests that NiceMock<Mock> compiles where Mock is a user-defined
242 // class (as opposed to ::testing::Mock). We had to work around an
243 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
250 NiceMock< ::Mock> nice;
258 // Tests that a naggy mock generates warnings for uninteresting calls.
269 HasSubstr("Uninteresting mock function call"));
274 // Tests that a naggy mock generates a warning for an uninteresting call
275 // that deletes the mock object.
288 HasSubstr("Uninteresting mock function call"));
295 // Tests that a naggy mock allows expected calls.
303 // Tests that an unexpected call on a naggy mock fails.
312 // Tests that NaggyMock works with a mock class that has a non-default
322 // Tests that NaggyMock works with a mock class that has a 10-ary
334 // Tests that NaggyMock<Mock> compiles where Mock is a user-defined
335 // class (as opposed to ::testing::Mock). We had to work around an
336 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
343 NaggyMock< ::Mock> naggy;
349 // Tests that a strict mock allows expected calls.
357 // Tests that an unexpected call on a strict mock fails.
366 // Tests that an uninteresting call on a strict mock fails.
371 "Uninteresting mock function call");
374 // Tests that an uninteresting call on a strict mock fails, even if
375 // the call deletes the mock object.
383 "Uninteresting mock function call");
386 // Tests that StrictMock works with a mock class that has a
393 "Uninteresting mock function call");
396 // Tests that StrictMock works with a mock class that has a 10-ary
404 "Uninteresting mock function call");
408 // Tests that StrictMock<Mock> compiles where Mock is a user-defined
409 // class (as opposed to ::testing::Mock). We had to work around an
410 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
417 StrictMock< ::Mock> strict;