Lines Matching refs:mock
20 (note that `~Foo()` **must** be virtual) we can define its mock as
34 To create a "nice" mock, which ignores all uninteresting calls, a "naggy" mock,
35 which warns on all uninteresting calls, or a "strict" mock, which treats them as
49 **Note:** A mock object is currently naggy by default. We may make it nice by
56 To mock
82 If your mock function doesn't use the default calling convention, you can
100 2. Create the mock objects.
101 3. Optionally, set the default actions of the mock objects.
102 4. Set your expectations on the mock objects (How will they be called? What
104 5. Exercise code that uses the mock objects; if necessary, check the result
106 6. When a mock object is destructed, gMock automatically verifies that all
160 To customize the default action for a particular method of a specific mock
163 do not require that the mock method is called. See
194 gMock will verify the expectations on a mock object when it is destructed, or
210 Do not set new expectations after verifying and clearing a mock after its use.
211 Setting expectations after code that exercises the mock has undefined behavior.
215 You can also tell gMock that a mock object can be leaked and doesn't need to be
224 gMock defines a convenient mock class template
240 | `--gmock_catch_leaked_mocks=0` | Don't report leaked mock objects as failures. |