Package org.robolectric.shadows
Class ShadowVpnService
java.lang.Object
org.robolectric.shadows.ShadowContextWrapper
org.robolectric.shadows.ShadowService
org.robolectric.shadows.ShadowVpnService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Intent
protected boolean
No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.static void
reset()
static void
setPrepareResult
(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, stopSelfResult
Methods 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
-