File: MemoryPool_test.cpp

package info (click to toggle)
encfs 1.9.5-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 13,560 kB
  • sloc: cpp: 77,790; python: 9,665; xml: 3,888; sh: 995; perl: 866; makefile: 513; ansic: 213; exp: 16; sed: 16
file content (12 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#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);
}