Lines Matching defs:a2
414 Action<MyGlobalFunction> a2(a1); // Tests the copy constructor.
420 // a2 should work like the action it was copied from.
421 EXPECT_EQ(5, a2.Perform(make_tuple(true, 5)));
422 EXPECT_EQ(0, a2.Perform(make_tuple(false, 1)));
424 a2 = a1; // Tests the assignment operator.
430 // a2 should work like the action it was copied from.
431 EXPECT_EQ(5, a2.Perform(make_tuple(true, 5)));
432 EXPECT_EQ(0, a2.Perform(make_tuple(false, 1)));
453 const Action<int(char)> a2 = Action<int(char)>(a1); // NOLINT
454 EXPECT_EQ(1, a2.Perform(make_tuple('a')));
455 EXPECT_EQ(0, a2.Perform(make_tuple('\0')));
512 Action<void*()> a2 = ReturnZeroFromNullaryFunction();
513 EXPECT_TRUE(a2.Perform(make_tuple()) == NULL);
537 Action<std::string()> a2 = Return("world");
538 EXPECT_EQ("world", a2.Perform(make_tuple()));
632 const Action<const char*(bool)> a2 = ReturnNull(); // NOLINT
633 EXPECT_TRUE(a2.Perform(make_tuple(true)) == NULL);
643 const Action<std::shared_ptr<int>(std::string)> a2 = ReturnNull();
644 EXPECT_TRUE(a2.Perform(make_tuple("foo")) == nullptr);
832 Action<MyStringFunction> a2 = SetArgPointee<0>(L"world");
834 a2.Perform(make_tuple(&str));
874 Action<MyStringFunction> a2 = SetArgPointee<1>(world);
876 a2.Perform(make_tuple(true, &str));
1132 Action<int(int, double)> a2 = InvokeWithoutArgs(Nullary); // NOLINT
1133 EXPECT_EQ(1, a2.Perform(make_tuple(2, 3.5)));
1149 Action<int(int, double, char)> a2 = // NOLINT
1151 EXPECT_EQ(2, a2.Perform(make_tuple(3, 3.5, 'a')));