pvmfw_avb: Derive Eq for VerifiedBootData

Derive the trait, which can be used in tests assert_eq! and fill force a
programmer adding a new field to the structure to cover it in tests:

    error[E0063]: missing field `X` in initializer of `pvmfw_avb::VerifiedBootData<'_>`

On mismatch, assert_eq prints out the debug representation of the inputs:

    STACKTRACE:
    ---- TEST_NAME stderr ----
    thread 'main' panicked at 'assertion failed: `(left == right)`
    left: `VerifiedBootData { debug_level: None, kernel_digest: [...], initrd_digest: None, }`,
    right: `VerifiedBootData { debug_level: None, kernel_digest: [...], initrd_digest: Some([...]) }`,
    packages/modules/Virtualization/pvmfw/avb/tests/api_test.rs:71:5

Note: no functional change intended.

Test: atest libpvmfw_avb.integration_test
Change-Id: Ia9b7046ff24ebffe6d15a6cc936a3ac2e8a5d4b9
3 files changed
tree: 9438382501f9261347caf34c9f380f5e58ad6943
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationmanager/
  18. virtualizationservice/
  19. vm/
  20. vm_payload/
  21. vmbase/
  22. vmclient/
  23. zipfuse/
  24. .clang-format
  25. .gitignore
  26. Android.bp
  27. OWNERS
  28. PREUPLOAD.cfg
  29. README.md
  30. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.