summaryrefslogtreecommitdiffstats
path: root/tests/ByteBuffer
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ByteBuffer/CMakeLists.txt1
-rw-r--r--tests/ByteBuffer/Stubs.cpp16
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/ByteBuffer/CMakeLists.txt b/tests/ByteBuffer/CMakeLists.txt
index 12c2f6e3c..06832848e 100644
--- a/tests/ByteBuffer/CMakeLists.txt
+++ b/tests/ByteBuffer/CMakeLists.txt
@@ -19,6 +19,7 @@ set (SHARED_HDRS
set (SRCS
ByteBufferTest.cpp
+ Stubs.cpp
)
source_group("Shared" FILES ${SHARED_SRCS} ${SHARED_HDRS})
diff --git a/tests/ByteBuffer/Stubs.cpp b/tests/ByteBuffer/Stubs.cpp
new file mode 100644
index 000000000..c3271ff31
--- /dev/null
+++ b/tests/ByteBuffer/Stubs.cpp
@@ -0,0 +1,16 @@
+
+// Stubs.cpp
+
+// Implements stubs of various Cuberite methods that are needed for linking but not for runtime
+// This is required so that we don't bring in the entire Cuberite via dependencies
+
+#include "Globals.h"
+#include "UUID.h"
+
+
+
+
+void cUUID::FromRaw(const std::array<Byte, 16> &){}
+
+
+