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

1 2 3 4 5 6

  /external/mockito/src/org/mockito/mock/
MockName.java 5 package org.mockito.mock;
8 * Represents the name of the mock as shown in the verification failure reports, etc.
18 * default name means generated by Mockito. non-default means the user has named the mock at creation.
MockCreationSettings.java 6 package org.mockito.mock;
16 * Informs about the mock settings. An immutable view of {@link org.mockito.MockSettings}.
22 * Mocked type. An interface or class the mock should implement / extend.
27 * the extra interfaces the mock object should implement.
32 * the name of this mock, as printed on verification errors; see {@link org.mockito.MockSettings#name}.
37 * the default answer for this mock, see {@link org.mockito.MockSettings#defaultAnswer}.
47 * if the mock is serializable, see {@link org.mockito.MockSettings#serializable}.
52 * Whether the mock is only for stubbing, i.e. does not remember
59 * the invocation listeners attached to this mock, see {@link org.mockito.MockSettings#invocationListeners}.
  /frameworks/base/test-runner/src/android/test/mock/
MockDialogInterface.java 3 package android.test.mock;
8 * A mock {@link android.content.DialogInterface} class. All methods are non-functional and throw
MockApplication.java 17 package android.test.mock;
23 * A mock {@link android.app.Application} class. All methods are non-functional and throw
MockContentResolver.java 17 package android.test.mock;
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
MockAttachment.java 16 package com.android.mail.providers.protos.mock;
  /external/apache-harmony/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/
MockFakeEvent.java 18 package org.apache.harmony.beans.tests.support.mock;
MockPropertyChangeEvent.java 18 package org.apache.harmony.beans.tests.support.mock;
23 * This is a mock class for EventSetDescriptor testing
MockPropertyChangeListener2.java 18 package org.apache.harmony.beans.tests.support.mock;
28 org.apache.harmony.beans.tests.support.mock.MockPropertyChangeEvent e);
MockPropertyChangeListener.java 18 package org.apache.harmony.beans.tests.support.mock;
MockPropertyChangeValidListener.java 18 package org.apache.harmony.beans.tests.support.mock;
  /external/chromium_org/tools/usb_gadget/
keyboard_gadget_test.py 8 import mock namespace
19 chip = mock.Mock()
28 mock.call(0x81, '\x00\x00\x04\x00\x00\x00\x00\x00'),
29 mock.call(0x81, '\x00\x00\x00\x00\x00\x00\x00\x00'),
34 chip = mock.Mock()
43 mock.call(0x81, '\x02\x00\x00\x00\x00\x00\x00\x00'),
44 mock.call(0x81, '\x02\x00\x04\x00\x00\x00\x00\x00'),
45 mock.call(0x81, '\x02\x00\x04\x05\x00\x00\x00\x00')
    [all...]
mouse_gadget_test.py 8 import mock namespace
19 chip = mock.Mock()
25 mock.call(0x81, '\x01\x00\x00'),
26 mock.call(0x81, '\x00\x00\x00'),
31 chip = mock.Mock()
38 chip = mock.Mock()
44 mock.call(0x81, '\x01\x00\x00')
    [all...]
  /external/mockito/src/org/mockito/internal/verification/
MockAwareVerificationMode.java 12 private final Object mock; field in class:MockAwareVerificationMode
15 public MockAwareVerificationMode(Object mock, VerificationMode mode) {
16 this.mock = mock;
25 return mock;
  /external/guava/guava-tests/test/com/google/common/cache/
ForwardingCacheTest.java 38 private Cache<String, Boolean> mock; field in class:ForwardingCacheTest
48 mock = createMock(Cache.class);
51 return mock;
57 expect(mock.getIfPresent("key")).andReturn(Boolean.TRUE);
58 replay(mock);
60 verify(mock);
64 expect(mock.getAllPresent(ImmutableList.of("key")))
66 replay(mock);
69 verify(mock);
73 mock.invalidate("key")
    [all...]
ForwardingLoadingCacheTest.java 38 private LoadingCache<String, Boolean> mock; field in class:ForwardingLoadingCacheTest
48 mock = createMock(LoadingCache.class);
51 return mock;
57 expect(mock.get("key")).andReturn(Boolean.TRUE);
58 replay(mock);
60 verify(mock);
64 expect(mock.getUnchecked("key")).andReturn(Boolean.TRUE);
65 replay(mock);
67 verify(mock);
71 expect(mock.getAll(ImmutableList.of("key"))).andReturn(ImmutableMap.of("key", Boolean.TRUE))
    [all...]
  /external/apache-harmony/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/
MockPropertyChangeListener.java 18 package org.apache.harmony.beans.tests.support.beancontext.mock;
24 * Mock of PropertyChangeListener
MockPropertyChangeListenerS.java 18 package org.apache.harmony.beans.tests.support.beancontext.mock;
25 * Mock of PropertyChangeListener
  /external/chromium_org/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...]
  /external/chromium_org/chrome/browser/ui/passwords/
manage_passwords_ui_controller_unittest.cc 80 ManagePasswordsIconMock mock; local
81 controller()->UpdateIconAndBubbleState(&mock);
82 EXPECT_EQ(password_manager::ui::INACTIVE_STATE, mock.state());
101 ManagePasswordsIconMock mock; local
102 controller()->UpdateIconAndBubbleState(&mock);
103 EXPECT_EQ(password_manager::ui::MANAGE_STATE, mock.state());
122 ManagePasswordsIconMock mock; local
123 controller()->UpdateIconAndBubbleState(&mock);
125 mock.state());
136 ManagePasswordsIconMock mock; local
151 ManagePasswordsIconMock mock; local
165 ManagePasswordsIconMock mock; local
192 ManagePasswordsIconMock mock; local
228 ManagePasswordsIconMock mock; local
250 ManagePasswordsIconMock mock; local
266 ManagePasswordsIconMock mock; local
287 ManagePasswordsIconMock mock; local
308 ManagePasswordsIconMock mock; local
323 ManagePasswordsIconMock mock; local
    [all...]
  /external/chromium_org/native_client_sdk/src/tools/tests/
create_html_test.py 20 import mock namespace
42 with mock.patch('sys.stdout'):
43 with mock.patch('os.path.exists'):
44 with mock.patch('os.path.isfile'):
45 options = mock.MagicMock(return_value=False)
sel_ldr_test.py 16 # For the mock library
21 import mock namespace
26 with mock.patch('sys.stderr'):
30 with mock.patch('subprocess.call') as call:
31 with mock.patch('os.path.exists'):
32 with mock.patch('os.path.isfile'):
33 with mock.patch('create_nmf.ParseElfHeader') as parse_header:
35 with mock.patch('getos.GetPlatform') as get_platform:
  /external/mockito/src/org/mockito/
MockitoAnnotations.java 29 * <li>Minimizes repetitive mock creation code.</li>
31 * <li>Makes the verification error easier to read because <b>field name</b> is used to identify the mock.</li>
37 * &#064;Mock private ArticleCalculator calculator;
38 * &#064;Mock private ArticleDatabase database;
39 * &#064;Mock private UserProvider userProvider;
67 * Use top-level {@link org.mockito.Mock} annotation instead
69 * When &#064;Mock annotation was implemented as an inner class then users experienced problems with autocomplete features in IDEs.
70 * Hence &#064;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;
123 Object mock = annotationEngine.createMockFor(annotation, field); local
    [all...]
  /external/mockito/src/org/mockito/internal/stubbing/
VoidMethodStubbableImpl.java 13 private final T mock; field in class:VoidMethodStubbableImpl
16 public VoidMethodStubbableImpl(T mock, InvocationContainerImpl invocationContainerImpl) {
17 this.mock = mock;
37 return mock;
  /external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
ReturnsEmptyValues.java 12 import org.mockito.mock.MockName;
32 * Default answer of every Mockito mock.
44 * Returns description of mock for toString() method
65 Object mock = invocation.getMock(); local
66 MockName name = mockUtil.getMockName(mock);
68 return "Mock for " + mockUtil.getMockSettings(mock).getTypeToMock().getSimpleName() + ", hashCode: " + mock.hashCode();

Completed in 635 milliseconds

1 2 3 4 5 6