commit | c68dc937884dcab9c67945c12131d8170e7c3c75 | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Thu Jul 06 10:05:12 2023 +0100 |
committer | David Drysdale <drysdale@google.com> | Thu Jul 06 10:23:55 2023 +0100 |
tree | b7465961804880e52b459c0926e026bb39fe0000 | |
parent | 97af8becd7703466df7aae368d003912e251ef45 [diff] [blame] |
Allow extra ID attestation error codes When deliberately testing invalid ID attestation, use the helper function (which checks the error return code is correct) in one more place. Test: VtsAidlKeyMintTargetTest Bug: 286733800 Change-Id: I6ea5bd7ee19b3b172330117bfde1b16745debba7
diff --git a/security/keymint/aidl/vts/functional/KeyMintTest.cpp b/security/keymint/aidl/vts/functional/KeyMintTest.cpp index 051ace4..1e61a18 100644 --- a/security/keymint/aidl/vts/functional/KeyMintTest.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintTest.cpp
@@ -2070,7 +2070,8 @@ builder, &key_blob, &key_characteristics); } } - ASSERT_EQ(error, ErrorCode::CANNOT_ATTEST_IDS); + + device_id_attestation_check_acceptable_error(tag.tag, error); } }