Home | History | Annotate | Download | only in test

Lines Matching refs:ON_CALL

171 // Tests that EXPECT_CALL and ON_CALL compile in a presence of macro
196 ON_CALL(cc, Method());
203 ON_CALL(cc, Method()).WillByDefault(Return(42));
223 // Tests that ON_CALL evaluates its arguments exactly once as promised
229 ON_CALL(*pa++, DoA(_));
237 ON_CALL(a, DoA(n++));
241 // Tests that the syntax of ON_CALL() is enforced at run time.
246 ON_CALL(a, DoA(5))
248 ON_CALL(a, DoA(_))
257 ON_CALL(a, ReturnResult(_))
261 }, ".With() cannot appear more than once in an ON_CALL()");
268 ON_CALL(a, DoA(5));
277 ON_CALL(a, DoA(5))
280 }, ".WillByDefault() must appear exactly once in an ON_CALL()");
689 // Tests the semantics of ON_CALL().
691 // Tests that the built-in default action is taken when no ON_CALL()
700 // Tests that the built-in default action is taken when no ON_CALL()
704 ON_CALL(b, DoB(1))
711 // Tests that the last matching ON_CALL() action is taken.
714 ON_CALL(b, DoB(_))
716 ON_CALL(b, DoB(2))
718 ON_CALL(b, DoB(1))
909 ON_CALL(b, DoB(_)).WillByDefault(Return(0));
919 // When there is an ON_CALL() statement, the action specified by it
922 ON_CALL(a, Binary(_, _))
926 // When there is no ON_CALL(), the default value for the return type
934 // When there is an ON_CALL() statement, the action specified by it
937 ON_CALL(a, Binary(_, _))
946 // When there is no ON_CALL(), the default value for the return type
1121 // When there is an ON_CALL() statement, the action specified by it
1124 ON_CALL(a, Binary(_, _))
1133 // When there is no ON_CALL(), the default value for the return type
2116 ON_CALL(helper_, Foo(_))
2131 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2137 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2156 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2278 ON_CALL(b, DoB())
2291 ON_CALL(b, DoB())
2293 ON_CALL(b, DoB(_))
2306 // method has more than one ON_CALL() set on it.
2309 ON_CALL(b, DoB(0))
2311 ON_CALL(b, DoB(_))
2326 ON_CALL(b, DoB())
2331 ON_CALL(b, DoB(_))
2342 ON_CALL(b, DoB())
2360 ON_CALL(b, DoB(_))
2381 ON_CALL(Const(b), DoB())
2402 ON_CALL(b, DoB())
2412 ON_CALL(b, DoB(_))
2426 ON_CALL(a, Binary(_, _))
2432 ON_CALL(b1, DoB())
2437 ON_CALL(b2, DoB())
2478 // ON_CALL stores a reference to a inside test_mock.
2479 ON_CALL(test_mock, AcceptReference(_))
2501 ON_CALL(a, DoA(_))
2513 // c.NonVoidMethod() that was specified by the ON_CALL() since the first