Expand Gatekeeper test

Try verifying a previous enrollment after replacing it with a new
enrollment. This used to succeed when using in-memory records, but
should fail.

Bug: 160731903
Test: build, run

Change-Id: Ibe3c86c9b8b6afb7d2941c6805416817d7b76f21
This commit is contained in:
Marco Nelissen
2021-02-01 12:35:28 -08:00
parent 6bb888fecf
commit 103fb4f263

View File

@@ -306,6 +306,8 @@ TEST_P(GatekeeperHidlTest, UntrustedReenroll) {
if (first != nullptr && second != nullptr) {
EXPECT_NE(first->user_id, second->user_id);
}
// the old enrollment should be invalid now
verifyPassword(password, enrollRsp.data, 0, verifyRsp, false);
ALOGI("Testing Untrusted Reenroll done");
}