/external/webkit/Source/WebKit/chromium/tests/ |
H A D | CCThreadTaskTest.cpp | 48 Mock mock; local 49 EXPECT_CALL(mock, method0()).Times(1); 50 EXPECT_CALL(mock, method1(9)).Times(1); 51 EXPECT_CALL(mock, method2(9, 8)).Times(1); 52 EXPECT_CALL(mock, method3(9, 8, 7)).Times(1); 53 EXPECT_CALL(mock, method4(9, 8, 7, 6)).Times(1); 55 createCCThreadTask(&mock, &Mock::method0)->performTask(); 56 createCCThreadTask(&mock, &Mock::method1, 9)->performTask(); 57 createCCThreadTask(&mock, &Mock::method2, 9, 8)->performTask(); 58 createCCThreadTask(&mock, [all...] |
/external/littlemock/src/com/google/testing/littlemock/ |
H A D | Behaviour.java | 25 /** Attaches the given behaviour to the next method call of this mock. */ 26 public <T> T when(T mock); argument
|
H A D | LittleMock.java | 44 * source dexmaker project http://code.google.com/p/dexmaker/ we can now mock concrete classes 59 * Foo mockFoo = mock(Foo.class); // Create the mock. 60 * doReturn("hello").when(mockFoo).aString(anyInt()); // Stub the mock to return "hello". 62 * assertEquals("hello", mockFoo.aString(5)); // Use the mock - performs as expected. 68 * Foo mockFoo = mock(Foo.class); 148 /** Begins a verification step on a mock: the next method invocation on that mock will verify. */ 149 public static <T> T verify(T mock, CallCount howManyTimes) { argument 150 return verify(mock, howManyTime 181 verify(T mock, CallCount howManyTimes, OrderChecker orderCounter) argument 203 verify(T mock) argument 223 verifyNoMoreInteractions(Object mock, StackTraceElement callSite) argument 407 public static <T> T mock(Class<T> clazz) { method in class:LittleMock 416 private static <T> T mock(Class<T> clazz, String fieldName) { method in class:LittleMock 457 when(T mock) argument 1113 getHandlerFrom(Object mock) argument 1280 verify(T mock) argument [all...] |
/external/apache-harmony/beans/src/test/support/java/org/apache/harmony/beans/tests/support/mock/ |
H A D | MockFakeEvent.java | 18 package org.apache.harmony.beans.tests.support.mock;
|
H A D | MockPropertyChangeEvent.java | 18 package org.apache.harmony.beans.tests.support.mock; 23 * This is a mock class for EventSetDescriptor testing
|
H A D | MockPropertyChangeListener2.java | 18 package org.apache.harmony.beans.tests.support.mock; 28 org.apache.harmony.beans.tests.support.mock.MockPropertyChangeEvent e);
|
H A D | MockPropertyChangeListener.java | 18 package org.apache.harmony.beans.tests.support.mock;
|
H A D | MockPropertyChangeValidListener.java | 18 package org.apache.harmony.beans.tests.support.mock;
|
/external/apache-harmony/beans/src/test/support/java/org/apache/harmony/beans/tests/support/beancontext/mock/ |
H A D | MockPropertyChangeListener.java | 18 package org.apache.harmony.beans.tests.support.beancontext.mock;
|
H A D | MockPropertyChangeListenerS.java | 18 package org.apache.harmony.beans.tests.support.beancontext.mock;
|
/external/chromium/base/ |
H A D | 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 85 MockSampleClass mock; local 97 MockSampleClass mock; local 112 MockSampleClass mock; local 126 MockSampleClass mock; local [all...] |
/external/chromium/chrome/browser/chromeos/login/ |
H A D | mock_owner_key_utils.h | 47 // Takes ownership of |mock|. 48 explicit MockInjector(MockKeyUtils* mock) : transient_(mock) { argument
|
H A D | login_utils.cc | 576 void LoginUtils::Set(LoginUtils* mock) { argument 577 LoginUtilsWrapper::GetInstance()->reset(mock);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | 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 [all...] |
H A D | 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 [all...] |
/external/chromium/chrome/browser/sync/glue/ |
H A D | frontend_data_type_controller_unittest.cc | 45 FrontendDataTypeControllerMock* mock) 49 mock_(mock) {} 61 // We mock the following methods because their default implementations do 41 FrontendDataTypeControllerFake( ProfileSyncFactory* profile_sync_factory, Profile* profile, ProfileSyncService* sync_service, FrontendDataTypeControllerMock* mock) argument
|
/external/chromium/testing/gmock/test/ |
H A D | gmock-generated-function-mockers_test.cc | 32 // Google Mock - a framework for writing C++ mock classes. 51 // mock for a function with const arguments, so we don't test such 119 // Makes sure that a mock function parameter can be named. 124 // Makes sure that a mock function parameter can be unnamed. 369 // Tests that template mock works. 371 MockStack<int> mock; local 373 EXPECT_CALL(mock, GetSize()) 377 EXPECT_CALL(mock, Push(_)); 379 EXPECT_CALL(mock, GetTop()) 381 EXPECT_CALL(mock, Po 424 MockStackWithCallType<int> mock; local 462 MockOverloadedOnArgNumber mock; local 487 MockOverloadedOnConstness mock; local [all...] |
H A D | gmock-internal-utils_test.cc | 32 // Google Mock - a framework for writing C++ mock classes. 521 DummyMock mock; local 522 EXPECT_CALL(mock, TestMethod()); 523 mock.TestMethod(); 529 HasSubstr("EXPECT_CALL(mock, TestMethod())")); 545 DummyMock mock; local 546 ON_CALL(mock, TestMethod()); 552 HasSubstr("ON_CALL(mock, TestMethod())")); 568 DummyMock mock; local 569 ON_CALL(mock, TestMethodAr [all...] |
H A D | 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 243 Mock mock; local 245 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Return()); 246 mock.VoidFromString(NULL); 251 Mock mock; local 254 EXPECT_CALL(mock, StringFromString(_)).WillOnce(Return(&ch)); 255 mock.StringFromString(NULL); 260 Mock mock; local 262 EXPECT_CALL(mock, VoidFromStrin 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...] |
H A D | gmock-actions_test.cc | 32 // Google Mock - a framework for writing C++ mock classes. 612 // Tests that DoDefault() does the default action for the mock method. 630 MockClass mock; local 631 EXPECT_CALL(mock, IntFunc(_)) 633 EXPECT_EQ(0, mock.IntFunc(true)); 639 MockClass mock; local 640 EXPECT_CALL(mock, Foo()) 643 mock.Foo(); 653 MockClass mock; local 654 EXPECT_CALL(mock, IntFun 671 MockClass mock; local 680 MockClass mock; local 690 MockClass mock; local [all...] |
/external/easymock/src/org/easymock/internal/ |
H A D | Invocation.java | 33 private final Object mock;
field in class:Invocation 42 public Invocation(Object mock, Method method, Object[] args) {
argument 43 this.mock = mock;
77 return mock;
95 return this.mock.equals(other.mock) && this.method.equals(other.method)
136 return this.mock.equals(actual.mock)
147 String mockName = mock [all...] |
/external/chromium/chrome/browser/policy/ |
H A D | device_management_service_unittest.cc | 105 DeviceRegisterResponseDelegateMock mock; local 106 EXPECT_CALL(mock, OnError(GetParam().expected_error_)); 108 backend_->ProcessRegisterRequest(kAuthToken, kDeviceId, request, &mock); 121 DeviceUnregisterResponseDelegateMock mock; local 122 EXPECT_CALL(mock, OnError(GetParam().expected_error_)); 124 backend_->ProcessUnregisterRequest(kDMToken, kDeviceId, request, &mock); 137 DevicePolicyResponseDelegateMock mock; local 138 EXPECT_CALL(mock, OnError(GetParam().expected_error_)); 144 backend_->ProcessPolicyRequest(kDMToken, kDeviceId, request, &mock); 289 DeviceRegisterResponseDelegateMock mock; local 324 DeviceUnregisterResponseDelegateMock mock; local 366 DeviceRegisterResponseDelegateMock mock; local 378 DeviceUnregisterResponseDelegateMock mock; local 390 DevicePolicyResponseDelegateMock mock; local 411 DeviceRegisterResponseDelegateMock mock; local 441 DevicePolicyResponseDelegateMock mock; local 460 DeviceRegisterResponseDelegateMock mock; local [all...] |
/external/easymock/src/org/easymock/ |
H A D | MockControl.java | 26 * mock object. For more information, see the EasyMock documentation.
28 * @param <T> type of the mock controlled
31 * used to create and control mock objects.
38 private final T mock;
field in class:MockControl 44 this.mock = ctrl.createMock(toMock);
48 * Creates a mock control object for the specified interface. The
49 * <code>MockControl</code> and its associated mock object will not check
50 * the order of expected method calls. An unexpected method call on the mock
53 * @param <T> type of the mock controlled
55 * the class of the interface to mock [all...] |
H A D | EasyMock.java | 27 * Since EasyMock 2.4, by default, a mock wasn't allowed to be called in
36 * Since EasyMock 2.5, by default a mock is thread-safe. For backward
37 * compatibility, this property can change the default. A given mock still
44 * Creates a mock object that implements the given interface, order checking
48 * the interface that the mock object should implement.
50 * the class of the interface that the mock object should
52 * @return the mock object.
59 * Creates a mock object that implements the given interface, order checking
61 * @param name the name of the mock object.
63 * the class of the interface that the mock objec 1630 checkOrder(Object mock, boolean state) argument 1644 getControl(Object mock) argument 1678 makeThreadSafe(Object mock, boolean threadSafe) argument 1694 checkIsUsedInOneThread(Object mock, boolean shouldBeUsedInOneThread) argument [all...] |
/external/android-mock/src/com/google/android/testing/mocking/ |
H A D | AndroidMock.java | 85 * Creates a mock object for the specified class, order checking 86 * is enabled by default. The difference between a strict mock and a normal mock is that a strict 87 * mock will not allow for invocations of the mock object to occur other than in the exact order 100 * @return the mock object. 107 * Creates a mock object for the specified class, order checking 108 * is enabled by default. The difference between a strict mock and a normal mock is that a strict 109 * mock wil 2564 checkOrder(Object mock, boolean orderCheckingOn) argument 2620 makeThreadSafe(Object mock, boolean threadSafe) argument [all...] |