Home
last modified time | relevance | path

Searched refs:TestUtils (Results 1 – 25 of 186) sorted by relevance

12345678

/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DTlsTest.java29 import io.grpc.internal.testing.TestUtils;
93 TestUtils.installConscryptIfAvailable(); in loadConscrypt()
159 File serverCertFile = TestUtils.loadCert("server1.pem"); in basicClientServerIntegrationTest()
160 File serverPrivateKeyFile = TestUtils.loadCert("server1.key"); in basicClientServerIntegrationTest()
162 TestUtils.loadX509Cert("ca.pem") in basicClientServerIntegrationTest()
170 File clientCertChainFile = TestUtils.loadCert("client.pem"); in basicClientServerIntegrationTest()
171 File clientPrivateKeyFile = TestUtils.loadCert("client.key"); in basicClientServerIntegrationTest()
173 TestUtils.loadX509Cert("ca.pem") in basicClientServerIntegrationTest()
193 File serverCertFile = TestUtils.loadCert("server1.pem"); in serverRejectsUntrustedClientCert()
194 File serverPrivateKeyFile = TestUtils.loadCert("server1.key"); in serverRejectsUntrustedClientCert()
[all …]
DNettyClientTransportTest.java63 import io.grpc.internal.testing.TestUtils;
143 address = TestUtils.testServerAddress(12345); in testToString()
278 File serverCert = TestUtils.loadCert("server1.pem"); in tlsNegotiationFailurePropagatesToStatus()
279 File serverKey = TestUtils.loadCert("server1.key"); in tlsNegotiationFailurePropagatesToStatus()
282 .ciphers(TestUtils.preferredTestCiphers(), SupportedCipherSuiteFilter.INSTANCE) in tlsNegotiationFailurePropagatesToStatus()
288 File caCert = TestUtils.loadCert("ca.pem"); in tlsNegotiationFailurePropagatesToStatus()
289 File clientCert = TestUtils.loadCert("client.pem"); in tlsNegotiationFailurePropagatesToStatus()
290 File clientKey = TestUtils.loadCert("client.key"); in tlsNegotiationFailurePropagatesToStatus()
293 .ciphers(TestUtils.preferredTestCiphers(), SupportedCipherSuiteFilter.INSTANCE) in tlsNegotiationFailurePropagatesToStatus()
412 address = TestUtils.testServerAddress(12345); in failingToConstructChannelShouldFailGracefully()
[all …]
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/
DCommonSuperclassTest.java62 TestUtils.makeClassDef("Ljava/lang/Object;", null), in CommonSuperclassTest()
63 TestUtils.makeClassDef("Ltest/one;", "Ljava/lang/Object;"), in CommonSuperclassTest()
64 TestUtils.makeClassDef("Ltest/two;", "Ljava/lang/Object;"), in CommonSuperclassTest()
65 TestUtils.makeClassDef("Ltest/onetwo;", "Ltest/one;"), in CommonSuperclassTest()
66 TestUtils.makeClassDef("Ltest/onetwothree;", "Ltest/onetwo;"), in CommonSuperclassTest()
67 TestUtils.makeClassDef("Ltest/onethree;", "Ltest/one;"), in CommonSuperclassTest()
68 TestUtils.makeClassDef("Ltest/fivetwo;", "Ltest/five;"), in CommonSuperclassTest()
69 TestUtils.makeClassDef("Ltest/fivetwothree;", "Ltest/fivetwo;"), in CommonSuperclassTest()
70 TestUtils.makeClassDef("Ltest/fivethree;", "Ltest/five;"), in CommonSuperclassTest()
71 TestUtils.makeInterfaceDef("Ljava/lang/Cloneable;"), in CommonSuperclassTest()
[all …]
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DHttp2NettyTest.java24 import io.grpc.internal.testing.TestUtils;
51 .forServer(TestUtils.loadCert("server1.pem"), TestUtils.loadCert("server1.key")) in getServerBuilder()
53 .trustManager(TestUtils.loadCert("ca.pem")) in getServerBuilder()
54 .ciphers(TestUtils.preferredTestCiphers(), SupportedCipherSuiteFilter.INSTANCE) in getServerBuilder()
65 .forAddress(TestUtils.testServerAddress(getPort())) in createChannel()
70 .keyManager(TestUtils.loadCert("client.pem"), TestUtils.loadCert("client.key")) in createChannel()
71 .trustManager(TestUtils.loadX509Cert("ca.pem")) in createChannel()
72 .ciphers(TestUtils.preferredTestCiphers(), SupportedCipherSuiteFilter.INSTANCE) in createChannel()
DHttp2OkHttpTest.java29 import io.grpc.internal.testing.TestUtils;
62 TestUtils.installConscryptIfAvailable(); in loadConscrypt()
76 .forServer(TestUtils.loadCert("server1.pem"), TestUtils.loadCert("server1.key")); in getServerBuilder()
78 contextBuilder.ciphers(TestUtils.preferredTestCiphers(), SupportedCipherSuiteFilter.INSTANCE); in getServerBuilder()
97 .cipherSuites(TestUtils.preferredTestCiphers().toArray(new String[0])) in createChannelBuilder()
100 TestUtils.TEST_SERVER_HOST, getPort())); in createChannelBuilder()
104 builder.sslSocketFactory(TestUtils.newSslSocketFactoryForCa(Platform.get().getProvider(), in createChannelBuilder()
105 TestUtils.loadCert("ca.pem"))); in createChannelBuilder()
183 TestUtils.TEST_SERVER_HOST, getPort())) in hostnameVerifierWithCorrectHostname()
DConcurrencyTest.java23 import io.grpc.internal.testing.TestUtils;
190 File serverCertChainFile = TestUtils.loadCert("server1.pem"); in newServer()
191 File serverPrivateKeyFile = TestUtils.loadCert("server1.key"); in newServer()
193 TestUtils.loadX509Cert("ca.pem") in newServer()
210 File clientCertChainFile = TestUtils.loadCert("client.pem"); in newClientChannel()
211 File clientPrivateKeyFile = TestUtils.loadCert("client.key"); in newClientChannel()
213 TestUtils.loadX509Cert("ca.pem") in newClientChannel()
223 .overrideAuthority(TestUtils.TEST_SERVER_HOST) in newClientChannel()
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DOpenJdkEndpointFactory.java54 Provider provider = TestUtils.getJdkProvider(); in newJdkFactories()
55 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newJdkFactories()
56 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newJdkFactories()
64 Provider provider = TestUtils.getConscryptProvider(); in newConscryptFactories()
65 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories()
66 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newConscryptFactories()
70 TestUtils.setUseEngineSocket(clientFactory, useEngineSocket); in newConscryptFactories()
71 TestUtils.setUseEngineSocket(serverFactory, useEngineSocket); in newConscryptFactories()
72 TestUtils.setUseEngineSocket(serverSocketFactory, useEngineSocket); in newConscryptFactories()
/external/sfntly/cpp/src/test/
Dtest_utils_test.cc32 UConverter* conv = TestUtils::GetEncoder("utf8"); in TestEncoding()
41 int32_t encoded = TestUtils::EncodeOneChar(conv, (int16_t)from[i]); in TestEncoding()
61 result = TestUtils::Extension("../data/ext/tuffy.ttf"); in TestExtension()
65 result = TestUtils::Extension("tuffy.ttf.fake"); in TestExtension()
69 result = TestUtils::Extension("tuffy"); in TestExtension()
73 result = TestUtils::Extension("tuffy."); in TestExtension()
81 TEST(TestUtils, All) { in TEST() argument
Dtest_utils.cc30 TestUtils::TestUtils() {} in TestUtils() function in sfntly::TestUtils
41 int32_t TestUtils::EncodeOneChar(UConverter* encoder, int16_t uchar) { in EncodeOneChar()
72 UConverter* TestUtils::GetEncoder(const char* charset_name) { in GetEncoder()
84 const char* TestUtils::Extension(const char* file_path) { in Extension()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java29 import org.conscrypt.TestUtils;
147 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
152 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
161 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
170 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
175 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
179 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
192 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
205 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
218 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
[all …]
DAlgorithmParametersTestGCM.java27 import org.conscrypt.TestUtils;
74 String encoded = TestUtils.encodeBase64(params.getEncoded()); in testEncoding()
79 params.init(TestUtils.decodeBase64(ENCODED_DATA_NO_TLEN)); in testEncoding()
91 params.init(TestUtils.decodeBase64(ENCODED_DATA_TLEN)); in testEncoding()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java30 import com.android.org.conscrypt.TestUtils;
151 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
156 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
165 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
174 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
179 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
183 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
196 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
209 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
222 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
[all …]
/external/conscrypt/repackaged/benchmark-android/src/main/java/com/android/org/conscrypt/
DAndroidEndpointFactory.java54 Provider provider = TestUtils.getConscryptProvider(); in newConscryptFactories()
55 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories()
56 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newConscryptFactories()
60 TestUtils.setUseEngineSocket(clientFactory, useEngineSocket); in newConscryptFactories()
61 TestUtils.setUseEngineSocket(serverFactory, useEngineSocket); in newConscryptFactories()
62 TestUtils.setUseEngineSocket(serverSocketFactory, useEngineSocket); in newConscryptFactories()
DAndroidEngineFactory.java58 TestUtils.newClientSslContext(Security.getProvider("AndroidOpenSSL"));
60 TestUtils.newServerSslContext(Security.getProvider("AndroidOpenSSL"));
90 return TestUtils.newClientSslContext(TestUtils.getConscryptProvider()); in newConscryptClientContext()
94 return TestUtils.newServerSslContext(TestUtils.getConscryptProvider()); in newConscryptServerContext()
/external/conscrypt/benchmark-android/src/main/java/org/conscrypt/
DAndroidEndpointFactory.java52 Provider provider = TestUtils.getConscryptProvider(); in newConscryptFactories()
53 SSLContext clientContext = TestUtils.newClientSslContext(provider); in newConscryptFactories()
54 SSLContext serverContext = TestUtils.newServerSslContext(provider); in newConscryptFactories()
58 TestUtils.setUseEngineSocket(clientFactory, useEngineSocket); in newConscryptFactories()
59 TestUtils.setUseEngineSocket(serverFactory, useEngineSocket); in newConscryptFactories()
60 TestUtils.setUseEngineSocket(serverSocketFactory, useEngineSocket); in newConscryptFactories()
DAndroidEngineFactory.java55 private final SSLContext clientContext = TestUtils.newClientSslContext(
57 private final SSLContext serverContext = TestUtils.newServerSslContext(
88 return TestUtils.newClientSslContext(TestUtils.getConscryptProvider()); in newConscryptClientContext()
92 return TestUtils.newServerSslContext(TestUtils.getConscryptProvider()); in newConscryptServerContext()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/analysis/util/
DSuperclassChainTest.java40 import org.jf.dexlib2.analysis.TestUtils;
52 ClassDef objectClassDef = TestUtils.makeClassDef("Ljava/lang/Object;", null); in testGetSuperclassChain()
53 ClassDef oneClassDef = TestUtils.makeClassDef("Ltest/one;", "Ljava/lang/Object;"); in testGetSuperclassChain()
54 ClassDef twoClassDef = TestUtils.makeClassDef("Ltest/two;", "Ltest/one;"); in testGetSuperclassChain()
55 ClassDef threeClassDef = TestUtils.makeClassDef("Ltest/three;", "Ltest/two;"); in testGetSuperclassChain()
88 ClassDef twoClassDef = TestUtils.makeClassDef("Ltest/two;", "Ltest/one;"); in testGetSuperclassChain_Unresolved()
89 ClassDef threeClassDef = TestUtils.makeClassDef("Ltest/three;", "Ltest/two;"); in testGetSuperclassChain_Unresolved()
/external/grpc-grpc/test/cpp/server/load_reporter/
Dload_reporter_test.cc210 auto end_count_vd = ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
224 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
237 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
249 auto end_latency_vd = ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
310 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
321 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
340 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
359 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
378 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
398 ::opencensus::stats::testing::TestUtils::MakeViewData( in TEST_F()
[all …]
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DOpenSSLServerSocketImplTest.java19 import static org.conscrypt.TestUtils.LOCALHOST;
20 import static org.conscrypt.TestUtils.getConscryptServerSocketFactory;
21 import static org.conscrypt.TestUtils.getJdkSocketFactory;
22 import static org.conscrypt.TestUtils.getProtocols;
23 import static org.conscrypt.TestUtils.newTextMessage;
24 import static org.conscrypt.TestUtils.pickUnusedPort;
DRenegotiationTest.java61 private static final String[] CIPHERS = TestUtils.getCommonCipherSuites();
62 private static final byte[] MESSAGE_BYTES = "Hello".getBytes(TestUtils.UTF_8);
129 SSLContext context = TestUtils.newContext(TestUtils.getConscryptProvider()); in newConscryptClientContext()
130 return TestUtils.initSslContext(context, TestKeyStore.getClient()); in newConscryptClientContext()
134 SSLContext context = TestUtils.newContext(TestUtils.getJdkProvider()); in newJdkServerContext()
135 return TestUtils.initSslContext(context, TestKeyStore.getServer()); in newJdkServerContext()
148 TestUtils.getLoopbackAddress(), port); in Client()
236 serverChannel.socket().bind(new InetSocketAddress(TestUtils.getLoopbackAddress(), 0));
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLParametersTest.java36 import com.android.org.conscrypt.TestUtils;
138 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setServerNames_duplicatedNameThrows()
154 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setServerNames_setNull_getNull()
165 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setServerNames_setEmpty_getEmpty()
175 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_getServerNames_unmodifiable()
190 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setSNIMatchers_duplicatedNameThrows()
205 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setSNIMatchers_setNull_getNull()
216 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setSNIMatchers_setEmpty_getEmpty()
229 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_getSNIMatchers_unmodifiable()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DSSLParametersTest.java35 import org.conscrypt.TestUtils;
134 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setServerNames_duplicatedNameThrows()
150 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setServerNames_setNull_getNull()
161 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setServerNames_setEmpty_getEmpty()
171 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_getServerNames_unmodifiable()
186 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setSNIMatchers_duplicatedNameThrows()
201 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setSNIMatchers_setNull_getNull()
212 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_setSNIMatchers_setEmpty_getEmpty()
225 TestUtils.assumeSNIHostnameAvailable(); in test_SSLParameters_getSNIMatchers_unmodifiable()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DOpenSSLServerSocketImplTest.java20 import static com.android.org.conscrypt.TestUtils.LOCALHOST;
21 import static com.android.org.conscrypt.TestUtils.getConscryptServerSocketFactory;
22 import static com.android.org.conscrypt.TestUtils.getJdkSocketFactory;
23 import static com.android.org.conscrypt.TestUtils.getProtocols;
24 import static com.android.org.conscrypt.TestUtils.newTextMessage;
25 import static com.android.org.conscrypt.TestUtils.pickUnusedPort;
DRenegotiationTest.java63 private static final String[] CIPHERS = TestUtils.getCommonCipherSuites();
64 private static final byte[] MESSAGE_BYTES = "Hello".getBytes(TestUtils.UTF_8);
134 SSLContext context = TestUtils.newContext(TestUtils.getConscryptProvider()); in newConscryptClientContext()
135 return TestUtils.initSslContext(context, TestKeyStore.getClient()); in newConscryptClientContext()
139 SSLContext context = TestUtils.newContext(TestUtils.getJdkProvider()); in newJdkServerContext()
140 return TestUtils.initSslContext(context, TestKeyStore.getServer()); in newJdkServerContext()
153 TestUtils.getLoopbackAddress(), port); in Client()
241 serverChannel.socket().bind(new InetSocketAddress(TestUtils.getLoopbackAddress(), 0));
/external/conscrypt/common/src/test/java/org/conscrypt/ct/
DCTVerifierTest.java19 import static org.conscrypt.TestUtils.openTestFile;
20 import static org.conscrypt.TestUtils.readTestFile;
27 import org.conscrypt.TestUtils;
45 installedProvider = TestUtils.installConscryptIfNotPresent(); in installConscrypt()
51 Security.removeProvider(TestUtils.getConscryptProvider().getName()); in removeConscrypt()
63 PublicKey key = TestUtils.readPublicKeyPemFile("ct-server-key-public.pem"); in setUp()

12345678