Searched defs:UniquePtrTestTraits (Results 1 – 2 of 2) sorted by relevance
206 struct UniquePtrTestTraits { struct207 using ObjType = _ObjType;208 using PtrType = typename ptr_type::UniquePtr<ObjType>::type;209 using ConstPtrType = const PtrType;210 using ContainerType = typename ObjType::ContainerTraits::ContainerType;212 static PtrType CreateObject(size_t value) { in CreateObject()218 static void ReleaseObject(PtrType& ptr) { in ReleaseObject()222 static bool CheckCustomDeleteInvocations(size_t expected) { return true; } in CheckCustomDeleteInvocations()223 static void ResetCustomDeleter() { } in ResetCustomDeleter()226 static inline PtrType&& Transfer(PtrType& ptr) { return std::move(ptr); } in Transfer()[all …]
149 struct UniquePtrTestTraits { struct151 using PtrType = fbl::unique_ptr<ObjType>;152 using AllocTraits = fbl::SlabAllocatorTraits154 using AllocatorType = fbl::SlabAllocator<AllocTraits>;155 using RefList = fbl::DoublyLinkedList<PtrType>;157 class ObjType : public TestBase,168 static constexpr size_t MaxSlabs = 4;169 static constexpr bool IsManaged = true;170 static constexpr size_t MaxAllocs(size_t slabs) { return AllocatorType::AllocsPerSlab * slabs; } in MaxAllocs()
Completed in 6 milliseconds