@@ -25,33 +25,6 @@ TEST(NodeCrypto, NewRootCertStore) {
2525 X509_STORE_free (store);
2626}
2727
28- /*
29- * This test verifies that OpenSSL memory tracking constants are properly
30- * defined.
31- */
32- TEST (NodeCrypto, MemoryTrackingConstants) {
33- // Verify that our memory tracking constants are defined and reasonable
34- EXPECT_GT (node::crypto::kSizeOf_SSL_CTX , static_cast <size_t >(0 ))
35- << " SSL_CTX size constant should be positive" ;
36- EXPECT_GT (node::crypto::kSizeOf_X509 , static_cast <size_t >(0 ))
37- << " X509 size constant should be positive" ;
38- EXPECT_GT (node::crypto::kSizeOf_EVP_MD_CTX , static_cast <size_t >(0 ))
39- << " EVP_MD_CTX size constant should be positive" ;
40-
41- // Verify reasonable size ranges (basic sanity check)
42- EXPECT_LT (node::crypto::kSizeOf_SSL_CTX , static_cast <size_t >(10000 ))
43- << " SSL_CTX size should be reasonable" ;
44- EXPECT_LT (node::crypto::kSizeOf_X509 , static_cast <size_t >(10000 ))
45- << " X509 size should be reasonable" ;
46- EXPECT_LT (node::crypto::kSizeOf_EVP_MD_CTX , static_cast <size_t >(1000 ))
47- << " EVP_MD_CTX size should be reasonable" ;
48-
49- // Specific values we expect based on our implementation
50- EXPECT_EQ (node::crypto::kSizeOf_SSL_CTX , static_cast <size_t >(240 ));
51- EXPECT_EQ (node::crypto::kSizeOf_X509 , static_cast <size_t >(128 ));
52- EXPECT_EQ (node::crypto::kSizeOf_EVP_MD_CTX , static_cast <size_t >(48 ));
53- }
54-
5528TEST (NodeCrypto, TryGetIntCipherOutputLength) {
5629 int output_len = 0 ;
5730
0 commit comments