Lines Matching refs:Action
55 using testing::Action;
234 Action<int()> a = Invoke(Nullary); // NOLINT
240 Action<bool(int)> a = Invoke(Unary); // NOLINT
247 Action<const char*(const char*, short)> a = Invoke(Binary); // NOLINT
254 Action<int(int, char, short)> a = Invoke(Ternary); // NOLINT
260 Action<int(int, int, int, int)> a = Invoke(SumOf4); // NOLINT
266 Action<int(int, int, int, int, int)> a = Invoke(SumOf5); // NOLINT
272 Action<int(int, int, int, int, int, int)> a = Invoke(SumOf6); // NOLINT
282 Action<string(const char*, const char*, const char*, const char*,
293 Action<string(const char*, const char*, const char*, const char*,
304 Action<string(const char*, const char*, const char*, const char*,
315 Action<string(const char*, const char*, const char*, const char*,
327 Action<int(int, int, double, const string&)> a1 =
331 Action<int(int, int, bool, int*)> a2 =
339 Action<int(string, bool, int, int)> a1 =
343 Action<int(char, double, int, int)> a2 =
350 Action<long(long, int)> a = Invoke(plus<long>()); // NOLINT
354 // Tests using Invoke(f) as an action of a compatible type.
356 Action<long(int, short, char, bool)> a = Invoke(SumOf4); // NOLINT
365 Action<int()> a = Invoke(&foo, &Foo::Nullary); // NOLINT
372 Action<short(long)> a = Invoke(&foo, &Foo::Unary); // NOLINT
379 Action<string(const string&, char)> a = Invoke(&foo, &Foo::Binary);
387 Action<int(int, bool, char)> a = Invoke(&foo, &Foo::Ternary); // NOLINT
394 Action<int(int, int, int, int)> a = Invoke(&foo, &Foo::SumOf4); // NOLINT
401 Action<int(int, int, int, int, int)> a = Invoke(&foo, &Foo::SumOf5); // NOLINT
408 Action<int(int, int, int, int, int, int)> a = // NOLINT
416 Action<string(const char*, const char*, const char*, const char*,
428 Action<string(const char*, const char*, const char*, const char*,
440 Action<string(const char*, const char*, const char*, const char*,
452 Action<string(const char*, const char*, const char*, const char*,
462 // Tests using Invoke(f) as an action of a compatible type.
465 Action<long(int, short, char, bool)> a = // NOLINT
470 // Tests using WithoutArgs with an action that takes no argument.
472 Action<int(int n)> a = WithoutArgs(Invoke(Nullary)); // NOLINT
476 // Tests using WithArg with an action that takes 1 argument.
478 Action<bool(double x, int n)> b = WithArg<1>(Invoke(Unary)); // NOLINT
484 const Action<int(int)> a = ReturnArg<0>();
489 const Action<bool(bool, bool, bool)> a = ReturnArg<0>();
494 const Action<string(int, int, string, int)> a = ReturnArg<2>();
500 const Action<void(int n)> a1 = SaveArg<0>(&result);
507 const Action<void(bool, char)> a1 = SaveArg<1>(&result);
515 const Action<void(const int*)> a1 = SaveArgPointee<0>(&result);
523 const Action<void(bool, char*)> a1 = SaveArgPointee<1>(&result);
531 const Action<void(linked_ptr<int>)> a1 = SaveArgPointee<0>(&result);
538 const Action<void(int&)> a1 = SetArgReferee<0>(1);
545 const Action<void(int, int&)> a1 = SetArgReferee<1>('a');
552 const Action<void(bool, int, int&, const char*)> a1 = SetArgReferee<2>('a');
578 const Action<void(DeletionTester*)> a1 = DeleteArg<0>(); // NOLINT
587 const Action<void(bool, int, int, const char*, bool,
597 const Action<void(int n)> a = Throw('a');
604 const Action<double(char ch)> a = Throw(MyException());
609 const Action<double()> a = Throw(MyException());
620 Action<MyFunction> a = SetArrayArgument<1>(numbers, numbers + 3);
656 Action<MyFunction> a = SetArrayArgument<1>(numbers, numbers);
672 Action<MyFunction> a = SetArrayArgument<1>(codes, codes + 3);
687 Action<MyFunction> a = SetArrayArgument<1>(letters.begin(), letters.end());
696 const Action<int()> a = ReturnPointee(&n);