class DlLoadTestsBase
Defined at line 24 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.h
This is a common base class for test fixture classes and is the active
base class for non-Fuchsia tests. All Fuchsia-specific test fixtures should
override this (e.g. via DlLoadZirconTestsBase).
Public Methods
void ExpectRootModule (std::string_view name)
The Expect/Needed API checks that the test files exist in test paths as
expected, or are missing if the test files are expected to not be found.
Defined at line 27 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void ExpectMissing (std::string_view name)
Defined at line 31 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void Needed (std::initializer_list<std::string_view> names)
Defined at line 35 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void Needed (std::initializer_list<std::pair<std::string_view, bool>> name_found_pairs)
Defined at line 46 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void VerifyAndClearNeeded ()
There are no expectations set on this base class to verify and clear.
Defined at line 57 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.h
void FileCheck (std::string_view filename)
Check that startup modules are not retrieved from the filesystem.
Defined at line 57 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
fit::result<std::optional<SystemError>, File> RetrieveFile (Diagnostics & diag, std::string_view filename)
Retrieve a file from the filesystem. If the file is not found, a
fit::error{std::nullopt} is returned to the caller, otherwise a
fit::error{PosixError} is returned containing information about the
encountered system error.
Defined at line 61 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void TrackModule (void * file, const char * filename)
This is called when a test fixture DlOpens a file module.
Defined at line 84 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void UntrackModule (void * file)
This is called when a test fixture DlCloses a file module.
Defined at line 94 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void TearDown ()
At the end of the test, check that all files that were dlopened in the test
were also dlclosed.
Defined at line 73 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.cc
void CleanUpOpenedFile (void * ptr)
Test fixtures may override this function with the platform-specific dlclose
operation
void PrepareForTlsAccess ()
ModuleMap & opened_modules ()
Defined at line 83 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests-base.h