Package org.robolectric.shadows
Class ShadowVpnService
java.lang.Object
org.robolectric.shadows.ShadowContextWrapper
org.robolectric.shadows.ShadowService
org.robolectric.shadows.ShadowVpnService
@Implements(android.net.VpnService.class) public class ShadowVpnService extends ShadowService
-
Constructor Summary
Constructors Constructor Description ShadowVpnService()
-
Method Summary
Modifier and Type Method Description protected static Intent
prepare(Context context)
protected boolean
protect(Socket socket)
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
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, 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
-