Home
last modified time | relevance | path

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

/system/utest/fbl/include/fbl/tests/intrusive_containers/
A Dobjects.h179 struct UnmanagedTestTraits { struct
180 using ObjType = _ObjType;
181 using PtrType = typename ptr_type::Unmanaged<ObjType>::type;
182 using ConstPtrType = const ObjType*;
183 using ContainerType = typename ObjType::ContainerTraits::ContainerType;
185 static PtrType CreateObject(size_t value) { in CreateObject()
191 static void ReleaseObject(PtrType& ptr) { in ReleaseObject()
196 static bool CheckCustomDeleteInvocations(size_t expected) { return true; } in CheckCustomDeleteInvocations()
197 static void ResetCustomDeleter() { } in ResetCustomDeleter()
200 static inline PtrType& Transfer(PtrType& ptr) { return ptr; } in Transfer()
[all …]
/system/utest/fbl/
A Dslab_allocator_tests.cpp125 struct UnmanagedTestTraits { struct
127 using PtrType = ObjType*;
128 using AllocTraits = fbl::SlabAllocatorTraits
130 using AllocatorType = fbl::SlabAllocator<AllocTraits>;
131 using RefList = fbl::DoublyLinkedList<PtrType>;
133 class ObjType : public TestBase,
143 static constexpr size_t MaxSlabs = 4;
144 static constexpr bool IsManaged = false;
145 static constexpr size_t MaxAllocs(size_t slabs) { return AllocatorType::AllocsPerSlab * slabs; } in MaxAllocs()

Completed in 9 milliseconds