Searched refs:mockService (Results 1 – 4 of 4) sorted by relevance
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | ServiceTest.java | 83 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()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | ServiceTest.java | 84 TestService mockService = control.createMock(TestService.class); in testCallMethod() local 86 mockService.foo(EasyMock.same(mockController), EasyMock.same(fooRequest), in testCallMethod() 88 mockService.bar(EasyMock.same(mockController), EasyMock.same(barRequest), in testCallMethod() 92 mockService.callMethod(fooDescriptor, mockController, in testCallMethod() 94 mockService.callMethod(barDescriptor, mockController, in testCallMethod() 101 TestService mockService = control.createMock(TestService.class); in testGetPrototype() local 103 assertSame(mockService.getRequestPrototype(fooDescriptor), in testGetPrototype() 105 assertSame(mockService.getResponsePrototype(fooDescriptor), in testGetPrototype() 107 assertSame(mockService.getRequestPrototype(barDescriptor), in testGetPrototype() 109 assertSame(mockService.getResponsePrototype(barDescriptor), in testGetPrototype()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 112 private <T> void mockService(String serviceName, Class<T> serviceClass, T service) { in mockService() method in MultipathPolicyTrackerTest 142 mockService(Context.CONNECTIVITY_SERVICE, ConnectivityManager.class, mCM); in setUp() 143 mockService(Context.NETWORK_POLICY_SERVICE, NetworkPolicyManager.class, mNPM); in setUp() 144 mockService(Context.NETWORK_STATS_SERVICE, NetworkStatsManager.class, mStatsManager); in setUp() 145 mockService(Context.TELEPHONY_SERVICE, TelephonyManager.class, mTelephonyManager); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeImplTest.java | 170 private static <T, I> IBinder mockService(Class<T> class1, Class<I> iface) { in mockService() method in ClientModeImplTest 189 IBinder p2pBinder = mockService(WifiP2pServiceImpl.class, IWifiP2pManager.class); in getFrameworkFacade() 209 IBinder batteryStatsBinder = mockService(BatteryStats.class, IBatteryStats.class); in getFrameworkFacade()
|