Lines Matching full:expectations

247   .. set more expectations on mock_stream ...
463 *methods* with no expectations); they do not affect *unexpected* calls (calls of
464 methods with expectations, but they don't match). See
651 Now you want to mock this interface such that you can set expectations on it.
1490 ## Setting Expectations
1691 If you would rather have all calls occur in the order of the expectations, put
1728 require you to come up with different names for the expectations in the chains.
1737 So, to specify the partial order on the expectations we need to do two things:
1741 Expectations in the same sequence must occur in the order they are written. For
1774 When a mock method is called, gMock only considers expectations that are still
2698 In the example above, we set our normal gMock expectations, but then add an
2770 First let’s see how we can set expectations on the `MakeBuzz()` method, which
2868 setting expectations on `ShareBuzz()`, you set them on the `DoShareBuzz()` mock
2885 non-trivial tasks (e.g. verification of the expectations). What's more, mock
2948 that all expectations on it have been satisfied, and will generate googletest
2969 // ... other expectations ...
2976 // this will verify the expectations anyway.
2987 Do not set new expectations after verifying and clearing a mock after its use.
2988 Setting expectations after code that exercises the mock has undefined behavior.
2995 are each manageable, or you might want to set more detailed expectations about
2998 A technique you can use is to put the expectations in a sequence and insert
3101 2. Set its default actions and expectations using `ON_CALL()` and
3120 If you violate the rules (for example, if you set expectations on a mock while
3188 You have a test using gMock. It fails: gMock tells you some expectations aren't
3573 generating readable error messages when expectations are violated.
4351 expectations on its `Call` method. Then pass proxy obtained from
4359 // 2. Set expectations on Call() method.
4368 // 4. All expectations will be verified when mock_function
4375 expectations.