diff options
author | Alex Deymo <deymo@chromium.org> | 2014-03-25 17:53:56 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-26 05:34:44 +0000 |
commit | 032e772f76a6cd0b4caf1af7bd02dd81af2dc7dd (patch) | |
tree | 73f75c03ae5c589e8bfe2781c4e4faa8b4701113 /test_utils.cc | |
parent | 04f2b380d4707a3903098a7459443c9509745943 (diff) |
Log the file format of cros_install on postinstall action
This patch adds a new function to utils which determines the format
of a file based on magic constants on the header and returns a
human-readable description of it. This currently only supports ELF
files and is used to log the file format of the cros_install
binary on post-install.
BUG=chromium:356187
TEST=Unittests.
Change-Id: Ie6e91c3f5fa398c39894704db9071489560a8ff7
Reviewed-on: https://chromium-review.googlesource.com/191609
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'test_utils.cc')
0 files changed, 0 insertions, 0 deletions