From 103fb4f263620d375b995ea9dfcfafa6cd78ce85 Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Mon, 1 Feb 2021 12:35:28 -0800 Subject: [PATCH] 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 --- .../1.0/vts/functional/VtsHalGatekeeperV1_0TargetTest.cpp | 2 ++ 1 file changed, 2 insertions(+) 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"); }