summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLucas Lin <lucaslin@google.com>2020-11-17 12:43:30 +0000
committerLucas Lin <lucaslin@google.com>2020-11-18 09:52:58 +0000
commit0a97fe3faaf1a7bc69030ac60e55b865ebd20d27 (patch)
tree2c440b972ac4114afa739fe17bd0c54f60cc8da8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb72c2c4547df3955c9c0afb8f0087937d39bd737 (diff)
Separate 2 tests to verify canBeSatisfiedBy()
In Android R, NetworkSpecifier#satisfiedBy() has changed to NetworkSpecifier#canBeSatisfiedBy(), but its subclass - MatchAllNetworkSpecifier hasn't. In Android S, both of MatchAllNetworkSpecifier and NetworkSpecifier has changed satisfiedBy() to canBeSatisfiedBy(). So if running the latest CTS on R device, it will verify NetworkSpecifier#canBeSatisfiedBy() instead of MatchAllNetworkSpecifier#satisfiedBy() and get the unexpected result. The fix is to separate 2 tests to verify canBeSatisfiedBy(), one is for Android R or older version and the other is for Android S+. Bug: 172401624 Test: Run MatchAllNetworkSpecifierTest on Android R and S. Change-Id: I9aeddaa3e331f609bbdba8ab0c2d6e014123f242 Merged-In: I1391bae9a0fc0298beb8fe80b5f388b492244566
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions