Searched refs:TEST_AND_RETURN (Results 1 – 4 of 4) sorted by relevance
/frameworks/native/libs/binder/tests/ |
D | RpcTlsTestUtils.cpp | 48 TEST_AND_RETURN(nullptr, BN_lshift(serialLimit.get(), BN_value_one(), 128)); in makeSelfSignedCert() 49 TEST_AND_RETURN(nullptr, BN_rand_range(serial.get(), serialLimit.get())); in makeSelfSignedCert() 50 TEST_AND_RETURN(nullptr, BN_to_ASN1_INTEGER(serial.get(), X509_get_serialNumber(x509.get()))); in makeSelfSignedCert() 51 TEST_AND_RETURN(nullptr, X509_gmtime_adj(X509_getm_notBefore(x509.get()), 0)); in makeSelfSignedCert() 52 TEST_AND_RETURN(nullptr, X509_gmtime_adj(X509_getm_notAfter(x509.get()), validSeconds)); in makeSelfSignedCert() 55 TEST_AND_RETURN(nullptr, in makeSelfSignedCert() 59 TEST_AND_RETURN(nullptr, in makeSelfSignedCert() 63 TEST_AND_RETURN(nullptr, X509_set_issuer_name(x509.get(), subject)); in makeSelfSignedCert() 65 TEST_AND_RETURN(nullptr, X509_set_pubkey(x509.get(), pkey)); in makeSelfSignedCert() 66 TEST_AND_RETURN(nullptr, X509_sign(x509.get(), pkey, EVP_sha256())); in makeSelfSignedCert() [all …]
|
/frameworks/native/libs/binder/ |
D | RpcTlsUtils.cpp | 59 TEST_AND_RETURN({}, writeBio(bio.get(), object)); in serialize() 62 TEST_AND_RETURN({}, BIO_mem_contents(bio.get(), &data, &len)); in serialize()
|
D | RpcTransportTls.cpp | 425 TEST_AND_RETURN(false, bio != nullptr); in setFdAndDoHandshake() 499 TEST_AND_RETURN(nullptr, ctx != nullptr); in create() 513 TEST_AND_RETURN(nullptr, SSL_CTX_set_min_proto_version(ctx.get(), TLS1_3_VERSION)); in create() 521 TEST_AND_RETURN(nullptr, SSL_CTX_set_app_data(ctx.get(), reinterpret_cast<void*>(ret.get()))); in create() 530 TEST_AND_RETURN(nullptr, ssl != nullptr); in newTransport() 534 TEST_AND_RETURN(nullptr, setFdAndDoHandshake(&wrapped, socket, fdTrigger)); in newTransport()
|
D | Utils.h | 52 #define TEST_AND_RETURN(value, expr) \ macro
|