Home | History | Annotate | Download | only in test

Lines Matching refs:Expectation

51 // Helper class for testing the Expectation class template.
54 // Sets the call count of the given expectation to the given number.
77 using testing::Expectation;
404 Expectation e = EXPECT_CALL(a, DoA(1))
431 Expectation e = EXPECT_CALL(a, DoA(1));
590 // expectation compared to its cardinality.
656 // expectation compared to its cardinality.
720 // There is no expectation on DoB(int).
858 // expectation has no action clause at all.
960 "Google Mock tried the following 1 expectation, but it didn't match:");
980 "tried expectation #0: EXPECT_CALL(a2, DoA(1))...\n"
987 "tried expectation #1: EXPECT_CALL(a2, DoA(3))...\n"
1006 "Google Mock tried the following 1 expectation, but it didn't match:");
1015 // Tests that Google Mock explains that an retired expectation doesn't
1025 " Expected: the expectation is active\n"
1029 // Tests that Google Mock explains that an expectation that doesn't
1042 // Tests that Google Mock explains that an expectation with
1353 // Tests Expectation.
1357 Expectation e1; // Default ctor.
1360 Expectation e2 = EXPECT_CALL(a, DoA(2));
1361 Expectation e3 = EXPECT_CALL(a, DoA(3)).With(_);
1364 Expectation e4 = EXPECT_CALL(a, DoA(4)).Times(1);
1365 Expectation e5 = EXPECT_CALL(a, DoA(5)).InSequence(s);
1367 Expectation e6 = EXPECT_CALL(a, DoA(6)).After(e2);
1368 Expectation e7 = EXPECT_CALL(a, DoA(7)).WillOnce(Return());
1369 Expectation e8 = EXPECT_CALL(a, DoA(8)).WillRepeatedly(Return());
1370 Expectation e9 = EXPECT_CALL(a, DoA(9)).RetiresOnSaturation();
1372 Expectation e10 = e2; // Copy ctor.
1389 Expectation e1;
1390 Expectation e2 = EXPECT_CALL(a, DoA(1));
1403 ::testing::StaticAssertTypeEq<Expectation, ExpectationSet::value_type>();
1409 Expectation e1;
1410 const Expectation e2;
1413 ExpectationSet es3 = e1; // Ctor from Expectation.
1414 ExpectationSet es4(e1); // Ctor from Expectation; alternative syntax.
1415 ExpectationSet es5 = e2; // Ctor from const Expectation.
1416 ExpectationSet es6(e2); // Ctor from const Expectation; alternative syntax.
1437 ExpectationSet es2 = Expectation();
1441 EXPECT_THAT(*(es1.begin()), Eq(Expectation()));
1447 Expectation e1;
1453 Expectation e2 = EXPECT_CALL(a, DoA(1));
1469 es += Expectation();
1483 es += Expectation();
1486 EXPECT_THAT(*it, Eq(Expectation()));
1509 // The following also verifies that const Expectation objects work
1511 const Expectation e1 = EXPECT_CALL(a, DoA(1));
1512 const Expectation e2 = EXPECT_CALL(b, DoB())
1527 Expectation e1 = EXPECT_CALL(a, DoA(1));
1528 Expectation e2 = EXPECT_CALL(b, DoB())
1537 // matching expectation will be found, and thus the default action
1558 Expectation e = EXPECT_CALL(a, DoA(1));
1577 Expectation e = EXPECT_CALL(a, DoA(1));
1593 Expectation e1 = EXPECT_CALL(a, DoA(1));
1594 Expectation e2 = EXPECT_CALL(a, DoA(2));
1595 Expectation e3 = EXPECT_CALL(a, DoA(3));
1610 Expectation e1 = EXPECT_CALL(a, DoA(1));
1611 Expectation e2 = EXPECT_CALL(a, DoA(2));
1612 Expectation e3 = EXPECT_CALL(a, DoA(3));
1629 Expectation e1 = EXPECT_CALL(a, DoA(1));
1630 Expectation e2 = EXPECT_CALL(a, DoA(2));
1645 // An Expectation added to an ExpectationSet after it has been used in
1650 Expectation e2 = EXPECT_CALL(a, DoA(2));
2215 // when a method has more than one expectation.