Lines Matching refs:expectation

62 Creates an [expectation](../gmock_for_dummies.md#setting-expectations) that the
69 correspond to each argument of the method *`method_name`*. The expectation will
71 matchers. If `(`*`matchers...`*`)` is omitted, the expectation behaves as if
75 The following chainable clauses can be used to modify the expectation, and they
95 Restricts the expectation to apply only to mock function calls whose arguments
103 For example, the following code sets the expectation that
118 The `With` clause can be used at most once on an expectation and must be the
148 The `Times` clause can be used at most once on an expectation.
160 For example, the following code sets the expectation that the `Reset()` method
176 The `InSequence` clause can be used any number of times on an expectation.
191 For example, the following code sets the expectation that the `Describe()`
205 expectation is large or variable, for example:
219 The `After` clause can be used any number of times on an expectation.
233 The use of `WillOnce` implicitly sets a cardinality on the expectation when
250 The `WillOnce` clause can be used any number of times on an expectation. Unlike
267 The use of `WillRepeatedly` implicitly sets a cardinality on the expectation
285 The `WillRepeatedly` clause can be used at most once on an expectation.
291 Indicates that the expectation will no longer be active after the expected
295 upper-bounded cardinality. The expectation will *retire* (no longer match any
311 expectation 2, which then becomes inactive and no longer matches any calls. A
312 third call to `my_mock.SetNumber(7)` would then match expectation 1. Without
313 `RetiresOnSaturation()` on expectation 2, a third call to `my_mock.SetNumber(7)`
314 would match expectation 2 again, producing a failure since the limit of 2 calls
317 The `RetiresOnSaturation` clause can be used at most once on an expectation and
562 Represents a mock function call expectation as created by