Lines Matching refs:Action

55 using testing::Action;
193 Action<int()> a = Invoke(Nullary); // NOLINT
199 Action<bool(int)> a = Invoke(Unary); // NOLINT
206 Action<const char*(const char*, short)> a = Invoke(Binary); // NOLINT
213 Action<int(int, char, short)> a = Invoke(Ternary); // NOLINT
219 Action<int(int, int, int, int)> a = Invoke(SumOf4); // NOLINT
225 Action<int(int, int, int, int, int)> a = Invoke(SumOf5); // NOLINT
231 Action<int(int, int, int, int, int, int)> a = Invoke(SumOf6); // NOLINT
242 Action<std::string(const char*, const char*, const char*, const char*,
253 Action<std::string(const char*, const char*, const char*, const char*,
264 Action<std::string(const char*, const char*, const char*, const char*,
276 Action<std::string(const char*, const char*, const char*, const char*,
289 Action<int(int, int, double, const std::string&)> a1 = Invoke(SumOfFirst2);
294 Action<int(int, int, bool, int*)> a2 = Invoke(SumOfFirst2);
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);
311 Action<long(long, int)> a = Invoke(plus<long>()); // NOLINT
317 Action<long(int, short, char, bool)> a = Invoke(SumOf4); // NOLINT
326 Action<int()> a = Invoke(&foo, &Foo::Nullary); // NOLINT
333 Action<short(long)> a = Invoke(&foo, &Foo::Unary); // NOLINT
340 Action<std::string(const std::string&, char)> a = Invoke(&foo, &Foo::Binary);
349 Action<int(int, bool, char)> a = Invoke(&foo, &Foo::Ternary); // NOLINT
356 Action<int(int, int, int, int)> a = Invoke(&foo, &Foo::SumOf4); // NOLINT
363 Action<int(int, int, int, int, int)> a =
371 Action<int(int, int, int, int, int, int)> a = // NOLINT
380 Action<std::string(const char*, const char*, const char*, const char*,
392 Action<std::string(const char*, const char*, const char*, const char*,
404 Action<std::string(const char*, const char*, const char*, const char*,
417 Action<std::string(const char*, const char*, const char*, const char*,
431 Action<long(int, short, char, bool)> a = // NOLINT
438 Action<int(int n)> a = WithoutArgs(Invoke(Nullary)); // NOLINT
444 Action<bool(double x, int n)> b = WithArg<1>(Invoke(Unary)); // NOLINT
450 const Action<int(int)> a = ReturnArg<0>();
455 const Action<bool(bool, bool, bool)> a = ReturnArg<0>();
460 const Action<std::string(int, int, std::string, int)> a = ReturnArg<2>();
465 const Action<std::string&(std::string&)> a = ReturnArg<0>();
472 const Action<void(int n)> a1 = SaveArg<0>(&result);
479 const Action<void(bool, char)> a1 = SaveArg<1>(&result);
487 const Action<void(const int*)> a1 = SaveArgPointee<0>(&result);
495 const Action<void(bool, char*)> a1 = SaveArgPointee<1>(&result);
502 const Action<void(int&)> a1 = SetArgReferee<0>(1);
509 const Action<void(int, int&)> a1 = SetArgReferee<1>('a');
516 const Action<void(bool, int, int&, const char*)> a1 = SetArgReferee<2>('a');
539 const Action<void(DeletionTester*)> a1 = DeleteArg<0>(); // NOLINT
548 const Action<void(bool, int, int, const char*, bool, int, int, int, int,
559 const Action<void(int n)> a = Throw('a');
566 const Action<double(char ch)> a = Throw(MyException());
571 const Action<double()> a = Throw(MyException());
609 Action<MyFunction> a = SetArrayArgument<1>(numbers, numbers + 3);
645 Action<MyFunction> a = SetArrayArgument<1>(numbers, numbers);
661 Action<MyFunction> a = SetArrayArgument<1>(chars, chars + 3);
676 Action<MyFunction> a = SetArrayArgument<1>(letters.begin(), letters.end());
685 const Action<int()> a = ReturnPointee(&n);
696 Action<int(int, int (*)())> a = InvokeArgument<1>(); // NOLINT
702 Action<int(UnaryFunctor)> a = InvokeArgument<0>(true); // NOLINT
708 Action<int(int (*)(int, int, int, int, int))> a = // NOLINT
715 Action<int(SumOf5Functor)> a = // NOLINT
722 Action<int(int (*)(int, int, int, int, int, int))> a = // NOLINT
729 Action<int(SumOf6Functor)> a = // NOLINT
736 Action<std::string(std::string(*)(const char*, const char*, const char*,
745 Action<std::string(std::string(*)(const char*, const char*, const char*,
754 Action<std::string(std::string(*)(const char*, const char*, const char*,
763 Action<std::string(std::string(*)(
772 Action<const char*(const char* (*)(const char* input, short n))> // NOLINT
780 Action<const char*(const char* (*)(const char* input, short n))> // NOLINT
787 Action<bool(bool (*function)(const std::string& s))> a = // NOLINT
798 Action<bool(bool (*)(const double& x))> a = // NOLINT
811 Action<int(int*)> a = DoAll(SetArgPointee<0>(1), // NOLINT
820 Action<int(int*, int*)> a = DoAll(SetArgPointee<0>(1), // NOLINT
831 Action<int(int*, int*, char*)> a = // NOLINT
844 Action<int(int*, int*, char*, char*)> action = // NOLINT
858 Action<int(int*, int*, char*, char*, char*)> action = // NOLINT
873 Action<int(int*, int*, char*, char*, char*, char*)> action = // NOLINT
890 Action<int(int*, int*, char*, char*, char*, char*, // NOLINT
910 Action<int(int*, int*, char*, char*, char*, char*, // NOLINT
932 Action<int(int*, int*, char*, char*, char*, char*, // NOLINT
954 Action<bool()> a =
961 Action<int(std::unique_ptr<int>)> a =
970 // Action<void(std::vector<int>)> isn't an
971 // Action<void(const std::vector<int>&) but can be converted.
972 Action<void(std::vector<int>)> first = [&] { ran_first = true; };
973 Action<int(std::vector<int>)> a =
997 Action<double()> a1 = Return5();
1000 Action<int(double, bool)> a2 = Return5();
1008 Action<void(int, int*)> a1 = IncrementArg1();
1023 Action<void(int, bool, int*)> a1 = IncrementArg2();
1038 Action<int(int, char, int*)> a1 = Sum2();
1058 Action<int(bool)> a1 = InvokeDummy();
1072 Action<int(bool)> a1 = InvokeDummy2();
1084 Action<const bool*(int, const bool&)> a = ReturnAddrOfConstBoolReferenceArg();
1096 Action<int*(int&, bool, int)> a = ReturnAddrOfIntReferenceArg();
1107 Action<int(int, int)> a1 = action_test::Sum();
1116 Action<int(int)> a1 = PlusTwo();
1119 Action<double(float, void*)> a2 = PlusTwo();
1128 Action<int(int m, bool t)> a1 = Plus(9);
1141 Action<int(char m, bool t)> a1 = TypedPlus(9);
1148 Action<std::string(const std::string& s)> a1 = Plus("tail");
1168 using MyAction = Action<const char*(bool, const char*)>;
1188 Action<double(int m, bool t)> a1 = Plus(100, 20, 3.4);
1191 Action<std::string(const std::string& s)> a2 = Plus("tail", "-", ">");
1200 Action<int(int)> a1 = Plus(1, 2, 3, 4);
1207 Action<int(int)> a1 = Plus(1, 2, 3, 4, 5);
1216 Action<int(int)> a1 = Plus(1, 2, 3, 4, 5, 6);
1225 Action<int(int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7);
1234 Action<int(int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7, 8);
1244 Action<int(int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7, 8, 9);
1256 Action<int(int)> a1 = Plus(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
1271 Action<std::string(const char*)> no_promo =
1273 Action<std::string(const char*)> promo =
1323 Action<const std::string()> a1 = Concat("Hello", "1", 2);
1387 Action<int()> a = Plus1<int&>(x);
1418 const Action<int*()> a = CreateNew<int>();
1430 const Action<int*()> a = CreateNew<int>(42);
1453 const Action<void(int*, BoolResetter*)> a = MyDeleteArg<1>();
1470 const Action<std::shared_ptr<int>()> a =
1497 const Action<Giant()> a = ReturnGiant<int, bool, double, 5, true, 6, char,
1510 const Action<int()> a = ReturnSum<int>(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
1537 const Action<int()> a0 = ReturnSum();
1538 const Action<int()> a1 = ReturnSum(1);
1539 const Action<int()> a2 = ReturnSum<int>(1, 2);
1540 const Action<int()> a3 = ReturnSum<int>(1, 2, 3);
1541 const Action<int()> a4 = ReturnSum<int, 10000>(2000, 300, 40, 5);