Namespaces

Records

Functions

  • template <typename T>
    void swap_test (const T initial_a, const T initial_b)

    Defined at line 16 of file ../../zircon/system/ulib/fbl/test/intrusive_container_tests.cc

  • template <typename ContainerType>
    auto MakeContainerAutoCleanup (ContainerType * container)

    If we make containers other than |container_| during a test, it is

    important to make sure that the container is properly cleared if it is a

    container of unmanaged pointers. Containers of unmanaged pointers will

    DEBUG_ASSERT if they go out of scope with elements still in them, and the

    RAII nature of the testing framework means that if the test fails because

    of a test assert, it will simply return immediately.

    So, add a utility function which makes it simple to create an auto call

    which will handle the cleanup task for us.

    Defined at line 74 of file ../../zircon/system/ulib/fbl/test/include/fbl/tests/intrusive_containers/test_environment_utils.h