diff options
| author | liuwentan <[email protected]> | 2022-08-23 16:34:12 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2022-08-31 22:05:36 +0800 |
| commit | bf54f94474e25a242e11ef70acaf0a39cac8a51e (patch) | |
| tree | a4e0f3f51552688531587c0109b7de350e9d0668 /src/packet_io | |
| parent | e1c9e4e5817f81727b88fd1311784c848e65b9c7 (diff) | |
[PACKET_IO]fix gtest bug
Diffstat (limited to 'src/packet_io')
| -rw-r--r-- | src/packet_io/test/gtest_packet_io.cpp | 52 |
1 files changed, 4 insertions, 48 deletions
diff --git a/src/packet_io/test/gtest_packet_io.cpp b/src/packet_io/test/gtest_packet_io.cpp index 593077e..c9db370 100644 --- a/src/packet_io/test/gtest_packet_io.cpp +++ b/src/packet_io/test/gtest_packet_io.cpp @@ -30,7 +30,7 @@ TEST(PACKET_IO_Test, packet_io_device_open_and_close) { TEST(PACKET_IO_Test, packet_io_device_rx) { struct packet_io_instance *ppio_inst = packet_io_instance_create("stellar", PACKET_IO_RUN_MODE_PCAP_FILE); - struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./src/packet_io/test/test-64.pcapng", 1, 1); + struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./test-64.pcapng", 1, 1); EXPECT_NE(pdev, nullptr); struct stellar_packet *rx_pkts[64]; ssize_t fetch_num = packet_io_device_rx(pdev, 0, rx_pkts, 1); @@ -53,7 +53,7 @@ TEST(PACKET_IO_Test, packet_io_device_tx) { TEST(PACKET_IO_Test, packet_io_pkts_free) { struct packet_io_instance *ppio_inst = packet_io_instance_create("stellar", PACKET_IO_RUN_MODE_PCAP_FILE); - struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./src/packet_io/test/test-64.pcapng", 1, 1); + struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./test-64.pcapng", 1, 1); EXPECT_NE(pdev, nullptr); struct stellar_packet *rx_pkts[64]; ssize_t fetch_num = packet_io_device_rx(pdev, 0, rx_pkts, 1); @@ -65,7 +65,7 @@ TEST(PACKET_IO_Test, packet_io_pkts_free) { TEST(PACKET_IO_Test, get_stellar_packet_ctrlzone) { struct packet_io_instance *ppio_inst = packet_io_instance_create("stellar", PACKET_IO_RUN_MODE_PCAP_FILE); - struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./src/packet_io/test/test-64.pcapng", 1, 1); + struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./test-64.pcapng", 1, 1); EXPECT_NE(pdev, nullptr); struct stellar_packet *rx_pkts[64]; ssize_t fetch_num = packet_io_device_rx(pdev, 0, rx_pkts, 1); @@ -81,7 +81,7 @@ TEST(PACKET_IO_Test, get_stellar_packet_ctrlzone) { TEST(PACKET_IO_Test, get_stellar_packet_data) { struct packet_io_instance *ppio_inst = packet_io_instance_create("stellar", PACKET_IO_RUN_MODE_PCAP_FILE); - struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./src/packet_io/test/test-64.pcapng", 1, 1); + struct packet_io_device *pdev = packet_io_device_open(ppio_inst, "./test-64.pcapng", 1, 1); EXPECT_NE(pdev, nullptr); struct stellar_packet *rx_pkts[64]; ssize_t fetch_num = packet_io_device_rx(pdev, 0, rx_pkts, 1); @@ -145,50 +145,6 @@ TEST(PACKET_IO_UTIL_Test, release_pio_packet_queue) { } -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_instance_create) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_instance_destroy) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_open) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_close) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_receive) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_send) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_pkt_free) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_buff_ctrlzone) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_buff_mtod) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_buff_buflen) { - -} - -TEST(PACKET_IO_PIO_MARSIO_Test, pio_marsio_device_buff_datalen) { - -} - TEST(PACKET_IO_PIO_PCAP_FILE_Test, pio_pcap_file_instance_create) { } |
