From 1eb9710080a4cd07174781f57dd0fccc6ec6ea0f Mon Sep 17 00:00:00 2001 From: Vicky Min Date: Tue, 23 Apr 2024 18:41:50 +0000 Subject: [PATCH] Skip entitlement session test that is only supported on CAS devices Bug: 335398236 Change-Id: I7f67dfbc8725cbe0a67d8eda082fa184286d2e84 (cherry picked from commit a35129440254c91a261903e499e3f2417425cfb0) (cherry picked from commit 87d58f48d62dbc4cdbb6c2af1c5a7bda2e209efa) --- libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp index 7998ebec..96ec6f38 100644 --- a/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp +++ b/libwvdrmengine/oemcrypto/test/oemcrypto_test.cpp @@ -757,6 +757,12 @@ TEST_P(OEMCryptoLicenseTest, SelectKeyEntitlementKeyAPI17) { // This verifies that entitled key sessions can be created and removed. TEST_P(OEMCryptoLicenseTest, EntitledKeySessionsAPI17) { + if (wvoec::global_features.api_version < 17) { + GTEST_SKIP() << "Test for versions 17 and up only."; + } + if (!global_features.supports_cas) { + GTEST_SKIP() << "OEMCrypto does not support CAS"; + } license_messages_.set_license_type(OEMCrypto_EntitlementLicense); ASSERT_NO_FATAL_FAILURE(license_messages_.SignAndVerifyRequest()); ASSERT_NO_FATAL_FAILURE(license_messages_.CreateDefaultResponse());