Lines Matching full:on_call
160 // Tests that EXPECT_CALL and ON_CALL compile in a presence of macro
185 ON_CALL(cc, Method());
192 ON_CALL(cc, Method()).WillByDefault(Return(42));
212 // Tests that ON_CALL evaluates its arguments exactly once as promised
218 ON_CALL(*pa++, DoA(_));
226 ON_CALL(a, DoA(n++));
230 // Tests that the syntax of ON_CALL() is enforced at run time.
235 ON_CALL(a, DoA(5))
237 ON_CALL(a, DoA(_))
246 ON_CALL(a, ReturnResult(_))
250 }, ".With() cannot appear more than once in an ON_CALL()");
257 ON_CALL(a, DoA(5));
266 ON_CALL(a, DoA(5))
269 }, ".WillByDefault() must appear exactly once in an ON_CALL()");
678 // Tests the semantics of ON_CALL().
680 // Tests that the built-in default action is taken when no ON_CALL()
689 // Tests that the built-in default action is taken when no ON_CALL()
693 ON_CALL(b, DoB(1))
700 // Tests that the last matching ON_CALL() action is taken.
703 ON_CALL(b, DoB(_))
705 ON_CALL(b, DoB(2))
707 ON_CALL(b, DoB(1))
898 ON_CALL(b, DoB(_)).WillByDefault(Return(0));
908 // When there is an ON_CALL() statement, the action specified by it
911 ON_CALL(a, Binary(_, _))
915 // When there is no ON_CALL(), the default value for the return type
923 // When there is an ON_CALL() statement, the action specified by it
926 ON_CALL(a, Binary(_, _))
935 // When there is no ON_CALL(), the default value for the return type
1110 // When there is an ON_CALL() statement, the action specified by it
1113 ON_CALL(a, Binary(_, _))
1122 // When there is no ON_CALL(), the default value for the return type
2105 ON_CALL(helper_, Foo(_))
2120 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2126 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2145 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2267 ON_CALL(b, DoB())
2280 ON_CALL(b, DoB())
2282 ON_CALL(b, DoB(_))
2295 // method has more than one ON_CALL() set on it.
2298 ON_CALL(b, DoB(0))
2300 ON_CALL(b, DoB(_))
2315 ON_CALL(b, DoB())
2320 ON_CALL(b, DoB(_))
2331 ON_CALL(b, DoB())
2349 ON_CALL(b, DoB(_))
2370 ON_CALL(Const(b), DoB())
2391 ON_CALL(b, DoB())
2401 ON_CALL(b, DoB(_))
2415 ON_CALL(a, Binary(_, _))
2421 ON_CALL(b1, DoB())
2426 ON_CALL(b2, DoB())
2450 ON_CALL(a, DoA(_))
2462 // c.NonVoidMethod() that was specified by the ON_CALL() since the first