Searched refs:mock_obj (Results 1 – 7 of 7) sorted by relevance
/third_party/googletest/googlemock/src/ |
D | gmock-spec-builders.cc | 317 void UntypedFunctionMockerBase::RegisterOwner(const void* mock_obj) in RegisterOwner() argument 321 mock_obj_ = mock_obj; in RegisterOwner() 323 Mock::Register(mock_obj, this); in RegisterOwner() 329 void UntypedFunctionMockerBase::SetOwnerAndName(const void* mock_obj, in SetOwnerAndName() argument 335 mock_obj_ = mock_obj; in SetOwnerAndName() 343 const void* mock_obj; in MockObject() local 351 mock_obj = mock_obj_; in MockObject() 353 return mock_obj; in MockObject() 675 void SetReactionOnUninterestingCalls(const void* mock_obj, in SetReactionOnUninterestingCalls() argument 679 g_uninteresting_call_reaction[mock_obj] = reaction; in SetReactionOnUninterestingCalls() [all …]
|
/third_party/googletest/googlemock/include/gmock/ |
D | gmock-spec-builders.h | 199 void RegisterOwner(const void* mock_obj) 205 void SetOwnerAndName(const void* mock_obj, const char* name) 391 static void AllowLeak(const void* mock_obj) 397 static bool VerifyAndClearExpectations(void* mock_obj) 403 static bool VerifyAndClear(void* mock_obj) 407 static bool IsNaggy(void* mock_obj) 410 static bool IsNice(void* mock_obj) 413 static bool IsStrict(void* mock_obj) 433 static void AllowUninterestingCalls(const void* mock_obj) 438 static void WarnUninterestingCalls(const void* 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 | 1167 When you do an `EXPECT_CALL(mock_obj, Foo(bar))`, gMock saves away a copy of 1185 EXPECT_CALL(mock_obj, Foo(Eq(std::ref(bar)))); 1188 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:
|