Home
last modified time | relevance | path

Searched refs:NiceMock (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-nice-strict_test.cc57 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()
286 NiceMock<MockBar> nice_bar('a', 'b', "c", "d", 'e', 'f', "g", "h", true, in TEST()
295 NiceMock<MockFoo>* leaked = new NiceMock<MockFoo>; in TEST()
[all …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-nice-strict.h74 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 Dmocking.md436 ### NiceMock {#NiceMock}
438 `::testing::NiceMock<T>`
442 template parameter `T` is any mock class, except for another `NiceMock`,
445 Usage of `NiceMock<T>` is analogous to usage of `T`. `NiceMock<T>` is a subclass
447 addition, `NiceMock<T>` can be constructed with any arguments that a constructor
454 using ::testing::NiceMock;
456 NiceMock<MockClass> my_mock("some", "args");
461 `NiceMock<T>` only works for mock methods defined using the `MOCK_METHOD` macro
465 `NiceMock<T>` might not work correctly if the destructor of `T` is not virtual.
473 template parameter `T` is any mock class, except for another `NiceMock`,
[all …]
/freebsd/cddl/usr.sbin/zfsd/tests/
H A Dzfsd_unittest.cc711 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 Dgmock_cheat_sheet.md39 using ::testing::NiceMock;
43 NiceMock<MockFoo> nice_foo; // The type is a subclass of MockFoo.
H A Dgmock_cook_book.md416 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").
462 NOTE: `NiceMock` and `StrictMock` only affects *uninteresting* calls (calls of
470 1. `NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods
474 particular, nesting `NiceMock` and `StrictMock` (e.g.
[all …]