diff options
author | JW Wang <wangchun@google.com> | 2020-02-03 12:50:53 +0800 |
---|---|---|
committer | JW Wang <wangchun@google.com> | 2020-02-07 14:29:52 +0800 |
commit | 70bdd97927ec4692420c02a8ce6cf4324b6d8fc4 (patch) | |
tree | 472b3d181659ecf2ad15b3bb019722ec2cedc786 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 13ef57fdd5ee617f5f8d061a7e1bdb6333881be7 (diff) |
Put rollbacks into #mRollbacks (9/n)
Now we check Rollback#isNewRollback for rollbacks that were originally
in #mNewRollbacks.
for (Rollback newRollback : mNewRollbacks) {
// Do something with newRollback...
}
will be replaced by:
for (Rollback newRollback : mRollbacks) {
if (newRollback.isNewRollback()) {
// Do something with newRollback...
}
}
Since mRollbacks includes new rollbacks, be careful not to apply
operations not appropriate to new rollbacks when iterating over
mRollbacks. Luckily most of the code is future-proof that needs no
changes.
Note now #mNewRollbacks is always empty. We will remove it in the next
CL.
Bug: 147400979
Test: atest RollbackTest StagedRollbackTest
Change-Id: Ia3a4116b352228adc0b152d42c85920f375beb28
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions