diff options
author | Roshan Pius <rpius@google.com> | 2019-11-06 21:45:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-11-06 21:45:39 +0000 |
commit | 3e60832ea4810660a17d699fc30c4664c74df459 (patch) | |
tree | 53d945547dc0da1db8b83ea4be8ca5f7304f8bd2 /tests | |
parent | c80e77863c27765f1ca5879f00164f433acc6680 (diff) | |
parent | 60b37aedb5caed51700dcdd77b1d10375ee446a8 (diff) |
Merge "Wifistack: Request signature permissions"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java b/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java index bdb82b20a..f88272d45 100644 --- a/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java +++ b/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java @@ -458,9 +458,8 @@ public class OpenNetworkNotifierTest extends WifiBaseTest { /** Verifies that {@link UserManager#DISALLOW_CONFIG_WIFI} disables the feature. */ @Test public void userHasDisallowConfigWifiRestriction_notificationNotDisplayed() { - // TODO (b/142234604): This will not work on multi-user device scenarios. when(mUserManager.hasUserRestrictionForUser(UserManager.DISALLOW_CONFIG_WIFI, - UserHandle.CURRENT_OR_SELF)) + UserHandle.CURRENT)) .thenReturn(true); mNotificationController.handleScanResults(mOpenNetworks); @@ -479,9 +478,8 @@ public class OpenNetworkNotifierTest extends WifiBaseTest { ConnectToNetworkNotificationAndActionCount.NOTIFICATION_RECOMMEND_NETWORK); verify(mNotificationManager).notify(anyInt(), any()); - // TODO (b/142234604): This will not work on multi-user device scenarios. when(mUserManager.hasUserRestrictionForUser(UserManager.DISALLOW_CONFIG_WIFI, - UserHandle.CURRENT_OR_SELF)) + UserHandle.CURRENT)) .thenReturn(true); mNotificationController.handleScanResults(mOpenNetworks); |