Remove test keybox one more time
Merge from Widevine repo of http://go/wvgerrit/78883 Bug: 119316243 Test: unit tests Change-Id: Ic6748a6e020c2a4058510fb5c6c5a821e57cc5fd
This commit is contained in:
@@ -236,19 +236,10 @@ void WvCdmTestBase::SetUp() {
|
||||
void WvCdmTestBase::InstallTestRootOfTrust() {
|
||||
switch (wvoec::global_features.derive_key_method) {
|
||||
case wvoec::DeviceFeatures::LOAD_TEST_KEYBOX:
|
||||
// TODO(fredgc, b/119316243): REMOVE THIS! (and the lines below)
|
||||
if (wvoec::global_features.api_version < 14) {
|
||||
// This should work with a production android device, but will fail with
|
||||
// the keyboxless ce cdm, as shipped. We are including this bit of code
|
||||
// so we can develop on Android, but plan to remove it when we have a
|
||||
// few more android test devices with v14 or v15 oemcrypto.
|
||||
LOGE("Attempting tests without test keybox.");
|
||||
} else { // TODO(fredgc, b/119316243): END OF REMOVE THIS!
|
||||
ASSERT_EQ(OEMCrypto_SUCCESS,
|
||||
OEMCrypto_LoadTestKeybox(
|
||||
reinterpret_cast<const uint8_t*>(&wvoec::kTestKeybox),
|
||||
sizeof(wvoec::kTestKeybox)));
|
||||
} // TODO(fredgc, b/119316243): yeah, yeah... remove this line, too.
|
||||
ASSERT_EQ(OEMCrypto_SUCCESS,
|
||||
OEMCrypto_LoadTestKeybox(
|
||||
reinterpret_cast<const uint8_t*>(&wvoec::kTestKeybox),
|
||||
sizeof(wvoec::kTestKeybox)));
|
||||
break;
|
||||
case wvoec::DeviceFeatures::LOAD_TEST_RSA_KEY:
|
||||
// Rare case: used by devices with baked in DRM cert.
|
||||
|
||||
Reference in New Issue
Block a user