rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free()
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user