diff options
| author | Triang3l <triang3l@yandex.ru> | 2020-11-22 18:49:47 +0300 |
|---|---|---|
| committer | Triang3l <triang3l@yandex.ru> | 2020-11-22 18:49:47 +0300 |
| commit | aca23c08cf472f5e09423c2f0afc1c428491c8ae (patch) | |
| tree | b763051ec08b4b4e9549af4308c33f61b2c102c4 | |
| parent | a39266b71e8ea3a4811b8ec01793a2354c050a73 (diff) | |
[Memory] Fix kFileMappingHandleInvalid typos in tests
| -rw-r--r-- | src/xenia/base/testing/memory_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xenia/base/testing/memory_test.cc b/src/xenia/base/testing/memory_test.cc index 7a19a55a4..9853989ad 100644 --- a/src/xenia/base/testing/memory_test.cc +++ b/src/xenia/base/testing/memory_test.cc @@ -421,7 +421,7 @@ TEST_CASE("create_and_close_file_mapping", "Virtual Memory Mapping") { auto path = fmt::format("xenia_test_{}", Clock::QueryHostTickCount()); auto memory = xe::memory::CreateFileMappingHandle( path, 0x100, xe::memory::PageAccess::kReadWrite, true); - REQUIRE(memory != xe::memory::FileMappingHandleInvalid); + REQUIRE(memory != xe::memory::kFileMappingHandleInvalid); xe::memory::CloseFileMappingHandle(memory, path); } @@ -430,7 +430,7 @@ TEST_CASE("map_view", "Virtual Memory Mapping") { const size_t length = 0x100; auto memory = xe::memory::CreateFileMappingHandle( path, length, xe::memory::PageAccess::kReadWrite, true); - REQUIRE(memory != xe::memory::FileMappingHandleInvalid); + REQUIRE(memory != xe::memory::kFileMappingHandleInvalid); uintptr_t address = 0x100000000; auto view = @@ -447,7 +447,7 @@ TEST_CASE("read_write_view", "Virtual Memory Mapping") { auto path = fmt::format("xenia_test_{}", Clock::QueryHostTickCount()); auto memory = xe::memory::CreateFileMappingHandle( path, length, xe::memory::PageAccess::kReadWrite, true); - REQUIRE(memory != xe::memory::FileMappingHandleInvalid); + REQUIRE(memory != xe::memory::kFileMappingHandleInvalid); uintptr_t address = 0x100000000; auto view = |
