Home | History | Annotate | Download | only in test

Lines Matching defs:a2

368   Action<MyFunction> a2(a1);  // Tests the copy constructor.
374 // a2 should work like the action it was copied from.
375 EXPECT_EQ(5, a2.Perform(make_tuple(true, 5)));
376 EXPECT_EQ(0, a2.Perform(make_tuple(false, 1)));
378 a2 = a1; // Tests the assignment operator.
384 // a2 should work like the action it was copied from.
385 EXPECT_EQ(5, a2.Perform(make_tuple(true, 5)));
386 EXPECT_EQ(0, a2.Perform(make_tuple(false, 1)));
407 const Action<int(char)> a2 = Action<int(char)>(a1); // NOLINT
408 EXPECT_EQ(1, a2.Perform(make_tuple('a')));
409 EXPECT_EQ(0, a2.Perform(make_tuple('\0')));
466 Action<void*()> a2 = ReturnZeroFromNullaryFunction();
467 EXPECT_TRUE(a2.Perform(make_tuple()) == NULL);
491 Action<std::string()> a2 = Return("world");
492 EXPECT_EQ("world", a2.Perform(make_tuple()));
565 const Action<const char*(bool)> a2 = ReturnNull(); // NOLINT
566 EXPECT_TRUE(a2.Perform(make_tuple(true)) == NULL);
746 Action<MyStringFunction> a2 = SetArgPointee<0>(L"world");
748 a2.Perform(make_tuple(&str));
788 Action<MyStringFunction> a2 = SetArgPointee<1>(world);
790 a2.Perform(make_tuple(true, &str));
1102 Action<int(int, double)> a2 = InvokeWithoutArgs(Nullary); // NOLINT
1103 EXPECT_EQ(1, a2.Perform(make_tuple(2, 3.5)));
1119 Action<int(int, double, char)> a2 = // NOLINT
1121 EXPECT_EQ(2, a2.Perform(make_tuple(3, 3.5, 'a')));