Home
last modified time | relevance | path

Searched refs:kAllocSize (Results 1 – 3 of 3) sorted by relevance

/chre-3.4.0/apps/test/chqts/src/shared/
Dchunk_allocator_test.cc21 static constexpr size_t kAllocSize = 128; variable
24 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()
Dchunk_allocator.h63 template <size_t kAllocSize, size_t kSlotCount>
67 : ChunkAllocatorBase(kAllocSize, kSlotCount, mRawMemoryArray) {} in ChunkAllocator()
98 uint8_t mRawMemoryArray[kAllocSize * kSlotCount];
Dsend_message.cc30 constexpr size_t kAllocSize = 128; variable
32 static ChunkAllocator<kAllocSize, 4> gChunkAlloc;
35 if (messageSize > kAllocSize) { in freeChunkAllocMessage()