diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2019-06-20 18:49:48 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2019-09-03 12:14:23 +0900 |
commit | ea9f7e39278a49290809ec8ccad2a34f5f20d41f (patch) | |
tree | d1d697b812cc2401dc7c065347706369d0e6e720 /src/com/android/server/util/PermissionUtil.java | |
parent | 967dd0a233581d9f2373cdfa2b2b74e31073302a (diff) |
Refactor NetworkStackService for testability
Refactor some methods to allow integration testing between
ConnectivityService and NetworkStack. The integration tests override
some NetworkStack methods to mock permission checks or NetworkMonitor
network requests.
Test: atest NetworkStackTests
Change-Id: Ib5b4458f0b4d1423759e1e4016ab961d3ced7b48
Diffstat (limited to 'src/com/android/server/util/PermissionUtil.java')
-rw-r--r-- | src/com/android/server/util/PermissionUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/server/util/PermissionUtil.java b/src/com/android/server/util/PermissionUtil.java index c4d736b..28dad25 100644 --- a/src/com/android/server/util/PermissionUtil.java +++ b/src/com/android/server/util/PermissionUtil.java @@ -34,7 +34,7 @@ public final class PermissionUtil { * Check that the caller is allowed to communicate with the network stack. * @throws SecurityException The caller is not allowed to communicate with the network stack. */ - public static void checkNetworkStackCallingPermission() { + public static void enforceNetworkStackCallingPermission() { final int caller = getCallingUid(); if (caller == Process.SYSTEM_UID) { checkConsistentSystemPid(); |