Lines Matching refs:mock

248   Mock mock;  in TEST()  local
250 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Return()); in TEST()
251 mock.VoidFromString(nullptr); in TEST()
256 Mock mock; in TEST() local
259 EXPECT_CALL(mock, StringFromString(_)).WillOnce(Return(&ch)); in TEST()
260 mock.StringFromString(nullptr); in TEST()
265 Mock mock; in TEST() local
267 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Return()); in TEST()
268 mock.VoidFromString(nullptr); in TEST()
273 Mock mock; in TEST() local
276 EXPECT_CALL(mock, IntRefFromString(_)).WillOnce(ReturnRef(n)); in TEST()
277 mock.IntRefFromString(nullptr); in TEST()
282 Mock mock; in TEST() local
285 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Assign(&ch, 'y')); in TEST()
286 mock.VoidFromString(nullptr); in TEST()
291 Mock mock; in TEST() local
294 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(SetArgPointee<0>('y')); in TEST()
295 mock.VoidFromString(&ch); in TEST()
300 Mock mock; in TEST() local
304 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(SetArrayArgument<0>(&ch2, in TEST()
306 mock.VoidFromString(&ch); in TEST()
313 Mock mock; in TEST() local
316 EXPECT_CALL(mock, IntFromString(_)).WillOnce(SetErrnoAndReturn(1, -1)); in TEST()
317 mock.IntFromString(nullptr); in TEST()
325 Mock mock; in TEST() local
328 EXPECT_CALL(mock, VoidFromString(_)) in TEST()
331 mock.VoidFromString(nullptr); in TEST()
332 mock.VoidFromString(nullptr); in TEST()
337 Mock mock; in TEST() local
340 EXPECT_CALL(mock, VoidFromString(_)) in TEST()
344 mock.VoidFromString(nullptr); in TEST()
345 mock.VoidFromString(nullptr); in TEST()
350 Mock mock; in TEST() local
353 EXPECT_CALL(mock, VoidFromFunc(_)).WillOnce(InvokeArgument<0>(&ch)); in TEST()
354 mock.VoidFromFunc(InvokeHelper::StaticVoidFromString); in TEST()
359 Mock mock; in TEST() local
361 EXPECT_CALL(mock, VoidFromString(_)) in TEST()
363 mock.VoidFromString(nullptr); in TEST()
368 Mock mock; in TEST() local
370 EXPECT_CALL(mock, VoidFromString(_)) in TEST()
372 mock.VoidFromString(nullptr); in TEST()
377 Mock mock; in TEST() local
379 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(WithoutArgs(Return())); in TEST()
380 mock.VoidFromString(nullptr); in TEST()
385 Mock mock; in TEST() local
388 EXPECT_CALL(mock, VoidFromString(_)) in TEST()
390 mock.VoidFromString(&ch); in TEST()
395 Mock mock; in TEST() local
398 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
399 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(DoDefault()); in TEST()
400 mock.VoidFromString(&ch); in TEST()
405 Mock mock; in TEST() local
407 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(IgnoreResult(Return(42))); in TEST()
408 mock.VoidFromString(nullptr); in TEST()
414 Mock mock; in TEST() local
416 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Throw(42)); in TEST()
417 EXPECT_THROW(mock.VoidFromString(nullptr), int); in TEST()
437 Mock mock; in TEST() local
439 EXPECT_CALL(mock, IntFromString(_)).WillOnce(Return1()); in TEST()
440 mock.IntFromString(nullptr); in TEST()
449 Mock mock; in TEST() local
451 EXPECT_CALL(mock, IntFromString(_)).WillOnce(ReturnArgument(42)); in TEST()
452 mock.IntFromString(nullptr); in TEST()
467 Mock mock; in TEST() local
470 EXPECT_CALL(mock, IntFromString(_)) in TEST()
472 mock.IntFromString(&ch); in TEST()
477 Mock mock; in TEST() local
479 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST()
484 Mock mock; in TEST() local
486 ON_CALL(mock, VoidFromString(A<char*>())).WillByDefault(Return()); in TEST()
491 Mock mock; in TEST() local
494 ON_CALL(mock, VoidFromString(Eq(p))).WillByDefault(Return()); in TEST()
495 ON_CALL(mock, VoidFromString(const_cast<char*>("y"))) in TEST()
501 Mock mock; in TEST() local
503 ON_CALL(mock, VoidFromFloat(Lt(1.0f))).WillByDefault(Return()); in TEST()
504 ON_CALL(mock, VoidFromFloat(Gt(1.0f))).WillByDefault(Return()); in TEST()
505 ON_CALL(mock, VoidFromFloat(Le(1.0f))).WillByDefault(Return()); in TEST()
506 ON_CALL(mock, VoidFromFloat(Ge(1.0f))).WillByDefault(Return()); in TEST()
507 ON_CALL(mock, VoidFromFloat(Ne(1.0f))).WillByDefault(Return()); in TEST()
512 Mock mock; in TEST() local
514 ON_CALL(mock, VoidFromString(NotNull())).WillByDefault(Return()); in TEST()
519 Mock mock; in TEST() local
521 ON_CALL(mock, VoidFromString(IsNull())).WillByDefault(Return()); in TEST()
526 Mock mock; in TEST() local
529 ON_CALL(mock, VoidFromIntRef(Ref(a))).WillByDefault(Return()); in TEST()
534 Mock mock; in TEST() local
537 ON_CALL(mock, VoidFromIntRef(TypedEq<int&>(a))).WillByDefault(Return()); in TEST()
543 Mock mock; in TEST() local
546 ON_CALL(mock, VoidFromFloat(FloatEq(a))).WillByDefault(Return()); in TEST()
547 ON_CALL(mock, VoidFromDouble(DoubleEq(a))).WillByDefault(Return()); in TEST()
548 ON_CALL(mock, VoidFromFloat(NanSensitiveFloatEq(a))).WillByDefault(Return()); in TEST()
549 ON_CALL(mock, VoidFromDouble(NanSensitiveDoubleEq(a))) in TEST()
555 Mock mock; in TEST() local
557 ON_CALL(mock, VoidFromString(ContainsRegex(".*"))).WillByDefault(Return()); in TEST()
562 Mock mock; in TEST() local
564 ON_CALL(mock, VoidFromString(MatchesRegex(".*"))).WillByDefault(Return()); in TEST()
569 Mock mock; in TEST() local
571 ON_CALL(mock, VoidFromString(StartsWith("a"))).WillByDefault(Return()); in TEST()
572 ON_CALL(mock, VoidFromString(EndsWith("c"))).WillByDefault(Return()); in TEST()
573 ON_CALL(mock, VoidFromString(HasSubstr("b"))).WillByDefault(Return()); in TEST()
578 Mock mock; in TEST() local
579 ON_CALL(mock, VoidFromString(StrEq("a"))).WillByDefault(Return()); in TEST()
580 ON_CALL(mock, VoidFromString(StrNe("a"))).WillByDefault(Return()); in TEST()
581 ON_CALL(mock, VoidFromString(StrCaseEq("a"))).WillByDefault(Return()); in TEST()
582 ON_CALL(mock, VoidFromString(StrCaseNe("a"))).WillByDefault(Return()); in TEST()
587 Mock mock; in TEST() local
589 ON_CALL(mock, VoidFromVector(ElementsAre('a', _))).WillByDefault(Return()); in TEST()
594 Mock mock; in TEST() local
597 ON_CALL(mock, VoidFromVector(ElementsAreArray(arr))).WillByDefault(Return()); in TEST()
602 Mock mock; in TEST() local
605 ON_CALL(mock, VoidFromVector(IsSubsetOf(arr))).WillByDefault(Return()); in TEST()
610 Mock mock; in TEST() local
613 ON_CALL(mock, VoidFromVector(IsSupersetOf(arr))).WillByDefault(Return()); in TEST()
618 Mock mock; in TEST() local
621 ON_CALL(mock, VoidFromVector(ContainerEq(v))).WillByDefault(Return()); in TEST()