summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/IpSecAlgorithmTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix IpSecAlgorithmTest on SRemi NGUYEN VAN2021-08-251-2/+5
| | | | | | | | | | | | | | | The test may be run on S builds older than itself, in which case the resource ID may not match. Query the resource ID dynamically instead of using the constant. IpSecAlgorithm is not updatable in S, which is why it can use hidden/unstable platform resources, so the test could also be skipped altogether on S. But considering that keeping it around is not very costly yet, this change fixes it for running on S. Bug: 197489543 Test: atest IpSecAlgorithmTest Change-Id: I533eede3a360a8db9089e65e017b9d7453b35539
* Replace FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT in Connectivitypaulhu2021-07-051-3/+3
| | | | | | | | | | | | Replace all FIRST_SDK_INT usage in Connectivity because it has been renamed to DEVICE_INITIAL_SDK_INT. Bug: 184735771 Test: m CtsNetTestCases Merged-In: I2f155592b08cdbf259a00b035cacb37ca9847e72 (clean cherry-pick) Change-Id: I2f155592b08cdbf259a00b035cacb37ca9847e72
* Re-skip connectivity unit tests before SRemi NGUYEN VAN2021-06-301-2/+4
| | | | | | | | | | | | | | | | | | The tests are packaged together with other tests in a common coverage suite, so need to be individually annotated so that they are skipped before S. They do not need to pass on platforms older than S, because such platforms will not updated with the code that is tested. This applies a previous change, this time using DevSdkIgnoreRunner, as SdkSuppress does not work as expected in branches that have a codename 2 versions above the SDK version, as is the case in AOSP. Bug: 187935317 Test: atest ConnectivityCoverageTests on R atest FrameworksNetTests on S Change-Id: I5808d34459a4c19238baf8873afa7cf942828460
* Revert "Skip connectivity unit tests before S"Remi NGUYEN VAN2021-06-291-2/+0
| | | | | | | | | This reverts commit 05dd1ba54005b15d92daf6f26329acf91fb3debb. Reason for revert: Skips more tests than it should in AOSP Bug: 192302892 Change-Id: I7c5638d8c1cc626354d240a06af758e1cdd92e94
* Skip connectivity unit tests before SRemi NGUYEN VAN2021-06-251-0/+2
| | | | | | | | | | | | | The tests are packaged together with other tests in a common coverage suite, so need to be individually annotated so that they are skipped before S. They do not need to pass on platforms older than S, because such platforms will not updated with the code that is tested. Bug: 187935317 Test: atest ConnectivityCoverageTests on R Change-Id: I10da45ae023e7f1e8cd11ec857b84346892a3fa8
* Move net unit tests to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+226
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