Home | History | Annotate | Download | only in test

Lines Matching refs:Action

55 using testing::Action;
235 Action<int()> a = Invoke(Nullary); // NOLINT
241 Action<bool(int)> a = Invoke(Unary); // NOLINT
248 Action<const char*(const char*, short)> a = Invoke(Binary); // NOLINT
255 Action<int(int, char, short)> a = Invoke(Ternary); // NOLINT
261 Action<int(int, int, int, int)> a = Invoke(SumOf4); // NOLINT
267 Action<int(int, int, int, int, int)> a = Invoke(SumOf5); // NOLINT
273 Action<int(int, int, int, int, int, int)> a = Invoke(SumOf6); // NOLINT
283 Action<string(const char*, const char*, const char*, const char*,
294 Action<string(const char*, const char*, const char*, const char*,
305 Action<string(const char*, const char*, const char*, const char*,
316 Action<string(const char*, const char*, const char*, const char*,
328 Action<int(int, int, double, const string&)> a1 =
332 Action<int(int, int, bool, int*)> a2 =
340 Action<int(string, bool, int, int)> a1 =
344 Action<int(char, double, int, int)> a2 =
351 Action<long(long, int)> a = Invoke(plus<long>()); // NOLINT
355 // Tests using Invoke(f) as an action of a compatible type.
357 Action<long(int, short, char, bool)> a = Invoke(SumOf4); // NOLINT
366 Action<int()> a = Invoke(&foo, &Foo::Nullary); // NOLINT
373 Action<short(long)> a = Invoke(&foo, &Foo::Unary); // NOLINT
380 Action<string(const string&, char)> a = Invoke(&foo, &Foo::Binary);
388 Action<int(int, bool, char)> a = Invoke(&foo, &Foo::Ternary); // NOLINT
395 Action<int(int, int, int, int)> a = Invoke(&foo, &Foo::SumOf4); // NOLINT
402 Action<int(int, int, int, int, int)> a = Invoke(&foo, &Foo::SumOf5); // NOLINT
409 Action<int(int, int, int, int, int, int)> a = // NOLINT
417 Action<string(const char*, const char*, const char*, const char*,
429 Action<string(const char*, const char*, const char*, const char*,
441 Action<string(const char*, const char*, const char*, const char*,
453 Action<string(const char*, const char*, const char*, const char*,
463 // Tests using Invoke(f) as an action of a compatible type.
466 Action<long(int, short, char, bool)> a = // NOLINT
471 // Tests using WithoutArgs with an action that takes no argument.
473 Action<int(int n)> a = WithoutArgs(Invoke(Nullary)); // NOLINT
477 // Tests using WithArg with an action that takes 1 argument.
479 Action<bool(double x, int n)> b = WithArg<1>(Invoke(Unary)); // NOLINT
485 const Action<int(int)> a = ReturnArg<0>();
490 const Action<bool(bool, bool, bool)> a = ReturnArg<0>();
495 const Action<string(int, int, string, int)> a = ReturnArg<2>();
501 const Action<void(int n)> a1 = SaveArg<0>(&result);
508 const Action<void(bool, char)> a1 = SaveArg<1>(&result);
516 const Action<void(const int*)> a1 = SaveArgPointee<0>(&result);
524 const Action<void(bool, char*)> a1 = SaveArgPointee<1>(&result);
532 const Action<void(linked_ptr<int>)> a1 = SaveArgPointee<0>(&result);
539 const Action<void(int&)> a1 = SetArgReferee<0>(1);
546 const Action<void(int, int&)> a1 = SetArgReferee<1>('a');
553 const Action<void(bool, int, int&, const char*)> a1 = SetArgReferee<2>('a');
579 const Action<void(DeletionTester*)> a1 = DeleteArg<0>(); // NOLINT
588 const Action<void(bool, int, int, const char*, bool,
598 const Action<void(int n)> a = Throw('a');
605 const Action<double(char ch)> a = Throw(MyException());
610 const Action<double()> a = Throw(MyException());
621 Action<MyFunction> a = SetArrayArgument<1>(numbers, numbers + 3);
657 Action<MyFunction> a = SetArrayArgument<1>(numbers, numbers);
673 Action<MyFunction> a = SetArrayArgument<1>(codes, codes + 3);
688 Action<MyFunction> a = SetArrayArgument<1>(letters.begin(), letters.end());
697 const Action<int()> a = ReturnPointee(&n);