From 6d494fa76c185241974b0f00eaa26782a5fc43b4 Mon Sep 17 00:00:00 2001 From: Vicky Min Date: Mon, 27 Mar 2023 19:42:35 -0700 Subject: [PATCH] Filter RSA 3072 tests Merge from Widevine repo of http://go/wvgerrit/169089 We want to transition to using GTEST_SKIP to skip unit tests instead of modifying the GTEST_FILTER variable. This does so for tests that require RSA 3072 support. Note: I think part of this CL got lost in go/wvgerrit/167740, so this is adding the rest in. Bug: 251240681 Merged from https://widevine-internal-review.googlesource.com/168237 Change-Id: I3002f705f7e3f4b38d0e5efef355e5c3f3529218 --- libwvdrmengine/oemcrypto/test/oemcrypto_provisioning_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libwvdrmengine/oemcrypto/test/oemcrypto_provisioning_test.cpp b/libwvdrmengine/oemcrypto/test/oemcrypto_provisioning_test.cpp index a091abbc..88182c3a 100644 --- a/libwvdrmengine/oemcrypto/test/oemcrypto_provisioning_test.cpp +++ b/libwvdrmengine/oemcrypto/test/oemcrypto_provisioning_test.cpp @@ -898,6 +898,9 @@ class OEMCryptoLoadsCertVariousKeys : public OEMCryptoLoadsCertificate { // Test a 3072 bit RSA key certificate. TEST_F(OEMCryptoLoadsCertVariousKeys, TestLargeRSAKey3072) { + if (!global_features.supports_rsa_3072) { + GTEST_SKIP() << "OEMCrypto does not support RSA 3072"; + } TestKey(kTestRSAPKCS8PrivateKeyInfo3_3072, sizeof(kTestRSAPKCS8PrivateKeyInfo3_3072)); }