Lines Matching full:invoke
58 using testing::Invoke;
72 // Sample functions and functors for testing Invoke() and etc.
202 // Tests using Invoke() with a nullary function.
204 Action<int()> a = Invoke(Nullary); // NOLINT in TEST()
208 // Tests using Invoke() with a unary function.
210 Action<bool(int)> a = Invoke(Unary); // NOLINT in TEST()
215 // Tests using Invoke() with a binary function.
217 Action<const char*(const char*, short)> a = Invoke(Binary); // NOLINT in TEST()
222 // Tests using Invoke() with a ternary function.
224 Action<int(int, char, short)> a = Invoke(Ternary); // NOLINT in TEST()
228 // Tests using Invoke() with a 4-argument function.
230 Action<int(int, int, int, int)> a = Invoke(SumOf4); // NOLINT in TEST()
234 // Tests using Invoke() with a 5-argument function.
236 Action<int(int, int, int, int, int)> a = Invoke(SumOf5); // NOLINT in TEST()
240 // Tests using Invoke() with a 6-argument function.
242 Action<int(int, int, int, int, int, int)> a = Invoke(SumOf6); // NOLINT in TEST()
251 // Tests using Invoke() with a 7-argument function.
255 a = Invoke(Concat7); in TEST()
262 // Tests using Invoke() with a 8-argument function.
266 a = Invoke(Concat8); in TEST()
273 // Tests using Invoke() with a 9-argument function.
278 a = Invoke(Concat9); in TEST()
285 // Tests using Invoke() with a 10-argument function.
290 a = Invoke(Concat10); in TEST()
298 // Tests using Invoke() with functions with parameters declared as Unused.
300 Action<int(int, int, double, const std::string&)> a1 = Invoke(SumOfFirst2); in TEST()
305 Action<int(int, int, bool, int*)> a2 = Invoke(SumOfFirst2); in TEST()
310 // Tests using Invoke() with methods with parameters declared as Unused.
313 Action<int(std::string, bool, int, int)> a1 = Invoke(&foo, &Foo::SumOfLast2); in TEST()
316 Action<int(char, double, int, int)> a2 = Invoke(&foo, &Foo::SumOfLast2); in TEST()
320 // Tests using Invoke() with a functor.
322 Action<long(long, int)> a = Invoke(plus<long>()); // NOLINT in TEST()
326 // Tests using Invoke(f) as an action of a compatible type.
328 Action<long(int, short, char, bool)> a = Invoke(SumOf4); // NOLINT in TEST()
332 // Tests using Invoke() with an object pointer and a method pointer.
334 // Tests using Invoke() with a nullary method.
337 Action<int()> a = Invoke(&foo, &Foo::Nullary); // NOLINT in TEST()
341 // Tests using Invoke() with a unary method.
344 Action<short(long)> a = Invoke(&foo, &Foo::Unary); // NOLINT in TEST()
348 // Tests using Invoke() with a binary method.
351 Action<std::string(const std::string&, char)> a = Invoke(&foo, &Foo::Binary); in TEST()
357 // Tests using Invoke() with a ternary method.
360 Action<int(int, bool, char)> a = Invoke(&foo, &Foo::Ternary); // NOLINT in TEST()
364 // Tests using Invoke() with a 4-argument method.
367 Action<int(int, int, int, int)> a = Invoke(&foo, &Foo::SumOf4); // NOLINT in TEST()
371 // Tests using Invoke() with a 5-argument method.
375 Invoke(&foo, &Foo::SumOf5); // NOLINT in TEST()
379 // Tests using Invoke() with a 6-argument method.
383 Invoke(&foo, &Foo::SumOf6); in TEST()
388 // Tests using Invoke() with a 7-argument method.
393 a = Invoke(&foo, &Foo::Concat7); in TEST()
400 // Tests using Invoke() with a 8-argument method.
405 a = Invoke(&foo, &Foo::Concat8); in TEST()
412 // Tests using Invoke() with a 9-argument method.
418 a = Invoke(&foo, &Foo::Concat9); in TEST()
425 // Tests using Invoke() with a 10-argument method.
431 a = Invoke(&foo, &Foo::Concat10); in TEST()
439 // Tests using Invoke(f) as an action of a compatible type.
443 Invoke(&foo, &Foo::SumOf4); in TEST()
449 Action<int(int n)> a = WithoutArgs(Invoke(Nullary)); // NOLINT in TEST()
455 Action<bool(double x, int n)> b = WithArg<1>(Invoke(Unary)); // NOLINT in TEST()