Lines Matching refs:Method
111 // This line verifies that a mock method can take a by-reference
120 // Even though this mock class contains a mock method that takes
172 // redefining a mock method name. This could happen, for example, when
176 #define Method MethodW
181 virtual int Method() = 0;
187 MOCK_METHOD0(Method, int());
193 // Tests that a method with expanded name compiles.
196 ON_CALL(cc, Method());
199 // Tests that the method with expanded name not only compiles but runs
203 ON_CALL(cc, Method()).WillByDefault(Return(42));
204 EXPECT_EQ(42, cc.Method());
207 // Tests that a method with expanded name compiles.
210 EXPECT_CALL(cc, Method());
211 cc.Method();
217 EXPECT_CALL(cc, Method()).WillOnce(Return(42));
218 EXPECT_EQ(42, cc.Method());
221 #undef Method // Done with macro redefinition tests.
2226 // when a method has more than one expectation.
2306 // method has more than one ON_CALL() set on it.