Skip OTA test if not supported
Merge from Widevine repo of http://go/wvgerrit/142050 This is test only code. Bug: 210690170 Change-Id: Ic982cc1ed801325146918bd6153e7f34faf31196
This commit is contained in:
@@ -184,7 +184,12 @@ TEST_F(OTAKeyboxProvisioningTest, BasicTest) {
|
|||||||
<< "Keybox valid after initialization. Skipping rest of test." << endl;
|
<< "Keybox valid after initialization. Skipping rest of test." << endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ASSERT_EQ(result, OEMCrypto_ERROR_NEEDS_KEYBOX_PROVISIONING);
|
if (result != OEMCrypto_ERROR_NEEDS_KEYBOX_PROVISIONING) {
|
||||||
|
cout << " "
|
||||||
|
<< "OTA Keybox functions not supported. Skipping rest of test."
|
||||||
|
<< endl;
|
||||||
|
return;
|
||||||
|
}
|
||||||
cout << " "
|
cout << " "
|
||||||
<< "OTA Keybox functions supported. Device needs provisioning." << endl;
|
<< "OTA Keybox functions supported. Device needs provisioning." << endl;
|
||||||
// TODO(fredgc): Make sure that partners can use a test cert when use_test_key
|
// TODO(fredgc): Make sure that partners can use a test cert when use_test_key
|
||||||
|
|||||||
Reference in New Issue
Block a user