Lines Matching refs:Invoke

57 using testing::Invoke;
71 // Sample functions and functors for testing Invoke() and etc.
191 // Tests using Invoke() with a nullary function.
193 Action<int()> a = Invoke(Nullary); // NOLINT
197 // Tests using Invoke() with a unary function.
199 Action<bool(int)> a = Invoke(Unary); // NOLINT
204 // Tests using Invoke() with a binary function.
206 Action<const char*(const char*, short)> a = Invoke(Binary); // NOLINT
211 // Tests using Invoke() with a ternary function.
213 Action<int(int, char, short)> a = Invoke(Ternary); // NOLINT
217 // Tests using Invoke() with a 4-argument function.
219 Action<int(int, int, int, int)> a = Invoke(SumOf4); // NOLINT
223 // Tests using Invoke() with a 5-argument function.
225 Action<int(int, int, int, int, int)> a = Invoke(SumOf5); // NOLINT
229 // Tests using Invoke() with a 6-argument function.
231 Action<int(int, int, int, int, int, int)> a = Invoke(SumOf6); // NOLINT
240 // Tests using Invoke() with a 7-argument function.
244 a = Invoke(Concat7);
251 // Tests using Invoke() with a 8-argument function.
255 a = Invoke(Concat8);
262 // Tests using Invoke() with a 9-argument function.
267 a = Invoke(Concat9);
274 // Tests using Invoke() with a 10-argument function.
279 a = Invoke(Concat10);
287 // Tests using Invoke() with functions with parameters declared as Unused.
289 Action<int(int, int, double, const std::string&)> a1 = Invoke(SumOfFirst2);
294 Action<int(int, int, bool, int*)> a2 = Invoke(SumOfFirst2);
299 // Tests using Invoke() with methods with parameters declared as Unused.
302 Action<int(std::string, bool, int, int)> a1 = Invoke(&foo, &Foo::SumOfLast2);
305 Action<int(char, double, int, int)> a2 = Invoke(&foo, &Foo::SumOfLast2);
309 // Tests using Invoke() with a functor.
311 Action<long(long, int)> a = Invoke(plus<long>()); // NOLINT
315 // Tests using Invoke(f) as an action of a compatible type.
317 Action<long(int, short, char, bool)> a = Invoke(SumOf4); // NOLINT
321 // Tests using Invoke() with an object pointer and a method pointer.
323 // Tests using Invoke() with a nullary method.
326 Action<int()> a = Invoke(&foo, &Foo::Nullary); // NOLINT
330 // Tests using Invoke() with a unary method.
333 Action<short(long)> a = Invoke(&foo, &Foo::Unary); // NOLINT
337 // Tests using Invoke() with a binary method.
340 Action<std::string(const std::string&, char)> a = Invoke(&foo, &Foo::Binary);
346 // Tests using Invoke() with a ternary method.
349 Action<int(int, bool, char)> a = Invoke(&foo, &Foo::Ternary); // NOLINT
353 // Tests using Invoke() with a 4-argument method.
356 Action<int(int, int, int, int)> a = Invoke(&foo, &Foo::SumOf4); // NOLINT
360 // Tests using Invoke() with a 5-argument method.
364 Invoke(&foo, &Foo::SumOf5); // NOLINT
368 // Tests using Invoke() with a 6-argument method.
372 Invoke(&foo, &Foo::SumOf6);
377 // Tests using Invoke() with a 7-argument method.
382 a = Invoke(&foo, &Foo::Concat7);
389 // Tests using Invoke() with a 8-argument method.
394 a = Invoke(&foo, &Foo::Concat8);
401 // Tests using Invoke() with a 9-argument method.
407 a = Invoke(&foo, &Foo::Concat9);
414 // Tests using Invoke() with a 10-argument method.
420 a = Invoke(&foo, &Foo::Concat10);
428 // Tests using Invoke(f) as an action of a compatible type.
432 Invoke(&foo, &Foo::SumOf4);
438 Action<int(int n)> a = WithoutArgs(Invoke(Nullary)); // NOLINT
444 Action<bool(double x, int n)> b = WithArg<1>(Invoke(Unary)); // NOLINT