Searched defs:Mock (Results 1 - 22 of 22) sorted by relevance

/external/mockito/src/main/java/org/mockito/
H A DMock.java30 * @Mock private ArticleCalculator calculator;
31 * @Mock(name = "database") private ArticleDatabase dbMock;
32 * @Mock(answer = RETURNS_MOCKS) private UserProvider userProvider;
33 * @Mock(extraInterfaces = {Queue.class, Observer.class}) private articleMonitor;
34 * @Mock(stubOnly = true) private Logger logger;
68 public @interface Mock { interface
/external/python/cpython2/Lib/idlelib/idle_test/
H A Dtest_parenmatch.py10 class Mock: # 2.7 does not have unittest.mock class in inherits:
39 cls.editwin.text_frame = Mock()
112 pm.restore_event = Mock()
H A Dtest_searchengine.py30 class Mock: class in inherits:
37 se.SearchEngine = Mock # monkey-patch class
39 root = Mock()
/external/python/cpython3/Lib/idlelib/idle_test/
H A Dtest_parenmatch.py10 from unittest.mock import Mock namespace
29 cls.editwin.text_frame = Mock()
108 pm.restore_event = Mock()
H A Dtest_undo.py9 from unittest.mock import Mock namespace
32 self.delegator.bell = Mock()
99 d.saved_change_hook = Mock()
H A Dtest_replace.py6 from unittest.mock import Mock namespace
26 cls.dialog.ok = Mock()
28 cls.text.undo_block_start = Mock()
29 cls.text.undo_block_stop = Mock()
H A Dtest_searchengine.py30 class Mock: class in inherits:
37 se.SearchEngine = Mock # monkey-patch class
39 root = Mock()
/external/libchrome/base/files/
H A Dfile_descriptor_watcher_posix_unittest.cc30 class Mock { class in namespace:base::__anon10827
32 Mock() = default;
38 DISALLOW_COPY_AND_ASSIGN(Mock);
104 Bind(&Mock::ReadableCallback, Unretained(&mock_)));
120 Bind(&Mock::WritableCallback, Unretained(&mock_)));
140 // Mock on wich callbacks are invoked.
141 testing::StrictMock<Mock> mock_;
193 testing::Mock::VerifyAndClear(&mock_);
214 testing::Mock::VerifyAndClear(&mock_);
238 testing::Mock
[all...]
/external/google-breakpad/src/testing/test/
H A Dgmock-nice-strict_test.cc40 // clash with ::testing::Mock.
41 class Mock { class
43 Mock() {} function in class:Mock
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
194 // Tests that NiceMock<Mock> compiles where Mock is a user-defined
195 // class (as opposed to ::testing::Mock). We had to workaround an
196 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
203 NiceMock< ::Mock> nice;
268 // Tests that StrictMock<Mock> compile
[all...]
H A Dgmock_link_test.h32 // Google Mock - a framework for writing C++ mock classes.
104 // This test requires identical definitions of Interface and Mock to be
109 // definitions of Interface and Mock tests MUST be kept in the SAME
205 class Mock: public Interface { class in inherits:Interface
207 Mock() {} function in class:Mock
220 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
243 Mock mock;
251 Mock mock;
260 Mock mock;
268 Mock moc
[all...]
/external/googletest/googlemock/test/
H A Dgmock-nice-strict_test.cc40 // clash with ::testing::Mock.
41 class Mock { class
43 Mock() {} function in class:Mock
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
263 // Tests that NiceMock<Mock> compiles where Mock is a user-defined
264 // class (as opposed to ::testing::Mock). We had to work around an
265 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
272 NiceMock< ::Mock> nice;
356 // Tests that NaggyMock<Mock> compile
[all...]
H A Dgmock_link_test.h32 // Google Mock - a framework for writing C++ mock classes.
104 // This test requires identical definitions of Interface and Mock to be
109 // definitions of Interface and Mock tests MUST be kept in the SAME
205 class Mock: public Interface { class in inherits:Interface
207 Mock() {} function in class:Mock
220 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
243 Mock mock;
251 Mock mock;
260 Mock mock;
268 Mock moc
[all...]
/external/python/cpython3/Lib/unittest/test/testmock/
H A Dtestwith.py5 from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call namespace
70 mock = Mock()
71 mock.__enter__ = Mock()
72 mock.__exit__ = Mock()
H A Dtestmagicmethods.py3 from unittest.mock import Mock, MagicMock, _magics namespace
10 mock = Mock()
13 mock.__getitem__ = Mock()
34 mock = Mock()
48 mock1 = Mock()
49 mock2 = Mock()
51 mock1.__iter__ = Mock(return_value=iter([]))
57 mock = Mock()
58 self.assertEqual(repr(mock), "<Mock id='%s'>" % id(mock))
64 mock = Mock()
[all...]
/external/v8/testing/gmock/test/
H A Dgmock-nice-strict_test.cc40 // clash with ::testing::Mock.
41 class Mock { class
43 Mock() {} function in class:Mock
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
241 // Tests that NiceMock<Mock> compiles where Mock is a user-defined
242 // class (as opposed to ::testing::Mock). We had to work around an
243 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
250 NiceMock< ::Mock> nice;
334 // Tests that NaggyMock<Mock> compile
[all...]
H A Dgmock_link_test.h32 // Google Mock - a framework for writing C++ mock classes.
104 // This test requires identical definitions of Interface and Mock to be
109 // definitions of Interface and Mock tests MUST be kept in the SAME
205 class Mock: public Interface { class in inherits:Interface
207 Mock() {} function in class:Mock
220 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
243 Mock mock;
251 Mock mock;
260 Mock mock;
268 Mock moc
[all...]
/external/pdfium/third_party/pymock/
H A Dmock.py17 'Mock',
129 # can't use isinstance on Mock objects because they override __class__
466 """A non-callable version of `Mock`"""
658 raise AttributeError("Mock object has no attribute %r" % name)
761 raise AttributeError("Mock object has no attribute '%s'" % name)
767 raise AttributeError("Mock object has no attribute '%s'" % name)
898 Subclasses of Mock may want to override this to customize the way
908 klass = Mock
1031 class Mock(CallableMixin, NonCallableMock): class in inherits:CallableMixin, NonCallableMock
1033 Create a new `Mock` objec
[all...]
/external/python/cpython2/Lib/test/
H A D_mock_backport.py8 'Mock',
52 # can't use isinstance on Mock objects because they override __class__
369 """A non-callable version of `Mock`"""
574 raise AttributeError("Mock object has no attribute %r" % name)
680 raise AttributeError("Mock object has no attribute '%s'" % name)
686 raise AttributeError("Mock object has no attribute '%s'" % name)
853 Subclasses of Mock may want to override this to customize the way
863 klass = Mock
987 class Mock(CallableMixin, NonCallableMock): class in inherits:CallableMixin, NonCallableMock
989 Create a new `Mock` objec
[all...]
/external/python/cpython3/Lib/unittest/
H A Dmock.py8 'Mock',
51 # can't use isinstance on Mock objects because they override __class__
365 """A non-callable version of `Mock`"""
582 raise AttributeError("Mock object has no attribute %r" % name)
688 raise AttributeError("Mock object has no attribute '%s'" % name)
694 raise AttributeError("Mock object has no attribute '%s'" % name)
882 Subclasses of Mock may want to override this to customize the way
892 klass = Mock
1016 class Mock(CallableMixin, NonCallableMock): class in inherits:CallableMixin, NonCallableMock
1018 Create a new `Mock` objec
[all...]
/external/skia/tests/
H A DResourceCacheTest.cpp351 class Mock { class
353 Mock(int maxCnt, size_t maxBytes) { function in class:Mock
371 Mock mock(10, 30000);
429 Mock mock(10, 30000);
497 Mock mock(10, 300);
594 Mock mock(10, 30000);
669 Mock mock(10, 300);
733 Mock mock(5, 30000);
781 Mock mock(5, 30000);
841 Mock moc
[all...]
/external/skqp/tests/
H A DResourceCacheTest.cpp349 class Mock { class
351 Mock(int maxCnt, size_t maxBytes) { function in class:Mock
369 Mock mock(10, 30000);
427 Mock mock(10, 300);
524 Mock mock(10, 30000);
599 Mock mock(10, 300);
663 Mock mock(5, 30000);
711 Mock mock(5, 30000);
771 Mock mock(5, 30000);
831 Mock moc
[all...]
/external/robolectric/v1/lib/test/
H A Dmockito-core-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mockito/ org/mockito/asm/ org/mockito/asm/signature/ ...

Completed in 876 milliseconds