Records
Functions
-
void Setup (component_testing::RealmBuilder & realm_builder, async_dispatcher_t * dispatcher, Options options, fuchsia_driver_test::RealmArgs args)Setup the driver test realm pieces in the realm builder. The |dispatcher| should be the same
dispatcher given later to realm_builder's Build call. This dispatcher should generally be from
an async::Loop that has had a thread started for it. This is where the dependencies of the
driver test realm will run after Build is called.
Defined at line 284 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc
-
zx::result<> WaitForBootup (component_testing::RealmRoot & realm_root)Waits for the boot-up of the driver test realm and drivers. This must be called after
the realm_builder's Build call during test setup to ensure the realm is not destroyed
before setup is complete.
Defined at line 698 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc
-
zx::result<fuchsia_driver_development::NodeInfo> WaitForNode (component_testing::RealmRoot & realm_root, std::string_view moniker)Wait for a node with the given moniker to be present in the driver framework's node topology.
Defined at line 720 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc
-
void ShutdownRealm (component_testing::RealmRoot & realm_root)This cleanly shuts down the driver test realm. It should be called at the end of a test or in
the |TearDown| function. This guarantees nothing tries to reach into local servers that may no
longer exist after returning from the test.
Defined at line 765 of file ../../sdk/lib/driver_test_realm/realm_builder/cpp/builder.cc