/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock_link_test.h | 399 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST() 483 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return()); in TEST() 490 ON_CALL(mock, VoidFromString(A<char*>())).WillByDefault(Return()); in TEST() 498 ON_CALL(mock, VoidFromString(Eq(p))).WillByDefault(Return()); in TEST() 499 ON_CALL(mock, VoidFromString(const_cast<char*>("y"))).WillByDefault(Return()); in TEST() 506 ON_CALL(mock, VoidFromFloat(Lt(1.0f))).WillByDefault(Return()); in TEST() 507 ON_CALL(mock, VoidFromFloat(Gt(1.0f))).WillByDefault(Return()); in TEST() 508 ON_CALL(mock, VoidFromFloat(Le(1.0f))).WillByDefault(Return()); in TEST() 509 ON_CALL(mock, VoidFromFloat(Ge(1.0f))).WillByDefault(Return()); in TEST() 510 ON_CALL(mock, VoidFromFloat(Ne(1.0f))).WillByDefault(Return()); in TEST() [all …]
|
H A D | gmock-spec-builders_test.cc | 171 ON_CALL(cc, Method()).WillByDefault(Return(42)); in TEST() 214 ON_CALL(a, DoA(5)).WillByDefault(Return()); in TEST() 215 ON_CALL(a, DoA(_)).With(_).WillByDefault(Return()); in TEST() 226 .WillByDefault(Return(Result())); in TEST() 247 ON_CALL(a, DoA(5)).WillByDefault(Return()).WillByDefault(Return()); in TEST() 697 ON_CALL(b, DoB(1)).WillByDefault(Return(1)); in TEST() 706 ON_CALL(b, DoB(_)).WillByDefault(Return(3)); in TEST() 707 ON_CALL(b, DoB(2)).WillByDefault(Return(2)); in TEST() 708 ON_CALL(b, DoB(1)).WillByDefault(Return(1)); in TEST() 931 ON_CALL(b, DoB(_)).WillByDefault(Return(0)); in TEST() [all …]
|
H A D | gmock_output_test_.cc | 201 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F() 202 ON_CALL(foo_, Bar2(1, _)).WillByDefault(Return(false)); // Default action #2 in TEST_F() 211 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F() 212 ON_CALL(foo_, Bar2(1, _)).WillByDefault(Return(false)); // Default action #2 in TEST_F() 224 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F() 225 ON_CALL(foo_, Bar2(1, _)).WillByDefault(Return(false)); // Default action #2 in TEST_F() 232 ON_CALL(foo_, Bar2(_, _)).WillByDefault(Return(true)); // Default action #1 in TEST_F() 244 ON_CALL(*foo1, Bar(_, _, _)).WillByDefault(Return('a')); in TEST_F()
|
H A D | gmock_stress_test.cc | 69 ON_CALL(foo, Bar(_)).WillByDefault(Return(1)); in TestConcurrentMockObjects() 70 ON_CALL(foo, Baz(_, _)).WillByDefault(Return('b')); in TestConcurrentMockObjects() 71 ON_CALL(foo, Baz(_, "you")).WillByDefault(Return('a')); in TestConcurrentMockObjects() 116 ON_CALL(foo, Bar(_)).WillByDefault(Return(1)); in TestConcurrentCallsOnSameObject()
|
H A D | gmock_leak_test_.cc | 74 ON_CALL(*foo, DoThis()).WillByDefault(Return()); in TEST() 87 ON_CALL(*foo1, DoThis()).WillByDefault(Return()); in TEST()
|
H A D | gmock-nice-strict_test.cc | 168 ON_CALL(*raw_foo, DoThis()).WillByDefault(Invoke(raw_foo, &MockFoo::Delete)); in TEST() 216 .WillByDefault(Invoke(nice_foo, &MockFoo::Delete)); in TEST() 354 .WillByDefault(Invoke(naggy_foo, &MockFoo::Delete)); in TEST() 477 .WillByDefault(Invoke(strict_foo, &MockFoo::Delete)); in TEST()
|
H A D | gmock-matchers-arithmetic_test.cc | 969 ON_CALL(helper, Helper(_, _)).With(AllArgs(Lt())).WillByDefault(Return(1)); in TEST() 998 ON_CALL(helper, NoArgs).WillByDefault(Return(10)); in TEST() 999 ON_CALL(helper, OneArg).WillByDefault(Return(20)); in TEST() 1000 ON_CALL(helper, TwoArgs).WillByDefault(Return(30)); in TEST()
|
H A D | gmock-more-actions_test.cc | 603 ON_CALL(m, Func()).WillByDefault([] { throw "something"; }); in TEST() 840 ON_CALL(mock, MockMethod(_, _)).WillByDefault(InvokeArgument<1>()); in TEST() 844 .WillByDefault(WithArg<1>(InvokeArgument<0>())); in TEST()
|
H A D | gmock-actions_test.cc | 1056 ON_CALL(mock, IntFunc(_)).WillByDefault(Return(2)); in TEST() 1066 ON_CALL(mock, IntFunc(_)).WillByDefault(DoDefault()); in TEST()
|
/freebsd/cddl/usr.sbin/zfsd/tests/ |
H A D | zfsd_unittest.cc | 437 .WillByDefault(::testing::Return(Guid(123))); in SetUp() 439 .WillByDefault(::testing::Return(string("/dev/da999"))); in SetUp() 441 .WillByDefault(::testing::Return(Guid(456))); in SetUp() 443 .WillByDefault(::testing::Return(VDEV_STATE_HEALTHY)); in SetUp() 446 .WillByDefault(::testing::Invoke(m_caseFile, &TestableCaseFile::RealReEvaluate)); in SetUp() 714 .WillByDefault(::testing::Return(Guid(123))); in SetUp() 716 .WillByDefault(::testing::Return(Guid(456))); in SetUp() 718 .WillByDefault(::testing::Return(VDEV_STATE_HEALTHY)); in SetUp() 720 .WillByDefault(::testing::Return(Guid(123))); in SetUp() 722 .WillByDefault(::testing::Return(Guid(789))); in SetUp() [all …]
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | mocking.md | 343 .WillByDefault(action); // Required 371 .WillByDefault(Return(true)); 379 #### WillByDefault {#ON_CALL.WillByDefault} 381 `.WillByDefault(`*`action`*`)` 397 .WillByDefault(Return("hello")); 400 The action specified by `WillByDefault` is superseded by the actions specified 405 The `WillByDefault` clause must be used exactly once with each `ON_CALL`
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_cheat_sheet.md | 118 .WillByDefault(Return(1));
|
H A D | gmock_cook_book.md | 560 .WillByDefault(Return(MakeMockTurtle())); 668 ON_CALL(*this, DoThis).WillByDefault([this](int n) { 671 ON_CALL(*this, DoThat).WillByDefault([this](const char* s, int* p) { 765 ON_CALL(*this, DoThis).WillByDefault([this](int n) { 768 ON_CALL(*this, DoThat).WillByDefault([this](const char* s, int* p) { 837 ON_CALL(foo, Concrete).WillByDefault([&foo](const char* str) { 1668 .WillByDefault(&BuildFooForTest); 2160 .WillByDefault(Return(-1)); 2162 .WillByDefault(Return(0)); 2164 .WillByDefault(Return(1));
|
H A D | gmock_faq.md | 263 .WillByDefault(...);
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | mockfs.cc | 528 .WillByDefault(Invoke(this, &MockFS::process_default)); in MockFS()
|
/freebsd/contrib/googletest/googlemock/include/gmock/ |
H A D | gmock-spec-builders.h | 310 OnCallSpec& WillByDefault(const Action<F>& action) { in WillByDefault() function
|