diff options
| author | lijia <[email protected]> | 2024-11-19 19:17:00 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-11-25 16:18:34 +0800 |
| commit | c7b97c072b52676b6c17bf6713f399ce0273b308 (patch) | |
| tree | 1a3e73dfbb0eee578eea8262a2d4314a75b3ee54 /module_test/src/gtest_main.cpp | |
| parent | 8d24a9cc945c2a6d0b0bfa447c7b4d1caec9397c (diff) | |
Diffstat (limited to 'module_test/src/gtest_main.cpp')
| -rw-r--r-- | module_test/src/gtest_main.cpp | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/module_test/src/gtest_main.cpp b/module_test/src/gtest_main.cpp index 6c09d49..6f4fa28 100644 --- a/module_test/src/gtest_main.cpp +++ b/module_test/src/gtest_main.cpp @@ -963,32 +963,22 @@ TEST(control, get_ip_ttl) ASSERT_EQ(GTEST_SAPP_SUCC, gtest_get_libsapp_devel_result()); } - -#define control_get_tcp_rtt 1 -TEST(control, get_tcp_rtt) +TEST(control, get_tcp_latency) { -#if 0 - //control_get_tcp_rtt_run(); - //ASSERT_EQ(GTEST_SAPP_SUCC, gtest_get_libsapp_devel_result()); -#else - EXPECT_EXIT(control_get_tcp_rtt_run(), testing::ExitedWithCode(0), "test succ"); -#endif + control_get_tcp_latency_run(); + ASSERT_EQ(GTEST_SAPP_SUCC, gtest_get_libsapp_devel_result()); } -#define control_get_tcp_rtt_c2s 1 -TEST(control, get_tcp_rtt_c2s) +TEST(control, get_tcp_latency_srtt) { - control_get_tcp_rtt_c2s_run(); + control_get_tcp_latency_srtt_run(); ASSERT_EQ(GTEST_SAPP_SUCC, gtest_get_libsapp_devel_result()); - // EXPECT_EXIT(control_get_tcp_rtt_run(), testing::ExitedWithCode(0), "test succ"); } -#define control_get_tcp_rtt_s2c 1 -TEST(control, get_tcp_rtt_s2c) +TEST(control, get_tcp_latency_srtt_long_duration) { - control_get_tcp_rtt_s2c_run(); + control_get_tcp_latency_srtt_long_duration_run(); ASSERT_EQ(GTEST_SAPP_SUCC, gtest_get_libsapp_devel_result()); - // EXPECT_EXIT(control_get_tcp_rtt_run(), testing::ExitedWithCode(0), "test succ"); } TEST(control, get_stream_uuid) |
