diff options
author | Andrii Kulian <akulian@google.com> | 2019-07-10 21:09:38 -0700 |
---|---|---|
committer | Andrii Kulian <akulian@google.com> | 2019-07-20 18:11:38 -0700 |
commit | 06b8dcb52bc7eec628847a0bb323f58285e04d7e (patch) | |
tree | 8584713f4d4e2b1afb39cae54817f0941bf9bc53 /startop/scripts/lib/cmd_utils.py | |
parent | 39f274421485f96f5ff5dc92d7e795432ad257f0 (diff) |
Encapsulate savedState updates in ActivityRecord
ActivityRecord#icicle and ActivityRecord#haveState values should
always be in sync. Since they were package-private, this creates an
opportunity for making error by updating one without the other.
This CL adds getters and a setter (for updates from package) that
always updates both values simultaneously, and makes the fields
private. It also hides ActivityRecord#persistentState and exposes a
package-private getter instead.
Test: ActivityRecordTests
Change-Id: Ie6cf248bf58f8d447ab321bb4348a4a69d547b19
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions