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 c68dc93788)
Merged-In: I6ea5bd7ee19b3b172330117bfde1b16745debba7
This commit is contained in:
David Drysdale
2023-07-06 10:05:12 +01:00
parent 7ddd478150
commit 3f6ab601b9

View File

@@ -1938,7 +1938,8 @@ TEST_P(NewKeyGenerationTest, EcdsaAttestationTags) {
builder, &key_blob, &key_characteristics);
}
}
ASSERT_EQ(error, ErrorCode::CANNOT_ATTEST_IDS);
device_id_attestation_check_acceptable_error(tag.tag, error);
}
}