Enforce OEMCrypto insufficient resources error reporting
[ Merge of http://go/wvgerrit/63682 and http://go/wvgerrit/4977904 ] Enforce OEMCrypto insufficient resources error reporting in CDM tests. In addition, when CreateNew/LoadUsageEntry fails with OEMCrypto insufficient resources error, delete a random usage entry and retry. The current behavior evicts low index entries from the usage table, which was a crude attempt to emulate a LRU. This was deficient as, on occasion, it will result in the deletion of a recently added usage entry. Bug: 111260263 Bug: 113828866 Bug: 120433165 Test: Widevine OEMCrypto tests, integration tests. GtsMediaTestCases. Play movies and Netflix playback tests. GtsMediaTestCases MediaDrmTest#testUsageTableCapacity Change-Id: I63340f76d1e2af3c6834b98ad816e11eea18fc7f
This commit is contained in:
@@ -56,7 +56,8 @@ CdmSession::CdmSession(FileSystem* file_system,
|
||||
CdmSession::~CdmSession() {
|
||||
if (usage_support_type_ == kUsageEntrySupport &&
|
||||
has_provider_session_token() &&
|
||||
usage_table_header_ != NULL) {
|
||||
usage_table_header_ != NULL &&
|
||||
!is_release_) {
|
||||
UpdateUsageEntryInformation();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user