Update to ClearCopyTestAPI10

Older versions of OEMCrypto spec did not require
OEMCrypto_ERROR_SHORT_BUFFER, and it is difficult for an OEMCrypto to
pass both this test and the unit tests shipped with CE CDM.

Bug: 166529517
This commit is contained in:
Fred Gylys-Colwell
2021-08-04 20:20:08 +00:00
parent bb16924e69
commit 7caea8d5c9

View File

@@ -692,8 +692,8 @@ TEST_F(OEMCryptoClientTest, ClearCopyTestAPI10) {
OEMCrypto_FirstSubsample | OEMCrypto_LastSubsample));
dest_buffer_descriptor.buffer.clear.address = output_buffer.data();
dest_buffer_descriptor.buffer.clear.address_length = output_buffer.size() - 1;
ASSERT_EQ(
OEMCrypto_ERROR_SHORT_BUFFER,
ASSERT_NE(
OEMCrypto_SUCCESS,
OEMCrypto_CopyBuffer(s.session_id(), input_buffer.data(),
input_buffer.size(), &dest_buffer_descriptor,
OEMCrypto_FirstSubsample | OEMCrypto_LastSubsample));