summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/nsd/NsdManagerTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Update NSD tests without AsyncChannelRemi NGUYEN VAN2021-11-181-153/+84
| | | | | | | | | Update the tests to use the newer NsdManager based on Binder interfaces instead of AsyncChannel. Bug: 190249673 Test: atest NsdManagerTest NsdServiceTest Change-Id: I0991b598331e335a0bc211f010da7f034fb2441b
* Modify Nsd{Service,Manager}Test to conform to its changeLuke Huang2021-09-131-13/+96
| | | | | | | | | (clean cherry-pick from downstream branch) Test: atest NsdManagerTest NsdServiceTest Bug: 191844585 Merged-In: I3cf658498bef5755dcb01127a94fff913b6e6298 Change-Id: I3cf658498bef5755dcb01127a94fff913b6e6298
* Re-skip connectivity unit tests before SRemi NGUYEN VAN2021-06-301-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 Change-Id: I5808d34459a4c19238baf8873afa7cf942828460
* Revert "Skip connectivity unit tests before S"Remi NGUYEN VAN2021-06-291-3/+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/+3
| | | | | | | | | | | | | 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
* Make tests compatible with mockito-extendedRemi NGUYEN VAN2021-06-161-2/+2
| | | | | | | | | | | | | | | | | | | 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 Change-Id: I61fa371e8957037075a2617a014647ff062207c6
* Revert "Use mockito-extended in FrameworksNetTests"xingdai2021-06-101-2/+2
| | | | | | | | | | This reverts commit 98b76cc2ec58396c804a4e4f658c915b3c80c138. Reason for revert: <INSERT REASONING HERE> b/190622577 Change-Id: Ief39f82875e6fa885829aea62eed00f2f2e6774e
* Use mockito-extended in FrameworksNetTestsRemi NGUYEN VAN2021-06-081-2/+2
| | | | | | | | | | This is necessary to mock classes like BatteryStatsManager, which cannot be used without signature permissions, and to merge the test with other test suites that use mockito extended. Bug: 187935317 Test: atest FrameworksNetTests Change-Id: I5dba65d806c5d06b3ff8f633846edb911a7a44ec
* Move net unit tests to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+388
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