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

1 2 3 4 5 6 7 8 91011>>

  /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/chromium_org/third_party/pymock/
README.chromium 1 Name: mock
2 URL: http://pypi.python.org/pypi/mock
8 Python mock library, currently used by native_client_sdk. This is the
9 same mock library that is now part of python 3.3 where it is know as
10 unittest.mock.
  /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...]
  /frameworks/base/test-runner/src/android/test/mock/
MockCursor.java 17 package android.test.mock;
29 * A mock {@link android.database.Cursor} class that isolates the test code from real
39 throw new UnsupportedOperationException("unimplemented mock method");
43 throw new UnsupportedOperationException("unimplemented mock method");
47 throw new UnsupportedOperationException("unimplemented mock method");
51 throw new UnsupportedOperationException("unimplemented mock method");
55 throw new UnsupportedOperationException("unimplemented mock method");
59 throw new UnsupportedOperationException("unimplemented mock method");
63 throw new UnsupportedOperationException("unimplemented mock method");
67 throw new UnsupportedOperationException("unimplemented mock method")
    [all...]
  /external/chromium_org/chrome/browser/printing/cloud_print/test/
DEPS 2 # Service-side mockup tests need service classes to mock.
  /external/chromium_org/components/cronet/android/test/assets/test/
redirect.html.mock-http-headers 2 Location: http://mock.http/success.txt
  /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/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/mockito/src/org/mockito/internal/configuration/
MockitoAnnotationsMockAnnotationProcessor.java 8 import org.mockito.MockitoAnnotations.Mock;
13 * Instantiates a mock on a field annotated by {@link Mock}
16 public class MockitoAnnotationsMockAnnotationProcessor implements FieldAnnotationProcessor<Mock> {
18 public Object process(Mock annotation, Field field) {
19 return Mockito.mock(field.getType(), field.getName());
MockAnnotationProcessor.java 7 import org.mockito.Mock;
14 * Instantiates a mock on a field annotated by {@link Mock}
16 public class MockAnnotationProcessor implements FieldAnnotationProcessor<Mock> {
17 public Object process(Mock annotation, Field field) {
31 // see @Mock answer default value
33 return Mockito.mock(field.getType(), mockSettings);
  /external/chromium_org/net/data/url_fetcher_impl_unittest/
server-unavailable.html 1 This file is boring; all the action's in the .mock-http-headers.
  /external/chromium_org/net/data/url_request_unittest/
hpkp-headers.html 1 This file is boring; all the action's in the .mock-http-headers.
hsts-and-hpkp-headers.html 1 This file is boring; all the action's in the .mock-http-headers.
hsts-and-hpkp-headers2.html 1 This file is boring; all the action's in the .mock-http-headers.
hsts-headers.html 1 This file is boring; all the action's in the .mock-http-headers.
hsts-multiple-headers.html 1 This file is boring; all the action's in the .mock-http-headers.
with-headers.html 1 This file is boring; all the action's in the .mock-http-headers.
  /external/chromium_org/third_party/webrtc/modules/audio_processing/
audio_processing_impl_unittest.cc 35 MockInitialize mock(config);
36 ON_CALL(mock, InitializeLocked())
37 .WillByDefault(Invoke(&mock, &MockInitialize::RealInitializeLocked));
39 EXPECT_CALL(mock, InitializeLocked()).Times(1);
40 mock.Initialize();
46 EXPECT_CALL(mock, InitializeLocked())
48 EXPECT_NOERR(mock.ProcessStream(&frame));
49 EXPECT_NOERR(mock.AnalyzeReverseStream(&frame));
53 EXPECT_CALL(mock, InitializeLocked())
55 EXPECT_NOERR(mock.ProcessStream(&frame))
    [all...]
  /external/chromium_org/tools/gyp/test/assembly/src/
as.bat 2 :: Mock windows assembler.
  /external/chromium_org/tools/usb_gadget/
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/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...]
  /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/internal/configuration/injection/filter/
OngoingInjecter.java 8 * Allow the ongoing injection of a mock candidate.
13 * Inject the mock.
19 * @return the mock that was injected, <code>null</code> otherwise.

Completed in 6641 milliseconds

1 2 3 4 5 6 7 8 91011>>