28 #ifdef CRYPTO_LOCK_EVP_PKEY 31 #ifdef CRYPTO_LOCK_SSL_SESSION 34 #ifdef CRYPTO_LOCK_SSL_CTX 35 {CRYPTO_LOCK_SSL_CTX, folly::ssl::LockType::NONE}
40 TEST(SSLContextInitializationTest, SSLContextInitializeThenSetLocksAndInit) {
46 "OpenSSL is already initialized");
49 TEST(SSLContextInitializationTest, SSLContextSetLocksAndInitialize) {
55 "OpenSSL is already initialized");
58 TEST(SSLContextInitializationTest, SSLContextLocks) {
63 #ifdef CRYPTO_LOCK_EVP_PKEY 66 #ifdef CRYPTO_LOCK_SSL_SESSION 69 #ifdef CRYPTO_LOCK_ERR 75 LOG(
INFO) <<
"SSLContextLocks passed";
78 ::testing::ExitedWithCode(0),
79 "SSLContextLocks passed");
82 TEST(SSLContextInitializationTest, SSLContextLocksSetAfterInitIgnored) {
88 #ifdef CRYPTO_LOCK_EVP_PKEY 94 LOG(
INFO) <<
"SSLContextLocksSetAfterInitIgnored passed";
97 ::testing::ExitedWithCode(0),
98 "SSLContextLocksSetAfterInitIgnored passed");
104 signal(SIGPIPE, SIG_IGN);
void setLockTypes(LockTypeMapping inLockTypes)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
—— Concurrent Priority Queue Implementation ——
void init(int *argc, char ***argv, bool removeFlags)
#define EXPECT_TRUE(condition)
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
void setLockTypesAndInit(LockTypeMapping inLockTypes)
#define EXPECT_FALSE(condition)
bool isLockDisabled(int lockId)
TEST(SequencedExecutor, CPUThreadPoolExecutor)
int main(int argc, char *argv[])