summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-06-14 19:19:34 +0200
committerTycho <work.tycho+git@gmail.com>2014-06-14 19:19:34 +0200
commita2df68b80b3ccb4395922c4351d4bd2f366003db (patch)
treeb54f6fac25105ad1810fe5aa46a85608530a4405 /tests
parentfixed const issue (diff)
downloadcuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.gz
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.bz2
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.lz
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.xz
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.zst
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.zip
Diffstat (limited to 'tests')
-rw-r--r--tests/ChunkData/CopyBlocks.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ChunkData/CopyBlocks.cpp b/tests/ChunkData/CopyBlocks.cpp
index be8cab234..7f8f66c4d 100644
--- a/tests/ChunkData/CopyBlocks.cpp
+++ b/tests/ChunkData/CopyBlocks.cpp
@@ -17,7 +17,15 @@
int main(int argc, char ** argv)
{
// Set up a cChunkData with known contents - all blocks 0x01, all metas 0x02:
- cChunkData Data;
+ 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 Data(Pool);
cChunkDef::BlockTypes BlockTypes;
cChunkDef::BlockNibbles BlockMetas;
memset(BlockTypes, 0x01, sizeof(BlockTypes));