diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-04-20 21:09:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-20 21:09:21 +0000 |
commit | 8ad8c284ca31abac1a538f06205441937a4d6ded (patch) | |
tree | 8fedbca5d9ee8a075772848396461423fe691394 /tests | |
parent | 9d1fa2cdb82d7435d25d88854726528962ca79c9 (diff) | |
parent | c7f7a636e55d4f2acbbc7f5f6b85c4f1d3b69cac (diff) |
Merge "WifiServiceImpl: Always Use enforceCallingOrSelfPermission" into rvc-dev
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java index fcc290560..a11fc6dcb 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java @@ -4602,7 +4602,7 @@ public class WifiServiceImplTest extends WifiBaseTest { @Test public void setDeviceMobilityStateThrowsSecurityExceptionOnMissingPermissions() { doThrow(new SecurityException()).when(mContext) - .enforceCallingPermission( + .enforceCallingOrSelfPermission( eq(android.Manifest.permission.WIFI_SET_DEVICE_MOBILITY_STATE), eq("WifiService")); try { @@ -4630,7 +4630,7 @@ public class WifiServiceImplTest extends WifiBaseTest { @Test public void testAddStatsListenerThrowsSecurityExceptionOnMissingPermissions() { doThrow(new SecurityException()).when(mContext) - .enforceCallingPermission( + .enforceCallingOrSelfPermission( eq(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE), eq("WifiService")); try { @@ -4662,7 +4662,7 @@ public class WifiServiceImplTest extends WifiBaseTest { @Test public void testRemoveStatsListenerThrowsSecurityExceptionOnMissingPermissions() { doThrow(new SecurityException()).when(mContext) - .enforceCallingPermission( + .enforceCallingOrSelfPermission( eq(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE), eq("WifiService")); try { @@ -4703,7 +4703,7 @@ public class WifiServiceImplTest extends WifiBaseTest { @Test public void testUpdateWifiUsabilityScoreThrowsSecurityExceptionOnMissingPermissions() { doThrow(new SecurityException()).when(mContext) - .enforceCallingPermission( + .enforceCallingOrSelfPermission( eq(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE), eq("WifiService")); try { @@ -5475,7 +5475,7 @@ public class WifiServiceImplTest extends WifiBaseTest { @Test public void testSetNetworkScorerThrowsSecurityExceptionOnMissingPermissions() { doThrow(new SecurityException()).when(mContext) - .enforceCallingPermission( + .enforceCallingOrSelfPermission( eq(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE), eq("WifiService")); try { @@ -5505,7 +5505,7 @@ public class WifiServiceImplTest extends WifiBaseTest { @Test public void testClearNetworkScorerThrowsSecurityExceptionOnMissingPermissions() { doThrow(new SecurityException()).when(mContext) - .enforceCallingPermission( + .enforceCallingOrSelfPermission( eq(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE), eq("WifiService")); try { |