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:
@@ -692,8 +692,8 @@ TEST_F(OEMCryptoClientTest, ClearCopyTestAPI10) {
|
|||||||
OEMCrypto_FirstSubsample | OEMCrypto_LastSubsample));
|
OEMCrypto_FirstSubsample | OEMCrypto_LastSubsample));
|
||||||
dest_buffer_descriptor.buffer.clear.address = output_buffer.data();
|
dest_buffer_descriptor.buffer.clear.address = output_buffer.data();
|
||||||
dest_buffer_descriptor.buffer.clear.address_length = output_buffer.size() - 1;
|
dest_buffer_descriptor.buffer.clear.address_length = output_buffer.size() - 1;
|
||||||
ASSERT_EQ(
|
ASSERT_NE(
|
||||||
OEMCrypto_ERROR_SHORT_BUFFER,
|
OEMCrypto_SUCCESS,
|
||||||
OEMCrypto_CopyBuffer(s.session_id(), input_buffer.data(),
|
OEMCrypto_CopyBuffer(s.session_id(), input_buffer.data(),
|
||||||
input_buffer.size(), &dest_buffer_descriptor,
|
input_buffer.size(), &dest_buffer_descriptor,
|
||||||
OEMCrypto_FirstSubsample | OEMCrypto_LastSubsample));
|
OEMCrypto_FirstSubsample | OEMCrypto_LastSubsample));
|
||||||
|
|||||||
Reference in New Issue
Block a user