HomeSort by relevance Sort by last modified time
    Searched full:mock (Results 1 - 25 of 315) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/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.
  /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
commandtest.py 31 from webkitpy.mock import Mock
36 def assert_execute_outputs(self, command, args, expected_stdout="", expected_stderr="", options=Mock(), tool=MockBugzillaTool()):
  /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.
  /frameworks/base/core/tests/coretests/src/android/pim/vcard/
VCardTestsBase.java 40 * Almost a dead copy of android.test.mock.MockContentProvider, but different in that this
52 throw new UnsupportedOperationException("unimplemented mock method");
59 throw new UnsupportedOperationException("unimplemented mock method");
65 throw new UnsupportedOperationException("unimplemented mock method");
70 throw new UnsupportedOperationException("unimplemented mock method");
75 throw new UnsupportedOperationException("unimplemented mock method");
80 throw new UnsupportedOperationException("unimplemented mock method");
85 throw new UnsupportedOperationException("unimplemented mock method");
90 throw new UnsupportedOperationException("unimplemented mock method");
96 throw new UnsupportedOperationException("unimplemented mock method")
    [all...]
  /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...]
  /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...]
  /packages/apps/Email/tests/src/com/android/email/mail/store/
ImapStoreUnitTests.java 318 * TODO: Test this with multiple folders provided by mock server
350 // Create mock transport and inject it into the ImapStore that's already set up
353 mockTransport.setMockHost("mock.server.com");
359 * Helper which stuffs the mock with enough strings to satisfy a call to ImapFolder.open()
361 * @param mockTransport the mock transport we're using
368 * Helper which stuffs the mock with enough strings to satisfy a call to ImapFolder.open()
370 * @param mockTransport the mock transport we're using
378 * Helper which stuffs the mock with enough strings to satisfy a call to ImapFolder.open()
383 * @param mockTransport the mock transport we're using
432 MockTransport mock = openAndInjectMockTransport() local
443 MockTransport mock = openAndInjectMockTransport(); local
453 MockTransport mock = openAndInjectMockTransport(); local
467 MockTransport mock = openAndInjectMockTransport(); local
482 MockTransport mock = openAndInjectMockTransport(); local
539 MockTransport mock = openAndInjectMockTransport(); local
565 MockTransport mock = openAndInjectMockTransport(); local
    [all...]
  /dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/
CharsetTest.java 369 MockCharset c = new MockCharset(mockName, new String[] { "mock" });
373 assertEquals("mock", c.aliases().toArray()[0]);
409 new MockCharset("-123", new String[] { "mock" });
427 new MockCharset("1%%23", new String[] { "mock" });
433 new MockCharset("1//23", new String[] { "mock" });
451 MockCharset c = new MockCharset(null, new String[] { "mock" });
512 new MockCharset("mockChar", new String[] { "mock", null });
594 new MockCharset("mockChar", new String[] { "mock", "-123" });
612 new MockCharset("mockChar", new String[] { "mock", "22##ab" });
618 new MockCharset("mockChar", new String[] { "mock", "22%%ab" })
    [all...]
  /dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
MessagesTest.java 56 notes = "Just check signature, cannot make use of mock, method depend on luni",
67 notes = "Juste check signature, cannot make use of mock, depend on luni",
78 notes = "Juste check signature, cannot make use of mock, depend on luni",
89 notes = "Juste check signature, cannot make use of mock, depend on luni",
100 notes = "Juste check signature, cannot make use of mock, depend on luni",
111 notes = "Juste check signature, cannot make use of mock, depend on luni",

Completed in 495 milliseconds

1 2 3 4 5 6 7 8 91011>>