Home
last modified time | relevance | path

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

/openthread-latest/tests/unit/
Dtest_pool.cpp70 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()
[all …]