summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBeverly <beverlyt@google.com>2020-01-28 10:40:48 -0500
committerBeverly Tai <beverlyt@google.com>2020-01-29 15:54:53 +0000
commit975329730508ffea302c5dc06603c8b42de29b25 (patch)
tree383a77d07a47baa190e6d233576c8cbb11204c9a /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9abb186c1fa8b7950e21c11c4bdb1fd8216f6bc9 (diff)
Update mReadOnlyNotifList in ShadeListBuilder
So that mReadOnlyNotifList always tracks mNotifList, even after switching mNotifList and mNewNotifList This CL also updates ShadeListBuilderTest to catch bugs like this. Mockito keeps shallow references when verifying mocks, so we can't rely on verifying the passed list after the test is run (since the list is recycled within ShadeListBuilder). Instead, make a deep copy of the list we receive in the listener and verify this list for equality. Test: atest ShadeListBuilderTest Fixes: 148421960 Change-Id: I85eb439f77686c67b365f04585da8fc54cb854ec
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions