android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti 54eae6c348 Allow tests to set the NetworkAgent's callbacks when creating it.
ConnectivityServiceTest#testNetworkAgentCallbacks tests the
behaviour of the NetworkAgent callbacks onNetworkCreated,
onNetworkUnwanted, and onNetworkDestroyed. This uses a
NetworkAgentWrapper method that sets the callbacks after the
test agent is constructed.

This infrastructure not sufficient to test an upcoming change
which will make onNetworkCreated be fired as soon as the
registration onNetworkCreated is fired as soon as the agent is
registered. Fix the code so that the callbacks can be specified
at agent registration time. This is also a bit more realistic
since in real usage, the callbacks are methods on the
NetworkAgent subclass and are already set when the agent is
constructed.

Bug: 143158421
Test: test-only change
Change-Id: I53c58e7b6c6ae4abf08e0df5051694cc4568a510
2022-08-03 17:29:01 +09:00
..
connectivity Merge "Fix flaky testNotifyNoInternetAsDialogWhenHighPriority" 2022-08-03 02:22:55 +00:00
ethernet Changing EthernetNetworkFactoryTest assert order 2022-07-25 12:36:49 -07:00
net Remove qtaguid support in NetworkStatsFactory 2022-07-29 16:00:29 +08:00
BpfNetMapsTest.java Add flag to test BpfNetMaps refactoring 2022-07-28 02:32:41 +00:00
ConnectivityServiceTest.java Allow tests to set the NetworkAgent's callbacks when creating it. 2022-08-03 17:29:01 +09:00
IpSecServiceParameterizedTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecServiceRefcountedResourceTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecServiceTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
LegacyTypeTrackerTest.kt Build ethernet framework source into framework-connectivity-tiramisu 2022-03-14 14:06:35 +00:00
NetIdManagerTest.kt Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
NetworkManagementServiceTest.java Split updateMeteredNetwork{Allow, Deny}List into add and remove 2022-03-09 11:17:27 +08:00
NsdServiceTest.java Add back compat config for NSD 2022-07-27 19:53:25 +09:00
VpnManagerServiceTest.java Verify calling thread for intent receiver 2022-07-07 08:54:52 +00:00
VpnTestBase.java Test VPN app exclusion 2022-06-29 06:15:41 +00:00