class DriverRunnerTestBase
Defined at line 355 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
Public Methods
void DriverRunnerTestBase ()
Defined at line 251 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void TearDown ()
Defined at line 358 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
Protected Methods
TestRealm & realm ()
Defined at line 361 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
TestIntrospector & introspector ()
Defined at line 362 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
TestDirectory & driver_dir ()
Defined at line 363 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
TestDriverHost & driver_host ()
Defined at line 364 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
fidl::WireClient<fuchsia_device::Controller> ConnectToDeviceController (std::string_view child_name)
Defined at line 900 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
fidl::ClientEnd<fuchsia_component::Realm> ConnectToRealm ()
Defined at line 255 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
fidl::ClientEnd<fuchsia_component::Introspector> ConnectToIntrospector ()
Defined at line 262 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
fidl::ClientEnd<fuchsia_component_sandbox::CapabilityStore> ConnectToCapabilityStore ()
Defined at line 269 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
FakeDriverIndex CreateDriverIndex ()
Defined at line 277 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void SetupDriverRunner (FakeDriverIndex driver_index)
Defined at line 338 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void SetupDriverRunnerWithDynamicLinker (async_dispatcher_t * loader_dispatcher, std::unique_ptr<driver_manager::DriverHostRunner> driver_host_runner, FakeDriverIndex fake_driver_index, std::optional<uint32_t> wait_for_num_drivers)
If |wait_for_num_drivers| is set , the driver host will be sent a message to exit after that
many drivers have been loaded. This only needs to be set if the test is explicitly waiting for
the driver host process to exit, usually to verify the exit value.
Defined at line 350 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void EnableIntrospector ()
Defined at line 373 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
void SetupDriverRunnerWithDynamicLinker (async_dispatcher_t * loader_dispatcher, std::unique_ptr<driver_manager::DriverHostRunner> driver_host_runner, std::optional<uint32_t> wait_for_num_drivers)
Defined at line 385 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void SetupDriverRunner ()
Defined at line 393 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void PrepareRealmForDriverComponentStart (const std::string & name, const std::string & url)
Defined at line 394 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void PrepareRealmForSecondDriverComponentStart ()
Defined at line 403 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void PrepareRealmForStartDriverHost (bool use_next_vdso)
Defined at line 406 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void PrepareRealmForStartDriverHostDynamicLinker ()
Defined at line 434 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
Devfs & devfs ()
Defined at line 468 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
DriverRunner & driver_runner ()
Defined at line 473 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
FakeDriverIndex & driver_index ()
Defined at line 475 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
StopListener & ServeStopListener (fidl::ClientEnd<fuchsia_component_runner::ComponentController> component, fidl::AnyTeardownObserver observer)
Defined at line 478 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void StopDriverComponent (fidl::ClientEnd<fuchsia_component_runner::ComponentController> component)
Defined at line 483 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
StartDriverResult StartDriver (std::string_view moniker, Driver driver, std::optional<StartDriverHandler> start_handler, fidl::ClientEnd<fuchsia_io::Directory> ns_pkg, fidl::ClientEnd<fuchsia_io::Directory> driver_host_pkg)
If |ns_pkg| is set, it will be provided as the /pkg directory in the driver component's
namespace.
If a new driver host is required to be started (i.e. the driver is not colocated),
and dynamic linking is enabled, |driver_host_pkg| will be provided as the /pkg directory in the
driver host component's namespace.
Defined at line 493 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
StartDriverResult StartDriverWithConfig (std::string_view moniker, Driver driver, std::optional<StartDriverHandler> start_handler, test_utils::TestPkg::Config driver_config, test_utils::TestPkg::Config driver_host_config)
Variant of |StartDriver| that takes in a test pkg config rather than the pkg directory client.
If the driver has opted into dynamic linking, the fake /pkg directory will be provided to
the driver component's namespace.
Defined at line 598 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
zx::result<StartDriverResult> StartRootDriver ()
Defined at line 620 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
zx::result<StartDriverResult> StartRootDriverDynamicLinking (test_utils::TestPkg::Config driver_host_config, test_utils::TestPkg::Config driver_config)
Defined at line 644 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
StartDriverResult StartSecondDriver (std::string_view moniker, bool colocate, bool host_restart_on_crash, bool use_next_vdso, bool use_dynamic_linker)
Defined at line 743 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void Unbind ()
Defined at line 679 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void ValidateProgram (std::optional< ::fuchsia_data::Dictionary> & program, std::string_view binary, std::string_view colocate, std::string_view host_restart_on_crash, std::string_view use_next_vdso, std::string_view use_dynamic_linker, std::string_view compat)
Defined at line 691 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 718 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeNotBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 722 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeControllerBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 726 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeControllerNotBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 730 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
inspect::Hierarchy Inspect ()
Defined at line 735 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void SetupDevfs ()
Defined at line 740 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc