Searched refs:NiceMock (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-nice-strict_test.cc | 57 using testing::NiceMock; 202 NiceMock<MockFoo> nice_foo; in TEST() 213 NiceMock<MockFoo>* const nice_foo = new NiceMock<MockFoo>; in TEST() 226 NiceMock<MockFoo> nice_foo; in TEST() 242 NiceMock<MockFoo> nice_foo; in TEST() 252 NiceMock<MockFoo> nice_foo; in TEST() 267 NiceMock<MockFoo> nice_foo; in TEST() 276 NiceMock<MockBar> nice_bar("hi"); in TEST() 295 NiceMock<MockFoo>* leaked = new NiceMock<MockFoo>; in TEST() 308 NiceMock< ::Mock> nice; in TEST() [all …]
|
/freebsd/contrib/googletest/googlemock/include/gmock/ |
H A D | gmock-nice-strict.h | 74 class NiceMock; variable 82 std::true_type StrictnessModifierProbe(const NiceMock<T>&); 149 class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock 158 NiceMock() : MockClass() { in NiceMock() function 171 explicit NiceMock(A&& arg) : MockClass(std::forward<A>(arg)) { in NiceMock() function 177 NiceMock(TArg1&& arg1, TArg2&& arg2, An&&... args) in NiceMock() function 185 NiceMock(const NiceMock&) = delete; 186 NiceMock& operator=(const NiceMock&) = delete;
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | mocking.md | 437 ### NiceMock {#NiceMock} 439 `::testing::NiceMock<T>` 443 template parameter `T` is any mock class, except for another `NiceMock`, 446 Usage of `NiceMock<T>` is analogous to usage of `T`. `NiceMock<T>` is a subclass 448 addition, `NiceMock<T>` can be constructed with any arguments that a constructor 455 using ::testing::NiceMock; 457 NiceMock<MockClass> my_mock("some", "args"); 462 `NiceMock<T>` only works for mock methods defined using the `MOCK_METHOD` macro 466 `NiceMock<T>` might not work correctly if the destructor of `T` is not virtual. 474 template parameter `T` is any mock class, except for another `NiceMock`, [all …]
|
/freebsd/cddl/usr.sbin/zfsd/tests/ |
H A D | zfsd_unittest.cc | 711 m_vdev456 = new ::testing::NiceMock<MockVdev>(m_vdevConfig); in SetUp() 712 m_vdev789 = new ::testing::NiceMock<MockVdev>(m_vdevConfig); in SetUp() 743 ::testing::NiceMock<MockVdev> *m_vdev456; 744 ::testing::NiceMock<MockVdev> *m_vdev789;
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_cheat_sheet.md | 39 using ::testing::NiceMock; 43 NiceMock<MockFoo> nice_foo; // The type is a subclass of MockFoo.
|
H A D | gmock_cook_book.md | 416 warning. However, if you rewrite your test to use `NiceMock<MockFoo>` instead, 420 using ::testing::NiceMock; 423 NiceMock<MockFoo> mock_foo; 429 `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used wherever 433 `NiceMock<MockFoo>` "inherits" `MockFoo`'s constructors: 436 using ::testing::NiceMock; 439 NiceMock<MockFoo> mock_foo(5, "hi"); // Calls MockFoo(5, "hi"). 470 1. `NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods 474 particular, nesting `NiceMock` and `StrictMock` (e.g. 475 `NiceMock<StrictMock<MockFoo> >`) is **not** supported. [all …]
|