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

1 2 3 4 5 6 7 8 91011>>

  /external/chromium-trace/catapult/telemetry/telemetry/testing/
simple_mock_unittest.py 13 mock = simple_mock.MockObject()
14 mock.ExpectCall('foo')
16 mock.foo()
19 mock = simple_mock.MockObject()
20 mock.ExpectCall('foo').WillReturn(7)
22 ret = mock.foo()
26 mock = simple_mock.MockObject()
27 mock.ExpectCall('foo').WithArgs(3, 4)
29 mock.foo(3, 4)
32 mock = simple_mock.MockObject(
    [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/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
MockWidget.java 1 package com.androidplot.mock;
4 import mockit.Mock;
10 @Mock
15 @Mock
MockCanvas.java 1 package com.androidplot.mock;
6 import mockit.Mock;
14 @Mock
19 @Mock
24 @Mock
27 @Mock
32 @Mock
MockPointF.java 1 package com.androidplot.mock;
4 import mockit.Mock;
12 @Mock
15 @Mock
20 @Mock
MockLooper.java 1 package com.androidplot.mock;
4 import mockit.Mock;
16 @Mock
21 @Mock
MockPixelUtils.java 1 package com.androidplot.mock;
7 import mockit.Mock;
13 @Mock
18 @Mock
MockSizeMetrics.java 1 package com.androidplot.mock;
6 import mockit.Mock;
12 @Mock
17 @Mock
  /external/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/google-breakpad/src/testing/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/libchrome/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/chromium-trace/catapult/third_party/mock/
README.chromium 1 Name: mock
2 URL: https://pypi.python.org/pypi/mock
7 mock is a library for testing in Python. It allows you to replace parts of
8 your system under test with mock objects and make assertions about how they
12 unittest.mock.
15 Removed everything except for mock.py (including setup script and documentation).
  /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-trace/catapult/telemetry/third_party/mock/
README.chromium 1 Name: mock
2 Short Name: mock
3 URL: http://www.voidspace.org.uk/python/mock/
13 Includes only mock.py and LICENSE.txt.
  /external/v8/tools/gyp/test/assembly/src/
as.bat 2 :: Mock windows assembler.
  /external/webrtc/webrtc/modules/audio_processing/
audio_processing_impl_unittest.cc 37 MockInitialize mock(config);
38 ON_CALL(mock, InitializeLocked())
39 .WillByDefault(Invoke(&mock, &MockInitialize::RealInitializeLocked));
41 EXPECT_CALL(mock, InitializeLocked()).Times(1);
42 mock.Initialize();
48 EXPECT_CALL(mock, InitializeLocked())
50 EXPECT_NOERR(mock.ProcessStream(&frame));
51 EXPECT_NOERR(mock.AnalyzeReverseStream(&frame));
55 EXPECT_CALL(mock, InitializeLocked())
57 EXPECT_NOERR(mock.ProcessStream(&frame))
    [all...]
  /frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/util/
MockWindow.java 25 throw new UnsupportedOperationException("Unexpected method call on mock");
30 throw new UnsupportedOperationException("Unexpected method call on mock");
35 throw new UnsupportedOperationException("Unexpected method call on mock");
40 throw new UnsupportedOperationException("Unexpected method call on mock");
45 throw new UnsupportedOperationException("Unexpected method call on mock");
50 throw new UnsupportedOperationException("Unexpected method call on mock");
55 throw new UnsupportedOperationException("Unexpected method call on mock");
60 throw new UnsupportedOperationException("Unexpected method call on mock");
65 throw new UnsupportedOperationException("Unexpected method call on mock");
70 throw new UnsupportedOperationException("Unexpected method call on mock");
    [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;
  /frameworks/base/test-runner/src/android/test/mock/
MockCursor.java 17 package android.test.mock;
28 * A mock {@link android.database.Cursor} class that isolates the test code from real
43 throw new UnsupportedOperationException("unimplemented mock method");
48 throw new UnsupportedOperationException("unimplemented mock method");
53 throw new UnsupportedOperationException("unimplemented mock method");
58 throw new UnsupportedOperationException("unimplemented mock method");
63 throw new UnsupportedOperationException("unimplemented mock method");
68 throw new UnsupportedOperationException("unimplemented mock method");
73 throw new UnsupportedOperationException("unimplemented mock method");
78 throw new UnsupportedOperationException("unimplemented mock method")
    [all...]
  /external/chromium-trace/catapult/dashboard/dashboard/
issue_tracker_service_test.py 6 import mock namespace
15 @mock.patch('issue_tracker_service.discovery.build', mock.MagicMock())
19 service = issue_tracker_service.IssueTrackerService(mock.MagicMock())
20 service._MakeCommentRequest = mock.Mock()
27 service = issue_tracker_service.IssueTrackerService(mock.MagicMock())
28 service._MakeCommentRequest = mock.Mock()
33 service = issue_tracker_service.IssueTrackerService(mock.MagicMock()
    [all...]

Completed in 1271 milliseconds

1 2 3 4 5 6 7 8 91011>>