Home
last modified time | relevance | path

Searched refs:StrictMock (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-nice-strict.h78 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 Dgmock-nice-strict_test.cc58 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 Dmocking.md443 `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 Dgmock_cheat_sheet.md41 using ::testing::StrictMock;
45 StrictMock<MockFoo> strict_foo; // The type is a subclass of MockFoo.
H A Dgmock_cook_book.md445 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