aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/testfileil.h
diff options
context:
space:
mode:
authorjmpoep <OriginalEntryPoint@qq.com>2023-12-07 16:51:07 +0800
committerjmpoep <OriginalEntryPoint@qq.com>2023-12-07 16:51:07 +0800
commit28008a746a31abb7909dd86cb0cd413ac8943b0b (patch)
treea30b74b8cad548048c3c1551d652828ab76fa9bd /unit-tests/testfileil.h
downloadvmprotect-3.5.1-28008a746a31abb7909dd86cb0cd413ac8943b0b.tar
vmprotect-3.5.1-28008a746a31abb7909dd86cb0cd413ac8943b0b.tar.gz
vmprotect-3.5.1-28008a746a31abb7909dd86cb0cd413ac8943b0b.tar.bz2
vmprotect-3.5.1-28008a746a31abb7909dd86cb0cd413ac8943b0b.zip
first commitHEADmaster
Diffstat (limited to 'unit-tests/testfileil.h')
-rw-r--r--unit-tests/testfileil.h30
1 files changed, 30 insertions, 0 deletions
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<ILTestConfig> TestArchitecture;
+typedef TestFileT<ILTestConfig> TestFile;
+typedef TestSegmentListT<ILTestConfig> TestSegmentList;
+typedef TestSegmentT<ILTestConfig> TestSegment;
+
+template<>
+inline TestFixupT<ILTestConfig>::TestFixupT(ILTestConfig::FixupList *owner) : ILTestConfig::Fixup(owner) {}