1. add test case for testing bypass Private DNS
2. add null network test
3. minor change for cleanup
Bug: 130594022
Test: atest DnsResolverTest
Merged-In: I8dd48f11baf92d953ded237204a3c2cd3b58581d
(cherry picked from commit da665a0a78a2919c3e2edabafec463de3de9ddb7)
Change-Id: Iabb100c51fd80eca5ab0284bc891f4fb98492e8b
am: f5e8bf5b79 -s ours
am skip reason: change_id I3f8456deea2b4ded762a413c8e27b58ce54ce0aa with SHA1 063b4e109e is in history
Change-Id: I2895f11abcbea5fe73ef91b359d8d634af77d810
am: 1d689279e0 -s ours
am skip reason: change_id I3f8456deea2b4ded762a413c8e27b58ce54ce0aa with SHA1 063b4e109e is in history
Change-Id: I7578ec0d99a036eec0d3ac1980fab8583d6588f6
am: d2a0d577f0 -s ours
am skip reason: change_id I3f8456deea2b4ded762a413c8e27b58ce54ce0aa with SHA1 063b4e109e is in history
Change-Id: I7016712b4c6d095ecc9abdaba94ff412844366ac
If kernel < 4.8 then it doesn't support get socket option
TCP_REPAIR_WINDOW, thus TCP keepalive cannot be supported.
However, it might still support NAT-T keepalive. Test TCP
keepalive only if it is supported by kernel.
Bug: 133652079
Test: atest android.net.cts.ConnectivityManagerTest#testMajorMinorVersionCompare \
android.net.cts.ConnectivityManagerTest#testSocketKeepaliveLimit \
android.net.cts.ConnectivityManagerTest#testSocketKeepaliveUnprivileged \
android.net.cts.ConnectivityManagerTest#testKeepaliveUnsupported \
android.net.cts.ConnectivityManagerTest#testCreateTcpKeepalive
Change-Id: I0a3ff07c482bb7c8cb05663678c10afcc0500861
Merged-In: I3f8456deea2b4ded762a413c8e27b58ce54ce0aa
(cherry picked from commit 57d91e6276b50bf0dd78f3643c4a979f584fcf38)
am: b13869c598 -s ours
am skip reason: change_id I075b7408d2a1e1145c7a9031075e07fa1db37fed with SHA1 2d99b49651 is in history
Change-Id: I0264f0781595dfe939009dd9cc86a616a81d2b3b
am: b99373fca6 -s ours
am skip reason: change_id I075b7408d2a1e1145c7a9031075e07fa1db37fed with SHA1 2d99b49651 is in history
Change-Id: Ide7d2084b982f908f2a42747d3ab8117e74b36cf
1. All ConnectivityManagerApi23Test were failed due to
WifiManager#setWifiEnabled doesn't allow to use since
Android Q. So we need to use shell command to enable/disable
Wi-Fi instead.
2. Some methods are duplicated between
ConnectivityManagerApi23Test and ConnectivityManagerTest, but
they are not identical. So put these methods into
ConnectivityUtils to clean up duplications and prevent fork
happened again.
Bug: 133334943
Bug: 133209319
Test: Run the below tests on Crosshatch, Sailfish, Bonito.
atest CtsNetApi23TestCases
atest CtsNetTestCases
Change-Id: Ic37111cb12a46f5c36c2be887250c5d762216f6e
Merged-In: I075b7408d2a1e1145c7a9031075e07fa1db37fed
Merged-In: I0c02357eff07b98c1745de35d08ae6b8349de7fb
Merged-In: I04d1e1d096bcd4a9626cf9f00396fca7f9892a82
1. All ConnectivityManagerApi23Test were failed due to
WifiManager#setWifiEnabled doesn't allow to use since
Android Q. So we need to use shell command to enable/disable
Wi-Fi instead.
2. Some methods are duplicated between
ConnectivityManagerApi23Test and ConnectivityManagerTest, but
they are not identical. So put these methods into
ConnectivityUtils to clean up duplications and prevent fork
happened again.
Bug: 133334943
Bug: 133209319
Test: Run the below tests on Crosshatch, Sailfish, Bonito.
atest CtsNetApi23TestCases
atest CtsNetTestCases
Change-Id: Ic37111cb12a46f5c36c2be887250c5d762216f6e
If kernel < 4.8 then it doesn't support get socket option
TCP_REPAIR_WINDOW, thus TCP keepalive cannot be supported.
However, it might still support NAT-T keepalive. Test TCP
keepalive only if it is supported by kernel.
Bug: 133652079
Test: atest android.net.cts.ConnectivityManagerTest#testMajorMinorVersionCompare \
android.net.cts.ConnectivityManagerTest#testSocketKeepaliveLimit \
android.net.cts.ConnectivityManagerTest#testSocketKeepaliveUnprivileged \
android.net.cts.ConnectivityManagerTest#testKeepaliveUnsupported \
android.net.cts.ConnectivityManagerTest#testCreateTcpKeepalive
Change-Id: I3f8456deea2b4ded762a413c8e27b58ce54ce0aa
1. add test case for testing bypass Private DNS
2. add null network test
3. minor change for cleanup
Bug: 130594022
Test: atest DnsResolverTest
Change-Id: I2da65fc1267a1975e014c0aafe2ae47df075b712
am: b66b0911c7 -s ours
am skip reason: change_id I3babc72dfe72337c4d68facb1695aec15e504c90 with SHA1 4af108aacf is in history
Change-Id: I417f4e39cbf9788e0aaecc1dbd48e9e6bd3bcc95
am: 00343b0f5b -s ours
am skip reason: change_id I3babc72dfe72337c4d68facb1695aec15e504c90 with SHA1 4af108aacf is in history
Change-Id: I9e29fc84ed9212339a85839c97cd5d4131ae7d3c
am: 298d129743 -s ours
am skip reason: change_id Ia18c6bfe791692f8835b127adf734ce3d2a4ba95 with SHA1 829a040a81 is in history
Change-Id: Id71777e240a67e62a9191c2c253c81032f9b656f
am: a29a169fb1 -s ours
am skip reason: change_id Ia18c6bfe791692f8835b127adf734ce3d2a4ba95 with SHA1 829a040a81 is in history
Change-Id: I3bf6c5f46789182cbf251a06a9c2809b626c8706
am: a138c9e487 -s ours
am skip reason: change_id Ia18c6bfe791692f8835b127adf734ce3d2a4ba95 with SHA1 829a040a81 is in history
Change-Id: I432b16b910227bced7ca8de0347b72c52a7459d2
Test runner will crash while tring to get test network service
in IpSecManagerTunnelTest. Because MANAGE_TEST_NETWORKS
permission can't be granted to instant apps. So ignore all tests
in this file.
Bug: 133399750
Test: atest CtsNetTestCases --instant
Change-Id: I31b7e12a5a0021185851ba4435a6c42d457f34b6
Merged-In: Ia18c6bfe791692f8835b127adf734ce3d2a4ba95
Merged-In: I697333a7a64d794208d80112bdc1d1e50c5d2b56
Merged-In: I31b7e12a5a0021185851ba4435a6c42d457f34b6
(cherry picked from commit eb29c90465)
Test runner will crash while tring to get test network service
in IpSecManagerTunnelTest. Because MANAGE_TEST_NETWORKS
permission can't be granted to instant apps. So ignore all tests
in this file.
Bug: 133399750
Test: atest CtsNetTestCases --instant
Change-Id: I5a096f20ec168133dbb65d27d3388c01e6ee895b
am: 0f897b8d71 -s ours
am skip reason: change_id I931369875c86a396a898682009337cef1b918ba4 with SHA1 a5f4202a7b is in history
Change-Id: I86d951bf470cdec18147a5cb2f33527301a4ecb0