summaryrefslogtreecommitdiff
path: root/test/src/gtest_sendlog.cpp
diff options
context:
space:
mode:
author刘学利 <[email protected]>2023-02-07 02:51:03 +0000
committer刘学利 <[email protected]>2023-02-07 02:51:03 +0000
commitccf02881faee0879ad36ee09ee5e32de8758a731 (patch)
treefcd06da2d070c10f05ee96898b40765ad3fd8f6c /test/src/gtest_sendlog.cpp
parent5328511bfb1f8e116e6fa87703c7f251a5ac4a7e (diff)
TSG-13520,TSG-13356: 支持通过tsg_pull_shaping_result函数获取命中的shaping策略,增加common_shaping_rule_ids日志字段,支持通过bridge接口及时通知命中的shaping策略,增加gtest测试用例v5.10.0
Diffstat (limited to 'test/src/gtest_sendlog.cpp')
-rw-r--r--test/src/gtest_sendlog.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/src/gtest_sendlog.cpp b/test/src/gtest_sendlog.cpp
new file mode 100644
index 0000000..e87d876
--- /dev/null
+++ b/test/src/gtest_sendlog.cpp
@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "gtest_common.h"
+
+#include <gtest/gtest.h>
+
+int tsg_app_id2name(int app_id, char *app_name, int app_name_len, int is_joint_parent)
+{
+ return 0;
+}
+
+int tsg_get_location_type(void)
+{
+ return 19;
+}
+
+char *tsg_l7_protocol_id2name(unsigned int l7_protocol_id)
+{
+ return NULL;
+}
+
+char get_direction_from_tcpall(const struct streaminfo *a_stream)
+{
+ return 0;
+}
+
+TEST(MasterTest, SetVlan)
+{
+ //int ret=set_vlan(NULL, NULL, NULL, 0, NULL, LOG_COMMON_TUNNELS_VLAN_SRC_ID);
+ //EXPECT_EQ(1, ret);
+}
+
+
+int main(int argc, char *argv[])
+{
+ testing::InitGoogleTest(&argc, argv);
+ return RUN_ALL_TESTS();
+}
+