Lines Matching refs:Invoke
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 | `Invoke(object_pointer, &class::method)` | Invoke the method on the object with the arguments pas…
46 | `InvokeWithoutArgs(f)` | Invoke `f`, which can be a global/static function or a functor. `f` must…
47 | `InvokeWithoutArgs(object_pointer, &class::method)` | Invoke the method on the object, which take…
48 | `InvokeArgument<N>(arg1, arg2, ..., argk)` | Invoke the mock function's `N`-th (0-based) argument…
53 When defining a callable to be used with `Invoke*()`, you can declare any unused
57 using ::testing::Invoke;
60 EXPECT_CALL(mock, Foo("Hi", _, _)).WillOnce(Invoke(Distance));
63 `Invoke(callback)` and `InvokeWithoutArgs(callback)` take ownership of
69 ... Invoke(done) ...; // This won't compile!
72 ... Invoke(done2) ...; // This works.