Home | History | Annotate | Download | only in test

Lines Matching refs:Overloaded

238 // Tests mocking functions overloaded on the number of arguments.
249 // Tests mocking functions overloaded on the types of argument.
260 // Tests mocking functions overloaded on the const-ness of this object.
301 // Tests mocking functions overloaded on the const-ness of this object.
447 MOCK_METHOD0(Overloaded, void()); \
448 MOCK_CONST_METHOD1(Overloaded, int(int n)); \
449 MOCK_METHOD2(Overloaded, bool(bool f, int n))
463 EXPECT_CALL(mock, Overloaded());
464 EXPECT_CALL(mock, Overloaded(1)).WillOnce(Return(2));
465 EXPECT_CALL(mock, Overloaded(true, 1)).WillOnce(Return(true));
467 mock.Overloaded();
468 EXPECT_EQ(2, mock.Overloaded(1));
469 EXPECT_TRUE(mock.Overloaded(true, 1));
473 MOCK_CONST_METHOD1(Overloaded, int(int n)); \
474 MOCK_METHOD1(Overloaded, int(int n));
489 EXPECT_CALL(mock, Overloaded(1)).WillOnce(Return(2));
490 EXPECT_CALL(*const_mock, Overloaded(1)).WillOnce(Return(3));
492 EXPECT_EQ(2, mock.Overloaded(1));
493 EXPECT_EQ(3, const_mock->Overloaded(1));