summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/ConnectivityManagerTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Re-skip connectivity unit tests before SRemi NGUYEN VAN2021-07-051-2/+5
| | | | | | | | | | | | | | | | | | | | 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 Original-Change: https://android-review.googlesource.com/1749684 Merged-In: I5808d34459a4c19238baf8873afa7cf942828460 Change-Id: I5808d34459a4c19238baf8873afa7cf942828460
* Make tests compatible with mockito-extendedRemi NGUYEN VAN2021-07-021-2/+5
| | | | | | | | | | | | | | | | | | | | | This does not change the mockito library to use mockito-extended in FrameworksNetTests, but changes the tests so that they would pass if built against that library. This is useful to run FrameworksNetTests in a common test suite with other tests that use mockito-extended, for example a common connectivity coverage test target. The change includes increasing the test timeout in ConnectivityServiceTest, as mockito-extended can have performance impact (~3 times on hwasan builds). This change does not make tests run slower in the current FrameworksNetTests suite though. Bug: 187935317 Test: atest FrameworksNetTests Original-Change: https://android-review.googlesource.com/1737400 Merged-In: I61fa371e8957037075a2617a014647ff062207c6 Change-Id: I61fa371e8957037075a2617a014647ff062207c6
* Add more unit tests for ConnectivityManager S APIsJunyu Lai2021-05-191-20/+28
| | | | | | | Ignore-AOSP-First: Avoid merge conflict Test: atest android.net.ConnectivityManagerTest Bug: 188657173 Change-Id: I33612650eb89486a14fcfc440ba0c357f4bb513c
* Move net unit tests to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+430
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 Ignore-AOSP-First: needs per-branch move for merge conflicts Change-Id: I254ffd1c08ec058d594b4ea55cbae5505f8497cc