Searched refs:StrictMock (Results 1 – 5 of 5) sorted by relevance
/freebsd/contrib/googletest/googlemock/include/gmock/ |
H A D | gmock-nice-strict.h | 78 class StrictMock; variable 86 std::true_type StrictnessModifierProbe(const StrictMock<T>&); 232 class GTEST_INTERNAL_EMPTY_BASE_CLASS StrictMock 242 StrictMock() : MockClass() { in StrictMock() function 255 explicit StrictMock(A&& arg) : MockClass(std::forward<A>(arg)) { in StrictMock() function 261 StrictMock(TArg1&& arg1, TArg2&& arg2, An&&... args) in StrictMock() function 269 StrictMock(const StrictMock&) = delete; 270 StrictMock& operator=(const StrictMock&) = delete;
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-nice-strict_test.cc | 58 using testing::StrictMock; 448 StrictMock<MockFoo> strict_foo; in TEST() 456 StrictMock<MockFoo> strict_foo; in TEST() 465 StrictMock<MockFoo> strict_foo; in TEST() 474 StrictMock<MockFoo>* const strict_foo = new StrictMock<MockFoo>; in TEST() 486 StrictMock<MockBar> strict_bar("hi"); in TEST() 496 StrictMock<MockBar> strict_bar('a', 'b', "c", "d", 'e', 'f', "g", "h", true, in TEST() 505 StrictMock<MockFoo>* leaked = new StrictMock<MockFoo>; in TEST() 512 StrictMock<MockBaz> strict_baz(MockBaz::MoveOnly{}); in TEST() 518 StrictMock< ::Mock> strict; in TEST() [all …]
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | mocking.md | 443 `NaggyMock`, or `StrictMock`. 474 `NaggyMock`, or `StrictMock`. 494 ### StrictMock {#StrictMock} 496 `::testing::StrictMock<T>` 501 `NaggyMock`, or `StrictMock`. 503 Usage of `StrictMock<T>` is analogous to usage of `T`. `StrictMock<T>` is a 505 In addition, `StrictMock<T>` can be constructed with any arguments that a 512 using ::testing::StrictMock; 514 StrictMock<MockClass> my_mock("some", "args"); 519 `StrictMock<T>` only works for mock methods defined using the `MOCK_METHOD` [all …]
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_cheat_sheet.md | 41 using ::testing::StrictMock; 45 StrictMock<MockFoo> strict_foo; // The type is a subclass of MockFoo.
|
H A D | gmock_cook_book.md | 445 The usage of `StrictMock` is similar, except that it makes all uninteresting 449 using ::testing::StrictMock; 452 StrictMock<MockFoo> mock_foo; 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. 475 `NiceMock<StrictMock<MockFoo> >`) is **not** supported. 476 2. `NiceMock<MockFoo>` and `StrictMock<MockFoo>` may not work correctly if the 1607 In gMock, `NiceMock` and `StrictMock` can be used to make a mock class "nice" or
|