diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2020-03-09 11:52:33 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2020-03-17 11:23:13 +0900 |
commit | dcb283d43a00a7ca80064b6a760c8320bdb602fa (patch) | |
tree | 32d14b630db25ad7228abcb9f2872155f19badd3 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 7488b79ea0fd0e2ff71a8cdbcff2b7e4dc27ca0e (diff) |
Make LinkPropertiesTest backwards compatible
LinkPropertiesTest must be backwards compatible with Q for CTS.
In Q 4 fields were added: DhcpServerAddress, WakeOnLanSupported,
CaptivePortalApiUrl, CaptivePortalData. The new test only tests these
fields on R and above.
testLinkPropertiesParcelable_Q still verifies that there are 14 fields
on Q, so the 4 extra fields can be ignored.
The changes use androidx.core.os.BuildCompat.isAtLeastR(), so
androidx.core_core is added as a dependency to FrameworksNetCommonTests.
Test: atest CtsNetTestCasesLatestSdk:android.net.LinkPropertiesTest
on Q and R devices
Bug: 150918852
Change-Id: I570efa4eb483a717d4204a18473d02653a69f46d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions