encfs/test/MemoryPool_test.cpp

12 lines
268 B
C++
Raw Normal View History

2017-08-06 18:40:44 +02:00
#include "gtest/gtest.h"
#include "encfs/MemoryPool.h"
2017-08-06 18:40:44 +02:00
using namespace encfs;
TEST(MemoryPool, Allocate) {
auto block = MemoryPool::allocate(1024);
ASSERT_TRUE(block.data != nullptr);
ASSERT_TRUE(block.internalData != nullptr);
MemoryPool::release(block);
}