Home
last modified time | relevance | path

Searched refs:MockClass (Results 1 – 7 of 7) sorted by relevance

/third_party/googletest/googlemock/include/gmock/
Dgmock-nice-strict.h72 template <class MockClass>
74 template <class MockClass>
76 template <class MockClass>
135 template <class MockClass>
137 : private internal::NiceMockImpl<MockClass>,
138 public MockClass {
140 static_assert(!internal::HasStrictnessModifier<MockClass>(),
145 NiceMock() : MockClass() { in NiceMock()
146 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock()
158 explicit NiceMock(A&& arg) : MockClass(std::forward<A>(arg)) { in NiceMock()
[all …]
Dgmock-spec-builders.h112 template <typename MockClass>
114 template <typename MockClass>
116 template <typename MockClass>
424 template <typename MockClass>
426 template <typename MockClass>
428 template <typename MockClass>
/third_party/googletest/googlemock/test/
Dgmock-actions_test.cc736 class MockClass { class
738 MockClass() {} in MockClass() function in __anona0f7f6d50111::MockClass
750 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockClass);
756 MockClass mock; in TEST()
765 MockClass mock; in TEST()
783 MockClass mock; in TEST()
801 MockClass mock; in TEST()
810 MockClass mock; in TEST()
820 MockClass mock; in TEST()
1352 MockClass mock; in TEST()
[all …]
/third_party/python/Lib/unittest/test/testmock/
Dtestpatch.py88 MockClass = NonCallableMagicMock
90 MockClass = NonCallableMock
93 self.assertTrue(is_instance(obj, MockClass))
686 def test(MockClass): argument
687 MockClass.z = 'foo'
692 def test(MockClass): argument
693 MockClass.z = 'foo'
697 def test(MockClass): argument
698 MockClass.z = 'foo'
703 def test(MockClass): argument
[all …]
/third_party/googletest/docs/reference/
Dmocking.md450 type `MockClass` if a method other than `DoSomething()` is called:
455 NiceMock<MockClass> my_mock("some", "args");
481 `MockClass` if a method other than `DoSomething()` is called:
486 NaggyMock<MockClass> my_mock("some", "args");
508 of type `MockClass` if a method other than `DoSomething()` is called:
513 StrictMock<MockClass> my_mock("some", "args");
/third_party/googletest/docs/
Dgmock_cheat_sheet.md5 ### Mocking a Normal Class {#MockClass}
/third_party/python/Doc/library/
Dunittest.mock.rst1438 >>> with patch('__main__.Class') as MockClass:
1439 ... instance = MockClass.return_value
1450 >>> MockClass = patcher.start()
1451 >>> instance = MockClass()
1803 ... self.MockClass = patcher.start()
1807 ... assert package.module.Class is self.MockClass