From dfa081da0cb40223af3d3b6fc0478a82fed298fc Mon Sep 17 00:00:00 2001 From: Andreas Miko Date: Thu, 14 Dec 2023 12:25:19 +0000 Subject: [PATCH] Fix PinPrivacyPreferenceControllerTest isAvailable_lockSetToPinOrPw_shouldReturnTrue() was never functional and is not a valid test case because the functionality was removed in a later patchset within ag/21369281 Test: PinPrivacyPreferenceControllerTest Bug: b/313612259 Flag: NONE Change-Id: Id8c91b8d7267a74eb84225e73043f1d4308b6ce0 --- .../screenlock/PinPrivacyPreferenceControllerTest.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/robotests/src/com/android/settings/security/screenlock/PinPrivacyPreferenceControllerTest.java b/tests/robotests/src/com/android/settings/security/screenlock/PinPrivacyPreferenceControllerTest.java index 4ee3b55185e..f7bd108e798 100644 --- a/tests/robotests/src/com/android/settings/security/screenlock/PinPrivacyPreferenceControllerTest.java +++ b/tests/robotests/src/com/android/settings/security/screenlock/PinPrivacyPreferenceControllerTest.java @@ -67,14 +67,6 @@ public class PinPrivacyPreferenceControllerTest { assertThat(mController.isAvailable()).isTrue(); } - @Ignore("b/313612259") - @Test - public void isAvailable_lockSetToPinOrPw_shouldReturnTrue() { - when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)).thenReturn( - CREDENTIAL_TYPE_PASSWORD_OR_PIN); - assertThat(mController.isAvailable()).isTrue(); - } - @Test public void isAvailable_lockSetToOther_shouldReturnFalse() { when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)).thenReturn(