Add some unit tests

There are a bunch of getters and helper methods that we don't exercise
in our tests, so I'm adding some tests to fix that. These are "unit
tests" in a loose sense - no VM is ever created, but they do involve
running code in an APK, touching the filesystem etc.

Also rearranged the ordering of members in the classes so e.g. all the
instance variables are together, which makes it easier to check this.

Bug: 244561836
Test: atest MicrodroidTests
Change-Id: I6887b203c18a021eb2415f2624900012040310e1
4 files changed
tree: f591bcaeaad7df4a9dce6a2d12ba8981011c59c7
  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. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. 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.