Lines Matching refs:ON_CALL

179 // Tests that EXPECT_CALL and ON_CALL compile in a presence of macro
204 ON_CALL(cc, Method());
211 ON_CALL(cc, Method()).WillByDefault(Return(42));
231 // Tests that ON_CALL evaluates its arguments exactly once as promised
237 ON_CALL(*pa++, DoA(_));
245 ON_CALL(a, DoA(n++));
249 // Tests that the syntax of ON_CALL() is enforced at run time.
254 ON_CALL(a, DoA(5))
256 ON_CALL(a, DoA(_))
265 ON_CALL(a, ReturnResult(_))
269 }, ".With() cannot appear more than once in an ON_CALL()");
276 ON_CALL(a, DoA(5));
285 ON_CALL(a, DoA(5))
288 }, ".WillByDefault() must appear exactly once in an ON_CALL()");
697 // Tests the semantics of ON_CALL().
699 // Tests that the built-in default action is taken when no ON_CALL()
708 // Tests that the built-in default action is taken when no ON_CALL()
712 ON_CALL(b, DoB(1))
719 // Tests that the last matching ON_CALL() action is taken.
722 ON_CALL(b, DoB(_))
724 ON_CALL(b, DoB(2))
726 ON_CALL(b, DoB(1))
918 ON_CALL(b, DoB(_)).WillByDefault(Return(0));
928 // When there is an ON_CALL() statement, the action specified by it
931 ON_CALL(a, Binary(_, _))
935 // When there is no ON_CALL(), the default value for the return type
943 // When there is an ON_CALL() statement, the action specified by it
946 ON_CALL(a, Binary(_, _))
955 // When there is no ON_CALL(), the default value for the return type
1135 // When there is an ON_CALL() statement, the action specified by it
1138 ON_CALL(a, Binary(_, _))
1147 // When there is no ON_CALL(), the default value for the return type
1280 ON_CALL(a, ReturnResult(_))
1304 ON_CALL(a, ReturnResult(_))
1324 ON_CALL(a_, ReturnResult(_))
1626 ON_CALL(a, ReturnResult(_))
1724 ON_CALL(a, ReturnResult(_))
2225 ON_CALL(helper_, Foo(_))
2240 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2246 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2265 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2387 ON_CALL(b, DoB())
2400 ON_CALL(b, DoB())
2402 ON_CALL(b, DoB(_))
2415 // method has more than one ON_CALL() set on it.
2418 ON_CALL(b, DoB(0))
2420 ON_CALL(b, DoB(_))
2435 ON_CALL(b, DoB())
2440 ON_CALL(b, DoB(_))
2451 ON_CALL(b, DoB())
2469 ON_CALL(b, DoB(_))
2490 ON_CALL(Const(b), DoB())
2511 ON_CALL(b, DoB())
2521 ON_CALL(b, DoB(_))
2535 ON_CALL(a, Binary(_, _))
2541 ON_CALL(b1, DoB())
2546 ON_CALL(b2, DoB())
2587 // ON_CALL stores a reference to a inside test_mock.
2588 ON_CALL(test_mock, AcceptReference(_))
2610 ON_CALL(a, DoA(_))
2622 // c.NonVoidMethod() that was specified by the ON_CALL() since the first