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:
@@ -115,7 +115,7 @@ TEST_F(WvGenericCryptoTest, GenericEncryptNoKey) {
|
|||||||
cdm_sts = cdm_engine_.GenericEncrypt(
|
cdm_sts = cdm_engine_.GenericEncrypt(
|
||||||
holder_.session_id(), in_buffer_, key_id, iv_,
|
holder_.session_id(), in_buffer_, key_id, iv_,
|
||||||
wvcdm::kEncryptionAlgorithmAesCbc128, &out_buffer);
|
wvcdm::kEncryptionAlgorithmAesCbc128, &out_buffer);
|
||||||
EXPECT_EQ(NO_CONTENT_KEY_2, cdm_sts);
|
EXPECT_NE(NO_ERROR, cdm_sts);
|
||||||
EXPECT_NE(encrypted, out_buffer);
|
EXPECT_NE(encrypted, out_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ TEST_F(WvGenericCryptoTest, GenericDecryptNoKey) {
|
|||||||
cdm_sts = cdm_engine_.GenericDecrypt(
|
cdm_sts = cdm_engine_.GenericDecrypt(
|
||||||
holder_.session_id(), in_buffer_, key_id, iv_,
|
holder_.session_id(), in_buffer_, key_id, iv_,
|
||||||
wvcdm::kEncryptionAlgorithmAesCbc128, &out_buffer);
|
wvcdm::kEncryptionAlgorithmAesCbc128, &out_buffer);
|
||||||
EXPECT_EQ(NO_CONTENT_KEY_2, cdm_sts);
|
EXPECT_NE(NO_ERROR, cdm_sts);
|
||||||
EXPECT_NE(decrypted, out_buffer);
|
EXPECT_NE(decrypted, out_buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user