mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
16 lines
402 B
C++
16 lines
402 B
C++
|
|
#include "test.h"
|
|
|
|
#include <utility>
|
|
|
|
#include "libipc/mem/central_cache_allocator.h"
|
|
|
|
TEST(central_cache_allocator, allocate) {
|
|
auto &a = ipc::mem::central_cache_allocator();
|
|
ASSERT_FALSE(nullptr == a.allocate(1));
|
|
ASSERT_FALSE(nullptr == a.allocate(10));
|
|
ASSERT_FALSE(nullptr == a.allocate(100));
|
|
ASSERT_FALSE(nullptr == a.allocate(1000));
|
|
ASSERT_FALSE(nullptr == a.allocate(10000));
|
|
}
|