summaryrefslogtreecommitdiff
path: root/payload_generator/graph_utils_unittest.cc
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2015-08-12 22:19:32 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-15 04:26:36 +0000
commita12ee11c78ac6d7c2605921a4006b6a7416e0c35 (patch)
tree24ca78164d476399a3c6a1a8f19dcb259c560e3e /payload_generator/graph_utils_unittest.cc
parentc00c98a1dad941e5cc04ce0b0e766d40b3b384e1 (diff)
update_engine: Move InstallOperation to the top level.
The InstallOperation message in the protobuf is a nested message inside the DeltaArchiveManifest message, making all references to operation types be very long names like DeltaArchiveManifest_InstallOperation_Type_REPLACE_BZ while most other messages are not nested in the DeltaArchiveManifest message. To improve readability and to prepare for future update metadata changes, this patch moves the InstallOperation message to the top level and replaces all references to operation types with the new shorter version like InstallOperation::REPLACE_BZ. This change only impacts the scope of the generated classes and the serialized format of the protobuf. This exact same question was addressed by protobuf maintainers here: https://groups.google.com/forum/#!topic/protobuf/azWAPa6hP4A Finally coding style and indentation was automatically updated due to the shorter names. BUG=b:23179128 TEST=Unittest still pass. Change-Id: I55add54265934cd1fd3e9cb786c5d3f784902d17 Reviewed-on: https://chromium-review.googlesource.com/293504 Trybot-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'payload_generator/graph_utils_unittest.cc')
0 files changed, 0 insertions, 0 deletions