android_packages_modules_Co.../tests/unit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yang Sun 4e7baadc71 Use helper function getIndexForValue in MulticastRoutingCoordinator.
The SparseArray.indexOfValue() uses == to compare values,
MulticastRoutingCoordinator uses SparseArray with String type values,
and the indexOfValue function would sometimes return -1 when looking for
a value in the SparseArray.

Added a helper function getIndexForValue in CollectionUtils to get index
by comparing values with equals, and used this function in MulticastRoutingCoordinator.

Updated
MulticastRoutingCoordinatorServiceTest#testMulticastRouting_applyConfigNone_removesMfc
test case to use copies of interface names when updating the multicast
configs, so the test would fail without this fix.

Test: atest NetworkStaticLibTests:com.android.net.moduletests.util.CollectionUtilsTest#testGetIndexForValue
atest android.net.connectivity.com.android.server.connectivity.MulticastRoutingCoordinatorServiceTest#testMulticastRouting_applyConfigNone_removesMfc

Change-Id: I862242d6be01b8552cdd6af6c9691948a9f0bfe0
2024-04-23 17:22:15 +08:00
..
java Use helper function getIndexForValue in MulticastRoutingCoordinator. 2024-04-23 17:22:15 +08:00
jni [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
res Check network slicing declaration for network request 2023-02-28 17:38:30 +09:00
Android.bp Remove VpnProfileStore dependency from CSTest 2024-03-18 11:40:58 +00:00
AndroidManifest.xml Add QUERY_ALL_PACKAGES to FrameworksNetTestsLib 2023-09-19 15:32:21 +09:00
AndroidTest.xml [SettingsProvider] fix connectivity test 2022-04-20 09:29:40 -07:00
jarjar-excludes.txt Allow jarjar com.android.server* 2023-02-14 15:43:43 +00:00
jarjar-rules.txt Add jarjar rule for com.android.testutils.TestBpfMap 2022-02-03 22:53:07 +01:00
OWNERS Set test component in common OWNERS 2023-06-21 02:54:13 +00:00