|
| 1 | +/* |
| 2 | + * Copyright (C) 2023 The Android Open Source Project |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package org.conscrypt; |
| 18 | + |
| 19 | +import static org.conscrypt.TestUtils.installConscryptAsDefaultProvider; |
| 20 | + |
| 21 | +import org.conscrypt.ct.SerializationTest; |
| 22 | +import org.conscrypt.ct.VerifierTest; |
| 23 | +import org.conscrypt.java.security.AlgorithmParameterGeneratorTestDH; |
| 24 | +import org.conscrypt.java.security.AlgorithmParameterGeneratorTestDSA; |
| 25 | +import org.conscrypt.java.security.AlgorithmParametersPSSTest; |
| 26 | +import org.conscrypt.java.security.AlgorithmParametersTestAES; |
| 27 | +import org.conscrypt.java.security.AlgorithmParametersTestDES; |
| 28 | +import org.conscrypt.java.security.AlgorithmParametersTestDESede; |
| 29 | +import org.conscrypt.java.security.AlgorithmParametersTestDH; |
| 30 | +import org.conscrypt.java.security.AlgorithmParametersTestDSA; |
| 31 | +import org.conscrypt.java.security.AlgorithmParametersTestEC; |
| 32 | +import org.conscrypt.java.security.AlgorithmParametersTestGCM; |
| 33 | +import org.conscrypt.java.security.AlgorithmParametersTestOAEP; |
| 34 | +import org.conscrypt.java.security.KeyFactoryTestDH; |
| 35 | +import org.conscrypt.java.security.KeyFactoryTestDSA; |
| 36 | +import org.conscrypt.java.security.KeyFactoryTestEC; |
| 37 | +import org.conscrypt.java.security.KeyFactoryTestRSACrt; |
| 38 | +import org.conscrypt.java.security.KeyPairGeneratorTest; |
| 39 | +import org.conscrypt.java.security.KeyPairGeneratorTestDH; |
| 40 | +import org.conscrypt.java.security.KeyPairGeneratorTestDSA; |
| 41 | +import org.conscrypt.java.security.KeyPairGeneratorTestRSA; |
| 42 | +import org.conscrypt.java.security.KeyPairGeneratorTestXDH; |
| 43 | +import org.conscrypt.java.security.MessageDigestTest; |
| 44 | +import org.conscrypt.java.security.SignatureTest; |
| 45 | +import org.conscrypt.java.security.cert.CertificateFactoryTest; |
| 46 | +import org.conscrypt.java.security.cert.X509CRLTest; |
| 47 | +import org.conscrypt.java.security.cert.X509CertificateTest; |
| 48 | +import org.conscrypt.javax.crypto.AeadCipherTest; |
| 49 | +import org.conscrypt.javax.crypto.CipherBasicsTest; |
| 50 | +import org.conscrypt.javax.crypto.ECDHKeyAgreementTest; |
| 51 | +import org.conscrypt.javax.crypto.KeyGeneratorTest; |
| 52 | +import org.conscrypt.javax.crypto.ScryptTest; |
| 53 | +import org.conscrypt.javax.crypto.XDHKeyAgreementTest; |
| 54 | +import org.conscrypt.javax.crypto.XdhKeyFactoryTest; |
| 55 | +import org.conscrypt.javax.crypto.XdhKeyTest; |
| 56 | +import org.conscrypt.javax.net.ssl.KeyManagerFactoryTest; |
| 57 | +import org.conscrypt.javax.net.ssl.KeyStoreBuilderParametersTest; |
| 58 | +import org.conscrypt.javax.net.ssl.SNIHostNameTest; |
| 59 | +import org.conscrypt.javax.net.ssl.SSLParametersTest; |
| 60 | +import org.conscrypt.javax.net.ssl.X509KeyManagerTest; |
| 61 | +import org.conscrypt.metrics.CipherSuiteTest; |
| 62 | +import org.conscrypt.metrics.OptionalMethodTest; |
| 63 | +import org.conscrypt.metrics.ProtocolTest; |
| 64 | +import org.junit.BeforeClass; |
| 65 | +import org.junit.runner.RunWith; |
| 66 | +import org.junit.runners.Suite; |
| 67 | + |
| 68 | +@RunWith(Suite.class) |
| 69 | +@Suite.SuiteClasses({ |
| 70 | + // org.conscrypt tests |
| 71 | + AddressUtilsTest.class, |
| 72 | + ApplicationProtocolSelectorAdapterTest.class, |
| 73 | + ArrayUtilsTest.class, |
| 74 | + CertPinManagerTest.class, |
| 75 | + ChainStrengthAnalyzerTest.class, |
| 76 | + DuckTypedHpkeSpiTest.class, |
| 77 | + EdDsaTest.class, |
| 78 | + ExposedByteArrayOutputStreamTest.class, |
| 79 | + FileClientSessionCacheTest.class, |
| 80 | + HostnameVerifierTest.class, |
| 81 | + HpkeContextTest.class, |
| 82 | + HpkeContextRecipientTest.class, |
| 83 | + HpkeContextSenderTest.class, |
| 84 | + HpkeSuiteTest.class, |
| 85 | + HpkeTestVectorsTest.class, |
| 86 | + KeySpecUtilTest.class, |
| 87 | + MlDsaTest.class, |
| 88 | + NativeCryptoArgTest.class, |
| 89 | + NativeCryptoTest.class, |
| 90 | + NativeRefTest.class, |
| 91 | + NativeSslSessionTest.class, |
| 92 | + OpenSSLKeyTest.class, |
| 93 | + OpenSSLX509CertificateTest.class, |
| 94 | + SSLUtilsTest.class, |
| 95 | + SlhDsaTest.class, |
| 96 | + TestSessionBuilderTest.class, |
| 97 | + TrustManagerImplTest.class, |
| 98 | + X25519Test.class, |
| 99 | + XwingTest.class, |
| 100 | + // org.conscrypt.ct tests |
| 101 | + VerifierTest.class, |
| 102 | + SerializationTest.class, |
| 103 | + // java.security tests |
| 104 | + CertificateFactoryTest.class, |
| 105 | + X509CertificateTest.class, |
| 106 | + X509CRLTest.class, |
| 107 | + AlgorithmParameterGeneratorTestDH.class, |
| 108 | + AlgorithmParameterGeneratorTestDSA.class, |
| 109 | + AlgorithmParametersPSSTest.class, |
| 110 | + AlgorithmParametersTestAES.class, |
| 111 | + AlgorithmParametersTestDES.class, |
| 112 | + AlgorithmParametersTestDESede.class, |
| 113 | + AlgorithmParametersTestDH.class, |
| 114 | + AlgorithmParametersTestDSA.class, |
| 115 | + AlgorithmParametersTestEC.class, |
| 116 | + AlgorithmParametersTestGCM.class, |
| 117 | + AlgorithmParametersTestOAEP.class, |
| 118 | + BufferUtilsTest.class, |
| 119 | + CipherSuiteTest.class, |
| 120 | + KeyFactoryTestDH.class, |
| 121 | + KeyFactoryTestDSA.class, |
| 122 | + KeyFactoryTestEC.class, |
| 123 | + KeyFactoryTestRSACrt.class, |
| 124 | + KeyPairGeneratorTest.class, |
| 125 | + KeyPairGeneratorTestDH.class, |
| 126 | + KeyPairGeneratorTestDSA.class, |
| 127 | + KeyPairGeneratorTestRSA.class, |
| 128 | + KeyPairGeneratorTestXDH.class, |
| 129 | + MessageDigestTest.class, |
| 130 | + SignatureTest.class, |
| 131 | + // javax.crypto tests |
| 132 | + AeadCipherTest.class, |
| 133 | + CipherBasicsTest.class, |
| 134 | + MacTest.class, |
| 135 | + ECDHKeyAgreementTest.class, |
| 136 | + KeyGeneratorTest.class, |
| 137 | + XDHKeyAgreementTest.class, |
| 138 | + XdhKeyFactoryTest.class, |
| 139 | + XdhKeyTest.class, |
| 140 | + // javax.net.ssl tests |
| 141 | + KeyManagerFactoryTest.class, |
| 142 | + KeyStoreBuilderParametersTest.class, |
| 143 | + OptionalMethodTest.class, |
| 144 | + ProtocolTest.class, |
| 145 | + ScryptTest.class, |
| 146 | + SNIHostNameTest.class, |
| 147 | + SSLParametersTest.class, |
| 148 | + VeryBasicHttpServerTest.class, |
| 149 | + X509KeyManagerTest.class, |
| 150 | +}) |
| 151 | +public class ConscryptAndroidSuite { |
| 152 | + @BeforeClass |
| 153 | + public static void setupStatic() { |
| 154 | + installConscryptAsDefaultProvider(); |
| 155 | + } |
| 156 | +} |
0 commit comments