Searched refs:kAllocSize (Results 1 – 3 of 3) sorted by relevance
21 static constexpr size_t kAllocSize = 128; variable24 typedef nanoapp_testing::ChunkAllocator<kAllocSize, kSlotCount> DA;33 void *ptr = da.alloc(kAllocSize); in TEST()42 ptrs[i] = da.alloc(kAllocSize); in TEST()50 EXPECT_EQ(nullptr, da.alloc(kAllocSize)); in TEST()57 void *newPtr = da.alloc(kAllocSize); in TEST()66 uint8_t *ptr = static_cast<uint8_t *>(da.alloc(kAllocSize)); in TEST()75 EXPECT_EQ(nullptr, da.alloc(kAllocSize + 1)); in TEST()76 EXPECT_EQ(nullptr, da.alloc(kAllocSize * 2)); in TEST()81 ExpectGoodAlloc(da, da.alloc(kAllocSize - 1)); in TEST()
63 template <size_t kAllocSize, size_t kSlotCount>67 : ChunkAllocatorBase(kAllocSize, kSlotCount, mRawMemoryArray) {} in ChunkAllocator()98 uint8_t mRawMemoryArray[kAllocSize * kSlotCount];
30 constexpr size_t kAllocSize = 128; variable32 static ChunkAllocator<kAllocSize, 4> gChunkAlloc;35 if (messageSize > kAllocSize) { in freeChunkAllocMessage()