Searched refs:NiceMock (Results 1 – 7 of 7) sorted by relevance
| /freebsd-13.1/contrib/googletest/googlemock/test/ |
| H A D | gmock-nice-strict_test.cc | 57 using testing::NiceMock; 189 NiceMock<MockFoo> nice_foo; 200 NiceMock<MockFoo>* const nice_foo = new NiceMock<MockFoo>; 213 NiceMock<MockFoo> nice_foo; 229 NiceMock<MockFoo> nice_foo; 239 NiceMock<MockFoo> nice_foo; 254 NiceMock<MockFoo> nice_foo; 263 NiceMock<MockBar> nice_bar("hi"); 282 NiceMock<MockFoo>* leaked = new NiceMock<MockFoo>; 291 NiceMock<MockBaz> nice_baz(MockBaz::MoveOnly()); [all …]
|
| /freebsd-13.1/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-generated-nice-strict.h.pump | 36 // Implements class templates NiceMock, NaggyMock, and StrictMock. 39 // NiceMock<MockFoo> is a subclass of MockFoo that allows 51 // NiceMock<MockFoo>. 53 // NiceMock, NaggyMock, and StrictMock "inherit" the constructors of 55 // NiceMock<MockFoo>(5, "a") to construct a nice mock where MockFoo 79 $var clazz=[[$if kind==0 [[NiceMock]] 157 class NiceMock<NiceMock<MockClass> >; 159 class NiceMock<NaggyMock<MockClass> >; 161 class NiceMock<StrictMock<MockClass> >; 164 class NaggyMock<NiceMock<MockClass> >; [all …]
|
| H A D | gmock-generated-nice-strict.h | 76 class NiceMock : public MockClass { 78 NiceMock() : MockClass() { in NiceMock() function 98 NiceMock(A1&& arg1, A2&& arg2, An&&... args) in NiceMock() function 108 explicit NiceMock(const A1& a1) : MockClass(a1) { in NiceMock() function 184 ~NiceMock() { in ~NiceMock() 190 GTEST_DISALLOW_COPY_AND_ASSIGN_(NiceMock); 437 class NiceMock<NiceMock<MockClass> >; 439 class NiceMock<NaggyMock<MockClass> >; 441 class NiceMock<StrictMock<MockClass> >; 444 class NaggyMock<NiceMock<MockClass> >; [all …]
|
| H A D | gmock-spec-builders.h | 410 friend class NiceMock; variable
|
| /freebsd-13.1/cddl/usr.sbin/zfsd/tests/ |
| H A D | zfsd_unittest.cc | 642 m_vdev456 = new ::testing::NiceMock<MockVdev>(m_vdevConfig); in SetUp() 643 m_vdev789 = new ::testing::NiceMock<MockVdev>(m_vdevConfig); in SetUp() 674 ::testing::NiceMock<MockVdev> *m_vdev456; 675 ::testing::NiceMock<MockVdev> *m_vdev789;
|
| /freebsd-13.1/contrib/googletest/googlemock/docs/ |
| H A D | CookBook.md | 249 test to use `NiceMock<MockFoo>` instead, the warning will be gone, 253 using ::testing::NiceMock; 256 NiceMock<MockFoo> mock_foo; 262 `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used 266 `NiceMock<MockFoo>` "inherits" `MockFoo`'s constructors: 269 using ::testing::NiceMock; 272 NiceMock<MockFoo> mock_foo(5, "hi"); // Calls MockFoo(5, "hi"). 297 …NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods defined using the `MOCK_ME… 1260 …d when a mock method without an `EXPECT_CALL` is called, you may use a `NiceMock` instead to suppr… 1314 In Google Mock, `NiceMock` and `StrictMock` can be used to make a mock class "nice" or "strict". Ho… [all …]
|
| H A D | CheatSheet.md | 33 NiceMock<MockFoo> nice_foo; // The type is a subclass of MockFoo.
|