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

12

/external/littlemock/src/com/google/testing/littlemock/
H A DMock.java29 * @Mock private MyInterface mMockMyInterface;
40 public @interface Mock { interface
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/sqs/
H A Dtest_queue.py23 from mock import Mock namespace
33 connection = Mock()
42 connection = Mock()
/external/mockito/src/org/mockito/
H A DMock.java27 * @Mock private ArticleCalculator calculator;
28 * @Mock(name = "database") private ArticleDatabase dbMock;
29 * @Mock(answer = RETURNS_MOCKS) private UserProvider userProvider;
30 * @Mock(extraInterfaces = {Queue.class, Observer.class}) private articleMonitor;
64 public @interface Mock { interface
H A DMockitoAnnotations.java37 * @Mock private ArticleCalculator calculator;
38 * @Mock private ArticleDatabase database;
39 * @Mock private UserProvider userProvider;
67 * Use top-level {@link org.mockito.Mock} annotation instead
69 * When @Mock annotation was implemented as an inner class then users experienced problems with autocomplete features in IDEs.
70 * Hence @Mock was made a top-level class.
73 * Typically, you can just <b>search:</b> import org.mockito.MockitoAnnotations.Mock; <b>and replace with:</b> import org.mockito.Mock;
81 public @interface Mock {} interface in class:MockitoAnnotations
85 * &#064;{@link org.mockito.Mock},
[all...]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/auth/
H A Dtest_stsanon.py23 from mock import Mock namespace
32 self.provider = Mock()
55 Mock(), self.provider)
64 Mock(), self.provider)
72 Mock(), self.provider)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/swf/
H A Dtest_layer2_actors.py4 from mock import Mock namespace
10 boto.swf.layer2.Layer1 = Mock()
13 self.worker._swf = Mock()
14 self.decider._swf = Mock()
H A Dtest_layer2_base.py4 from mock import Mock namespace
7 MOCK_DOMAIN = 'Mock'
10 MOCK_REGION = 'Mock Region'
18 boto.swf.layer2.Layer1 = Mock()
H A Dtest_layer2_domain.py4 from mock import Mock namespace
10 boto.swf.layer2.Layer1 = Mock()
H A Dtest_layer2_types.py4 from mock import Mock, ANY namespace
10 boto.swf.layer2.Layer1 = Mock()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb/
H A Dtest_layer2.py25 from mock import Mock namespace
49 self.api = Mock()
/external/autotest/client/common_lib/cros/graphite/
H A Des_utils.py75 logging.debug('Failed to import elasticsearch. Mock classes will be used ' namespace
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/testing/
H A Dmock.py249 """Mock an apitools client."""
252 """Mock an apitools API, given its class.
275 return self.Mock()
277 def Mock(self): member in class:Client
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/sns/
H A Dtest_connection.py26 from mock import Mock namespace
51 queue = Mock()
76 queue = Mock()
/external/chromium-trace/catapult/third_party/Paste/tests/test_exceptions/
H A Dtest_formatter.py7 class Mock(object): class in inherits:object
12 class Supplement(Mock):
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/s3/
H A Dtest_bucket.py29 from mock import patch, Mock namespace
/external/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/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/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/cloudformation/
H A Dtest_connection.py4 from mock import Mock namespace
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/glacier/
H A Dtest_layer2.py26 from mock import call, Mock, patch, sentinel namespace
149 self.mock_layer1 = Mock(spec=Layer1)
181 self.mock_layer1.list_vaults = Mock(side_effect=return_paginated_vaults_resp)
279 mock_list_parts = Mock()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/ec2/
H A Dtest_connection.py5 from mock import MagicMock, Mock namespace
945 self.https_connection = Mock(spec=httplib.HTTPSConnection)
947 Mock(return_value=self.https_connection), ())
/external/chromium-trace/catapult/telemetry/third_party/mock/
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/chromium-trace/catapult/third_party/mock/
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/skia/tests/
H A DResourceCacheTest.cpp334 class Mock { class
336 Mock(int maxCnt, size_t maxBytes) { function in class:Mock
354 Mock mock(10, 30000);
410 Mock mock(10, 300);
494 Mock mock(10, 30000);
559 Mock mock(10, 300);
618 Mock mock(5, 30000);
663 Mock mock(5, 30000);
722 Mock mock(5, 30000);
781 Mock moc
[all...]

Completed in 1116 milliseconds

12