Merge "Fix QueryKeyControl Unit Test" into mnc-dev

This commit is contained in:
Fred Gylys-Colwell
2015-06-17 23:35:23 +00:00
committed by Android (Google) Code Review

View File

@@ -2291,7 +2291,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;