From 8c17574083abf60483fe6d2dad4953d1e46532ef Mon Sep 17 00:00:00 2001 From: "John W. Bruce" Date: Tue, 14 Sep 2021 13:07:59 -0700 Subject: [PATCH] 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. --- core/test/generic_crypto_unittest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/test/generic_crypto_unittest.cpp b/core/test/generic_crypto_unittest.cpp index 47952825..7c638f60 100644 --- a/core/test/generic_crypto_unittest.cpp +++ b/core/test/generic_crypto_unittest.cpp @@ -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); }