Home
last modified time | relevance | path

Searched defs:mock (Results 1 – 25 of 53) sorted by relevance

123

/external/mockito/src/org/mockito/internal/util/
DMockUtil.java32 T mock = mockMaker.createMock(settings, mockHandler); in createMock() local
42 public <T> void resetMock(T mock) { in resetMock()
50 public <T> InternalMockHandler<T> getMockHandler(T mock) { in getMockHandler()
62 public boolean isMock(Object mock) { in isMock()
67 public boolean isSpy(Object mock) { in isSpy()
79 private <T> boolean isMockitoMock(T mock) { in isMockitoMock()
83 public MockName getMockName(Object mock) { in getMockName()
87 public void maybeRedefineMockName(Object mock, String newName) { in maybeRedefineMockName()
95 public MockCreationSettings getMockSettings(Object mock) { in getMockSettings()
/external/chromium/testing/gmock/test/
Dgmock_link_test.h243 Mock mock; in TEST() local
251 Mock mock; in TEST() local
260 Mock mock; in TEST() local
268 Mock mock; in TEST() local
277 Mock mock; in TEST() local
286 Mock mock; in TEST() local
295 Mock mock; in TEST() local
308 Mock mock; in TEST() local
320 Mock mock; in TEST() local
332 Mock mock; in TEST() local
[all …]
/external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/
DDexmakerMockMaker.java50 T mock = (T) Proxy.newProxyInstance(contextClassLoader, classesToMock, in createMock() local
60 T mock = unsafeAllocator.newInstance(proxyClass); in createMock() local
73 public void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings) { in resetMock()
78 public MockHandler getHandler(Object mock) { in getHandler()
83 private InvocationHandlerAdapter getInvocationHandlerAdapter(Object mock) { in getInvocationHandlerAdapter()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DAuthenticatorTest.java77 MockAuthenticator mock = new MockAuthenticator(); in test_requestPasswordAuthentication_InetAddress_int_String_String_String() local
89 MockAuthenticator mock = new MockAuthenticator(); in test_requestPasswordAuthentication_String_InetAddress_int_String_String_String() local
103 MockAuthenticator mock = new MockAuthenticator(); in test_requestPasswordAuthentication_String_InetAddress_int_String_String_String_URL_Authenticator_RequestorType() local
117 MockAuthenticator mock = new MockAuthenticator(); in test_getRequestingURL() local
126 MockAuthenticator mock = new MockAuthenticator(); in test_getRequestorType() local
/external/chromium/base/
Dgmock_unittest.cc68 MockSampleClass mock; in TEST() local
85 MockSampleClass mock; in TEST() local
97 MockSampleClass mock; in TEST() local
112 MockSampleClass mock; in TEST() local
126 MockSampleClass mock; in TEST() local
/external/mockito/src/org/mockito/
DMockito.java1119 public static <T> T mock(Class<T> classToMock) { in mock() method in Mockito
1138 public static <T> T mock(Class<T> classToMock, String name) { in mock() method in Mockito
1192 public static <T> T mock(Class<T> classToMock, ReturnValues returnValues) { in mock() method in Mockito
1215 public static <T> T mock(Class<T> classToMock, Answer defaultAnswer) { in mock() method in Mockito
1242 public static <T> T mock(Class<T> classToMock, MockSettings mockSettings) { in mock() method in Mockito
1473 public static <T> T verify(T mock) { in verify()
1499 public static <T> T verify(T mock, VerificationMode mode) { in verify()
1630 public static <T> VoidMethodStubbable<T> stubVoid(T mock) { in stubVoid()
DInOrder.java45 <T> T verify(T mock); in verify()
64 <T> T verify(T mock, VerificationMode mode); in verify()
/external/chromium/chrome/browser/policy/
Ddevice_management_service_unittest.cc105 DeviceRegisterResponseDelegateMock mock; in TEST_P() local
121 DeviceUnregisterResponseDelegateMock mock; in TEST_P() local
137 DevicePolicyResponseDelegateMock mock; in TEST_P() local
289 DeviceRegisterResponseDelegateMock mock; in TEST_F() local
324 DeviceUnregisterResponseDelegateMock mock; in TEST_F() local
366 DeviceRegisterResponseDelegateMock mock; in TEST_F() local
378 DeviceUnregisterResponseDelegateMock mock; in TEST_F() local
390 DevicePolicyResponseDelegateMock mock; in TEST_F() local
411 DeviceRegisterResponseDelegateMock mock; in TEST_F() local
441 DevicePolicyResponseDelegateMock mock; in TEST_F() local
[all …]
/external/mockito/src/org/mockito/internal/verification/
DMockAwareVerificationMode.java12 private final Object mock; field in MockAwareVerificationMode
15 public MockAwareVerificationMode(Object mock, VerificationMode mode) { in MockAwareVerificationMode()
/external/mockito/src/org/mockito/plugins/
DMockMaker.java76 MockHandler getHandler(Object mock); in getHandler()
93 Object mock, in resetMock()
/external/mockito/src/org/mockito/internal/stubbing/
DVoidMethodStubbableImpl.java13 private final T mock; field in VoidMethodStubbableImpl
16 public VoidMethodStubbableImpl(T mock, InvocationContainerImpl invocationContainerImpl) { in VoidMethodStubbableImpl()
/external/mockito/src/org/mockito/internal/
DMockitoCore.java47 public <T> T mock(Class<T> typeToMock, MockSettings settings) { in mock() method in MockitoCore
55 T mock = mockUtil.createMock(creationSettings); in mock() local
79 public <T> T verify(T mock, VerificationMode mode) { in verify()
149 public <T> VoidMethodStubbable<T> stubVoid(T mock) { in stubVoid()
DInOrderImpl.java40 public <T> T verify(T mock) { in verify()
44 public <T> T verify(T mock, VerificationMode mode) { in verify()
DInternalMockHandler.java20 VoidMethodStubbable<T> voidMethodStubbable(T mock); in voidMethodStubbable()
/external/mockito/src/org/mockito/internal/util/reflection/
DLenientCopyTool.java15 public <T> void copyToMock(T from, T mock) { in copyToMock()
30 private <T> void copyValues(T from, T mock, Class classFrom) { in copyValues()
/external/mockito/src/org/mockito/internal/util/collections/
DHashCodeAndEqualsSafeSet.java62 public boolean contains(Object mock) { in contains()
66 public boolean add(Object mock) { in add()
70 public boolean remove(Object mock) { in remove()
DHashCodeAndEqualsMockWrapper.java54 public static HashCodeAndEqualsMockWrapper of(Object mock) { in of()
/external/littlemock/src/com/google/testing/littlemock/
DBehaviour.java26 public <T> T when(T mock); in when()
/external/mockito/src/org/mockito/internal/listeners/
DMockingStartedListener.java12 void mockingStarted(Object mock, Class classToMock); in mockingStarted()
DCollectCreatedMocks.java20 public void mockingStarted(Object mock, Class classToMock) { in mockingStarted()
/external/webkit/Source/WebKit/chromium/tests/
DCCThreadTaskTest.cpp48 Mock mock; in TEST() local
/external/chromium/chrome/browser/chromeos/login/
Dmock_owner_key_utils.h48 explicit MockInjector(MockKeyUtils* mock) : transient_(mock) { in MockInjector()
/external/mockito/src/org/mockito/internal/invocation/
DInvocationImpl.java31 private final Object mock; field in InvocationImpl
43 …public InvocationImpl(Object mock, MockitoMethod mockitoMethod, Object[] args, int sequenceNumber,… in InvocationImpl()
/external/chromium/chrome/browser/automation/
Dautomation_provider_unittest.cc33 mock(new MockChromeFrameAutomationProvider(NULL)); in TEST_F() local
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
DReturnsEmptyValues.java65 Object mock = invocation.getMock(); in answer() local

123