Lines Matching full:bar2
56 MOCK_METHOD2(Bar2, bool(int x, int y));
71 EXPECT_CALL(foo_, Bar2(0, _));
72 foo_.Bar2(0, 0); // Expected call
87 EXPECT_CALL(foo_, Bar2(_, _))
90 foo_.Bar2(2, 2);
91 foo_.Bar2(1, 1); // Explicit actions in EXPECT_CALL run out.
95 EXPECT_CALL(foo_, Bar2(0, _));
97 foo_.Bar2(1, 0); // Unexpected call
98 foo_.Bar2(0, 0); // Expected call
109 EXPECT_CALL(foo_, Bar2(0, _));
111 foo_.Bar2(0, 0); // Expected call
112 foo_.Bar2(0, 1); // Excessive call
123 foo_.Bar2(0, 1); // Uninteresting call
131 EXPECT_CALL(foo_, Bar2(_, _))
133 EXPECT_CALL(foo_, Bar2(0, 0));
135 foo_.Bar2(1, 1);
136 foo_.Bar2(1, 1); // Matches a retired expectation
137 foo_.Bar2(0, 0);
144 EXPECT_CALL(foo_, Bar2(0, 0));
145 EXPECT_CALL(foo_, Bar2(1, _));
148 foo_.Bar2(1, 0); // Has one immediate unsatisfied pre-requisite
150 foo_.Bar2(0, 0);
151 foo_.Bar2(1, 0);
159 EXPECT_CALL(foo_, Bar2(0, 0))
161 EXPECT_CALL(foo_, Bar2(1, _))
164 foo_.Bar2(1, 0); // Has two immediate unsatisfied pre-requisites
166 foo_.Bar2(0, 0);
167 foo_.Bar2(1, 0);
171 EXPECT_CALL(foo_, Bar2(_, _)).With(Ge());
176 EXPECT_CALL(foo_, Bar2(0, _))
179 foo_.Bar2(0, 1);
191 EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))
194 foo_.Bar2(2, 3); // Mismatch With()
195 foo_.Bar2(2, 1);
199 EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))
202 foo_.Bar2(1, 3); // Mismatch arguments and mismatch With()
203 foo_.Bar2(2, 1);
207 ON_CALL(foo_, Bar2(_, _))
209 ON_CALL(foo_, Bar2(1, _))
212 EXPECT_CALL(foo_, Bar2(2, 2));
213 foo_.Bar2(1, 0); // Unexpected call, takes default action #2.
214 foo_.Bar2(0, 0); // Unexpected call, takes default action #1.
215 foo_.Bar2(2, 2); // Expected call.
219 ON_CALL(foo_, Bar2(_, _))
221 ON_CALL(foo_, Bar2(1, _))
224 EXPECT_CALL(foo_, Bar2(2, 2));
225 EXPECT_CALL(foo_, Bar2(1, 1));
227 foo_.Bar2(2, 2); // Expected call.
228 foo_.Bar2(2, 2); // Excessive call, takes default action #1.
229 foo_.Bar2(1, 1); // Expected call.
230 foo_.Bar2(1, 1); // Excessive call, takes default action #2.
234 ON_CALL(foo_, Bar2(_, _))
236 ON_CALL(foo_, Bar2(1, _))
239 foo_.Bar2(2, 2); // Uninteresting call, takes default action #1.
240 foo_.Bar2(1, 1); // Uninteresting call, takes default action #2.
244 ON_CALL(foo_, Bar2(_, _))
247 EXPECT_CALL(foo_, Bar2(_, _))
250 foo_.Bar2(2, 2);
251 foo_.Bar2(1, 1); // Explicit actions in EXPECT_CALL run out.
262 EXPECT_CALL(*foo2, Bar2(_, _));
263 EXPECT_CALL(*foo2, Bar2(1, _));
265 foo2->Bar2(2, 1);
266 foo2->Bar2(1, 1);
275 EXPECT_CALL(*foo, Bar2(_, _));
276 foo->Bar2(2, 1);