feat(packet_io): add gtest_packet_io

This commit is contained in:
yangwei
2022-07-14 14:46:16 +08:00
parent 658108724c
commit da47b80442
7 changed files with 60 additions and 24 deletions

View File

@@ -0,0 +1,15 @@
#include <gtest/gtest.h>
#include "packet_io.h"
TEST(PACKET_IO_Test, packet_io_create) {
EXPECT_EQ(packet_io_create(PACKET_IO_PCAP, "TEST"), nullptr);
}
int main(int argc, char ** argv)
{
int ret=0;
::testing::InitGoogleTest(&argc, argv);
ret=RUN_ALL_TESTS();
return ret;
}