Home
last modified time | relevance | path

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

/external/googletest/googlemock/include/gmock/
Dgmock-nice-strict.h71 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 …]
Dgmock-generated-function-mockers.h.pump61 // class MockClass {
73 // class MockClass {
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-generated-nice-strict.h79 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/
Dgmock-generated-nice-strict.h67 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 …]
Dgmock-generated-nice-strict.h.pump70 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/
DInstancesDebuggee.java43 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
DInstancesTest.java41 static final String mockClassSignature = getClassSignature(MockClass.class);
/external/objenesis/tck/src/main/java/org/objenesis/tck/
DMain.java45 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/
DMockLooper.java5 import mockit.MockClass;
13 @MockClass(realClass = Looper.class)
DMockWidget.java5 import mockit.MockClass;
7 @MockClass(realClass = Widget.class, inverse = false)
DMockPaint.java23 import mockit.MockClass;
25 @MockClass(realClass = Paint.class)
DMockPointF.java5 import mockit.MockClass;
7 @MockClass(realClass = PointF.class)
DMockSizeMetrics.java7 import mockit.MockClass;
9 @MockClass(realClass = SizeMetrics.class)
DMockPixelUtils.java8 import mockit.MockClass;
10 @MockClass(realClass = PixelUtils.class, stubs="", inverse=true)
DMockCanvas.java7 import mockit.MockClass;
11 @MockClass(realClass = Canvas.class, stubs="", inverse=true)
DMockRectF.java22 import mockit.MockClass;
24 @MockClass(realClass = RectF.class, stubs="", inverse=true)
DMockContext.java35 import mockit.MockClass;
39 @MockClass(realClass = Context.class)
/external/googletest/googlemock/test/
Dgmock-actions_test.cc691 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/
DXYLegendWidgetTest.java50 @MockClass(realClass = Context.class)
53 @MockClass(realClass = TextLabelWidget.class)
DXYSeriesRendererTest.java39 @MockClass(realClass = Context.class)
/external/google-breakpad/src/testing/test/
Dgmock-actions_test.cc617 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/
Dtestpatch.py86 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/
Dtestpatch.py90 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/
Dunittest.mock.rst1157 >>> 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