Merge "Fixed unicorn multi-enrollment flow." into tm-d1-dev

This commit is contained in:
Joshua Mccloskey
2022-06-29 16:48:53 +00:00
committed by Android (Google) Code Review
9 changed files with 35 additions and 16 deletions

View File

@@ -82,7 +82,7 @@ public class ParentalConsentHelperTest {
}
@Test
public void testLaunchNext_face_and_fingerprint_all_consent() {
public void testLaunchNext__fingerprint_all_consent() {
testLaunchNext(
true /* requireFace */, true /* grantFace */,
true /* requireFingerprint */, true /* grantFace */,
@@ -158,13 +158,13 @@ public class ParentalConsentHelperTest {
boolean requireFingerprint, boolean grantFingerprint,
long gkpw) {
final List<Pair<String, Boolean>> expectedLaunches = new ArrayList<>();
if (requireFace) {
expectedLaunches.add(new Pair(FaceEnrollParentalConsent.class.getName(), grantFace));
}
if (requireFingerprint) {
expectedLaunches.add(
new Pair(FingerprintEnrollParentalConsent.class.getName(), grantFingerprint));
}
if (requireFace) {
expectedLaunches.add(new Pair(FaceEnrollParentalConsent.class.getName(), grantFace));
}
// initial consent status
final ParentalConsentHelper helper = new ParentalConsentHelper(gkpw);