From e01c143379cac68dccdcb00db195b218e500b1c8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 7 Aug 2016 13:03:07 -0400 Subject: Common: namespace MemoryUtil --- Source/UnitTests/Core/PageFaultTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/UnitTests/Core/PageFaultTest.cpp') 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; -- cgit v1.2.3