tree: c945c8e281420bf474e5c82f600d81015e617254 [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. README.md
  4. receiver-info.json
  5. receiver.cc
  6. shim.rs
  7. shim.test.fidl
src/sys/component_manager/tests/structured_config/client_integration/cpp_driver/README.md

C++ Driver for Structured Config Client Library Integration Test

The structured config client library integration test provides each client with a structured configuration and attempts to read it back using:

  • the ConfigReceiverPuppet protocol exposed by the component
  • the Inspect config node of the component

For the driver client, we use a static shim component written in Rust. This component launches the driver using RealmBuilder.

Since the driver is launched using RealmBuilder, we can't use static routing to expose ConfigReceiverPuppet to the test. Instead, the shim offers the driver the ConfigShim protocol. The driver reports the configuration to the shim which forwards it back to the test.

The test uses a different selector to read the Inspect config node of the driver.