diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-06-16 16:12:50 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-06-16 16:12:50 +0200 |
commit | ee50790398791c38e563eee04cf12780fab74baf (patch) | |
tree | 2bbcebf1be2e567dce3f684884d8650c29883bd4 /tests/ChunkData/creatable.cpp | |
parent | Fix a few warnings (diff) | |
download | cuberite-ee50790398791c38e563eee04cf12780fab74baf.tar cuberite-ee50790398791c38e563eee04cf12780fab74baf.tar.gz cuberite-ee50790398791c38e563eee04cf12780fab74baf.tar.bz2 cuberite-ee50790398791c38e563eee04cf12780fab74baf.tar.lz cuberite-ee50790398791c38e563eee04cf12780fab74baf.tar.xz cuberite-ee50790398791c38e563eee04cf12780fab74baf.tar.zst cuberite-ee50790398791c38e563eee04cf12780fab74baf.zip |
Diffstat (limited to '')
-rw-r--r-- | tests/ChunkData/creatable.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/ChunkData/creatable.cpp b/tests/ChunkData/creatable.cpp index 1321bf49b..fc786f688 100644 --- a/tests/ChunkData/creatable.cpp +++ b/tests/ChunkData/creatable.cpp @@ -4,6 +4,19 @@ int main(int argc, char** argv) { - cChunkData buffer; + class cMockAllocationPool + : public cAllocationPool<cChunkData::sChunkSection> + { + virtual cChunkData::sChunkSection * Allocate() + { + return new cChunkData::sChunkSection(); + } + + virtual void Free(cChunkData::sChunkSection * a_Ptr) + { + delete a_Ptr; + } + } Pool; + cChunkData buffer(Pool); return 0; } |