commit | 3f6ab601b9d175f59e1fb0007005582ae499aba5 | [log] [tgz] |
---|---|---|
author | David Drysdale <drysdale@google.com> | Thu Jul 06 10:05:12 2023 +0100 |
committer | David Drysdale <drysdale@google.com> | Wed Jul 12 13:58:41 2023 +0000 |
tree | 3d8122de02c6380f5fcab1c2313e6f4934123495 | |
parent | 7ddd478150c396c83ab418c3ffac2869ac1ee4b8 [diff] |
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 (cherry-picked from commit c68dc937884dcab9c67945c12131d8170e7c3c75) Merged-In: I6ea5bd7ee19b3b172330117bfde1b16745debba7
diff --git a/security/keymint/aidl/vts/functional/KeyMintTest.cpp b/security/keymint/aidl/vts/functional/KeyMintTest.cpp index 4e746b2..18d49e9 100644 --- a/security/keymint/aidl/vts/functional/KeyMintTest.cpp +++ b/security/keymint/aidl/vts/functional/KeyMintTest.cpp
@@ -1938,7 +1938,8 @@ builder, &key_blob, &key_characteristics); } } - ASSERT_EQ(error, ErrorCode::CANNOT_ATTEST_IDS); + + device_id_attestation_check_acceptable_error(tag.tag, error); } }