summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorJae Hoon Kim <kimjae@chromium.org>2019-06-20 10:41:18 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-06-27 20:04:48 -0700
commit4b6d1261f989dfad74ff1c10bc73fd28da074171 (patch)
treef6519d07be1db848eba9bd41cdea90b8f405ce68 /scripts/update_payload/format_utils_unittest.py
parentecb60d31efccf3ac4b02c8750e79b03fd5c10ff9 (diff)
update_engine: Validate payload properties.
Add in unit tests to validate payload properties for JSON and KeyValue string generation. The JSON properties string should have valid corresponding "sha256_hex" based on the hash of the entire payload file. The KeyValue properties string should have valid corresponding payload and metadata hashes based on payload file size and metadata size respectively. BUG=None TEST=unittests Change-Id: I0399f420d8ee3dc1e4a103841046b91a0319cdb3 Reviewed-on: https://chromium-review.googlesource.com/1669812 Tested-by: Jae Hoon Kim <kimjae@chromium.org> Commit-Ready: Jae Hoon Kim <kimjae@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions