Lines Matching refs:aPool
70 void VerifyEntry(EntryPool &aPool, const Entry &aEntry, bool aInitWithInstance) in VerifyEntry() argument
73 const EntryPool &constPool = const_cast<const EntryPool &>(aPool); in VerifyEntry()
75 VerifyOrQuit(aPool.IsPoolEntry(aEntry)); in VerifyEntry()
76 …VerifyOrQuit(!aPool.IsPoolEntry(sNonPoolEntry), "Pool::IsPoolEntry() succeeded for non-pool entry"… in VerifyEntry()
78 index = aPool.GetIndexOf(aEntry); in VerifyEntry()
79 VerifyOrQuit(&aPool.GetEntryAt(index) == &aEntry); in VerifyEntry()
85 void TestPool(EntryPool &aPool, bool aInitWithInstance) in TestPool() argument
89 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
93 entry = aPool.Allocate(); in TestPool()
96 VerifyEntry(aPool, *entry, aInitWithInstance); in TestPool()
101 …VerifyOrQuit(aPool.Allocate() == nullptr, "Pool::Allocate() did not fail when all pool entries wer… in TestPool()
105 VerifyEntry(aPool, *entries[i], aInitWithInstance); in TestPool()
106 aPool.Free(*entries[i]); in TestPool()
111 entries[i] = aPool.Allocate(); in TestPool()
114 VerifyEntry(aPool, *entries[i], aInitWithInstance); in TestPool()
118 …VerifyOrQuit(aPool.Allocate() == nullptr, "Pool::Allocate() did not fail when all pool entries wer… in TestPool()