Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationInfoTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -314,12 +314,11 @@ public class NotificationInfoTest extends SysuiTestCase { @Test public void testLogBlockingHelperCounter_logsForBlockingHelper() throws Exception { // Bind notification logs an event, so this counts as one invocation for the metrics logger. mNotificationInfo.bindNotification(mMockPackageManager, mMockINotificationManager, TEST_PACKAGE_NAME, mNotificationChannel, 1, mSbn, null, null, null, false, true, true); mNotificationInfo.logBlockingHelperCounter("HowCanNotifsBeRealIfAppsArent"); verify(mMetricsLogger, times(2)).count(anyString(), anyInt()); verify(mMetricsLogger, times(1)).count(anyString(), anyInt()); } @Test Loading Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationInfoTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -314,12 +314,11 @@ public class NotificationInfoTest extends SysuiTestCase { @Test public void testLogBlockingHelperCounter_logsForBlockingHelper() throws Exception { // Bind notification logs an event, so this counts as one invocation for the metrics logger. mNotificationInfo.bindNotification(mMockPackageManager, mMockINotificationManager, TEST_PACKAGE_NAME, mNotificationChannel, 1, mSbn, null, null, null, false, true, true); mNotificationInfo.logBlockingHelperCounter("HowCanNotifsBeRealIfAppsArent"); verify(mMetricsLogger, times(2)).count(anyString(), anyInt()); verify(mMetricsLogger, times(1)).count(anyString(), anyInt()); } @Test Loading