summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-25 19:26:10 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-25 19:26:10 +0200
commit2a7d199df68d11f6fd1fa2b4186faa00d0e81676 (patch)
treed3dd701b8a582322da4d8ad0d5c7b777f02c926b /tests/ChunkData
parentMerge branch 'chunksparsing/structs' into AllocationPool (diff)
downloadcuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.gz
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.bz2
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.lz
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.xz
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.zst
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.zip
Diffstat (limited to '')
-rw-r--r--tests/ChunkData/Coordinates.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/ChunkData/Coordinates.cpp b/tests/ChunkData/Coordinates.cpp
index f94532183..3a4477fd6 100644
--- a/tests/ChunkData/Coordinates.cpp
+++ b/tests/ChunkData/Coordinates.cpp
@@ -8,8 +8,14 @@ int main(int argc, char** argv)
{
class cStarvationCallbacks
: public cAllocationPool<cChunkData::sChunkSection,1600>::cStarvationCallbacks
+ {
+ virtual void OnStartingUsingBuffer() {}
+ virtual void OnStopUsingBuffer() {}
+ virtual void OnBufferEmpty() {}
+ };
+ cAllocationPool<cChunkData::sChunkSection,1600> Pool(std::auto_ptr<cAllocationPool<cChunkData::sChunkSection,1600>::cStarvationCallbacks>(new cStarvationCallbacks()));
{
- cChunkData buffer;
+ cChunkData buffer(Pool);
// Empty chunks
buffer.SetBlock(0, 0, 0, 0xAB);