Expect failure on license load for expired LDL license

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

RenewOnLicenseLoad.Case2 tests are failing because they
are expecting to load an expired license. However, the spec
says that the license should return KEY_EXPIRED. The test is
being updated.

Some other RenewOnLicenseLoad tests were failing because
they forgot to request the renewal.

Bug: 278750980
Test: Run tests on Luci
Change-Id: I7196db11fcf43859ba9310b87fd8ccb609e47039
This commit is contained in:
Fred Gylys-Colwell
2023-05-04 21:18:06 -07:00
parent 651776f475
commit 65d52908af
3 changed files with 16 additions and 2 deletions

View File

@@ -59,6 +59,9 @@ class LicenseHolder {
// Load the license response into the CDM engine. A call to FetchLicense()
// must be made first.
void LoadLicense();
// Attempt to load the license response into the CDM engine, but expect a
// failure.
void FailLoadLicense();
// Reload the license. Call OpenSession() before calling
// ReloadLicense(). Also, the key_set_id must have been set previously. The
// key_set_id is set by calling LoadLicense(), or by calling set_key_set_id().