Records
Functions
-
template <class TestFixture>ld::DlPhdrInfoCounts GetGlobalCounters (TestFixture * test_fixture)TODO(https://fxbug.dev/394873439): Test the sequential changes in state of
these counters.
Return loaded and unloaded counters; these counters describe the state of
the number of modules that have been loaded and unloaded when this call was
made.
Defined at line 23 of file ../../sdk/lib/c/dlfcn/dl/test/dl-iterate-phdr-tests.h
-
template <auto& test>ModulePhdrInfo GetPhdrInfoForModule (auto & test, std::string_view module_name)Locate the dl_phdr_info for a specific module by its file basename.
Defined at line 42 of file ../../sdk/lib/c/dlfcn/dl/test/dl-iterate-phdr-tests.h
-
template <typename T>T RunFunction (void * symbol)Cast `symbol` into a function returning type T and run it.
Defined at line 60 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
template <, >IsUndefinedSymbolErrMsgMatcherP2<symbol_name_type, module_name_type> IsUndefinedSymbolErrMsg (symbol_name_type gmock_p0, module_name_type gmock_p1)A matcher that uses a MatchesRegex object that matches the format of the
error messages for dlopen() and dlsym() when a symbol is undefined.
Example: `EXPECT_THAT(msg, IsUndefinedSymbolErrMsg(name, module));`
Defined at line 68 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
std::ostream & operator<< (std::ostream & os, const ModulePhdrInfo & info)Defined at line 75 of file ../../sdk/lib/c/dlfcn/dl/test/module-phdr-info.h
-
template <>IsFileNotFoundErrMsgMatcherP<file_type> IsFileNotFoundErrMsg (file_type gmock_p0)Defined at line 82 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
int CollectModulePhdrInfo (dl_phdr_info * phdr_info, size_t size, void * data)A `dl_iterate_phdr` callback that collects the dl_iterate_phdr information
of all loaded modules. This will push an instance of the `DlPhdrInfo` to the
`ModuleInfoList*` that is passed in via the `data` pointer.
Defined at line 90 of file ../../sdk/lib/c/dlfcn/dl/test/module-phdr-info.h
-
template <, >IsDepFileNotFoundErrMsgMatcherP2<file_type, dep_file_type> IsDepFileNotFoundErrMsg (file_type gmock_p0, dep_file_type gmock_p1)Defined at line 93 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
std::pair<std::string_view, bool> Found (std::string_view name)These are a convenience functions to specify that a specific dependency
should or should not be found in the Needed set.
Defined at line 108 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
std::pair<std::string_view, bool> NotFound (std::string_view name)Defined at line 110 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
std::string TestSym (std::string_view symbol)Helper functions that will suffix strings with the current test name.
Defined at line 116 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
std::string TestModule (std::string_view symbol)Defined at line 122 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
-
std::string TestShlib (std::string_view symbol)Defined at line 128 of file ../../sdk/lib/c/dlfcn/dl/test/dl-load-tests.h
Variables
const ModuleInfoList gStartupPhdrInfo
Defined at line 24 of file ../../sdk/lib/c/dlfcn/dl/test/module-phdr-info.cc