Skip to content

Commit 0ac7770

Browse files
authored
Removed old resource loading macros. (#1951)
1 parent cf2b617 commit 0ac7770

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Tests/Packet++Test/Utils/TestUtils.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,6 @@ namespace pcpp_tests
2323

2424
void testSetUp();
2525

26-
#define READ_FILE_INTO_BUFFER(num, filename) \
27-
int bufferLength##num = 0; \
28-
uint8_t* buffer##num = pcpp_tests::readFileIntoBuffer(filename, bufferLength##num); \
29-
PTF_ASSERT_NOT_NULL(buffer##num)
30-
31-
#define FREE_FILE_INTO_BUFFER(num) delete[] buffer##num;
32-
33-
#define FILE_INTO_BUFFER_LENGTH(num) bufferLength##num
34-
35-
#define FILE_INTO_BUFFER(num) buffer##num
36-
37-
#define READ_FILE_AND_CREATE_PACKET(num, filename) \
38-
READ_FILE_INTO_BUFFER(num, filename); \
39-
pcpp::RawPacket rawPacket##num(static_cast<const uint8_t*>(buffer##num), bufferLength##num, time, true)
40-
41-
#define READ_FILE_AND_CREATE_PACKET_LINKTYPE(num, filename, linktype) \
42-
READ_FILE_INTO_BUFFER(num, filename); \
43-
pcpp::RawPacket rawPacket##num(static_cast<const uint8_t*>(buffer##num), bufferLength##num, time, true, linktype)
44-
4526
#ifdef PCPP_TESTS_DEBUG
4627
void savePacketToPcap(pcpp::Packet& packet, const std::string& fileName);
4728
#endif

0 commit comments

Comments
 (0)