summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2019-11-13 13:32:12 -0800
committerRoshan Pius <rpius@google.com>2019-11-13 16:25:13 -0800
commit1691b1fa094be104dca0adc32a5deb9236eef57b (patch)
treea7062d91c97b256cc85d27a01d42d29a0d75c037 /tests
parent77f8ce94b89bae2a15ee1e7aab6d8c4fac19fcbd (diff)
WifiStackService: Use local constants for notification channels
The fact that we're a different APK/Apex now, we can no longer share the notification channels created by system_server. So, stop referring to the channel name constants. Bug: 142092496 Test: Still able to see all the wifi related notifications (ONA, etc) Change-Id: I1c64f372cceb284e778159e336a060a33f49a862
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WrongPasswordNotifierTest.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WrongPasswordNotifierTest.java b/tests/wifitests/src/com/android/server/wifi/WrongPasswordNotifierTest.java
index 28fbc9371..ae184bec7 100644
--- a/tests/wifitests/src/com/android/server/wifi/WrongPasswordNotifierTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WrongPasswordNotifierTest.java
@@ -28,8 +28,6 @@ import android.provider.Settings;
import androidx.test.filters.SmallTest;
-import com.android.internal.notification.SystemNotificationChannels;
-
import org.junit.Before;
import org.junit.Test;
import org.mockito.Answers;
@@ -73,7 +71,7 @@ public class WrongPasswordNotifierTest extends WifiBaseTest {
@Test
public void onWrongPasswordError() throws Exception {
when(mFrameworkFacade.makeNotificationBuilder(any(),
- eq(SystemNotificationChannels.NETWORK_ALERTS))).thenReturn(mNotificationBuilder);
+ eq(WifiStackService.NOTIFICATION_NETWORK_ALERTS))).thenReturn(mNotificationBuilder);
mWrongPassNotifier.onWrongPasswordError(TEST_SSID);
verify(mNotificationManager).notify(eq(WrongPasswordNotifier.NOTIFICATION_ID), any());
ArgumentCaptor<Intent> intent = ArgumentCaptor.forClass(Intent.class);