diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-05-25 19:26:10 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-05-25 19:26:10 +0200 |
commit | 2a7d199df68d11f6fd1fa2b4186faa00d0e81676 (patch) | |
tree | d3dd701b8a582322da4d8ad0d5c7b777f02c926b /tests | |
parent | Merge branch 'chunksparsing/structs' into AllocationPool (diff) | |
download | cuberite-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.cpp | 8 |
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); |