rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free()

This commit is contained in:
luwenpeng
2024-03-08 14:20:36 +08:00
parent 9d562ffee6
commit c945931620
56 changed files with 330 additions and 330 deletions

View File

@@ -19,7 +19,7 @@ TEST(OVERLOAD, EVICT_UDP_OLD_SESS)
timestamp_update();
mgr = session_manager_create(&config);
mgr = session_manager_new(&config);
EXPECT_TRUE(mgr != NULL);
for (uint64_t i = 0; i < config.max_udp_session_num; i++)
@@ -80,7 +80,7 @@ TEST(OVERLOAD, EVICT_UDP_OLD_SESS)
0, 0, 0, // udp_opening_sess_num, udp_active_sess_num, udp_closing_sess_num,
0, 0, // tcp_overload_evict_new_sess_num, tcp_overload_evict_old_sess_num,
0, 1); // udp_overload_evict_new_sess_num, udp_overload_evict_old_sess_num,
session_manager_destroy(mgr);
session_manager_free(mgr);
}
#endif
@@ -97,7 +97,7 @@ TEST(OVERLOAD, EVICT_UDP_NEW_SESS)
timestamp_update();
mgr = session_manager_create(&_config);
mgr = session_manager_new(&_config);
EXPECT_TRUE(mgr != NULL);
for (uint64_t i = 0; i <= _config.max_udp_session_num; i++)
@@ -145,7 +145,7 @@ TEST(OVERLOAD, EVICT_UDP_NEW_SESS)
0, 0, 0, // udp_opening_sess_num, udp_active_sess_num, udp_closing_sess_num,
0, 0, // tcp_overload_evict_new_sess_num, tcp_overload_evict_old_sess_num,
1, 0); // udp_overload_evict_new_sess_num, udp_overload_evict_old_sess_num,
session_manager_destroy(mgr);
session_manager_free(mgr);
}
#endif