Clean symbol export on mod mock

Merge from Widevine repo of http://go/wvgerrit/42281

This cleans up some of the oemcrypto mock code.  This code is only
used for testing.

bug: 72831885
bug: 69271232
Change-Id: I8add162839d6febe56a89df84e8ae0cf0b97a2d9
This commit is contained in:
Fred Gylys-Colwell
2018-02-05 11:53:27 -08:00
parent 51212b1505
commit ee43f9b411
4 changed files with 20 additions and 25 deletions

View File

@@ -115,7 +115,7 @@ extern "C" OEMCryptoResult OEMCrypto_OpenSession(OEMCrypto_SESSION* session) {
SessionId sid = crypto_engine->CreateSession();
*session = (OEMCrypto_SESSION)sid;
if (LogCategoryEnabled(kLoggingTraceOEMCryptoCalls)) {
LOGD("[OEMCrypto_OpenSession(): SID=%08x]", sid);
LOGD("[OEMCrypto_OpenSession(): SID=%08X]", sid);
}
return OEMCrypto_SUCCESS;
}
@@ -238,7 +238,7 @@ extern "C" OEMCryptoResult OEMCrypto_GenerateNonce(OEMCrypto_SESSION session,
session_ctx->AddNonce(nonce_value);
*nonce = nonce_value;
if (LogCategoryEnabled(kLoggingTraceOEMCryptoCalls)) {
LOGI("nonce = %08x\n", nonce_value);
LOGI("nonce = %08X\n", nonce_value);
}
return OEMCrypto_SUCCESS;
}