Mojo conformance test data

The files in validations are test data for mojo conformance tests, which validate the memory layout of mojo messages.

Run validation tests using the following command:

autoninja -C out/Default mojo_unittests
out/Default/bin/run_mojo_unittests --gtest_filter=ValidationTest.*

Note that you do not need to rebuild after changing the test data.

Adding test data

  1. Add a test method if necessary in validation test interfaces.
  2. Add a .data and .expected file in validations.
  3. Run ValidationTest.* to ensure that tests work as expected.
  4. Update validation_data_files.gni with your test files.
  5. Use python script to update validation_unittest_bundle_data.filelist.
    • The presubmit will give you a copy pastable command, so there is no need to to figure out how to invoke the script.