summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2019-10-11 07:34:11 -0700
committerRoshan Pius <rpius@google.com>2019-10-11 18:07:23 +0000
commit5a00530815780fd21d7b120bbd471fadf60f1117 (patch)
tree03ccb53955508f821bc1a0835a87206eb44dffbd
parent9a99a8a4fcdc64c67f016f5a07ffae0792d5e5cf (diff)
WifiServiceImplTest: Fix errorprone errors
Forgot to add @Test for new unit tests. Bug: 142518824 Test: Wifi related erorrprone error no longer seen. Change-Id: I9522f9fd3583e78ff24d0e83c220380291bc21b6 Merged-In: I9522f9fd3583e78ff24d0e83c220380291bc21b6
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
index 494d9011b..3f7d73bb4 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
@@ -2792,6 +2792,7 @@ public class WifiServiceImplTest {
* Verify the call to getPasspointConfigurations when the caller doesn't have
* NETWORK_SETTINGS and NETWORK_SETUP_WIZARD permissions.
*/
+ @Test
public void testGetPasspointConfigurationsWithOutPrivilegedPermissions() {
when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false);
when(mWifiPermissionsUtil.checkNetworkSetupWizardPermission(anyInt())).thenReturn(false);
@@ -2805,6 +2806,7 @@ public class WifiServiceImplTest {
* Verify that the call to getPasspointConfigurations when the caller does have
* NETWORK_SETTINGS permission.
*/
+ @Test
public void testGetPasspointConfigurationsWithPrivilegedPermissions() {
when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true);
@@ -2817,6 +2819,7 @@ public class WifiServiceImplTest {
* Verify the call to removePasspointConfigurations when the caller doesn't have
* NETWORK_SETTINGS and NETWORK_CARRIER_PROVISIONING permissions.
*/
+ @Test
public void testRemovePasspointConfigurationWithOutPrivilegedPermissions() {
when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false);
when(mWifiPermissionsUtil.checkNetworkCarrierProvisioningPermission(anyInt())).thenReturn(
@@ -2830,6 +2833,7 @@ public class WifiServiceImplTest {
* Verify the call to removePasspointConfigurations when the caller does have
* NETWORK_CARRIER_PROVISIONING permission.
*/
+ @Test
public void testRemovePasspointConfigurationWithPrivilegedPermissions() {
when(mWifiPermissionsUtil.checkNetworkCarrierProvisioningPermission(anyInt())).thenReturn(
true);