Home | History | Annotate | Download | only in test

Lines Matching defs:Method

110   // This line verifies that a mock method can take a by-reference
119 // Even though this mock class contains a mock method that takes
161 // redefining a mock method name. This could happen, for example, when
165 #define Method MethodW
170 virtual int Method() = 0;
176 MOCK_METHOD0(Method, int());
182 // Tests that a method with expanded name compiles.
185 ON_CALL(cc, Method());
188 // Tests that the method with expanded name not only compiles but runs
192 ON_CALL(cc, Method()).WillByDefault(Return(42));
193 EXPECT_EQ(42, cc.Method());
196 // Tests that a method with expanded name compiles.
199 EXPECT_CALL(cc, Method());
200 cc.Method();
206 EXPECT_CALL(cc, Method()).WillOnce(Return(42));
207 EXPECT_EQ(42, cc.Method());
210 #undef Method // Done with macro redefinition tests.
2215 // when a method has more than one expectation.
2295 // method has more than one ON_CALL() set on it.