Searched refs:mock_obj (Results 1 – 7 of 7) sorted by relevance
/third_party/googletest/googlemock/src/ |
D | gmock-spec-builders.cc | 320 void UntypedFunctionMockerBase::RegisterOwner(const void* mock_obj) in RegisterOwner() argument 324 mock_obj_ = mock_obj; in RegisterOwner() 326 Mock::Register(mock_obj, this); in RegisterOwner() 332 void UntypedFunctionMockerBase::SetOwnerAndName(const void* mock_obj, in SetOwnerAndName() argument 338 mock_obj_ = mock_obj; in SetOwnerAndName() 346 const void* mock_obj; in MockObject() local 354 mock_obj = mock_obj_; in MockObject() 356 return mock_obj; in MockObject() 560 void SetReactionOnUninterestingCalls(uintptr_t mock_obj, in SetReactionOnUninterestingCalls() argument 564 UninterestingCallReactionMap()[mock_obj] = reaction; in SetReactionOnUninterestingCalls() [all …]
|
/third_party/googletest/googlemock/include/gmock/ |
D | gmock-spec-builders.h | 185 void RegisterOwner(const void* mock_obj) GTEST_LOCK_EXCLUDED_(g_gmock_mutex); 190 void SetOwnerAndName(const void* mock_obj, const char* name) 367 static void AllowLeak(const void* mock_obj) 373 static bool VerifyAndClearExpectations(void* mock_obj) 379 static bool VerifyAndClear(void* mock_obj) 383 static bool IsNaggy(void* mock_obj) 386 static bool IsNice(void* mock_obj) 389 static bool IsStrict(void* mock_obj) 409 static void AllowUninterestingCalls(uintptr_t mock_obj) 414 static void WarnUninterestingCalls(uintptr_t mock_obj) [all …]
|
/third_party/protobuf/python/ |
D | mox.py | 192 for mock_obj in self._mock_objects: 193 mock_obj._Replay() 199 for mock_obj in self._mock_objects: 200 mock_obj._Verify() 205 for mock_obj in self._mock_objects: 206 mock_obj._Reset()
|
/third_party/googletest/docs/ |
D | gmock_cheat_sheet.md | 200 // 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);
|
D | gmock_cook_book.md | 1166 When you do an `EXPECT_CALL(mock_obj, Foo(bar))`, gMock saves away a copy of 1184 EXPECT_CALL(mock_obj, Foo(Eq(std::ref(bar)))); 1187 EXPECT_CALL(mock_obj, Foo(Lt(std::ref(bar))));
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testasync.py | 386 mock_obj = MagicMock() 387 mock_obj.mock_func = MagicMock(spec=lambda x: x) 389 with patch.object(mock_obj, "mock_func") as cm:
|
/third_party/python/Lib/test/test_asyncio/ |
D | test_selector_events.py | 371 mock_obj = mock.patch.object 372 with mock_obj(self.loop, '_accept_connection2') as accept2_mock:
|