summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/NetworkAgentConfigTest.kt
Commit message (Collapse)AuthorAgeFilesLines
* Rename getVpnRequiresValidation to isVpnValidationRequiredChiachang Wang2022-03-021-1/+1
| | | | | | | | | Update API name from getVpnRequiresValidation to isVpnValidationRequired according to API review feedback. Test: atest FrameworksNetTests Bug: 220129160 Change-Id: I1025f4c35b320c14e872eaffd7ed82658a5f3d0c
* Change naming of excludeLocalRoutesChiachang Wang2022-02-091-3/+3
| | | | | | | | | Address API review feedback to change naming of setExcludedLocalRoutesVpn and getter. Bug: 217742354 Test: atest FrameworksNetTests Change-Id: I57bbf55c7aba1c86ec8687d2431a50b37e63c6d0
* Add and implement API for VpnManagers to request validationChiachang Wang2022-02-081-0/+13
| | | | | | | | | | This adds a new API that lets VPN apps using VpnManager request that the platform run its basic validation check on the resulting network. Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I00092eee857d3e33529b19461cfd5dd060a0fe20
* Mark connectivity module tests as suchRemi NGUYEN VAN2022-01-181-0/+2
| | | | | | | | | | | | | | | | Add @ConnectivityModuleTest to tests for classes that are mainly used to back the connectivity (tethering) module, in particular data classes. This causes the test not to be run in NetworkStack/CaptivePortalLogin MTS tests when the connectivity (tethering) module is not installed. Skipping such tests is necessary in that configuration as they may test behavior that is new in the latest update, and data classes backing the connectivity module would not be affected by NetworkStack/CaptivePortalLogin updates anyway. Bug: 211075897 Test: atest CtsNetTestCasesLatestSdk Change-Id: I6163cd998fc78765b903fdb7acd21e652bc711c9
* Do not verify field count in tests used in CTSRemi NGUYEN VAN2022-01-181-15/+2
| | | | | | | | | | | | | | | | | Tests in tests/common and tests/cts are run as part of CtsNetTestCases. Many used assertFieldCountEquals in parceling/unparceling tests to ensure that unexpected fields were not added, or that they were not missed when testing parceling/unparceling. However with many of the classes updatable through module updates, the field count may change in the future, breaking CTS tests. Stop checking for the field count, as it would break on module releases, and its value is lower than the maintenance cost. Bug: 205901761 Test: atest CtsNetTestCases Change-Id: I79854741f7e834574d4825bb737ef507785310fe
* Allow VPN network agent to exclude local trafficChiachang Wang2021-12-281-2/+9
| | | | | | | | | | Add API to allow network agent to set whether the local traffic is excluded from the network. This commit is nonfunctional currently but only storing the boolean inside the NAI. Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I3799216ac8fdf22eb4bcabc6c6136d8edbf69360
* Add CTS test for API setLegacyExtraInfolifr2021-06-071-0/+3
| | | | | | | | Adding in-depth test in NetworkAgentTest Bug: 187040803 Test: atest CtsNetTestCasesLatestSdk:android.net.NetworkAgentConfigTest atest CtsNetTestCases:android.net.NetworkAgentConfigTest Change-Id: Ief14f6de0cb6913da944414f0b134eb04346425f
* Move net unit tests to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+91
Move the tests together with packages/Connectivity code, so both can be moved to packages/modules/Connectivity together. Also reorganize unit tests in a unit/ directory, as other tests (integration/, common/ etc.) have been added in tests/net since they were created. This makes the directory structure consistent. Test: atest FrameworksNetTests Bug: 187814163 Merged-In: I254ffd1c08ec058d594b4ea55cbae5505f8497cc Change-Id: I254ffd1c08ec058d594b4ea55cbae5505f8497cc