Skip to content

Commit

Permalink
includes
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Jul 22, 2024
1 parent c4df19f commit e5a16eb
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 65 deletions.
5 changes: 2 additions & 3 deletions Tests/Packet++Test/Utils/TestUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "TestUtils.h"
#include "SomeIpLayer.h"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iomanip>
#include <string.h>
#include <string>

#include <fstream>
namespace pcpp_tests
{

Expand Down
7 changes: 4 additions & 3 deletions Tests/Packet++Test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ int main(int argc, char* argv[])

#ifdef NDEBUG
skipMemLeakCheck = true;
std::cout << "Disabling memory leak check in MSVC Release builds due to caching logic in stream objects that looks like a memory leak:"
<< std::endl
<< " https://github.com/cpputest/cpputest/issues/786#issuecomment-148921958" << std::endl;
std::cout
<< "Disabling memory leak check in MSVC Release builds due to caching logic in stream objects that looks like a memory leak:"
<< std::endl
<< " https://github.com/cpputest/cpputest/issues/786#issuecomment-148921958" << std::endl;
#endif

// The logger singleton looks like a memory leak. Invoke it before starting the memory check
Expand Down
18 changes: 9 additions & 9 deletions Tests/Pcap++Test/Tests/DpdkTests.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#include "../TestDefinition.h"
#include "../Common/GlobalTestArgs.h"
#include "../Common/PcapFileNamesDef.h"
#include "../Common/TestUtils.h"
#include "../TestDefinition.h"
#include <sstream>
#include <stdlib.h>
#include "../Common/PcapFileNamesDef.h"
#include <unordered_map>
#include <stdlib.h>
#include <sstream>

#ifdef USE_DPDK
# include "DnsLayer.h"
# include "DpdkDeviceList.h"
# include "IPv4Layer.h"
# include <mutex>
# include "Logger.h"
# include "PacketUtils.h"
# include "PcapFileDevice.h"
# include "IPv4Layer.h"
# include "TcpLayer.h"
# include "UdpLayer.h"
# include <mutex>
# include "DnsLayer.h"
# include "DpdkDeviceList.h"
# include "PcapFileDevice.h"
#endif

extern PcapTestArgs PcapTestGlobalArgs;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Pcap++Test/Tests/FileTests.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "../Common/PcapFileNamesDef.h"
#include "../TestDefinition.h"
#include "Logger.h"
#include "Packet.h"
#include "PcapFileDevice.h"
#include "../Common/PcapFileNamesDef.h"
#include <array>
#include <fstream>

Expand Down
14 changes: 7 additions & 7 deletions Tests/Pcap++Test/Tests/FilterTests.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include "../Common/GlobalTestArgs.h"
#include "../Common/PcapFileNamesDef.h"
#include "../Common/TestUtils.h"
#include "../TestDefinition.h"
#include "EndianPortable.h"
#include "SystemUtils.h"
#include "EthLayer.h"
#include "VlanLayer.h"
#include "IPv4Layer.h"
#include "IPv6Layer.h"
#include "PcapFileDevice.h"
#include "PcapLiveDeviceList.h"
#include "SystemUtils.h"
#include "TcpLayer.h"
#include "UdpLayer.h"
#include "VlanLayer.h"
#include "PcapLiveDeviceList.h"
#include "PcapFileDevice.h"
#include "../Common/GlobalTestArgs.h"
#include "../Common/PcapFileNamesDef.h"
#include "../Common/TestUtils.h"

extern PcapTestArgs PcapTestGlobalArgs;

Expand Down
6 changes: 3 additions & 3 deletions Tests/Pcap++Test/Tests/IPFragmentationTests.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "../Common/TestUtils.h"
#include "../TestDefinition.h"
#include "EndianPortable.h"
#include "HttpLayer.h"
#include "../Common/TestUtils.h"
#include "IPReassembly.h"
#include "IPv6Layer.h"
#include "HttpLayer.h"
#include "PcapFileDevice.h"
#include "EndianPortable.h"

static void ipReassemblyOnFragmentsClean(const pcpp::IPReassembly::PacketKey* key, void* userCookie)
{
Expand Down
18 changes: 9 additions & 9 deletions Tests/Pcap++Test/Tests/IpMacTests.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#include "../Common/GlobalTestArgs.h"
#include "../Common/TestUtils.h"
#include "../TestDefinition.h"
#include "../Common/TestUtils.h"
#include "../Common/GlobalTestArgs.h"
#include <sstream>
#include <algorithm>
#include <cmath>
#include <tuple>
#include "EndianPortable.h"
#include "Logger.h"
#include "GeneralUtils.h"
#include "IpUtils.h"
#include "IpAddress.h"
#include "IpAddressUtils.h"
#include "IpUtils.h"
#include "LRUList.h"
#include "Logger.h"
#include "MacAddress.h"
#include "LRUList.h"
#include "NetworkUtils.h"
#include "PcapLiveDeviceList.h"
#include "SystemUtils.h"
#include <algorithm>
#include <cmath>
#include <sstream>
#include <tuple>

extern PcapTestArgs PcapTestGlobalArgs;

Expand Down
2 changes: 1 addition & 1 deletion Tests/Pcap++Test/Tests/KniTests.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "../TestDefinition.h"
#include "../Common/GlobalTestArgs.h"
#include "../Common/PcapFileNamesDef.h"
#include "../TestDefinition.h"

#ifdef USE_DPDK_KNI
# include "KniDeviceList.h"
Expand Down
16 changes: 8 additions & 8 deletions Tests/Pcap++Test/Tests/LiveDeviceTests.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include "../Common/GlobalTestArgs.h"
#include "../Common/PcapFileNamesDef.h"
#include "../Common/TestUtils.h"
#include "../TestDefinition.h"
#include "EthLayer.h"
#include "IPv4Layer.h"
#include "Logger.h"
#include "PayloadLayer.h"
#include "PcapFileDevice.h"
#include "PcapLiveDeviceList.h"
#include "SystemUtils.h"
#include "PcapLiveDeviceList.h"
#include "PcapFileDevice.h"
#include "EthLayer.h"
#include "IPv4Layer.h"
#include "UdpLayer.h"
#include "PayloadLayer.h"
#include "../Common/GlobalTestArgs.h"
#include "../Common/TestUtils.h"
#include "../Common/PcapFileNamesDef.h"
#include <array>
#include <cstdio>
#if defined(_WIN32)
Expand Down
7 changes: 3 additions & 4 deletions Tests/Pcap++Test/Tests/LoggerTests.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#define LOG_MODULE PacketLogModuleArpLayer
#include "../TestDefinition.h"
#include "Logger.h"
#include <string>
#include <algorithm>
#include <cctype>
#include <random>
#include <string>
#include <thread>

#include "Logger.h"
#include <random>
#include "SystemUtils.h"

namespace pcpp
Expand Down
12 changes: 6 additions & 6 deletions Tests/Pcap++Test/Tests/PacketParsingTests.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "../Common/PcapFileNamesDef.h"
#include "../TestDefinition.h"
#include "DnsLayer.h"
#include "HttpLayer.h"
#include "Packet.h"
#include "PcapFileDevice.h"
#include <fstream>
#include "../Common/PcapFileNamesDef.h"
#include <sstream>
#include <fstream>
#include <stdlib.h>
#include "Packet.h"
#include "HttpLayer.h"
#include "DnsLayer.h"
#include "PcapFileDevice.h"

PTF_TEST_CASE(TestHttpRequestParsing)
{
Expand Down
8 changes: 4 additions & 4 deletions Tests/Pcap++Test/Tests/PfRingTests.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#include "../TestDefinition.h"
#include "../Common/GlobalTestArgs.h"
#include "../Common/PcapFileNamesDef.h"
#include "../Common/TestUtils.h"
#include "../TestDefinition.h"
#include "../Common/PcapFileNamesDef.h"
#include <sstream>

#ifdef USE_PF_RING
# include "IPv4Layer.h"
# include "Logger.h"
# include "PacketUtils.h"
# include "IPv4Layer.h"
# include "PfRingDeviceList.h"
# include "PcapFileDevice.h"
# include "PcapLiveDeviceList.h"
# include "PfRingDeviceList.h"
#endif

extern PcapTestArgs PcapTestGlobalArgs;
Expand Down
6 changes: 3 additions & 3 deletions Tests/Pcap++Test/Tests/RawSocketTests.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "../Common/GlobalTestArgs.h"
#include "../Common/PcapFileNamesDef.h"
#include "../TestDefinition.h"
#include "../Common/PcapFileNamesDef.h"
#include "../Common/GlobalTestArgs.h"
#include "Logger.h"
#include "Packet.h"
#include "PcapFileDevice.h"
#include "RawSocketDevice.h"
#include "PcapFileDevice.h"

extern PcapTestArgs PcapTestGlobalArgs;

Expand Down
8 changes: 4 additions & 4 deletions Tests/Pcap++Test/Tests/XdpTests.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "../Common/GlobalTestArgs.h"
#include "../TestDefinition.h"
#include "Logger.h"
#include "Packet.h"
#include "PcapFileDevice.h"
#include "../Common/GlobalTestArgs.h"
#include "PcapLiveDeviceList.h"
#include "XdpDevice.h"
#include "PcapFileDevice.h"
#include "Packet.h"
#include "Logger.h"

extern PcapTestArgs PcapTestGlobalArgs;

Expand Down

0 comments on commit e5a16eb

Please sign in to comment.