Synchronize tests with the OEMCrypto repo

The tests WvGenericCryptoTest.GenericEncryptNoKey and
WvGenericCryptoTest.GenericDecryptNoKey will now accept a wider range of
errors codes from the OEMCrypto implementation. This brings these tests
in-line with the latest update to the OEMCrypto repo.
This commit is contained in:
John W. Bruce
2021-09-14 13:07:59 -07:00
parent 9d17a531ee
commit 8c17574083

View File

@@ -115,7 +115,7 @@ TEST_F(WvGenericCryptoTest, GenericEncryptNoKey) {
cdm_sts = cdm_engine_.GenericEncrypt(
holder_.session_id(), in_buffer_, key_id, iv_,
wvcdm::kEncryptionAlgorithmAesCbc128, &out_buffer);
EXPECT_EQ(NO_CONTENT_KEY_2, cdm_sts);
EXPECT_NE(NO_ERROR, cdm_sts);
EXPECT_NE(encrypted, out_buffer);
}
@@ -158,7 +158,7 @@ TEST_F(WvGenericCryptoTest, GenericDecryptNoKey) {
cdm_sts = cdm_engine_.GenericDecrypt(
holder_.session_id(), in_buffer_, key_id, iv_,
wvcdm::kEncryptionAlgorithmAesCbc128, &out_buffer);
EXPECT_EQ(NO_CONTENT_KEY_2, cdm_sts);
EXPECT_NE(NO_ERROR, cdm_sts);
EXPECT_NE(decrypted, out_buffer);
}