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
This commit is contained in:
committed by
Fred Gylys-Colwell
parent
f2cc88c0f7
commit
6d494fa76c
@@ -898,6 +898,9 @@ class OEMCryptoLoadsCertVariousKeys : public OEMCryptoLoadsCertificate {
|
|||||||
|
|
||||||
// Test a 3072 bit RSA key certificate.
|
// Test a 3072 bit RSA key certificate.
|
||||||
TEST_F(OEMCryptoLoadsCertVariousKeys, TestLargeRSAKey3072) {
|
TEST_F(OEMCryptoLoadsCertVariousKeys, TestLargeRSAKey3072) {
|
||||||
|
if (!global_features.supports_rsa_3072) {
|
||||||
|
GTEST_SKIP() << "OEMCrypto does not support RSA 3072";
|
||||||
|
}
|
||||||
TestKey(kTestRSAPKCS8PrivateKeyInfo3_3072,
|
TestKey(kTestRSAPKCS8PrivateKeyInfo3_3072,
|
||||||
sizeof(kTestRSAPKCS8PrivateKeyInfo3_3072));
|
sizeof(kTestRSAPKCS8PrivateKeyInfo3_3072));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user