class OptionsBuilder
Defined at line 26 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.h
Builder class to make the |Options| type.
Public Methods
OptionsBuilder & using_subpackage (bool using_subpackage)
Whether the driver test realm is included through a subpackage or as a direct dependency.
This is generally false for in-tree gn based tests, and true for bazel based tests.
Defined at line 16 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc
OptionsBuilder & driver_offers (component_testing::Ref provider, const std::vector<fuchsia_component_test::Capability> & offers)
The list of capabilities offered to all drivers brought up in the test realm. These are all
provided by the given Ref.
Defined at line 21 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc
OptionsBuilder & driver_exposes (const std::vector<fuchsia_component_test::Capability> & exposes)
The list of capabilities exposed by drivers in the test realm to the test. To connect to these
from the test use the created realm root's exposed directory.
Defined at line 28 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc
OptionsBuilder & add_extra_realm_capability (fuchsia_component_test::Capability capability, component_testing::Ref provider)
Extra capabilities that are provided to the driver test realm in general. These are
optional capabilities that are by default routed from void, unless provided here.
For example:
fuchsia.tracing.provider.Registry
Defined at line 34 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc
Options Build ()
Returns the options type.
Defined at line 49 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.h