Lines Matching refs:mock
4 mock function should do when invoked. This page lists the built-in actions
11 | `Return()` | Return from a `void` mock function. |
12 … | Return `value`. If the type of `value` is different to the mock function's return t…
43 | `f` | Invoke `f` with the arguments passed to the mock function, where `f` is a callable. |
44 | `Invoke(f)` | Invoke `f` with the arguments passed to the mock function, where `f` can be a globa…
45 …class::method)` | Invoke the method on the object with the arguments passed to the mock function. |
48 | `InvokeArgument<N>(arg1, arg2, ..., argk)` | Invoke the mock function's `N`-th (0-based) argument…
60 EXPECT_CALL(mock, Foo("Hi", _, _)).WillOnce(Invoke(Distance));
84 calls the mock function's #2 argument, passing to it `5` and `string("Hi")` by
103 | `WithArg<N>(a)` | Pass the `N`-th (0-based) argument of the mock function to actio…
104 | `WithArgs<N1, N2, ..., Nk>(a)` | Pass the selected (0-based) arguments of the mock function to ac…
111 | `ACTION(Sum) { return arg0 + arg1; }` | Defines an action `Sum()` to return the sum of the mock f…
112 …eturn arg0 + n; }` | Defines an action `Plus(n)` to return the sum of the mock function's argument…