mirror of
https://github.com/vgough/encfs.git
synced 2024-11-24 17:03:13 +01:00
12 lines
268 B
C++
12 lines
268 B
C++
#include "gtest/gtest.h"
|
|
|
|
#include "encfs/MemoryPool.h"
|
|
|
|
using namespace encfs;
|
|
|
|
TEST(MemoryPool, Allocate) {
|
|
auto block = MemoryPool::allocate(1024);
|
|
ASSERT_TRUE(block.data != nullptr);
|
|
ASSERT_TRUE(block.internalData != nullptr);
|
|
MemoryPool::release(block);
|
|
} |