Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
/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/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/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/llvm-project/pstl/test/std/algorithms/alg.sorting/alg.min.max/
Dminmax_element.pass.cpp21 using namespace TestUtils;
72 TestUtils::Sequence<T> seq;
84 seq.fill([](std::size_t i) -> T { return T(TestUtils::HashBits(i, bits)); }); in pattern_fill()
96 for (std::size_t i = at + 1; i < seq.size(); i += 1 + TestUtils::HashBits(i, 5)) in set_desired_value()
122 TestUtils::invoke_on_all_policies(check_minelement(), wseq.seq.cbegin(), wseq.seq.cend()); in test_by_type()
123 TestUtils::invoke_on_all_policies(check_minelement(), wseq.seq.begin(), wseq.seq.end()); in test_by_type()
126 TestUtils::invoke_on_all_policies(check_maxelement(), wseq.seq.cbegin(), wseq.seq.cend()); in test_by_type()
127 TestUtils::invoke_on_all_policies(check_maxelement(), wseq.seq.begin(), wseq.seq.end()); in test_by_type()
138TestUtils::invoke_on_all_policies(check_minmaxelement(), wseq.seq.cbegin(), wseq.seq.cend()); in test_by_type()
139TestUtils::invoke_on_all_policies(check_minmaxelement(), wseq.seq.begin(), wseq.seq.end()); in test_by_type()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java22 import com.android.org.conscrypt.TestUtils;
159 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
164 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
173 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
182 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
187 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
191 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
206 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
220 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
234 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
[all …]
DMessageDigestTest.java22 import com.android.org.conscrypt.TestUtils;
168 TestUtils.decodeHex(
172 TestUtils.decodeHex(
176 TestUtils.decodeHex(
180 TestUtils.decodeHex(
184 TestUtils.decodeHex(
189 TestUtils.decodeHex(
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DAlgorithmParametersTestOAEP.java28 import org.conscrypt.TestUtils;
155 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
160 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
169 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
178 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
183 TestUtils.encodeBase64(params.getEncoded())); in testEncoding()
187 params.init(TestUtils.decodeBase64(ENCODED_DATA_ALL_DEFAULTS)); in testEncoding()
202 params.init(TestUtils.decodeBase64(ENCODED_DATA_EXPLICIT_DEFAULTS)); in testEncoding()
216 params.init(TestUtils.decodeBase64(ENCODED_DATA_NON_DEFAULTS)); in testEncoding()
230 params.init(TestUtils.decodeBase64(ENCODED_DATA_MIXED)); in testEncoding()
[all …]
DMessageDigestTest.java28 import org.conscrypt.TestUtils;
165 TestUtils.decodeHex(
169 TestUtils.decodeHex(
173 TestUtils.decodeHex(
177 TestUtils.decodeHex(
181 TestUtils.decodeHex(
186 TestUtils.decodeHex(
/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/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/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/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DRenegotiationTest.java63 private static final byte[] MESSAGE_BYTES = "Hello".getBytes(TestUtils.UTF_8);
133 SSLContext context = TestUtils.newContext(TestUtils.getConscryptProvider()); in newConscryptClientContext()
134 return TestUtils.initSslContext(context, TestKeyStore.getClient()); in newConscryptClientContext()
138 SSLContext context = TestUtils.newContext(TestUtils.getJdkProvider()); in newJdkServerContext()
139 return TestUtils.initSslContext(context, TestKeyStore.getServer()); in newJdkServerContext()
151 TestUtils.getLoopbackAddress(), port); in Client()
152 socket.setEnabledProtocols(TestUtils.getProtocols()); in Client()
153 socket.setEnabledCipherSuites(TestUtils.getCommonCipherSuites()); in Client()
232 new LinkedHashSet<String>(Arrays.asList(TestUtils.getCommonCipherSuites()));
240 serverChannel.socket().bind(new InetSocketAddress(TestUtils.getLoopbackAddress(), 0));
[all …]
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;
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DRenegotiationTest.java61 private static final byte[] MESSAGE_BYTES = "Hello".getBytes(TestUtils.UTF_8);
128 SSLContext context = TestUtils.newContext(TestUtils.getConscryptProvider()); in newConscryptClientContext()
129 return TestUtils.initSslContext(context, TestKeyStore.getClient()); in newConscryptClientContext()
133 SSLContext context = TestUtils.newContext(TestUtils.getJdkProvider()); in newJdkServerContext()
134 return TestUtils.initSslContext(context, TestKeyStore.getServer()); in newJdkServerContext()
146 TestUtils.getLoopbackAddress(), port); in Client()
147 socket.setEnabledProtocols(TestUtils.getProtocols()); in Client()
148 socket.setEnabledCipherSuites(TestUtils.getCommonCipherSuites()); in Client()
227 TestUtils.getCommonCipherSuites()));
235 serverChannel.socket().bind(new InetSocketAddress(TestUtils.getLoopbackAddress(), 0));
[all …]
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;
/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/common/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/common/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()

12345678910>>...13