class RealmArgs

Defined at line 946 of file fidling/gen/sdk/fidl/fuchsia.driver.test/fuchsia.driver.test/cpp/fidl/fuchsia.driver.test/cpp/natural_types.h

A list of arguments that can be used to configure DriverTestRealm.

Public Methods

void RealmArgs (RealmArgs && )

Defined at line 953 of file fidling/gen/sdk/fidl/fuchsia.driver.test/fuchsia.driver.test/cpp/fidl/fuchsia.driver.test/cpp/natural_types.h

void RealmArgs (Storage_ storage)
bool IsEmpty ()
void RealmArgs ()

Defined at line 952 of file fidling/gen/sdk/fidl/fuchsia.driver.test/fuchsia.driver.test/cpp/fidl/fuchsia.driver.test/cpp/natural_types.h

const std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> & boot ()

This is what DriverManager will see as its boot directory.

Default: DriverTestRealm's package directory

::std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> & boot ()

This is what DriverManager will see as its boot directory.

Default: DriverTestRealm's package directory

RealmArgs & boot (std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> value)

This is what DriverManager will see as its boot directory.

Default: DriverTestRealm's package directory

const std::optional< ::std::string> & root_driver ()

The URL for the driver that will be bound to root.

Default: fuchsia-boot:///dtr#meta/test-parent-sys.cm

NOTE: The test parent driver is not included by default. This must

be included in your package to work correctly.

::std::optional< ::std::string> & root_driver ()

The URL for the driver that will be bound to root.

Default: fuchsia-boot:///dtr#meta/test-parent-sys.cm

NOTE: The test parent driver is not included by default. This must

be included in your package to work correctly.

RealmArgs & root_driver (std::optional< ::std::string> value)

The URL for the driver that will be bound to root.

Default: fuchsia-boot:///dtr#meta/test-parent-sys.cm

NOTE: The test parent driver is not included by default. This must

be included in your package to work correctly.

const std::optional<bool> & driver_tests_enable_all ()

If this is true, then DriverManager will enable the unit tests

for each driver that is loaded.

Default: false

::std::optional<bool> & driver_tests_enable_all ()

If this is true, then DriverManager will enable the unit tests

for each driver that is loaded.

Default: false

RealmArgs & driver_tests_enable_all (std::optional<bool> value)

If this is true, then DriverManager will enable the unit tests

for each driver that is loaded.

Default: false

const std::optional< ::std::vector< ::std::string>> & driver_tests_enable ()

If this is true, then DriverManager will enable the unit tests

for each driver in this vector.

Default: empty

::std::optional< ::std::vector< ::std::string>> & driver_tests_enable ()

If this is true, then DriverManager will enable the unit tests

for each driver in this vector.

Default: empty

RealmArgs & driver_tests_enable (std::optional< ::std::vector< ::std::string>> value)

If this is true, then DriverManager will enable the unit tests

for each driver in this vector.

Default: empty

const std::optional< ::std::vector< ::std::string>> & driver_tests_disable ()

If this is true, then DriverManager will disable the unit tests

for each driver in this vector. This overrides both a specific

request for enabling a test and the 'driver_tests_enable_all'

parameter.

Default: empty

::std::optional< ::std::vector< ::std::string>> & driver_tests_disable ()

If this is true, then DriverManager will disable the unit tests

for each driver in this vector. This overrides both a specific

request for enabling a test and the 'driver_tests_enable_all'

parameter.

Default: empty

RealmArgs & driver_tests_disable (std::optional< ::std::vector< ::std::string>> value)

If this is true, then DriverManager will disable the unit tests

for each driver in this vector. This overrides both a specific

request for enabling a test and the 'driver_tests_enable_all'

parameter.

Default: empty

const std::optional< ::std::vector< ::fuchsia_driver_test::DriverLog>> & driver_log_level ()

Set a log level for the specific driver.

Default: Log levels are set to INFO

::std::optional< ::std::vector< ::fuchsia_driver_test::DriverLog>> & driver_log_level ()

Set a log level for the specific driver.

Default: Log levels are set to INFO

RealmArgs & driver_log_level (std::optional< ::std::vector< ::fuchsia_driver_test::DriverLog>> value)

Set a log level for the specific driver.

Default: Log levels are set to INFO

const std::optional< ::std::vector< ::std::string>> & driver_disable ()

Disable specific drivers. These drivers will not be bound or loaded.

Default: empty

::std::optional< ::std::vector< ::std::string>> & driver_disable ()

Disable specific drivers. These drivers will not be bound or loaded.

Default: empty

RealmArgs & driver_disable (std::optional< ::std::vector< ::std::string>> value)

Disable specific drivers. These drivers will not be bound or loaded.

Default: empty

const std::optional< ::std::vector< ::std::string>> & driver_bind_eager ()

Specify drivers to bind 'eagerly'. This turns a driver that normally

binds as a fallback driver into a driver that will be bound normally.

Default: empty

::std::optional< ::std::vector< ::std::string>> & driver_bind_eager ()

Specify drivers to bind 'eagerly'. This turns a driver that normally

binds as a fallback driver into a driver that will be bound normally.

Default: empty

RealmArgs & driver_bind_eager (std::optional< ::std::vector< ::std::string>> value)

Specify drivers to bind 'eagerly'. This turns a driver that normally

binds as a fallback driver into a driver that will be bound normally.

Default: empty

const std::optional< ::std::string> & board_name ()

Specify the board name that drivers are aware of.

Default: driver-integration-test

::std::optional< ::std::string> & board_name ()

Specify the board name that drivers are aware of.

Default: driver-integration-test

RealmArgs & board_name (std::optional< ::std::string> value)

Specify the board name that drivers are aware of.

Default: driver-integration-test

const std::optional< ::std::vector< ::fuchsia_driver_test::Offer>> & offers ()

DEPRECATED: Use dtr_offers.

Specify additional offers from the test to a driver collection

Default: empty

::std::optional< ::std::vector< ::fuchsia_driver_test::Offer>> & offers ()

DEPRECATED: Use dtr_offers.

Specify additional offers from the test to a driver collection

Default: empty

RealmArgs & offers (std::optional< ::std::vector< ::fuchsia_driver_test::Offer>> value)

DEPRECATED: Use dtr_offers.

Specify additional offers from the test to a driver collection

Default: empty

const std::optional< ::std::vector< ::fuchsia_driver_test::Expose>> & exposes ()

DEPRECATED: Use dtr_exposes.

Specify services to expose from the test to a driver collection

Default: empty

::std::optional< ::std::vector< ::fuchsia_driver_test::Expose>> & exposes ()

DEPRECATED: Use dtr_exposes.

Specify services to expose from the test to a driver collection

Default: empty

RealmArgs & exposes (std::optional< ::std::vector< ::fuchsia_driver_test::Expose>> value)

DEPRECATED: Use dtr_exposes.

Specify services to expose from the test to a driver collection

Default: empty

const std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> & pkg ()

DEPRECATED: Use test_component to provide resolved test component.

The driver test realm can load drivers packaged with the test suite

through this directory. Note that this directory must be readable

and executable.

This can be used if the test suite needs to use some drivers packaged

with the DriverTestRealm in addition to drivers packaged with the test

suite. In that case, the user can leave RealmArgs::boot unset and use

RealmArgs::pkg and RealmArgs::driver_urls.

Drivers in this directory can be registered using the `driver_urls`

argument below.

Default: DriverTestRealm's package directory.

::std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> & pkg ()

DEPRECATED: Use test_component to provide resolved test component.

The driver test realm can load drivers packaged with the test suite

through this directory. Note that this directory must be readable

and executable.

This can be used if the test suite needs to use some drivers packaged

with the DriverTestRealm in addition to drivers packaged with the test

suite. In that case, the user can leave RealmArgs::boot unset and use

RealmArgs::pkg and RealmArgs::driver_urls.

Drivers in this directory can be registered using the `driver_urls`

argument below.

Default: DriverTestRealm's package directory.

RealmArgs & pkg (std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> value)

DEPRECATED: Use test_component to provide resolved test component.

The driver test realm can load drivers packaged with the test suite

through this directory. Note that this directory must be readable

and executable.

This can be used if the test suite needs to use some drivers packaged

with the DriverTestRealm in addition to drivers packaged with the test

suite. In that case, the user can leave RealmArgs::boot unset and use

RealmArgs::pkg and RealmArgs::driver_urls.

Drivers in this directory can be registered using the `driver_urls`

argument below.

Default: DriverTestRealm's package directory.

const std::optional< ::std::vector< ::fuchsia_component_test::Capability>> & dtr_offers ()

Specify offers from the test to the driver test realm.

The driver test realm will forward these to the driver collections.

Default: empty

::std::optional< ::std::vector< ::fuchsia_component_test::Capability>> & dtr_offers ()

Specify offers from the test to the driver test realm.

The driver test realm will forward these to the driver collections.

Default: empty

RealmArgs & dtr_offers (std::optional< ::std::vector< ::fuchsia_component_test::Capability>> value)

Specify offers from the test to the driver test realm.

The driver test realm will forward these to the driver collections.

Default: empty

const std::optional< ::std::vector< ::fuchsia_component_test::Capability>> & dtr_exposes ()

Specify exposes from the driver test realm to the test.

The driver test realm will forward these from the driver collections.

Default: empty

::std::optional< ::std::vector< ::fuchsia_component_test::Capability>> & dtr_exposes ()

Specify exposes from the driver test realm to the test.

The driver test realm will forward these from the driver collections.

Default: empty

RealmArgs & dtr_exposes (std::optional< ::std::vector< ::fuchsia_component_test::Capability>> value)

Specify exposes from the driver test realm to the test.

The driver test realm will forward these from the driver collections.

Default: empty

const std::optional< ::fuchsia_component_resolution::Component> & test_component ()

The resolved component information of the test component that is starting

the driver test realm. This will be used to discover drivers that the test

wants to provide to the driver test realm. Drivers can be both in the test

component package, or a subpackage of the test component package.

By default all drivers discovered that don't also exist in the |boot| directory

will be considered to be base drivers.

Use |boot_driver_components| to provide a list of drivers that should be

boot drivers.

Default: empty

::std::optional< ::fuchsia_component_resolution::Component> & test_component ()

The resolved component information of the test component that is starting

the driver test realm. This will be used to discover drivers that the test

wants to provide to the driver test realm. Drivers can be both in the test

component package, or a subpackage of the test component package.

By default all drivers discovered that don't also exist in the |boot| directory

will be considered to be base drivers.

Use |boot_driver_components| to provide a list of drivers that should be

boot drivers.

Default: empty

RealmArgs & test_component (std::optional< ::fuchsia_component_resolution::Component> value)

The resolved component information of the test component that is starting

the driver test realm. This will be used to discover drivers that the test

wants to provide to the driver test realm. Drivers can be both in the test

component package, or a subpackage of the test component package.

By default all drivers discovered that don't also exist in the |boot| directory

will be considered to be base drivers.

Use |boot_driver_components| to provide a list of drivers that should be

boot drivers.

Default: empty

const std::optional<int64_t> & driver_index_stop_timeout_millis ()

How long the driver index waits idle before it saves state, escrows its handles

with the component framework, and shuts down.

Default: never shuts down

::std::optional<int64_t> & driver_index_stop_timeout_millis ()

How long the driver index waits idle before it saves state, escrows its handles

with the component framework, and shuts down.

Default: never shuts down

RealmArgs & driver_index_stop_timeout_millis (std::optional<int64_t> value)

How long the driver index waits idle before it saves state, escrows its handles

with the component framework, and shuts down.

Default: never shuts down

const std::optional< ::std::vector< ::fuchsia_driver_test::SoftwareDevice>> & software_devices ()

A list of software only devices that should be created. Typically this is used

to create fake hardware for tests. Devices will be spawned as platform devices

under the platform bus. Note that the platform bus must be the root driver for

this to do anything meaningful.

::std::optional< ::std::vector< ::fuchsia_driver_test::SoftwareDevice>> & software_devices ()

A list of software only devices that should be created. Typically this is used

to create fake hardware for tests. Devices will be spawned as platform devices

under the platform bus. Note that the platform bus must be the root driver for

this to do anything meaningful.

RealmArgs & software_devices (std::optional< ::std::vector< ::fuchsia_driver_test::SoftwareDevice>> value)

A list of software only devices that should be created. Typically this is used

to create fake hardware for tests. Devices will be spawned as platform devices

under the platform bus. Note that the platform bus must be the root driver for

this to do anything meaningful.

const std::optional< ::std::vector< ::std::string>> & boot_driver_components ()

The list of driver component names that should be considered as boot drivers.

Boot drivers are started in the boot-drivers collection which has more

capabilities available to it.

Entries should be the component name (eg: "my_driver_component.cm").

Default: empty

::std::optional< ::std::vector< ::std::string>> & boot_driver_components ()

The list of driver component names that should be considered as boot drivers.

Boot drivers are started in the boot-drivers collection which has more

capabilities available to it.

Entries should be the component name (eg: "my_driver_component.cm").

Default: empty

RealmArgs & boot_driver_components (std::optional< ::std::vector< ::std::string>> value)

The list of driver component names that should be considered as boot drivers.

Boot drivers are started in the boot-drivers collection which has more

capabilities available to it.

Entries should be the component name (eg: "my_driver_component.cm").

Default: empty

const std::optional< ::zx::vmo> & devicetree ()

Devicetree blob that should be handed to the board driver.

::std::optional< ::zx::vmo> & devicetree ()

Devicetree blob that should be handed to the board driver.

RealmArgs & devicetree (std::optional< ::zx::vmo> value)

Devicetree blob that should be handed to the board driver.

const std::optional<uint32_t> & platform_vid ()

Platform Vendor ID which should be specified to the platform bus driver.

::std::optional<uint32_t> & platform_vid ()

Platform Vendor ID which should be specified to the platform bus driver.

RealmArgs & platform_vid (std::optional<uint32_t> value)

Platform Vendor ID which should be specified to the platform bus driver.

const std::optional<uint32_t> & platform_pid ()

Platform ID which should be specified to the platform bus driver.

::std::optional<uint32_t> & platform_pid ()

Platform ID which should be specified to the platform bus driver.

RealmArgs & platform_pid (std::optional<uint32_t> value)

Platform ID which should be specified to the platform bus driver.

void RealmArgs (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
RealmArgs & operator= (RealmArgs && )

Defined at line 954 of file fidling/gen/sdk/fidl/fuchsia.driver.test/fuchsia.driver.test/cpp/fidl/fuchsia.driver.test/cpp/natural_types.h

Friends

class MemberVisitor
class NaturalTableCodingTraits