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
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java b/tests/wifitests/src/com/android/server/wifi/WifiServiceImplTest.java
index 494d901..3f7d73b 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 @@
* 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 @@
* 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 @@
* 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 @@
* Verify the call to removePasspointConfigurations when the caller does have
* NETWORK_CARRIER_PROVISIONING permission.
*/
+ @Test
public void testRemovePasspointConfigurationWithPrivilegedPermissions() {
when(mWifiPermissionsUtil.checkNetworkCarrierProvisioningPermission(anyInt())).thenReturn(
true);