android_packages_modules_Co.../tests/common/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remi NGUYEN VAN 66c27c18a2 Let LinkProperties#getRoutes() keeps returning all routes before T
Starting from T, VpnService supports exclude routes, which will
make the caller to get both of include routes and exclude routes
from LinkProperties#getRoutes(), and it's not expected to get the
exclude routes before T in production code even though the code
returns all routes.

But there is a CTS - LinkPropertiesTest#testRouteAddWithSameKey()
will try to add an exclude route and check if the result of
LinkProperties#getRoutes() contains that exclude route or not.
And the test is failed now since LinkProperties#getRoutes() will
only return include route if compat feature - EXCLUDED_ROUTES is
disabled. (EXCLUDED_ROUTES is enabled starting from target SDK T)

To fix this test failure, let LinkProperties#getRoutes() keeps
returning all routes if SDK is before T. This avoids changing
behavior on S, and even though there is still a behavior change
when upgrading to T, apps are unlikely to be relying on such
behavior, especially outside of tests.

Bug: 238061814
Test: Run "atest CtsNetTestCases:LinkPropertiesTest" on S build
      with mainline module which contains this patch.
Change-Id: Iac4362c4fe347ee3f06d5b21b0325fa69a7f27b6
2022-07-14 18:54:05 +09:00
..
apf Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
metrics Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
netstats Return sorted NetworkStatsHistory 2022-06-07 10:51:52 +08:00
util Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
CaptivePortalDataTest.kt Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
CaptivePortalTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
ConnectivityDiagnosticsManagerTest.java Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
ConnectivitySettingsManagerTest.kt Fix testing with/without connectivity module 2022-02-16 15:22:30 +09:00
DependenciesTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
DhcpInfoTest.java Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
EthernetNetworkManagementExceptionTest.java Rename of InternalNetworkManagementException 2022-05-03 13:22:21 -07:00
InvalidPacketExceptionTest.kt Add basic tests for InvalidPacketException 2021-06-23 09:16:59 +00:00
IpPrefixTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
KeepalivePacketDataTest.kt Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
LinkAddressTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
LinkPropertiesTest.java Let LinkProperties#getRoutes() keeps returning all routes before T 2022-07-14 18:54:05 +09:00
MatchAllNetworkSpecifierTest.kt Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
NattKeepalivePacketDataTest.kt Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
NetworkAgentConfigTest.kt Rename getVpnRequiresValidation to isVpnValidationRequired 2022-03-02 01:02:45 +00:00
NetworkCapabilitiesTest.java Fix CtsNetTestCases on Q 2022-04-15 16:40:08 +09:00
NetworkProviderTest.kt Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
NetworkSpecifierTest.kt Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
NetworkStackTest.java Move net unit tests to packages/Connectivity 2021-05-13 08:30:33 +00:00
NetworkStateSnapshotTest.kt Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
NetworkTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
OemNetworkPreferencesTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
RouteInfoTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
TcpKeepalivePacketDataTest.kt Do not verify field count in tests used in CTS 2022-01-18 16:55:32 +09:00
UidRangeTest.java Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00
UnderlyingNetworkInfoTest.kt Mark connectivity module tests as such 2022-01-18 16:55:44 +09:00