/external/googletest/googlemock/include/gmock/ |
D | gmock-nice-strict.h | 71 template <class MockClass> 72 class NiceMock : public MockClass { 74 NiceMock() : MockClass() { in NiceMock() 76 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 87 explicit NiceMock(A&& arg) : MockClass(std::forward<A>(arg)) { in NiceMock() 89 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 94 : MockClass(std::forward<A1>(arg1), std::forward<A2>(arg2), in NiceMock() 97 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 102 internal::ImplicitCast_<MockClass*>(this)); in ~NiceMock() 109 template <class MockClass> [all …]
|
D | gmock-generated-function-mockers.h.pump | 61 // class MockClass { 73 // class MockClass {
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googlemock/include/gmock/ |
D | gmock-generated-nice-strict.h | 79 template <class MockClass> 80 class NiceMock : public MockClass { 86 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 92 explicit NiceMock(const A1& a1) : MockClass(a1) { in NiceMock() 94 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 97 NiceMock(const A1& a1, const A2& a2) : MockClass(a1, a2) { in NiceMock() 99 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 103 NiceMock(const A1& a1, const A2& a2, const A3& a3) : MockClass(a1, a2, a3) { in NiceMock() 105 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 110 const A4& a4) : MockClass(a1, a2, a3, a4) { in NiceMock() [all …]
|
/external/google-breakpad/src/testing/include/gmock/ |
D | gmock-generated-nice-strict.h | 67 template <class MockClass> 68 class NiceMock : public MockClass { 74 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 80 explicit NiceMock(const A1& a1) : MockClass(a1) { in NiceMock() 82 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 85 NiceMock(const A1& a1, const A2& a2) : MockClass(a1, a2) { in NiceMock() 87 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 91 NiceMock(const A1& a1, const A2& a2, const A3& a3) : MockClass(a1, a2, a3) { in NiceMock() 93 internal::ImplicitCast_<MockClass*>(this)); in NiceMock() 98 const A4& a4) : MockClass(a1, a2, a3, a4) { in NiceMock() [all …]
|
D | gmock-generated-nice-strict.h.pump | 70 template <class MockClass> 71 class NiceMock : public MockClass { 74 // we have to avoid a possible clash with members of MockClass. 77 internal::ImplicitCast_<MockClass*>(this)); 83 explicit NiceMock(const A1& a1) : MockClass(a1) { 85 internal::ImplicitCast_<MockClass*>(this)); 92 NiceMock($for j, [[const A$j& a$j]]) : MockClass($for j, [[a$j]]) { 94 internal::ImplicitCast_<MockClass*>(this)); 101 internal::ImplicitCast_<MockClass*>(this)); 108 template <class MockClass> [all …]
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
D | InstancesDebuggee.java | 43 ArrayList<MockClass> reachableObjs = new ArrayList<MockClass>(); in run() 54 private static void allocateReachableObjects(ArrayList<MockClass> reachableObjs) { in allocateReachableObjects() 56 reachableObjs.add(new MockClass(true)); in allocateReachableObjects() 62 new MockClass(false); in allocateUnreachableObjects() 72 class MockClass { class 76 MockClass(boolean isReachable) { in MockClass() method in MockClass
|
D | InstancesTest.java | 41 static final String mockClassSignature = getClassSignature(MockClass.class);
|
/external/objenesis/tck/src/main/java/org/objenesis/tck/ |
D | Main.java | 45 private static class MockClass extends MockSuperClass implements Serializable { class in Main 51 public MockClass() { in MockClass() method in Main.MockClass 122 Object result = objenesis.newInstance(MockClass.class); in runParentConstructorTest() 123 MockClass mockObject = (MockClass) result; in runParentConstructorTest()
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/ |
D | MockLooper.java | 5 import mockit.MockClass; 13 @MockClass(realClass = Looper.class)
|
D | MockWidget.java | 5 import mockit.MockClass; 7 @MockClass(realClass = Widget.class, inverse = false)
|
D | MockPaint.java | 23 import mockit.MockClass; 25 @MockClass(realClass = Paint.class)
|
D | MockPointF.java | 5 import mockit.MockClass; 7 @MockClass(realClass = PointF.class)
|
D | MockSizeMetrics.java | 7 import mockit.MockClass; 9 @MockClass(realClass = SizeMetrics.class)
|
D | MockPixelUtils.java | 8 import mockit.MockClass; 10 @MockClass(realClass = PixelUtils.class, stubs="", inverse=true)
|
D | MockCanvas.java | 7 import mockit.MockClass; 11 @MockClass(realClass = Canvas.class, stubs="", inverse=true)
|
D | MockRectF.java | 22 import mockit.MockClass; 24 @MockClass(realClass = RectF.class, stubs="", inverse=true)
|
D | MockContext.java | 35 import mockit.MockClass; 39 @MockClass(realClass = Context.class)
|
/external/googletest/googlemock/test/ |
D | gmock-actions_test.cc | 691 class MockClass { class 693 MockClass() {} in MockClass() function in __anon5facf5e40111::MockClass 705 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockClass); 711 MockClass mock; in TEST() 720 MockClass mock; in TEST() 738 MockClass mock; in TEST() 756 MockClass mock; in TEST() 765 MockClass mock; in TEST() 775 MockClass mock; in TEST() 1261 MockClass mock; in TEST() [all …]
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/ |
D | XYLegendWidgetTest.java | 50 @MockClass(realClass = Context.class) 53 @MockClass(realClass = TextLabelWidget.class)
|
D | XYSeriesRendererTest.java | 39 @MockClass(realClass = Context.class)
|
/external/google-breakpad/src/testing/test/ |
D | gmock-actions_test.cc | 617 class MockClass { class 619 MockClass() {} in MockClass() function in __anon4e31d9990111::MockClass 625 GTEST_DISALLOW_COPY_AND_ASSIGN_(MockClass); 631 MockClass mock; in TEST() 640 MockClass mock; in TEST() 654 MockClass mock; in TEST() 672 MockClass mock; in TEST() 681 MockClass mock; in TEST() 691 MockClass mock; in TEST()
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testpatch.py | 86 MockClass = NonCallableMagicMock 88 MockClass = NonCallableMock 91 self.assertTrue(is_instance(obj, MockClass)) 729 def test(MockClass): argument 730 MockClass.z = 'foo' 735 def test(MockClass): argument 736 MockClass.z = 'foo' 740 def test(MockClass): argument 741 MockClass.z = 'foo' 746 def test(MockClass): argument [all …]
|
/external/python/mock/mock/tests/ |
D | testpatch.py | 90 MockClass = NonCallableMagicMock 92 MockClass = NonCallableMock 95 self.assertTrue(is_instance(obj, MockClass)) 716 def test(MockClass): argument 717 MockClass.z = 'foo' 722 def test(MockClass): argument 723 MockClass.z = 'foo' 727 def test(MockClass): argument 728 MockClass.z = 'foo' 733 def test(MockClass): argument [all …]
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock.rst | 1157 >>> with patch('__main__.Class') as MockClass: 1158 ... instance = MockClass.return_value 1169 >>> MockClass = patcher.start() 1170 >>> instance = MockClass() 1488 ... self.MockClass = patcher.start() 1492 ... assert package.module.Class is self.MockClass
|