Searched refs:kAllocSize (Results 1 – 3 of 3) sorted by relevance
21 static constexpr size_t kAllocSize = 128; variable24 typedef nanoapp_testing::DumbAllocator<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()
64 template<size_t kAllocSize, size_t kSlotCount>68 : DumbAllocatorBase(kAllocSize, kSlotCount, mRawMemoryArray) {} in DumbAllocator()99 uint8_t mRawMemoryArray[kAllocSize * kSlotCount];
30 constexpr size_t kAllocSize = 128; variable32 static DumbAllocator<kAllocSize, 4> gDumbAlloc;35 if (messageSize > kAllocSize) { in freeDumbAllocMessage()