Lines Matching refs:Expectation

51 // Helper class for testing the Expectation class template.
77 using testing::Expectation;
423 Expectation e = EXPECT_CALL(a, DoA(1))
450 Expectation e = EXPECT_CALL(a, DoA(1));
1407 // Tests Expectation.
1411 Expectation e1; // Default ctor.
1414 Expectation e2 = EXPECT_CALL(a, DoA(2));
1415 Expectation e3 = EXPECT_CALL(a, DoA(3)).With(_);
1418 Expectation e4 = EXPECT_CALL(a, DoA(4)).Times(1);
1419 Expectation e5 = EXPECT_CALL(a, DoA(5)).InSequence(s);
1421 Expectation e6 = EXPECT_CALL(a, DoA(6)).After(e2);
1422 Expectation e7 = EXPECT_CALL(a, DoA(7)).WillOnce(Return());
1423 Expectation e8 = EXPECT_CALL(a, DoA(8)).WillRepeatedly(Return());
1424 Expectation e9 = EXPECT_CALL(a, DoA(9)).RetiresOnSaturation();
1426 Expectation e10 = e2; // Copy ctor.
1443 Expectation e1;
1444 Expectation e2 = EXPECT_CALL(a, DoA(1));
1457 ::testing::StaticAssertTypeEq<Expectation, ExpectationSet::value_type>();
1463 Expectation e1;
1464 const Expectation e2;
1467 ExpectationSet es3 = e1; // Ctor from Expectation.
1468 ExpectationSet es4(e1); // Ctor from Expectation; alternative syntax.
1469 ExpectationSet es5 = e2; // Ctor from const Expectation.
1470 ExpectationSet es6(e2); // Ctor from const Expectation; alternative syntax.
1491 ExpectationSet es2 = Expectation();
1495 EXPECT_THAT(*(es1.begin()), Eq(Expectation()));
1501 Expectation e1;
1507 Expectation e2 = EXPECT_CALL(a, DoA(1));
1523 es += Expectation();
1537 es += Expectation();
1540 EXPECT_THAT(*it, Eq(Expectation()));
1563 // The following also verifies that const Expectation objects work
1565 const Expectation e1 = EXPECT_CALL(a, DoA(1));
1566 const Expectation e2 = EXPECT_CALL(b, DoB())
1584 Expectation e1 = EXPECT_CALL(a, DoA(1));
1585 Expectation e2 = EXPECT_CALL(b, DoB())
1606 Expectation e1 = EXPECT_CALL(a, DoA(1));
1607 Expectation e2 = EXPECT_CALL(b, DoB())
1632 Expectation e = EXPECT_CALL(a, DoA(1));
1652 Expectation e = EXPECT_CALL(a, DoA(1));
1670 Expectation e = EXPECT_CALL(a, DoA(1));
1688 Expectation e1 = EXPECT_CALL(a, DoA(1));
1689 Expectation e2 = EXPECT_CALL(a, DoA(2));
1690 Expectation e3 = EXPECT_CALL(a, DoA(3));
1705 Expectation e1 = EXPECT_CALL(a, DoA(1));
1706 Expectation e2 = EXPECT_CALL(a, DoA(2));
1707 Expectation e3 = EXPECT_CALL(a, DoA(3));
1730 Expectation e1 = EXPECT_CALL(a, DoA(1));
1731 Expectation e2 = EXPECT_CALL(a, DoA(2));
1747 // An Expectation added to an ExpectationSet after it has been used in
1752 Expectation e2 = EXPECT_CALL(a, DoA(2));