Home
last modified time | relevance | path

Searched refs:mockService (Results 1 – 8 of 8) sorted by relevance

/external/nos/host/android/hals/oemlock/test/
Dtest.cpp76 MockAvb mockService; in TEST() local
80 OemLock hal{mockService}; in TEST()
105 MockAvb mockService; in TEST() local
113 EXPECT_CALL(mockService, CarrierUnlock(CarrierUnlockEq(request), _)) in TEST()
116 OemLock hal{mockService}; in TEST()
122 MockAvb mockService; in TEST() local
124 EXPECT_CALL(mockService, CarrierUnlock(_, _)).WillOnce(Return(APP_ERROR_AVB_AUTHORIZATION)); in TEST()
126 OemLock hal{mockService}; in TEST()
132 MockAvb mockService; in TEST() local
134 EXPECT_CALL(mockService, CarrierUnlock(_, _)).WillOnce(Return(APP_ERROR_INTERNAL)); in TEST()
[all …]
/external/nos/host/android/hals/weaver/test/
Dtest.cpp44 MockWeaver mockService; in TEST() local
50 EXPECT_CALL(mockService, GetConfig(_, _)) in TEST()
53 Weaver hal{mockService}; in TEST()
63 MockWeaver mockService; in TEST() local
65 EXPECT_CALL(mockService, GetConfig(_, _)).WillOnce(Return(APP_ERROR_INTERNAL)); in TEST()
67 Weaver hal{mockService}; in TEST()
75 MockWeaver mockService; in TEST() local
77 EXPECT_CALL(mockService, GetConfig(_, _)).WillOnce(Return(APP_ERROR_RPC)); in TEST()
79 Weaver hal{mockService}; in TEST()
97 MockWeaver mockService; in TEST() local
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DServiceTest.java83 TestService mockService = control.createMock(TestService.class); in testCallMethod() local
85 mockService.foo(EasyMock.same(mockController), EasyMock.same(fooRequest), in testCallMethod()
87 mockService.bar(EasyMock.same(mockController), EasyMock.same(barRequest), in testCallMethod()
91 mockService.callMethod(fooDescriptor, mockController, in testCallMethod()
93 mockService.callMethod(barDescriptor, mockController, in testCallMethod()
100 TestService mockService = control.createMock(TestService.class); in testGetPrototype() local
102 assertSame(mockService.getRequestPrototype(fooDescriptor), in testGetPrototype()
104 assertSame(mockService.getResponsePrototype(fooDescriptor), in testGetPrototype()
106 assertSame(mockService.getRequestPrototype(barDescriptor), in testGetPrototype()
108 assertSame(mockService.getResponsePrototype(barDescriptor), in testGetPrototype()
/external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
DMockFinal.java67 PrintService mockService = mock(PrintService.class); in mockFinalMethodOfAndroidFrameworkClass() local
69 assertNull(mockService.onBind(new Intent())); in mockFinalMethodOfAndroidFrameworkClass()
72 when(mockService.onBind(any(Intent.class))).thenReturn(fakeBinder); in mockFinalMethodOfAndroidFrameworkClass()
74 assertSame(fakeBinder, mockService.onBind(new Intent())); in mockFinalMethodOfAndroidFrameworkClass()
/external/nos/host/android/hals/keymaster/test/
Dtest.cpp42 MockKeymaster mockService; in TEST() local
43 KeymasterDevice hal{mockService}; in TEST()
Dimport_wrapped_key_test.cpp314 MockKeymaster mockService; in TEST() local
360 mockService, in TEST()
373 KeymasterDevice hal{mockService}; in TEST()
Dimport_key_test.cpp338 MockKeymaster mockService; in TEST() local
375 mockService, in TEST()
379 KeymasterDevice hal{mockService}; in TEST()
/external/nos/host/generic/libnos/generator/test/
Dtest.cpp159 MockHello mockService; in TEST() local
165 EXPECT_CALL(mockService, Greet(_, _)) in TEST()
169 IHello& service = mockService; in TEST()