Home
last modified time | relevance | path

Searched refs:mock_obj (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/googletest/googlemock/src/
H A Dgmock-spec-builders.cc318 void UntypedFunctionMockerBase::RegisterOwner(const void* mock_obj) in RegisterOwner() argument
322 mock_obj_ = mock_obj; in RegisterOwner()
324 Mock::Register(mock_obj, this); in RegisterOwner()
330 void UntypedFunctionMockerBase::SetOwnerAndName(const void* mock_obj, in SetOwnerAndName() argument
336 mock_obj_ = mock_obj; in SetOwnerAndName()
344 const void* mock_obj; in MockObject() local
352 mock_obj = mock_obj_; in MockObject()
354 return mock_obj; in MockObject()
559 void SetReactionOnUninterestingCalls(uintptr_t mock_obj, in SetReactionOnUninterestingCalls() argument
563 UninterestingCallReactionMap()[mock_obj] = reaction; in SetReactionOnUninterestingCalls()
[all …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-spec-builders.h185 void RegisterOwner(const void* mock_obj) GTEST_LOCK_EXCLUDED_(g_gmock_mutex);
190 void SetOwnerAndName(const void* mock_obj, const char* name)
370 static void AllowLeak(const void* mock_obj)
376 static bool VerifyAndClearExpectations(void* mock_obj)
382 static bool VerifyAndClear(void* mock_obj)
386 static bool IsNaggy(void* mock_obj)
389 static bool IsNice(void* mock_obj)
392 static bool IsStrict(void* mock_obj)
412 static void AllowUninterestingCalls(uintptr_t mock_obj)
417 static void WarnUninterestingCalls(uintptr_t mock_obj)
[all …]
/freebsd/contrib/googletest/docs/
H A Dgmock_cheat_sheet.md200 // Verifies and removes the expectations on mock_obj;
202 Mock::VerifyAndClearExpectations(&mock_obj);
204 // Verifies and removes the expectations on mock_obj;
207 Mock::VerifyAndClear(&mock_obj);
219 Mock::AllowLeak(&mock_obj);
H A Dgmock_cook_book.md1170 When you do an `EXPECT_CALL(mock_obj, Foo(bar))`, gMock saves away a copy of
1188 EXPECT_CALL(mock_obj, Foo(Eq(std::ref(bar))));
1191 EXPECT_CALL(mock_obj, Foo(Lt(std::ref(bar))));