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
This commit is contained in:
@@ -67,14 +67,6 @@ public class PinPrivacyPreferenceControllerTest {
|
|||||||
assertThat(mController.isAvailable()).isTrue();
|
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
|
@Test
|
||||||
public void isAvailable_lockSetToOther_shouldReturnFalse() {
|
public void isAvailable_lockSetToOther_shouldReturnFalse() {
|
||||||
when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)).thenReturn(
|
when(mLockPatternUtils.getCredentialTypeForUser(TEST_USER_ID)).thenReturn(
|
||||||
|
|||||||
Reference in New Issue
Block a user