MCPcopy Create free account
hub / github.com/dobin/RedEdr / TEST_METHOD

Function TEST_METHOD

UnitTests/UnitTests.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19 TEST_METHOD(TestTranslate)
20 {
21 Assert::AreEqual("--X", getMemoryRegionProtect(0x10));
22 Assert::AreEqual("RWX", getMemoryRegionProtect(0x40));
23 Assert::AreEqual("EXECUTE_WRITECOPY", getMemoryRegionProtect(0x80));
24
25 Assert::AreEqual("IMAGE", getMemoryRegionType(0x1000000));
26 Assert::AreEqual("MAPPED", getMemoryRegionType(0x40000));
27 Assert::AreEqual("PRIVATE", getMemoryRegionType(0x20000));
28 }
29 };
30}

Callers

nothing calls this directly

Calls 2

getMemoryRegionProtectFunction · 0.85
getMemoryRegionTypeFunction · 0.85

Tested by

no test coverage detected