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
All Methods Static Methods Instance Methods Concrete Methods 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
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
-
-
-
-
Method Detail
-
prepare
@Implementation protected static Intent prepare(Context context)
-
setPrepareResult
public static void setPrepareResult(Intent intent)
Sets the return value of #prepare(Context).
-
protect
@Implementation protected boolean protect(Socket socket)
No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.
-
reset
@Resetter public static void reset()
-
-