Fix test failure in BiometricsUnlockControllerTest

onBiometricAuthenticated_onLockScreen checks if animateCollapsePanels is
triggered. Since keyguard remote animation is enabled, the keygaurd
unlock controller will fling the panel collapsed when it's ready, so
animateCollapsePanels is not triggered here anymore.

Bug: 243919840
Test: atest BiometricsUnlockControllerTest
Change-Id: Id5464482112bd7533d47fcf418a3e8b49ceb4ba6
This commit is contained in:
Issei Suzuki
2022-08-26 14:56:41 +00:00
parent 46b0e5ff1a
commit df438c6135

View File

@@ -314,13 +314,6 @@ public class BiometricsUnlockControllerTest extends SysuiTestCase {
mBiometricUnlockController.startWakeAndUnlock(
BiometricUnlockController.MODE_UNLOCK_COLLAPSING);
// THEN we collpase the panels and notify authenticated
verify(mShadeController).animateCollapsePanels(
/* flags */ anyInt(),
/* force */ eq(true),
/* delayed */ eq(false),
/* speedUpFactor */ anyFloat()
);
verify(mStatusBarKeyguardViewManager).notifyKeyguardAuthenticated(
/* strongAuth */ eq(false));
}