summaryrefslogtreecommitdiffstats
path: root/src/tests/common/host_memory.cpp
diff options
context:
space:
mode:
authorWunkolo <Wunkolo@gmail.com>2021-06-23 23:18:27 +0200
committerWunkolo <Wunkolo@gmail.com>2021-06-24 18:27:40 +0200
commit4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c (patch)
tree591792bc47e26bc812e753b0891aab94a8a88352 /src/tests/common/host_memory.cpp
parentMerge pull request #6504 from Kelebek1/samples-played (diff)
downloadyuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar
yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.gz
yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.bz2
yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.lz
yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.xz
yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.tar.zst
yuzu-4569f39c7c1e3d7ce010f0b120e1f45dbba17b1c.zip
Diffstat (limited to 'src/tests/common/host_memory.cpp')
-rw-r--r--src/tests/common/host_memory.cpp4
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 @@
#include <catch2/catch.hpp>
#include "common/host_memory.h"
+#include "common/literals.h"
using Common::HostMemory;
+using namespace Common::Literals;
static constexpr size_t VIRTUAL_SIZE = 1ULL << 39;
-static constexpr size_t BACKING_SIZE = 4ULL * 1024 * 1024 * 1024;
+static constexpr size_t BACKING_SIZE = 4_GiB;
TEST_CASE("HostMemory: Initialize and deinitialize", "[common]") {
{ HostMemory mem(BACKING_SIZE, VIRTUAL_SIZE); }