template <typename _ObjType>
struct UnmanagedTestTraits
Defined at line 186 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h
Test trait structures contain utilities which define test behavior for the
five types of pointers which are managed by intrusive containers (see above).
Defined behaviors include...
1) Allocating a valid version of a pointer to a TestObj of the proper type.
2) "Transferring" a pointer (eg. copying if the pointer type supports copying,
otherwise moving).
3) Testing to see if a pointer to an object was properly transferred into a
container.
4) Testing to see if a pointer to an object was properly moved into a
container.
5) Checking to see if the number of times an associated custom deleter was
invoked.
5) Resetting any assoicated custom deleter state.
Public Methods
PtrType CreateObject (size_t value)
Defined at line 192 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h
void ReleaseObject (PtrType & ptr)
Defined at line 198 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h
void CheckCustomDeleteInvocations (size_t expected)
Defined at line 203 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h
void ResetCustomDeleter ()
Defined at line 204 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h
PtrType & Transfer (PtrType & ptr)
Unmanaged pointers never get cleared when being moved or transferred.
Defined at line 207 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h
bool WasTransferred (const ConstPtrType & ptr)
Defined at line 208 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h
bool WasMoved (const ConstPtrType & ptr)
Defined at line 209 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/objects.h