From 28008a746a31abb7909dd86cb0cd413ac8943b0b Mon Sep 17 00:00:00 2001 From: jmpoep Date: Thu, 7 Dec 2023 16:51:07 +0800 Subject: first commit --- unit-tests/testfileil.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 unit-tests/testfileil.h (limited to 'unit-tests/testfileil.h') diff --git a/unit-tests/testfileil.h b/unit-tests/testfileil.h new file mode 100644 index 0000000..3e9497f --- /dev/null +++ b/unit-tests/testfileil.h @@ -0,0 +1,30 @@ +#include "testfile.h" +struct ILTestConfig +{ + typedef ILFunctionList FunctionList; + typedef ILVirtualMachineList VirtualMachineList; + typedef ILFileHelper FileHelper; + typedef NETArchitecture Architecture; + typedef NETRuntimeFunctionList RuntimeFunctionList; + typedef PESegmentList SegmentList; + typedef NETImportList ImportList; + typedef NETExportList ExportList; + typedef BaseFixupList FixupList; + typedef PESegment Segment; + typedef BaseFixup Fixup; + typedef PESectionList SectionList; + typedef IRelocationList RelocationList; + typedef NETResourceList ResourceList; + typedef ISEHandlerList SEHandlerList; + typedef IImport Import; + typedef IExport Export; + typedef PEFile File; +}; + +typedef TestArchitectureT TestArchitecture; +typedef TestFileT TestFile; +typedef TestSegmentListT TestSegmentList; +typedef TestSegmentT TestSegment; + +template<> +inline TestFixupT::TestFixupT(ILTestConfig::FixupList *owner) : ILTestConfig::Fixup(owner) {} -- cgit v1.2.3