Package org.robolectric.shadows
Class ShadowVpnService
java.lang.Object
org.robolectric.shadows.ShadowContextWrapper
org.robolectric.shadows.ShadowService
org.robolectric.shadows.ShadowVpnService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Intentprotected booleanNo-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.static voidreset()static voidsetPrepareResult(Intent intent) Sets the return value of #prepare(Context).Methods inherited from class org.robolectric.shadows.ShadowService
getForegroundServiceType, getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResultMethods inherited from class org.robolectric.shadows.ShadowContextWrapper
clearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getAllStartedServices, getBroadcastIntents, getBroadcastIntentsForUser, getBroadcastOptions, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
-
Constructor Details
-
ShadowVpnService
public ShadowVpnService()
-
-
Method Details
-
prepare
-
setPrepareResult
Sets the return value of #prepare(Context). -
protect
No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor. -
reset
-