android_packages_modules_Co.../tests/unit/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Aaron Huang e3879abb07 Use real ProxyTracker in ConnectivityServiceTest
Currently CS test uses a mock ProxyTracker object to verify that
the sendProxyBroadcast() is called. Also, if the network is a
default network then sendProxyBroadcast() will be indirectly
called in setDefaultProxy(). This only verifies that the method
is called but it doesn't verify that the broadcast is sent.

Instead of testing setDefaultProxy() is called, it is better to
verify that the broadcast is actually sent. Therefore, use a
real ProxyTracker in the test to verify the broadcast is sent.

Test: FrameworksNetTests:ConnectivityServiceTest
Change-Id: Id5c9e07e8326f24bd2665b4bb08f96d6d57d999c
2021-11-15 20:01:12 +08:00
..
connectivity Add tests for testing if [start|finish]Op is called or not 2021-10-26 03:46:46 +08:00
net Add a test for metered/non-metered mobile network 2021-10-26 12:16:18 +00:00
ConnectivityServiceTest.java Use real ProxyTracker in ConnectivityServiceTest 2021-11-15 20:01:12 +08:00
IpSecServiceParameterizedTest.java Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
IpSecServiceRefcountedResourceTest.java Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
IpSecServiceTest.java Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
LegacyTypeTrackerTest.kt Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
NetIdManagerTest.kt Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
NetworkManagementServiceTest.java Re-skip connectivity unit tests before S 2021-07-05 05:01:54 +00:00
NsdServiceTest.java Modify Nsd{Service,Manager}Test to conform to its change 2021-09-13 10:18:04 +09:00