This is a merge of http://go/wvgerrit/13391 from the Widevine repository. This CL adds the OEMCrypto version 10 API to the header, and changes just enough code so that code still compiles. There are no unit tests or implementation. The level 3 libraries are just stubs so that tests will compile. level3/arm/libwvlevel3.a Level3 Library Mar 11 2015 13:33:21 level3/x86/libwvlevel3.a Level3 Library Mar 11 2015 15:20:27 Change-Id: I41de753a2a60da29b756c3327341ece72069d8bb
37 lines
936 B
C++
37 lines
936 B
C++
// Copyright 2014 Google Inc. All Rights Reserved.
|
|
//
|
|
// Mock implementation of OEMCrypto APIs
|
|
//
|
|
#include "oemcrypto_engine_mock.h"
|
|
|
|
namespace wvoec_mock {
|
|
|
|
// If local_display() returns true, we pretend we are using a built-in display,
|
|
// instead of HDMI or WiFi output.
|
|
bool CryptoEngine::local_display() {
|
|
return false;
|
|
}
|
|
|
|
// A closed platform is permitted to use clear buffers.
|
|
bool CryptoEngine::closed_platform() {
|
|
return false;
|
|
}
|
|
|
|
// Returns the HDCP version currently in use.
|
|
OEMCrypto_HDCP_Capability CryptoEngine::current_hdcp_capability() {
|
|
return local_display() ? HDCP_NO_DIGITAL_OUTPUT : HDCP_V1;
|
|
}
|
|
|
|
// Returns the max HDCP version supported.
|
|
OEMCrypto_HDCP_Capability CryptoEngine::maximum_hdcp_capability() {
|
|
return HDCP_V2;
|
|
}
|
|
|
|
// Returns true if the client supports persistent storage of
|
|
// offline usage table information.
|
|
bool CryptoEngine::supports_storage() {
|
|
return true;
|
|
}
|
|
|
|
} // namespace wvoec_mock
|