Home | History | Annotate | Download | only in test

Lines Matching refs:ON_CALL

182 // Tests that EXPECT_CALL and ON_CALL compile in a presence of macro
207 ON_CALL(cc, Method());
214 ON_CALL(cc, Method()).WillByDefault(Return(42));
234 // Tests that ON_CALL evaluates its arguments exactly once as promised
240 ON_CALL(*pa++, DoA(_));
248 ON_CALL(a, DoA(n++));
252 // Tests that the syntax of ON_CALL() is enforced at run time.
257 ON_CALL(a, DoA(5))
259 ON_CALL(a, DoA(_))
268 ON_CALL(a, ReturnResult(_))
272 }, ".With() cannot appear more than once in an ON_CALL()");
279 ON_CALL(a, DoA(5));
288 ON_CALL(a, DoA(5))
291 }, ".WillByDefault() must appear exactly once in an ON_CALL()");
754 // Tests the semantics of ON_CALL().
756 // Tests that the built-in default action is taken when no ON_CALL()
765 // Tests that the built-in default action is taken when no ON_CALL()
769 ON_CALL(b, DoB(1))
776 // Tests that the last matching ON_CALL() action is taken.
779 ON_CALL(b, DoB(_))
781 ON_CALL(b, DoB(2))
783 ON_CALL(b, DoB(1))
975 ON_CALL(b, DoB(_)).WillByDefault(Return(0));
985 // When there is an ON_CALL() statement, the action specified by it
988 ON_CALL(a, Binary(_, _))
992 // When there is no ON_CALL(), the default value for the return type
1000 // When there is an ON_CALL() statement, the action specified by it
1003 ON_CALL(a, Binary(_, _))
1012 // When there is no ON_CALL(), the default value for the return type
1192 // When there is an ON_CALL() statement, the action specified by it
1195 ON_CALL(a, Binary(_, _))
1204 // When there is no ON_CALL(), the default value for the return type
1337 ON_CALL(a, ReturnResult(_))
1361 ON_CALL(a, ReturnResult(_))
1381 ON_CALL(a_, ReturnResult(_))
1683 ON_CALL(a, ReturnResult(_))
1781 ON_CALL(a, ReturnResult(_))
2286 ON_CALL(helper_, Foo(_))
2301 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2307 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2326 ON_CALL(*a, DoA(_)).WillByDefault(Return());
2448 ON_CALL(b, DoB())
2461 ON_CALL(b, DoB())
2463 ON_CALL(b, DoB(_))
2476 // method has more than one ON_CALL() set on it.
2479 ON_CALL(b, DoB(0))
2481 ON_CALL(b, DoB(_))
2496 ON_CALL(b, DoB())
2501 ON_CALL(b, DoB(_))
2512 ON_CALL(b, DoB())
2530 ON_CALL(b, DoB(_))
2551 ON_CALL(Const(b), DoB())
2572 ON_CALL(b, DoB())
2582 ON_CALL(b, DoB(_))
2596 ON_CALL(a, Binary(_, _))
2602 ON_CALL(b1, DoB())
2607 ON_CALL(b2, DoB())
2648 // ON_CALL stores a reference to a inside test_mock.
2649 ON_CALL(test_mock, AcceptReference(_))
2671 ON_CALL(a, DoA(_))
2683 // c.NonVoidMethod() that was specified by the ON_CALL() since the first
2690 ON_CALL(a, DoA).WillByDefault(SaveArg<0>(&do_a_arg0));
2692 ON_CALL(a, DoA(47)).WillByDefault(SaveArg<0>(&do_a_47_arg0));
2701 ON_CALL(a, Binary).WillByDefault(Return(true));
2702 ON_CALL(a, Binary(_, 14)).WillByDefault(Return(false));
2709 ON_CALL(b, DoB()).WillByDefault(Return(9));
2710 ON_CALL(b, DoB(5)).WillByDefault(Return(11));
2725 ON_CALL(mock, Foo).WillByDefault(Return(7));
2726 ON_CALL(mock, Bar).WillByDefault(Return(33));
2741 ON_CALL(mock, Overloaded(_)).WillByDefault(Return(7));
2742 ON_CALL(mock, Overloaded(5)).WillByDefault(Return(9));
2743 ON_CALL(Const(mock), Overloaded(5)).WillByDefault(Return(11));
2744 ON_CALL(Const(mock), Overloaded(7)).WillByDefault(Return(13));