Home
last modified time | relevance | path

Searched defs:RefPtrTestTraits (Results 1 – 2 of 2) sorted by relevance

/system/utest/fbl/include/fbl/tests/intrusive_containers/
A Dobjects.h291 struct RefPtrTestTraits { struct
292 using ObjType = _ObjType;
293 using PtrType = typename ptr_type::RefPtr<ObjType>::type;
294 using ConstPtrType = const PtrType;
295 using ContainerType = typename ObjType::ContainerTraits::ContainerType;
297 static PtrType CreateObject(size_t value) { in CreateObject()
303 static void ReleaseObject(PtrType& ptr) { in ReleaseObject()
307 static bool CheckCustomDeleteInvocations(size_t expected) { return true; } in CheckCustomDeleteInvocations()
308 static void ResetCustomDeleter() { } in ResetCustomDeleter()
312 static inline PtrType& Transfer(PtrType& ptr) { return ptr; } in Transfer()
[all …]
/system/utest/fbl/
A Dslab_allocator_tests.cpp174 struct RefPtrTestTraits { struct
176 using PtrType = fbl::RefPtr<ObjType>;
177 using AllocTraits = fbl::SlabAllocatorTraits
179 using AllocatorType = fbl::SlabAllocator<AllocTraits>;
180 using RefList = fbl::DoublyLinkedList<PtrType>;
182 class ObjType : public TestBase,
193 static constexpr size_t MaxSlabs = 4;
194 static constexpr bool IsManaged = true;
195 static constexpr size_t MaxAllocs(size_t slabs) { return AllocatorType::AllocsPerSlab * slabs; } in MaxAllocs()

Completed in 13 milliseconds