summaryrefslogtreecommitdiff
path: root/tests/common/java/android/net/RouteInfoTest.java
Commit message (Collapse)AuthorAgeFilesLines
* 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-13/+0
| | | | | | | | | | | | | | | | | 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
* Revert "Revert "Unhide RouteInfo#getType and related fields""Taras Antoshchuk2021-12-191-0/+12
| | | | | | | | This reverts commit 6d1ea2bb16451e43b5a2c3da30b49ecfc40037cc. Reason for revert: Re-landing changes not related to postsubmit failure Change-Id: If7940801518be5ddec91270b3663ddfc8b42eadb
* Revert "Unhide RouteInfo#getType and related fields"Ayush Sharma2021-12-161-12/+0
| | | | | | | | | | | | | | | | | | | | | | | Revert "Add APIs that allow to exclude routes from VPN" Revert "Suppress NewApi warnings for @SystemApi -> public APIs" Revert "Add VpnServiceBuilderShim for VpnService.Builder" Revert submission 1551943-vpn-impl Reason for revert: <DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules_x86_64-userdebug&lkgb=8007224&lkbb=8008168&fkbb=8007902 >, bug b/210979001 Reverted Changes: I0e7aa077a:Add VpnServiceBuilderShim for VpnService.Builder Ib12f5ab39:Suppress NewApi warnings for @SystemApi -> public ... I59b9185cf:Unhide RouteInfo#getType and related fields Ie5b62b2b2:Unhide IpPrefix(InetAddress, int) I993a32d40:Add CTS tests for exclude VPN routes APIs Ib24b2d3fb:Suppress NewApi warnings for @SystemApi -> public ... Ic3b10464a:Add APIs that allow to exclude routes from VPN Change-Id: I98d3b998e4702f56e9d5e17944238b283b29f2b2 BUG: 210979001
* Unhide RouteInfo#getType and related fieldsTaras Antoshchuk2021-12-131-0/+12
| | | | | | Bug: 186082280 Test: atest RouteInfoTest Change-Id: I59b9185cf4f8f2afd691b49cf6b4659fe36e6bf8
* Move net unit tests to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+434
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