From c001e2f5a44f11eab12e98c9ce1cf67704344a4d Mon Sep 17 00:00:00 2001 From: Vicky Min Date: Tue, 19 Mar 2024 18:53:57 +0000 Subject: [PATCH] Skip License Release tests when there is no usage table Bug: 330364107 Merged from https://widevine-internal-review.googlesource.com/194574 Change-Id: I25db60e239b157d736d89506280c3d218215fb6f --- libwvdrmengine/cdm/core/test/policy_integration_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libwvdrmengine/cdm/core/test/policy_integration_test.cpp b/libwvdrmengine/cdm/core/test/policy_integration_test.cpp index 7313f4ee..ed523ff6 100644 --- a/libwvdrmengine/cdm/core/test/policy_integration_test.cpp +++ b/libwvdrmengine/cdm/core/test/policy_integration_test.cpp @@ -173,6 +173,9 @@ TEST_F(CorePIGTest, OfflineHWSecureRequired) { // Should be able to request license, perform playback, generate a license // release, and receive the release response. TEST_F(CorePIGTest, LicenseRelease1) { + if (!wvoec::global_features.usage_table) { + GTEST_SKIP() << "Test for usage table devices only."; + } LicenseHolder holder("CDM_UnlimitedStreaming_can_persist", &cdm_engine_, config_); holder.set_can_persist(true); @@ -194,6 +197,9 @@ TEST_F(CorePIGTest, LicenseRelease1) { // Should be able to request license, wait some time, generate a license // release, and receive the release response. TEST_F(CorePIGTest, LicenseRelease2) { + if (!wvoec::global_features.usage_table) { + GTEST_SKIP() << "Test for usage table devices only."; + } LicenseHolder holder("CDM_UnlimitedStreaming_can_persist", &cdm_engine_, config_); holder.set_can_persist(true);