Records

Functions

  • elfldltl::Soname<> GetVdsoSoname ()

    Defined at line 14 of file ../../sdk/lib/ld/testing/vdso.cc

  • zx::vmo GetExecutableVmo (std::string_view executable)

    Defined at line 13 of file ../../sdk/lib/ld/testing/get-test-vmo.cc

  • std::filesystem::path GetExecutableLibPath (std::string_view executable, std::optional<std::string_view> libprefix)

    This yields the path prefix for dependencies of the executable packages as

    GetExecutableVmo() will find it. See

    <lib

    /ld/testing/interp.h>; the

    libprefix should match its ld::testing::ConfigFromInterp() result, if any.

    The returned path can be passed to elfldltl::testing::GetLibVmo.

    Defined at line 19 of file ../../sdk/lib/ld/testing/get-test-vmo.cc

  • template <zx_koid_t zx_info_handle_basic_t::* Member = &zx_info_handle_basic_t::koid>
    void GetKoid (const zx::object_base & obj, zx_koid_t & koid)

    Defined at line 22 of file ../../sdk/lib/ld/test/debugdata-tests.h

  • zx::unowned_vmo GetVdsoVmo ()

    Defined at line 23 of file ../../sdk/lib/ld/testing/vdso.cc

  • std::optional<std::string> ConfigFromInterp (const std::filesystem::path & interp, std::optional<std::string_view> expected_config)

    This extracts the prefix (before '/') from a PT_INTERP string and optionally

    registers gtest failures if it doesn't match the expected value.

    Defined at line 13 of file ../../sdk/lib/ld/testing/interp.cc

  • void MakeEventPair (zx::eventpair & eventpair0, zx::eventpair & eventpair1)

    Defined at line 29 of file ../../sdk/lib/ld/test/debugdata-tests.h

  • template <template <class Diagnostics> class File, typename FileArg>
    std::string FindInterp (FileArg && file_arg)

    Defined at line 33 of file ../../sdk/lib/ld/testing/include/lib/ld/testing/interp.h

  • void MakeTestVmo (zx::vmo & vmo)

    Defined at line 34 of file ../../sdk/lib/ld/test/debugdata-tests.h

  • template <>
    ObjNameMatchesMatcherP<matcher_type> ObjNameMatches (matcher_type gmock_p0)

    This is a matcher for use in EXPECT_CALL in the place of any zx::... handle

    type argument. Its argument is a matcher applied against the VMO name as a

    std::string.

    Defined at line 39 of file ../../sdk/lib/ld/testing/include/lib/ld/testing/mock-debugdata.h

  • template <>
    ObjKoidMatchesMatcherP<matcher_type> ObjKoidMatches (matcher_type gmock_p0)

    This is a matcher for use in EXPECT_CALL in the place of any zx::... handle

    type argument. Its argument is a matcher applied against the KOID.

    Defined at line 56 of file ../../sdk/lib/ld/testing/include/lib/ld/testing/mock-debugdata.h

  • template <class Elf = elfldltl::Elf<>>
    ld::RemoteLoadModule<Elf>::SymbolFilter PerfectSymbolFilterTest (elfldltl::testing::ExpectOkDiagnostics & , typename RemoteDecodedModule<Elf>::Ptr module)
  • template <>
    VmoContentsMatchMatcherP<matcher_type> VmoContentsMatch (matcher_type gmock_p0)

    This is a matcher for use in EXPECT_CALL in the place of the VMO argument.

    Its argument is a matcher applied against the VMO contents as std::string.

    Defined at line 70 of file ../../sdk/lib/ld/testing/include/lib/ld/testing/mock-debugdata.h

Variables

const std::array<elfldltl::Elf<>::Phdr, sizeof...(Segments)> kTestElfLoadSegments

Defined at line 42 of file ../../sdk/lib/ld/testing/include/lib/ld/testing/test-elf-object.h

const elfldltl::Elf<>::Phdr kTestElfLoadSegment

Defined at line 49 of file ../../sdk/lib/ld/testing/include/lib/ld/testing/test-elf-object.h

const std::array<const TestElfObject *, sizeof...(Objects)> kTestElfObjectList

Defined at line 101 of file ../../sdk/lib/ld/testing/include/lib/ld/testing/test-elf-object.h

const abi::Abi<> gStartupLdAbi

Defined at line 234 of file ../../sdk/lib/ld/testing/startup-ld-abi.cc