Searched defs:UnmanagedTestTraits (Results 1 – 2 of 2) sorted by relevance
179 struct UnmanagedTestTraits { struct180 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 …]
125 struct UnmanagedTestTraits { struct127 using PtrType = ObjType*;128 using AllocTraits = fbl::SlabAllocatorTraits130 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