Lines Matching refs:WithArgs

64 using testing::WithArgs;
284 // Tests using WithArgs and with an action that takes 1 argument.
286 Action<bool(double x, int n)> a = WithArgs<1>(Invoke(Unary)); // NOLINT
291 // Tests using WithArgs with an action that takes 2 arguments.
294 WithArgs<0, 2>(Invoke(Binary));
299 // Tests using WithArgs with an action that takes 3 arguments.
302 WithArgs<0, 2, 3>(Invoke(Ternary));
306 // Tests using WithArgs with an action that takes 4 arguments.
309 WithArgs<4, 3, 1, 0>(Invoke(Concat4));
314 // Tests using WithArgs with an action that takes 5 arguments.
318 WithArgs<4, 3, 2, 1, 0>(Invoke(Concat5));
324 // Tests using WithArgs with an action that takes 6 arguments.
327 WithArgs<0, 1, 2, 2, 1, 0>(Invoke(Concat6));
332 // Tests using WithArgs with an action that takes 7 arguments.
335 WithArgs<0, 1, 2, 3, 2, 1, 0>(Invoke(Concat7));
341 // Tests using WithArgs with an action that takes 8 arguments.
344 WithArgs<0, 1, 2, 3, 0, 1, 2, 3>(Invoke(Concat8));
350 // Tests using WithArgs with an action that takes 9 arguments.
353 WithArgs<0, 1, 2, 3, 1, 2, 3, 2, 3>(Invoke(Concat9));
359 // Tests using WithArgs with an action that takes 10 arguments.
362 WithArgs<0, 1, 2, 3, 2, 1, 0, 1, 2, 3>(Invoke(Concat10));
368 // Tests using WithArgs with an action that is not Invoke().
378 WithArgs<2, 1>(MakeAction(new SubstractAction));
383 // Tests using WithArgs to pass all original arguments in the original order.
386 WithArgs<0, 1, 2>(Invoke(Ternary));
390 // Tests using WithArgs with repeated arguments.
393 WithArgs<1, 1, 1, 1>(Invoke(SumOf4));
397 // Tests using WithArgs with reversed argument order.
400 WithArgs<1, 0>(Invoke(Binary));
405 // Tests using WithArgs with compatible, but not identical, argument types.
408 WithArgs<0, 1, 3>(Invoke(Ternary));
412 // Tests using WithArgs with an action that returns void.
414 Action<void(double x, char c, int n)> a = WithArgs<2, 1>(Invoke(VoidBinary));