summaryrefslogtreecommitdiff
path: root/scripts/update_payload/format_utils_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-03-22 23:40:53 -0700
committerAlex Deymo <deymo@google.com>2016-04-11 15:42:06 -0700
commit38818fbf1f2f937051b5bcc01ff74539a3c9b27d (patch)
tree0b82599eb5433da225bad4f97e4a5cc772621d98 /scripts/update_payload/format_utils_unittest.py
parent5ee71ba372ddef9bc2b5e12f55f0b449d320282c (diff)
Introduce PayloadVersion struct for version information.
This new little struct encapsulates the version information (major and minor version numbers) and the zlib fingerprint information. Now, instead of querying throughout if the version number is certain value, we ask the PayloadVersion struct whether certain operation is allowed in that version or not. This moves the logic of what's supported and what's not to a single place and eliminates the need to pass several booleans to the helper functions. Bug: 24578399 TEST=Unittest still pass. (cherry picked from commit a4073ef63482fd08c3678982f7d153360b088094) Change-Id: I756d0c2cc217d23df1822f961bb7d82f64974fa9
Diffstat (limited to 'scripts/update_payload/format_utils_unittest.py')
0 files changed, 0 insertions, 0 deletions