/external/chromium/base/ |
gmock_unittest.cc | 6 // correctly. It just instantiates a mock object and runs through a couple of 7 // the basic mock features. 22 // Simple class that we can mock out the behavior for. Everything is virtual 44 // Declare a mock for the class. 54 // more complex behavior into your mock...though if you start needing these, ask 55 // if you're asking your mock to do too much. 68 MockSampleClass mock; local 70 EXPECT_CALL(mock, ReturnSomething()) 74 EXPECT_EQ(1, mock.ReturnSomething()); 75 EXPECT_EQ(2, mock.ReturnSomething()) 85 MockSampleClass mock; local 97 MockSampleClass mock; local 112 MockSampleClass mock; local 126 MockSampleClass mock; local [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
MockCursor.java | 17 package android.test.mock; 31 * A mock {@link android.database.Cursor} class that isolates the test code from real 41 throw new UnsupportedOperationException("unimplemented mock method"); 45 throw new UnsupportedOperationException("unimplemented mock method"); 49 throw new UnsupportedOperationException("unimplemented mock method"); 53 throw new UnsupportedOperationException("unimplemented mock method"); 57 throw new UnsupportedOperationException("unimplemented mock method"); 61 throw new UnsupportedOperationException("unimplemented mock method"); 65 throw new UnsupportedOperationException("unimplemented mock method"); 69 throw new UnsupportedOperationException("unimplemented mock method") [all...] |
MockResources.java | 17 package android.test.mock; 35 * A mock {@link android.content.res.Resources} class. All methods are non-functional and throw 52 throw new UnsupportedOperationException("mock object, not implemented"); 57 throw new UnsupportedOperationException("mock object, not implemented"); 62 throw new UnsupportedOperationException("mock object, not implemented"); 67 throw new UnsupportedOperationException("mock object, not implemented"); 73 throw new UnsupportedOperationException("mock object, not implemented"); 78 throw new UnsupportedOperationException("mock object, not implemented"); 83 throw new UnsupportedOperationException("mock object, not implemented"); 88 throw new UnsupportedOperationException("mock object, not implemented") [all...] |
MockDialogInterface.java | 3 package android.test.mock; 8 * A mock {@link android.content.DialogInterface} class. All methods are non-functional and throw
|
MockIContentProvider.java | 17 package android.test.mock; 38 * Mock implementation of IContentProvider. All methods are non-functional and throw 46 throw new UnsupportedOperationException("unimplemented mock method"); 52 throw new UnsupportedOperationException("unimplemented mock method"); 58 throw new UnsupportedOperationException("unimplemented mock method"); 62 throw new UnsupportedOperationException("unimplemented mock method"); 67 throw new UnsupportedOperationException("unimplemented mock method"); 71 throw new UnsupportedOperationException("unimplemented mock method"); 75 throw new UnsupportedOperationException("unimplemented mock method"); 79 throw new UnsupportedOperationException("unimplemented mock method") [all...] |
MockContentProvider.java | 17 package android.test.mock; 44 * Mock implementation of ContentProvider. All methods are non-functional and throw 152 * @param context A Context object which should be some mock instance (like the 153 * instance of {@link android.test.mock.MockContext}). 170 throw new UnsupportedOperationException("unimplemented mock method"); 175 throw new UnsupportedOperationException("unimplemented mock method"); 180 throw new UnsupportedOperationException("unimplemented mock method"); 185 throw new UnsupportedOperationException("unimplemented mock method"); 191 throw new UnsupportedOperationException("unimplemented mock method"); 196 throw new UnsupportedOperationException("unimplemented mock method") [all...] |
/external/chromium/net/data/url_request_unittest/ |
with-headers.html | 1 This file is boring; all the action's in the .mock-http-headers.
|
/external/easymock/src/org/easymock/ |
EasyMockSupport.java | 32 * Creates a mock object that implements the given interface, order checking
36 * the interface that the mock object should implement.
38 * the class of the interface that the mock object should
40 * @return the mock object.
47 * Creates a mock object that implements the given interface, order checking
51 * the name of the mock object.
53 * the class of the interface that the mock object should
56 * the interface that the mock object should implement.
57 * @return the mock object.
66 * Creates a mock object that implements the given interface, order checking [all...] |
IMocksControl.java | 19 * Controls all the mock objects created by it.
24 * Creates a mock object that implements the given interface.
25 * @param <T> the interface that the mock object should implement.
26 * @param toMock the class of the interface that the mock object should implement.
27 * @return the mock object.
32 * Creates a mock object that implements the given interface.
33 * @param name the name of the mock object .
34 * @param toMock the class of the interface that the mock object should implement.
35 * @param <T> the interface that the mock object should implement.
36 * @return the mock object. [all...] |
MockControl.java | 26 * mock object. For more information, see the EasyMock documentation.
28 * @param <T> type of the mock controlled
31 * used to create and control mock objects.
38 private final T mock;
field in class:MockControl 44 this.mock = ctrl.createMock(toMock);
48 * Creates a mock control object for the specified interface. The
49 * <code>MockControl</code> and its associated mock object will not check
50 * the order of expected method calls. An unexpected method call on the mock
53 * @param <T> type of the mock controlled
55 * the class of the interface to mock. [all...] |
EasyMock.java | 27 * Since EasyMock 2.4, by default, a mock wasn't allowed to be called in
36 * Since EasyMock 2.5, by default a mock is thread-safe. For backward
37 * compatibility, this property can change the default. A given mock still
44 * Creates a mock object that implements the given interface, order checking
48 * the interface that the mock object should implement.
50 * the class of the interface that the mock object should
52 * @return the mock object.
59 * Creates a mock object that implements the given interface, order checking
61 * @param name the name of the mock object.
63 * the class of the interface that the mock object should [all...] |
/external/webkit/LayoutTests/fast/dom/Geolocation/ |
permission-denied-expected.txt | 1 Tests Geolocation when permission is denied, using the mock service.
|
success-expected.txt | 1 Tests Geolocation success callback using the mock service.
|
error-expected.txt | 1 Tests Geolocation error callback using the mock service.
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
ImapStoreUnitTests.java | 238 // Prepare mock result 402 * TODO: Test this with multiple folders provided by mock server 442 // Create mock transport and inject it into the ImapStore that's already set up 445 mockTransport.setMockHost("mock.server.com"); 451 * Helper which stuffs the mock with enough strings to satisfy a call to ImapFolder.open() 453 * @param mockTransport the mock transport we're using 460 * Helper which stuffs the mock with enough strings to satisfy a call to ImapFolder.open() 462 * @param mockTransport the mock transport we're using 470 * Helper which stuffs the mock with enough strings to satisfy a call to ImapFolder.open() 475 * @param mockTransport the mock transport we're usin 570 MockTransport mock = openAndInjectMockTransport(); local 581 MockTransport mock = openAndInjectMockTransport(); local 591 MockTransport mock = openAndInjectMockTransport(); local 607 MockTransport mock = openAndInjectMockTransport(); local 621 final MockTransport mock = openAndInjectMockTransport(); local 662 final MockTransport mock = openAndInjectMockTransport(); local 701 final MockTransport mock = openAndInjectMockTransport(); local 823 final MockTransport mock = openAndInjectMockTransport(); local 846 final MockTransport mock = openAndInjectMockTransport(); local 869 MockTransport mock = openAndInjectMockTransport(); local 919 MockTransport mock = openAndInjectMockTransport(); local 976 MockTransport mock = openAndInjectMockTransport(); local 1037 MockTransport mock = openAndInjectMockTransport(); local 1053 MockTransport mock = openAndInjectMockTransport(); local 1079 MockTransport mock = openAndInjectMockTransport(); local 1100 MockTransport mock = openAndInjectMockTransport(); local 1143 MockTransport mock = openAndInjectMockTransport(); local 1204 MockTransport mock = openAndInjectMockTransport(); local 1231 MockTransport mock = openAndInjectMockTransport(); local 1259 MockTransport mock = openAndInjectMockTransport(); local 1280 MockTransport mock = openAndInjectMockTransport(); local 1294 MockTransport mock = openAndInjectMockTransport(); local 1309 MockTransport mock = openAndInjectMockTransport(); local 1338 MockTransport mock = openAndInjectMockTransport(); local 1399 MockTransport mock = openAndInjectMockTransport(); local 1423 MockTransport mock = openAndInjectMockTransport(); local 1452 MockTransport mock = openAndInjectMockTransport(); local 1469 MockTransport mock = openAndInjectMockTransport(); local 1495 MockTransport mock = openAndInjectMockTransport(); local 1555 MockTransport mock = openAndInjectMockTransport(); local 1575 MockTransport mock = openAndInjectMockTransport(); local 1602 final MockTransport mock = openAndInjectMockTransport(); local 1640 MockTransport mock = openAndInjectMockTransport(); local [all...] |
/external/chromium/net/proxy/ |
single_threaded_proxy_resolver_unittest.cc | 17 // A synchronous mock ProxyResolver implementation, which can be used in 94 // A mock synchronous ProxyResolver which can be set to block upon reaching 140 MockProxyResolver* mock = new MockProxyResolver; local 142 new SingleThreadedProxyResolver(mock)); 154 EXPECT_EQ("pac script bytes", mock->last_pac_bytes()); 169 // The mock proxy resolver should have written 1 log entry. And 210 EXPECT_EQ(0, mock->purge_count()); 218 EXPECT_EQ(1, mock->purge_count()); 224 BlockableProxyResolver* mock = new BlockableProxyResolver; local 226 new SingleThreadedProxyResolver(mock)); 293 BlockableProxyResolver* mock = new BlockableProxyResolver; local 348 BlockableProxyResolver* mock = new BlockableProxyResolver; local [all...] |
/external/webkit/WebKitTools/Scripts/webkitpy/commands/ |
early_warning_system_unittest.py | 33 from webkitpy.mock import Mock 39 "handle_unexpected_error" : "Mock error message\n", 46 "handle_unexpected_error" : "Mock error message\n", 53 "handle_unexpected_error" : "Mock error message\n", 60 "handle_unexpected_error" : "Mock error message\n",
|
upload_unittest.py | 31 from webkitpy.mock import Mock 37 mock_commit_message_for_this_commit = Mock() 38 mock_commit_message_for_this_commit.message = lambda: "Mock message" 40 expected_stdout = "Mock message\n" 77 options = Mock() 81 MOCK: user.open_url: http://example.com/42
|
/sdk/sdkmanager/libs/sdklib/tests/com/android/sdklib/internal/repository/ |
MockAddonPackage.java | 25 * A mock {@link AddonPackage} for testing.
42 * A mock AddonTarget.
64 return "mock addon target";
68 return "mock addon target";
76 return "mock addon target";
132 return String.format("mock-addon-%1$d", getVersion().getApiLevel());
|
/external/webkit/WebKitTools/Scripts/webkitpy/steps/ |
closebugforlanddiff_unittest.py | 32 from webkitpy.mock import Mock 39 step = CloseBugForLandDiff(MockBugzillaTool(), Mock()) 41 capture.assert_outputs(self, step.run, [{"commit_text" : "Mock commit text"}], expected_stderr=expected_stderr)
|
updatechangelogswithreview_unittests.py | 32 from webkitpy.mock import Mock 39 step = UpdateChangeLogsWithReviewer(MockBugzillaTool(), Mock()) 45 step = UpdateChangeLogsWithReviewer(MockBugzillaTool(), Mock())
|
/frameworks/base/core/java/android/webkit/ |
MockGeolocation.java | 21 * mock Geolocation service for use in LayoutTests. 30 * Set the position for the mock Geolocation service. 38 * Set the error for the mock Geolocation service.
|
/external/easymock/src/org/easymock/internal/ |
Invocation.java | 33 private final Object mock;
field in class:Invocation 42 public Invocation(Object mock, Method method, Object[] args) {
43 this.mock = mock;
77 return mock;
95 return this.mock.equals(other.mock) && this.method.equals(other.method)
136 return this.mock.equals(actual.mock)
147 String mockName = mock.toString(); [all...] |
/cts/tests/accessibilityservice/src/android/accessibilityservice/delegate/ |
DelegatingAccessibilityService.java | 31 * This class is an accessibility service mock to which the system is bound and 32 * exposes a mock interface to the CTS accessibility tests. 34 * Note: The end-to-end test is composed of two APKs, one with a mock accessibility 40 * Accessibility), the mock service must be enabled (Settings -> Accessibility 41 * -> Mock Accessibility Service), and then the CTS tests in this package 44 * Further, the mock and tests run in separate processes since the 46 * the binding between the mock accessibility service and the system.
|
/external/webkit/WebKitTools/pywebsocket/test/ |
mock.py | 42 This enables tests to check what is written to a (mock) mp_conn. 54 """Get bytes written to this mock.""" 60 """Mock for mod_python.apache.mp_conn. 62 This enables tests to specify what should be read from a (mock) mp_conn as 103 """Blocking mock for mod_python.apache.mp_conn. 105 This enables tests to specify what should be read from a (mock) mp_conn as 132 """Put bytes to be read from this mock. 143 """Mock table. 166 """Mock request. 196 """Mock for dispatch.Dispatcher."" [all...] |