diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-06-16 16:22:02 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-06-16 16:22:02 +0200 |
commit | d5c84b5fe6358c0763f2b5695914ff34c74dd912 (patch) | |
tree | 96b703b1a7e052f74a8d270fb0278e5acb70435a /tests/ChunkData/creatable.cpp | |
parent | Moved repeater handling to seperate pass (diff) | |
parent | Merge branch 'master' of github.com:mc-server/MCServer (diff) | |
download | cuberite-d5c84b5fe6358c0763f2b5695914ff34c74dd912.tar cuberite-d5c84b5fe6358c0763f2b5695914ff34c74dd912.tar.gz cuberite-d5c84b5fe6358c0763f2b5695914ff34c74dd912.tar.bz2 cuberite-d5c84b5fe6358c0763f2b5695914ff34c74dd912.tar.lz cuberite-d5c84b5fe6358c0763f2b5695914ff34c74dd912.tar.xz cuberite-d5c84b5fe6358c0763f2b5695914ff34c74dd912.tar.zst cuberite-d5c84b5fe6358c0763f2b5695914ff34c74dd912.zip |
Diffstat (limited to 'tests/ChunkData/creatable.cpp')
-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; } |