tree: be1ae5535482d197dae8306ee7ed74da1f0fa8d1 [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. composite.test.fidl
  4. leaf-info.json
  5. leaf.bind
  6. leaf_driver.cc
  7. README.md
  8. root-info.json
  9. root_driver.cc
  10. test.rs
src/devices/tests/v2/composite/README.md

Composite Test

This test checks that DFv2 composite devices work, and that services are routed correctly from composite nodes to the composite driver.

This test has a ‘root’ driver which creates two nodes, a left node and a right node. The ‘leaf’ driver is a composite driver which binds to each node.

The ‘root’ driver exposes a service instance ‘fuchsia.composite.test.Service’ to each node. The left instance will always return the number 1 and the right instance will always return the number 2.

The test checks that both service instances are routed and renamed correctly when they go to the composite driver. The instances should be renamed based on the node names in the ‘leaf’ driver‘s bind rules. The ‘leaf’ driver should also be able to see a ‘default’ instance that represents its primary parent’s service instance.