diff options
| author | 2021-06-24 19:09:12 -0700 | |
|---|---|---|
| committer | 2021-06-24 19:09:12 -0700 | |
| commit | b9c2732121e2594a64d1141807c7d5bd0f317d0f (patch) | |
| tree | 700ab748e15d1e7d5cf7f58f2cbac133b7a84915 /src/tests/common/host_memory.cpp | |
| parent | Merge pull request #6522 from Morph1984/pragma (diff) | |
| parent | common: Replace common_sizes into user-literals (diff) | |
| download | yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar.gz yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.tar.xz yuzu-b9c2732121e2594a64d1141807c7d5bd0f317d0f.zip | |
Merge pull request #6519 from Wunkolo/mem-size-literal
common: Replace common_sizes into user-literals
Diffstat (limited to 'src/tests/common/host_memory.cpp')
| -rw-r--r-- | src/tests/common/host_memory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/common/host_memory.cpp b/src/tests/common/host_memory.cpp index e241f8be5..2dc7b5d5e 100644 --- a/src/tests/common/host_memory.cpp +++ b/src/tests/common/host_memory.cpp | |||
| @@ -5,11 +5,13 @@ | |||
| 5 | #include <catch2/catch.hpp> | 5 | #include <catch2/catch.hpp> |
| 6 | 6 | ||
| 7 | #include "common/host_memory.h" | 7 | #include "common/host_memory.h" |
| 8 | #include "common/literals.h" | ||
| 8 | 9 | ||
| 9 | using Common::HostMemory; | 10 | using Common::HostMemory; |
| 11 | using namespace Common::Literals; | ||
| 10 | 12 | ||
| 11 | static constexpr size_t VIRTUAL_SIZE = 1ULL << 39; | 13 | static constexpr size_t VIRTUAL_SIZE = 1ULL << 39; |
| 12 | static constexpr size_t BACKING_SIZE = 4ULL * 1024 * 1024 * 1024; | 14 | static constexpr size_t BACKING_SIZE = 4_GiB; |
| 13 | 15 | ||
| 14 | TEST_CASE("HostMemory: Initialize and deinitialize", "[common]") { | 16 | TEST_CASE("HostMemory: Initialize and deinitialize", "[common]") { |
| 15 | { HostMemory mem(BACKING_SIZE, VIRTUAL_SIZE); } | 17 | { HostMemory mem(BACKING_SIZE, VIRTUAL_SIZE); } |