Lines Matching refs:Invoke

58 using testing::Invoke;
75 // Sample functions and functors for testing Invoke() and etc.
233 // Tests using Invoke() with a nullary function.
235 Action<int()> a = Invoke(Nullary); // NOLINT
239 // Tests using Invoke() with a unary function.
241 Action<bool(int)> a = Invoke(Unary); // NOLINT
246 // Tests using Invoke() with a binary function.
248 Action<const char*(const char*, short)> a = Invoke(Binary); // NOLINT
253 // Tests using Invoke() with a ternary function.
255 Action<int(int, char, short)> a = Invoke(Ternary); // NOLINT
259 // Tests using Invoke() with a 4-argument function.
261 Action<int(int, int, int, int)> a = Invoke(SumOf4); // NOLINT
265 // Tests using Invoke() with a 5-argument function.
267 Action<int(int, int, int, int, int)> a = Invoke(SumOf5); // NOLINT
271 // Tests using Invoke() with a 6-argument function.
273 Action<int(int, int, int, int, int, int)> a = Invoke(SumOf6); // NOLINT
281 // Tests using Invoke() with a 7-argument function.
285 Invoke(Concat7);
292 // Tests using Invoke() with a 8-argument function.
296 Invoke(Concat8);
303 // Tests using Invoke() with a 9-argument function.
307 const char*)> a = Invoke(Concat9);
314 // Tests using Invoke() with a 10-argument function.
318 const char*, const char*)> a = Invoke(Concat10);
326 // Tests using Invoke() with functions with parameters declared as Unused.
329 Invoke(SumOfFirst2);
335 Invoke(SumOfFirst2);
339 // Tests using Invoke() with methods with parameters declared as Unused.
343 Invoke(&foo, &Foo::SumOfLast2);
347 Invoke(&foo, &Foo::SumOfLast2);
351 // Tests using Invoke() with a functor.
353 Action<long(long, int)> a = Invoke(plus<long>()); // NOLINT
357 // Tests using Invoke(f) as an action of a compatible type.
359 Action<long(int, short, char, bool)> a = Invoke(SumOf4); // NOLINT
363 // Tests using Invoke() with an object pointer and a method pointer.
365 // Tests using Invoke() with a nullary method.
368 Action<int()> a = Invoke(&foo, &Foo::Nullary); // NOLINT
372 // Tests using Invoke() with a unary method.
375 Action<short(long)> a = Invoke(&foo, &Foo::Unary); // NOLINT
379 // Tests using Invoke() with a binary method.
382 Action<string(const string&, char)> a = Invoke(&foo, &Foo::Binary);
388 // Tests using Invoke() with a ternary method.
391 Action<int(int, bool, char)> a = Invoke(&foo, &Foo::Ternary); // NOLINT
395 // Tests using Invoke() with a 4-argument method.
398 Action<int(int, int, int, int)> a = Invoke(&foo, &Foo::SumOf4); // NOLINT
402 // Tests using Invoke() with a 5-argument method.
405 Action<int(int, int, int, int, int)> a = Invoke(&foo, &Foo::SumOf5); // NOLINT
409 // Tests using Invoke() with a 6-argument method.
413 Invoke(&foo, &Foo::SumOf6);
417 // Tests using Invoke() with a 7-argument method.
422 Invoke(&foo, &Foo::Concat7);
429 // Tests using Invoke() with a 8-argument method.
434 Invoke(&foo, &Foo::Concat8);
441 // Tests using Invoke() with a 9-argument method.
446 const char*)> a = Invoke(&foo, &Foo::Concat9);
453 // Tests using Invoke() with a 10-argument method.
458 const char*, const char*)> a = Invoke(&foo, &Foo::Concat10);
466 // Tests using Invoke(f) as an action of a compatible type.
470 Invoke(&foo, &Foo::SumOf4);
476 Action<int(int n)> a = WithoutArgs(Invoke(Nullary)); // NOLINT
482 Action<bool(double x, int n)> b = WithArg<1>(Invoke(Unary)); // NOLINT