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/testfileintel.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 unit-tests/testfileintel.h (limited to 'unit-tests/testfileintel.h') diff --git a/unit-tests/testfileintel.h b/unit-tests/testfileintel.h new file mode 100644 index 0000000..1786c04 --- /dev/null +++ b/unit-tests/testfileintel.h @@ -0,0 +1,30 @@ +#include "testfile.h" +struct IntelTestConfig +{ + typedef IntelFunctionList FunctionList; + typedef IntelVirtualMachineList VirtualMachineList; + typedef IntelFileHelper FileHelper; + typedef PEArchitecture Architecture; + typedef PERuntimeFunctionList RuntimeFunctionList; + typedef PESegmentList SegmentList; + typedef PEImportList ImportList; + typedef PEExportList ExportList; + typedef PEFixupList FixupList; + typedef PESegment Segment; + typedef PEFixup Fixup; + typedef PESectionList SectionList; + typedef PERelocationList RelocationList; + typedef PEResourceList ResourceList; + typedef PESEHandlerList SEHandlerList; + typedef PEImport Import; + typedef PEExport Export; + typedef PEFile File; +}; + +typedef TestArchitectureT TestArchitecture; +typedef TestFileT TestFile; +typedef TestSegmentListT TestSegmentList; +typedef TestSegmentT TestSegment; + +template<> +inline TestFixupT::TestFixupT(PEFixupList *owner) : IntelTestConfig::Fixup(owner, 0, ftUnknown) {} -- cgit v1.2.3