Fix QueryKeyControl Unit Test
Merge from widevine repo of http://go/wvgerrit/14720 The QueryKeyControl test expects an error message that the output buffer is too small. However, it also gives a bad key id. Some devices were correctly returning key not found. This corrects the key id length so that the only error is that the buffer is too small. bug: 21881768 Change-Id: I96f59ede42eeddc9849fbac1e52acecdb562df08
This commit is contained in:
@@ -2285,7 +2285,7 @@ TEST_F(OEMCryptoSessionTests, QueryKeyControl) {
|
||||
size_t size = sizeof(block) - 1;
|
||||
OEMCryptoResult sts = OEMCrypto_QueryKeyControl(
|
||||
s.session_id(), s.license().keys[0].key_id,
|
||||
sizeof(s.license().keys[0].key_id), reinterpret_cast<uint8_t*>(&block),
|
||||
s.license().keys[0].key_id_length, reinterpret_cast<uint8_t*>(&block),
|
||||
&size);
|
||||
if (sts == OEMCrypto_ERROR_NOT_IMPLEMENTED) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user