• Home
  • Raw
  • Download

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()
538 Action<ToType()> action(Return(x)); in TEST()
557 Action<DestinationType()> action(Return(s)); in TEST()
562 const Action<int*()> a1 = ReturnNull(); in TEST()
565 const Action<const char*(bool)> a2 = ReturnNull(); // NOLINT in TEST()
572 const Action<const int&(bool)> ret = ReturnRef(n); // NOLINT in TEST()
581 Action<Base&()> a = ReturnRef(base); in TEST()
591 const Action<const int&()> ret = ReturnRefOfCopy(n); in TEST()
605 Action<Base&()> a = ReturnRefOfCopy(base); in TEST()
701 Action<MyFunction> a = SetArgPointee<1>(2); in TEST()
722 Action<MyFunction> a = SetArgPointee<0>("hi"); in TEST()
738 Action<MyFunction> a = SetArgPointee<0>(L"world"); in TEST()
746 Action<MyStringFunction> a2 = SetArgPointee<0>(L"world"); in TEST()
759 Action<MyFunction> a = SetArgPointee<1>(hi); in TEST()
778 Action<MyFunction> a = SetArgPointee<1>(hi); in TEST()
788 Action<MyStringFunction> a2 = SetArgPointee<1>(world); in TEST()
805 Action<void(bool, TestMessage*)> a = SetArgPointee<1>(*msg); in TEST()
827 Action<void(bool, ::ProtocolMessage*)> a = SetArgPointee<1>(*msg); in TEST()
852 Action<void(bool, FooMessage*)> a = SetArgPointee<1>(*msg); in TEST()
877 Action<void(bool, ::proto2::Message*)> a = SetArgPointee<1>(*msg); in TEST()
898 Action<MyFunction> a = SetArgumentPointee<1>(2); in TEST()
924 Action<void(bool, TestMessage*)> a = SetArgumentPointee<1>(*msg); in TEST()
946 Action<void(bool, ::ProtocolMessage*)> a = SetArgumentPointee<1>(*msg); in TEST()
971 Action<void(bool, FooMessage*)> a = SetArgumentPointee<1>(*msg); in TEST()
996 Action<void(bool, ::proto2::Message*)> a = SetArgumentPointee<1>(*msg); in TEST()
1098 Action<int(int)> a = InvokeWithoutArgs(Nullary); // NOLINT in TEST()
1102 Action<int(int, double)> a2 = InvokeWithoutArgs(Nullary); // NOLINT in TEST()
1106 Action<void(int)> a3 = InvokeWithoutArgs(VoidNullary); // NOLINT in TEST()
1115 Action<int()> a = InvokeWithoutArgs(NullaryFunctor()); // NOLINT in TEST()
1119 Action<int(int, double, char)> a2 = // NOLINT in TEST()
1124 Action<void()> a3 = InvokeWithoutArgs(VoidNullaryFunctor()); in TEST()
1133 Action<int(bool, char)> a = // NOLINT in TEST()
1140 Action<void(int)> a = IgnoreResult(Return(5)); // NOLINT in TEST()
1153 Action<void()> a = IgnoreResult(Invoke(ReturnOne)); in TEST()
1167 Action<void(int)> a = IgnoreResult(Invoke(ReturnMyClass)); // NOLINT in TEST()
1174 Action<void(int)> a = Assign(&x, 5); in TEST()
1181 Action<void(void)> a = Assign(&x, "Hello, world"); in TEST()
1188 Action<void(int)> a = Assign(&x, 5); in TEST()
1202 Action<int(void)> a = SetErrnoAndReturn(ENOTTY, -5); in TEST_F()
1209 Action<int*(void)> a = SetErrnoAndReturn(ENOTTY, &x); in TEST_F()
1215 Action<double()> a = SetErrnoAndReturn(EINVAL, 5); in TEST_F()