Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91af7c65 authored by Cody Kesting's avatar Cody Kesting Committed by Android (Google) Code Review
Browse files

Merge "Clean up unit testing for ConnectivityDiagnostics." into rvc-dev

parents e3e18663 69fad4c7
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -6810,15 +6810,11 @@ public class ConnectivityServiceTest {

        mServiceContext.setPermission(android.Manifest.permission.NETWORK_STACK, PERMISSION_DENIED);

        try {
        assertFalse(
                "Mismatched uid/package name should not pass the location permission check",
                mService.checkConnectivityDiagnosticsPermissions(
                        Process.myPid() + 1, Process.myUid() + 1, naiWithoutUid,
                        mContext.getOpPackageName()));
        } catch (SecurityException e) {
            fail("checkConnectivityDiagnosticsPermissions shouldn't surface a SecurityException");
        }
    }

    @Test