Lines Matching refs:Action
56 using testing::Action;
341 Action<MyFunction> action = MakeAction(new MyActionImpl); in TEST()
354 Action<MyFunction> action(new MyActionImpl); in TEST()
359 const Action<MyFunction> action(new MyActionImpl); in TEST()
367 Action<MyFunction> a1(new MyActionImpl); in TEST()
368 Action<MyFunction> a2(a1); // Tests the copy constructor. in TEST()
406 const Action<bool(int)> a1(new IsNotZero); // NOLINT in TEST()
407 const Action<int(char)> a2 = Action<int(char)>(a1); // NOLINT in TEST()
456 Action<int(bool, int, double)> a1 = ReturnSecondArgument(); // NOLINT in TEST()
463 Action<int()> a1 = ReturnZeroFromNullaryFunction(); in TEST()
466 Action<void*()> a2 = ReturnZeroFromNullaryFunction(); in TEST()
473 const Action<void(int)> ret = Return(); // NOLINT in TEST()
479 Action<int()> ret = Return(1); // NOLINT in TEST()
488 Action<const char*()> a1 = Return("Hello"); in TEST()
491 Action<std::string()> a2 = Return("world"); in TEST()
508 Action<Base*()> ret = Return(&base); in TEST()
539 Action<ToType()> action(Return(x)); in TEST()
558 Action<DestinationType()> action(Return(s)); in TEST()
563 const Action<int*()> a1 = ReturnNull(); in TEST()
566 const Action<const char*(bool)> a2 = ReturnNull(); // NOLINT in TEST()
573 const Action<const int&(bool)> ret = ReturnRef(n); // NOLINT in TEST()
582 Action<Base&()> a = ReturnRef(base); in TEST()
592 const Action<const int&()> ret = ReturnRefOfCopy(n); in TEST()
606 Action<Base&()> a = ReturnRefOfCopy(base); in TEST()
702 Action<MyFunction> a = SetArgPointee<1>(2); in TEST()
723 Action<MyFunction> a = SetArgPointee<0>("hi"); in TEST()
739 Action<MyFunction> a = SetArgPointee<0>(L"world"); in TEST()
747 Action<MyStringFunction> a2 = SetArgPointee<0>(L"world"); in TEST()
760 Action<MyFunction> a = SetArgPointee<1>(hi); in TEST()
779 Action<MyFunction> a = SetArgPointee<1>(hi); in TEST()
789 Action<MyStringFunction> a2 = SetArgPointee<1>(world); in TEST()
806 Action<void(bool, TestMessage*)> a = SetArgPointee<1>(*msg); in TEST()
828 Action<void(bool, ::ProtocolMessage*)> a = SetArgPointee<1>(*msg); in TEST()
853 Action<void(bool, FooMessage*)> a = SetArgPointee<1>(*msg); in TEST()
878 Action<void(bool, ::proto2::Message*)> a = SetArgPointee<1>(*msg); in TEST()
899 Action<MyFunction> a = SetArgumentPointee<1>(2); in TEST()
925 Action<void(bool, TestMessage*)> a = SetArgumentPointee<1>(*msg); in TEST()
947 Action<void(bool, ::ProtocolMessage*)> a = SetArgumentPointee<1>(*msg); in TEST()
972 Action<void(bool, FooMessage*)> a = SetArgumentPointee<1>(*msg); in TEST()
997 Action<void(bool, ::proto2::Message*)> a = SetArgumentPointee<1>(*msg); in TEST()
1099 Action<int(int)> a = InvokeWithoutArgs(Nullary); // NOLINT in TEST()
1103 Action<int(int, double)> a2 = InvokeWithoutArgs(Nullary); // NOLINT in TEST()
1107 Action<void(int)> a3 = InvokeWithoutArgs(VoidNullary); // NOLINT in TEST()
1116 Action<int()> a = InvokeWithoutArgs(NullaryFunctor()); // NOLINT in TEST()
1120 Action<int(int, double, char)> a2 = // NOLINT in TEST()
1125 Action<void()> a3 = InvokeWithoutArgs(VoidNullaryFunctor()); in TEST()
1134 Action<int(bool, char)> a = // NOLINT in TEST()
1141 Action<void(int)> a = IgnoreResult(Return(5)); // NOLINT in TEST()
1154 Action<void()> a = IgnoreResult(Invoke(ReturnOne)); in TEST()
1168 Action<void(int)> a = IgnoreResult(Invoke(ReturnMyClass)); // NOLINT in TEST()
1175 Action<void(int)> a = Assign(&x, 5); in TEST()
1182 Action<void(void)> a = Assign(&x, "Hello, world"); in TEST()
1189 Action<void(int)> a = Assign(&x, 5); in TEST()
1203 Action<int(void)> a = SetErrnoAndReturn(ENOTTY, -5); in TEST_F()
1210 Action<int*(void)> a = SetErrnoAndReturn(ENOTTY, &x); in TEST_F()
1216 Action<double()> a = SetErrnoAndReturn(EINVAL, 5); in TEST_F()