summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core/PageFaultTest.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2016-08-19 11:04:45 +0200
committerGitHub <noreply@github.com>2016-08-19 11:04:45 +0200
commit31c530c7b3043a0673d8ec8694169d1accbb732f (patch)
tree54d3b015e71bb65e1134844c4313ae45b4155612 /Source/UnitTests/Core/PageFaultTest.cpp
parent40f4308dc2120ce4e105008f3cb46b6a1c553e64 (diff)
parentfbc0aaf79672cd20c580a28ba765e4a07c2c8c67 (diff)
Merge pull request #3386 from lioncash/memory
Common: Namespace MemoryUtil
Diffstat (limited to 'Source/UnitTests/Core/PageFaultTest.cpp')
-rw-r--r--Source/UnitTests/Core/PageFaultTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/UnitTests/Core/PageFaultTest.cpp b/Source/UnitTests/Core/PageFaultTest.cpp
index 63990f7a6f..7a1e25885a 100644
--- a/Source/UnitTests/Core/PageFaultTest.cpp
+++ b/Source/UnitTests/Core/PageFaultTest.cpp
@@ -38,7 +38,7 @@ public:
virtual bool HandleFault(uintptr_t access_address, SContext* ctx) override
{
m_pre_unprotect_time = std::chrono::high_resolution_clock::now();
- UnWriteProtectMemory(m_data, PAGE_GRAN, /*allowExecute*/ false);
+ Common::UnWriteProtectMemory(m_data, PAGE_GRAN, /*allowExecute*/ false);
m_post_unprotect_time = std::chrono::high_resolution_clock::now();
return true;
}
@@ -51,9 +51,9 @@ public:
TEST(PageFault, PageFault)
{
EMM::InstallExceptionHandler();
- void* data = AllocateMemoryPages(PAGE_GRAN);
+ void* data = Common::AllocateMemoryPages(PAGE_GRAN);
EXPECT_NE(data, nullptr);
- WriteProtectMemory(data, PAGE_GRAN, false);
+ Common::WriteProtectMemory(data, PAGE_GRAN, false);
PageFaultFakeJit pfjit;
jit = &pfjit;