summaryrefslogtreecommitdiff
path: root/module_test/src/gtest_main.cpp
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-11-19 19:17:00 +0800
committerlijia <[email protected]>2024-11-25 16:18:34 +0800
commitc7b97c072b52676b6c17bf6713f399ce0273b308 (patch)
tree1a3e73dfbb0eee578eea8262a2d4314a75b3ee54 /module_test/src/gtest_main.cpp
parent8d24a9cc945c2a6d0b0bfa447c7b4d1caec9397c (diff)
TSG-23819: support access latency, internet latency and srttHEADv4.3.70dev-4.3
Diffstat (limited to 'module_test/src/gtest_main.cpp')
-rw-r--r--module_test/src/gtest_main.cpp24
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)