template <class Base>
class DlImplTests
Defined at line 58 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
The Base class provides testing facilities and logic specific to the
platform the test is running on. DlImplTests invokes Base methods when
functions need to operate differently depending on the OS.
Public Members
static const bool kCanMatchExactError
static const bool kDlCloseCanRunFinalizers
static const bool kDlCloseUnloadsModules
static const bool kSonameLookupInPendingDeps
static ResolverPolicy kResolverPolicy
static const bool kSonameLookupInLoadedDeps
Public Methods
void SetUp ()
Defined at line 105 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
void TearDown ()
Defined at line 113 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
fit::result<Error, void *> DlOpen (const char * file, int mode)
Defined at line 115 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
fit::result<Error> DlClose (void * module)
TODO(https://fxbug.dev/342028933): Implement dlclose.
Defined at line 136 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
fit::result<Error, void *> DlSym (void * module, const char * ref)
Defined at line 148 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
int DlIteratePhdr (DlIteratePhdrCallback * callback, void * data)
Defined at line 153 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
void CleanUpOpenedFile (void * ptr)
The `dynamic_linker_-> dtor will also destroy and unmap modules remaining
in its modules list, so there is no need to do any extra clean up
operation.
Defined at line 160 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
void PrepareForTlsAccess ()
A test will call this function before the running thread accesses a TLS
variable. This function will allocate and initialize TLS data on the
thread so the thread can access that data.
Defined at line 165 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
const link_map * ModuleLinkMap (const void * handle)
Return the `link_map` data structure associated with a module. `handle`
should be a valid pointer returned by a successful dlopen() call.
Defined at line 169 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h
fit::result<Error, int> DlInfo (void * module, int request, void * info)
Defined at line 173 of file ../../sdk/lib/c/dlfcn/dl/test/dl-impl-tests.h