tree: 30217c956403eba922d6a58c536d1f090c85d79f [path history] [tgz]
  1. cpp/
  2. dart/
  3. fidl/
  4. go/
  5. harness/
  6. hlcpp/
  7. llcpp/
  8. rust/

FIDL Server Test Suite

The server test suite is a framework to test the implementation of servers in FIDL bindings, such as how they respond to incorrect ordinals, an unexpected channel closure, and other protocol level semantic aspects.

Each test involves:

  • A test harness, which executes the client-side of the test and makes assertions.
  • A server - implemented in the binding under test, which implements a prescribed set of behaviors.

This test suite uses three main FIDL protocols:

  • Runner - coordinates running the test, starting the test server etc.
  • Target - the protocol implemented by the server under test.
  • Reporter - reports actions to the test harness.

These protocol definitions can be found in the FIDL server suite.

The various test cases which leverage the framework are in harness/

Running the tests

To run the server test suite

fx set core.x64 --with //bundles/fidl:tests


fx test fidl-server-suite-rust-test   (e.g. for rust)

To run all bindings use

fx test //src/tests/fidl/server_suite