/external/chromium_org/tools/telemetry/telemetry/unittest/ |
simple_mock_unittest.py | 12 mock = simple_mock.MockObject() 13 mock.ExpectCall('foo') 15 mock.foo() 18 mock = simple_mock.MockObject() 19 mock.ExpectCall('foo').WillReturn(7) 21 ret = mock.foo() 25 mock = simple_mock.MockObject() 26 mock.ExpectCall('foo').WithArgs(3, 4) 28 mock.foo(3, 4) 31 mock = simple_mock.MockObject( [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
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...] |
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...] |
/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;
|
MockPropertyChangeListener2.java | 18 package org.apache.harmony.beans.tests.support.mock; 28 org.apache.harmony.beans.tests.support.mock.MockPropertyChangeEvent e);
|
MockPropertyChangeEvent.java | 18 package org.apache.harmony.beans.tests.support.mock; 23 * This is a mock class for EventSetDescriptor testing
|
/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.
|
/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...] |
/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/mockito/src/org/mockito/internal/util/ |
MockUtil.java | 14 import org.mockito.mock.MockCreationSettings;
15 import org.mockito.mock.MockName;
32 T mock = mockMaker.createMock(settings, mockHandler);
local 36 new LenientCopyTool().copyToMock(spiedInstance, mock);
39 return mock;
42 public <T> void resetMock(T mock) {
43 InternalMockHandler oldHandler = (InternalMockHandler) getMockHandler(mock);
47 mockMaker.resetMock(mock, newHandler, settings);
50 public <T> InternalMockHandler<T> getMockHandler(T mock) {
51 if (mock == null) { [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/mockito/src/org/mockito/ |
InOrder.java | 29 * Alias to <code>inOrder.verify(mock, times(1))</code> 41 * @param mock to be verified 43 * @return mock object itself 45 <T> T verify(T mock); 59 * @param mock to be verified 62 * @return mock object itself 64 <T> T verify(T mock, VerificationMode mode); 73 * mock.foo(); //1st 74 * mock.bar(); //2nd 75 * mock.baz(); //3r [all...] |
/external/littlemock/src/com/google/testing/littlemock/ |
Behaviour.java | 25 /** Attaches the given behaviour to the next method call of this mock. */ 26 public <T> T when(T mock);
|
/external/chromium/testing/gmock/test/ |
gmock_link_test.h | 32 // Google Mock - a framework for writing C++ mock classes. 35 // a. A header file defining a mock class can be included in multiple 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 { 207 Mock() {} 220 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock); 243 Mock mock; local 251 Mock mock; local 260 Mock mock; local 268 Mock mock; local 277 Mock mock; local 286 Mock mock; local 295 Mock mock; local 308 Mock mock; local 320 Mock mock; local 332 Mock mock; local 345 Mock mock; local 354 Mock mock; local 363 Mock mock; local 372 Mock mock; local 380 Mock mock; local 390 Mock mock; local 400 Mock mock; local 409 Mock mock; local 432 Mock mock; local 444 Mock mock; local 462 Mock mock; local 472 Mock mock; local 479 Mock mock; local 486 Mock mock; local 496 Mock mock; local 507 Mock mock; local 514 Mock mock; local 521 Mock mock; local 529 Mock mock; local 538 Mock mock; local 550 Mock mock; local 557 Mock mock; local 564 Mock mock; local 573 Mock mock; local 582 Mock mock; local 589 Mock mock; local 597 Mock mock; local [all...] |
/external/mockito/src/org/mockito/plugins/ |
MockMaker.java | 9 import org.mockito.mock.MockCreationSettings; 34 * @see org.mockito.mock.MockCreationSettings 53 * @param settings - mock creation settings like type to mock, extra interfaces and so on. 57 * @param <T> Type of the mock to return, actually the <code>settings.getTypeToMock</code>. 58 * @return The mock instance. 67 * Returns the handler for the {@code mock}. <b>Do not</b> provide your own implementations at this time 71 * @param mock The mock instance. 73 * This means the passed object is not really a Mockito mock [all...] |
/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
|
/external/chromium_org/chrome_frame/test/ |
mock_ie_event_sink_actions.h | 71 ACTION_P2(Navigate, mock, navigate_url) { 72 mock->event_sink()->Navigate(navigate_url); 75 ACTION_P3(DelayNavigateToCurrentUrl, mock, loop, delay) { 77 base::Bind(&NavigateToCurrentUrl, mock), delay); 80 ACTION_P(CloseBrowserMock, mock) { 81 mock->event_sink()->CloseWebBrowser(); 84 ACTION_P3(DelayCloseBrowserMock, loop, delay, mock) { 88 mock->event_sink()), 92 ACTION_P2(ConnectDocPropNotifySink, mock, sink) { 94 mock->event_sink()->web_browser2()->get_Document(document.Receive()) [all...] |
/external/mockito/src/org/mockito/internal/listeners/ |
CollectCreatedMocks.java | 20 public void mockingStarted(Object mock, Class classToMock) {
21 toBeFilled.add(mock);
|
MockingStartedListener.java | 12 void mockingStarted(Object mock, Class classToMock);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io_test/ |
kernel_wrap_test.cc | 88 EXPECT_CALL(mock, open(_, _)) 93 EXPECT_CALL(mock, mount(_, _, _, _, _)) 97 ki_init(&mock); 104 KernelProxyMock mock; member in class:__anon10883::KernelWrapTest 111 EXPECT_CALL(mock, access(StrEq("access"), 12)).Times(1); 116 EXPECT_CALL(mock, chdir(StrEq("chdir"))).Times(1); 121 EXPECT_CALL(mock, chmod(StrEq("chmod"), 23)).Times(1); 128 EXPECT_CALL(mock, chown(StrEq("chown"), uid, gid)).Times(1); 133 EXPECT_CALL(mock, close(34)).Times(1); 138 EXPECT_CALL(mock, dup(DUMMY_FD)).Times(1) [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;
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
RequestFocusTest.java | 20 import static com.google.testing.littlemock.LittleMock.mock; 133 CombinedListeners mock = mock(CombinedListeners.class); local 134 clearingFocusButton.setOnFocusChangeListener(mock); 135 gainingFocusButton.setOnFocusChangeListener(mock); 136 clearingFocusButton.getViewTreeObserver().addOnGlobalFocusChangeListener(mock); 142 InOrder inOrder = inOrder(mock); 143 inOrder.verify(mock).onFocusChange(clearingFocusButton, false); 144 inOrder.verify(mock).onGlobalFocusChanged(clearingFocusButton, gainingFocusButton); 145 inOrder.verify(mock).onFocusChange(gainingFocusButton, true) 176 CombinedListeners mock = mock(CombinedListeners.class); local [all...] |
/external/chromium/chrome/browser/automation/ |
automation_provider_unittest.cc | 33 mock(new MockChromeFrameAutomationProvider(NULL)); 35 EXPECT_CALL(*mock, OnUnhandledMessage(testing::Property(&IPC::Message::type, 37 mock->OnMessageReceived(bad_msg);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
CameraUtilsBinderDecoratorTest.java | 72 ICameraBinderStereotype mock = mock(ICameraBinderStereotype.class); local 74 when(mock.doNothing()).thenReturn(SOME_ARBITRARY_DOUBLE); 75 when(mock.doSomethingPositive()).thenReturn(SOME_ARBITRARY_POSITIVE_INT); 76 when(mock.doSomethingNoError()).thenReturn(NO_ERROR); 77 when(mock.doSomethingPermissionDenied()).thenReturn(PERMISSION_DENIED); 78 when(mock.doSomethingAlreadyExists()).thenReturn(ALREADY_EXISTS); 79 when(mock.doSomethingBadValue()).thenReturn(BAD_VALUE); 80 when(mock.doSomethingDeadObject()).thenReturn(DEAD_OBJECT); 81 when(mock.doSomethingBadPolicy()).thenReturn(EACCES) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
MockAttachment.java | 16 package com.android.mail.providers.protos.mock;
|