diff options
author | Marco Nelissen <marcone@google.com> | 2021-02-01 12:35:28 -0800 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2021-02-26 12:06:20 -0800 |
commit | 103fb4f263620d375b995ea9dfcfafa6cd78ce85 (patch) | |
tree | 8e0c96c2c2141836c27fc52345dcbc0dcb723b63 /gatekeeper | |
parent | 6bb888fecf6f8d41f6af627e34d40f555c56decd (diff) |
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
Diffstat (limited to 'gatekeeper')
-rw-r--r-- | gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp b/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp index e74cca9ced..7d32ced588 100644 --- a/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp +++ b/gatekeeper/1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp @@ -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"); } |