commit | 1ccb347e87a9647f9ecf026e4207e9617cf9aca3 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Tue Nov 28 11:13:55 2023 -0800 |
committer | Kelvin Zhang <zhangkelvin@google.com> | Wed Nov 29 10:46:10 2023 -0800 |
tree | 8f901af44bbef5f80862bdbd41cb407231272007 | |
parent | 0ca4e8f4b4ea3573448c313564ff1eca0f055c2b [diff] |
Turn CowOperationType into an enum There's a bug previsouly where we compare return value of GetCowOpSourceInfoData() with CowOperationType. Such bugs are possible because cow operation enums are weakly typed integers. Turn CowOperationType into strongly typed enum to prevent such bugs. Test: th Bug: 304602386 Change-Id: If6941a4740c374ed066cf0aee9e52f4df05a9b38