Add unit test for VerifyAndParseManifest.

This adds unit tests for VerifyAndParseManifest, in both positive and
negative cases.

BUG=chromium:588220
TEST=FEATURES="test" emerge-${BOARD} imageloader

Change-Id: I8392a045379d1eaa8879416bb159d671c6820ed1
Reviewed-on: https://chromium-review.googlesource.com/361597
Commit-Ready: Greg Kerr <kerrnel@chromium.org>
Tested-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Ricky Zhou <rickyz@chromium.org>
2 files changed
tree: ebfba001f2cd6d12e80c15e13aa6743f2bf4e525
  1. public_keys/
  2. test/
  3. .presubmitignore
  4. imageloadclient-glue.xml
  5. imageloadclient.cc
  6. imageloadclient.h
  7. imageloader-glue.xml
  8. imageloader.cc
  9. imageloader.gyp
  10. imageloader.h
  11. imageloader_common.cc
  12. imageloader_common.h
  13. imageloader_main.cc
  14. imageloader_unittest.cc
  15. org.chromium.ImageLoader.conf
  16. org.chromium.ImageLoader.service
  17. README.md
  18. run_tests.cc
README.md

src/platform/imageloader

This aims to provide a generic utility to load (mount) and unload (unmount) verified disk images through DBus IPC.

Binaries

  • imageloader
  • imageloadclient

imageloader can be run as root and can handle mounting and unmounting of disk images. imageloadclient is a simple client (intended to be run as chronos) that can talk to imageloader and ask it to mount and unmount stuff. When imageloader is not running, DBus can invoke it via the one time run option (imageloader -o) and get the task done.