Home
last modified time | relevance | path

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

/system/utest/fbl/include/fbl/tests/intrusive_containers/
A Dobjects.h206 struct UniquePtrTestTraits { struct
207 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 …]
/system/utest/fbl/
A Dslab_allocator_tests.cpp149 struct UniquePtrTestTraits { struct
151 using PtrType = fbl::unique_ptr<ObjType>;
152 using AllocTraits = fbl::SlabAllocatorTraits
154 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