Lines Matching defs:a1
413 Action<MyGlobalFunction> a1(new MyActionImpl);
414 Action<MyGlobalFunction> a2(a1); // Tests the copy constructor.
416 // a1 should continue to work after being copied from.
417 EXPECT_EQ(5, a1.Perform(make_tuple(true, 5)));
418 EXPECT_EQ(0, a1.Perform(make_tuple(false, 1)));
424 a2 = a1; // Tests the assignment operator.
426 // a1 should continue to work after being copied from.
427 EXPECT_EQ(5, a1.Perform(make_tuple(true, 5)));
428 EXPECT_EQ(0, a1.Perform(make_tuple(false, 1)));
452 const Action<bool(int)> a1(new IsNotZero); // NOLINT
453 const Action<int(char)> a2 = Action<int(char)>(a1); // NOLINT
502 Action<int(bool, int, double)> a1 = ReturnSecondArgument(); // NOLINT
503 EXPECT_EQ(5, a1.Perform(make_tuple(false, 5, 2.0)));
509 Action<int()> a1 = ReturnZeroFromNullaryFunction();
510 EXPECT_EQ(0, a1.Perform(make_tuple()));
534 Action<const char*()> a1 = Return("Hello");
535 EXPECT_STREQ("Hello", a1.Perform(make_tuple()));
629 const Action<int*()> a1 = ReturnNull();
630 EXPECT_TRUE(a1.Perform(make_tuple()) == NULL);
640 const Action<std::unique_ptr<const int>()> a1 = ReturnNull();
641 EXPECT_TRUE(a1.Perform(make_tuple()) == nullptr);