Namespaces

Records

Functions

  • 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 75 of file ../../src/lib/fidl/llcpp/tests/dispatcher/intrusive_container/test_environment_utils.h