diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-08-07 13:03:07 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-08-07 13:03:07 -0400 |
| commit | e01c143379cac68dccdcb00db195b218e500b1c8 (patch) | |
| tree | 266a9ba5dd8507795c3124eb26865a2be075c35b /Source/UnitTests/Core/PageFaultTest.cpp | |
| parent | 1ab99ee22c1b6ae1b6d71aef717f277f39045067 (diff) | |
Common: namespace MemoryUtil
Diffstat (limited to 'Source/UnitTests/Core/PageFaultTest.cpp')
| -rw-r--r-- | Source/UnitTests/Core/PageFaultTest.cpp | 6 |
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; |
