class TestPkg

Defined at line 74 of file ../../src/devices/bin/driver_manager/tests/test_pkg.h

Implementation of a /pkg directory that can be passed as a component namespace entry

for the started driver host or driver component.

Public Methods

void TestPkg (fidl::ServerEnd<fuchsia_io::Directory> server, std::string_view module_test_pkg_path, std::string_view module_open_path, const std::vector<std::string_view> expected_libs, const std::vector<ModuleConfig> additional_modules_configs)

|server| is the channel that will be served by |TestPkg|.

|module_test_pkg_path| is where the module is located in the test's package. e.g.

/pkg/bin/driver_host2.

|module_open_path| is the path that will be requested to the /pkg open

handler for the module. e.g. bin/driver_host2.

|expected_libs| holds that names of the libraries that are needed by the module.

This list will be used to construct the test files that the driver host runner

or driver runner expects to be present in the "/pkg/libs" dir that will be passed

to the dynamic linker. No additional validation is done on the strings in |expected_libs|.

Defined at line 9 of file ../../src/devices/bin/driver_manager/tests/test_pkg.cc

void TestPkg (fidl::ServerEnd<fuchsia_io::Directory> server, Config config)

Defined at line 114 of file ../../src/devices/bin/driver_manager/tests/test_pkg.h

void ~TestPkg ()

Defined at line 118 of file ../../src/devices/bin/driver_manager/tests/test_pkg.h

Records