Skip RenewOnLicenseLoad test when not viable

The feature RenewOnLicenseLoad is not expected to work for an offline
license when the device has no usage table.

Bug: 310498829
Merged from https://widevine-internal-review.googlesource.com/190789

Change-Id: I601c332ed6cd17f9682082ea6acda7e67492b381
This commit is contained in:
Fred Gylys-Colwell
2024-02-02 14:08:06 -08:00
committed by Robert Shih
parent 858d66a12c
commit 52b7965226

View File

@@ -1576,6 +1576,9 @@ class CdmUseCase_RenewOnLicenseLoad : public RenewalTest {
GTEST_SKIP() << "Renew on License Load supported on v18+ servers and "
"devices only.";
}
if (license_holder_.can_persist() && !wvoec::global_features.usage_table) {
GTEST_SKIP() << "Renew on License Load requires a usage table for offline licenses.";
}
}
uint64_t renewal_cutoff_;