class DriverRunnerTestBase
Defined at line 360 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 363 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
Protected Methods
TestRealm & realm ()
Defined at line 366 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
TestIntrospector & introspector ()
Defined at line 367 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
TestDirectory & driver_dir ()
Defined at line 368 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
TestDriverHost & driver_host ()
Defined at line 369 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 902 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
fidl::ClientEnd<fuchsia_driver_token::Debug> ConnectToDebug ()
Defined at line 277 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
FakeDriverIndex CreateDriverIndex ()
Defined at line 283 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void SetupDriverRunner (FakeDriverIndex driver_index)
Defined at line 344 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 356 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void EnableIntrospector ()
Defined at line 379 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 391 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void SetupDriverRunner ()
Defined at line 399 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 400 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void PrepareRealmForSecondDriverComponentStart ()
Defined at line 409 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void PrepareRealmForStartDriverHost (bool use_next_vdso)
Defined at line 412 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void PrepareRealmForStartDriverHostDynamicLinker ()
Defined at line 440 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
Devfs & devfs ()
Defined at line 474 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
DriverRunner & driver_runner ()
Defined at line 479 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.h
FakeDriverIndex & driver_index ()
Defined at line 481 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 484 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 489 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 499 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 604 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
zx::result<StartDriverResult> StartRootDriver ()
Defined at line 626 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 650 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 749 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void Unbind ()
Defined at line 685 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 697 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 724 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeNotBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 728 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeControllerBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 732 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void AssertNodeControllerNotBound (const std::shared_ptr<CreatedChild> & child)
Defined at line 736 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
inspect::Hierarchy Inspect ()
Defined at line 741 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc
void SetupDevfs ()
Defined at line 746 of file ../../src/devices/bin/driver_manager/tests/driver_runner_test_fixture.cc