Update tests for mandatory biometrics
Flag: android.hardware.biometrics.Flag.MANDATORY_BIOMETRICS Fixes: 352036009 Test: atest MainClearTest CombinedBiometricProfileSettingsTest Change-Id: If778dcb138b82814621186ddd7f89d77dc4a9b18
This commit is contained in:
@@ -138,7 +138,11 @@ public class MainClearTest {
|
||||
// Make scrollView only have one child
|
||||
when(mScrollView.getChildAt(0)).thenReturn(mLinearLayout);
|
||||
when(mScrollView.getChildCount()).thenReturn(1);
|
||||
doReturn(mActivity).when(mMainClear).getActivity();
|
||||
doReturn(mMockActivity).when(mMainClear).getActivity();
|
||||
when(mMockActivity.getSystemService(BiometricManager.class)).thenReturn(mBiometricManager);
|
||||
when(mBiometricManager.canAuthenticate(
|
||||
BiometricManager.Authenticators.MANDATORY_BIOMETRICS))
|
||||
.thenReturn(BiometricManager.BIOMETRIC_ERROR_HW_UNAVAILABLE);
|
||||
}
|
||||
|
||||
@After
|
||||
|
Reference in New Issue
Block a user