Chalard Jean
ff90e803d0
Merge "Make sure agents start in the CONNECTING state" am: e3c9bb8545 am: 846ace20b8 am: f6d624ecf2 am: 3c7cd593da
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1460705
Change-Id: Ie86d8e50c78e0a48f24f6be4436bfe84275f8b03
2020-10-29 14:32:37 +00:00
Chalard Jean
3c7cd593da
Merge "Make sure agents start in the CONNECTING state" am: e3c9bb8545 am: 846ace20b8 am: f6d624ecf2
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1460705
Change-Id: I68d3a5a6a36f6e29d9bb69657d0842538c03838b
2020-10-29 13:52:57 +00:00
Chalard Jean
f6d624ecf2
Merge "Make sure agents start in the CONNECTING state" am: e3c9bb8545 am: 846ace20b8
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1460705
Change-Id: I59df1d50bcff23cc082bb1872be3493c4cf799c8
2020-10-29 13:30:39 +00:00
Chalard Jean
e3c9bb8545
Merge "Make sure agents start in the CONNECTING state"
2020-10-29 12:31:03 +00:00
Treehugger Robot
cedf819e02
Merge "Don't run hotspot related tests if Soft AP is not supported" am: 5ecf780e6e am: 9fd00e4ef5 am: 2e8a119358 am: bf6ed3a086
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1450576
Change-Id: Icca2ae362d36ede34dcbb6b48b7e77a6ee6e8160
2020-10-29 07:46:47 +00:00
Treehugger Robot
bf6ed3a086
Merge "Don't run hotspot related tests if Soft AP is not supported" am: 5ecf780e6e am: 9fd00e4ef5 am: 2e8a119358
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1450576
Change-Id: I7e7247d44b0adf8242ea0dde69636d68715c50e3
2020-10-29 07:23:15 +00:00
Treehugger Robot
2e8a119358
Merge "Don't run hotspot related tests if Soft AP is not supported" am: 5ecf780e6e am: 9fd00e4ef5
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1450576
Change-Id: I64046271ddafb2b37dadb7d6c51dc8db6e333353
2020-10-29 06:42:36 +00:00
Treehugger Robot
5ecf780e6e
Merge "Don't run hotspot related tests if Soft AP is not supported"
2020-10-29 05:32:56 +00:00
markchien
8705535e40
Don't run hotspot related tests if Soft AP is not supported
...
Also explicitly hold ACCESS_WIFI_STATE permission to avoid
no permission problem when using WifiManager#getScanResults
without shell identity.
Fix: 169219565
Test: "atest CtsTetheringTest" in cuttlefish and phyical device
Change-Id: I3d8fa7e8882bf96f61f3316a70efdf991addbcb2
2020-10-29 11:10:46 +08:00
Automerger Merge Worker
f90013221d
Merge "[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 1ca661e5d7 -s ours" into rvc-qpr-dev-plus-aosp am: 7828c76a1f -s ours
...
am skip reason: subject contains skip directive
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: I522668d531fbd2b5dfe47654e4c31df76744c291
2020-10-29 01:21:30 +00:00
Treehugger Robot
210600edd3
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 579d87b15b -s ours am: 6fb05287da -s ours
...
am skip reason: subject contains skip directive
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: If5ab779b12a46767fd57f9c850ff3d08ba4eeabe
2020-10-29 01:20:59 +00:00
Automerger Merge Worker
7828c76a1f
Merge "[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 1ca661e5d7 -s ours" into rvc-qpr-dev-plus-aosp
2020-10-28 23:04:14 +00:00
Treehugger Robot
6fb05287da
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 579d87b15b -s ours
...
am skip reason: Change-Id I4669a6ff79b3d2e99795015e42bfa611cffb9070 with SHA-1 54601cdcdf is in history
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: I409a3abe705704fd24c83d5eee0b984afbc5c740
2020-10-28 23:04:08 +00:00
Treehugger Robot
3d6737d37c
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 1ca661e5d7 -s ours
...
am skip reason: Change-Id I4669a6ff79b3d2e99795015e42bfa611cffb9070 with SHA-1 54601cdcdf is in history
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: If02f6dda82f83ed655b9a202c4fab8d81c25fb61
2020-10-28 23:04:08 +00:00
Treehugger Robot
5a392c68e4
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: a9d7cf89e5 -s ours
...
am skip reason: subject contains skip directive
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: I5c02410b5ae32103a8350fc78274a1e3af731fb2
2020-10-28 21:12:22 +00:00
Treehugger Robot
579d87b15b
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours
...
am skip reason: Change-Id I4669a6ff79b3d2e99795015e42bfa611cffb9070 with SHA-1 54601cdcdf is in history
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: I685f309457d6f62c8f5e3b2901a7826e757fce13
2020-10-28 21:06:55 +00:00
Treehugger Robot
a9d7cf89e5
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours
...
am skip reason: Change-Id I4669a6ff79b3d2e99795015e42bfa611cffb9070 with SHA-1 54601cdcdf is in history
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: Ifd45d787931a7ac6bd47902cac8be9c83d8d88c1
2020-10-28 19:11:09 +00:00
Treehugger Robot
d59688258b
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours
...
am skip reason: Change-Id I4669a6ff79b3d2e99795015e42bfa611cffb9070 with SHA-1 54601cdcdf is in history
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: I06b09ea9a14b65c105c3a91fa3d695e1761611f8
2020-10-28 19:10:55 +00:00
Treehugger Robot
e230976694
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours
...
am skip reason: subject contains skip directive
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: Id308d0ef1f72fa165c02fa461dc5cb13873dd4ba
2020-10-28 18:55:17 +00:00
Treehugger Robot
4355a4a1fa
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: Ifa33a2382d4893d7efd99c254f37f05d316afd80
2020-10-28 18:42:16 +00:00
Treehugger Robot
d42bb3d1c3
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours
...
am skip reason: subject contains skip directive
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: I96d9e0e0024367af82c97303bbb7efe40dc9afdf
2020-10-28 18:11:14 +00:00
Treehugger Robot
9ec68a4e77
[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours
...
am skip reason: subject contains skip directive
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623
Change-Id: I8ff4b0cdf08599f9e40c3339d196315f2e8edb4a
2020-10-28 17:39:31 +00:00
David Su
5dd45ebc2b
DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received
...
Android Pie CtsNetTestCases AndroidManifest.xml has both
ACCESS_WIFI_STATE & ACCESS_FINE_LOCATION permission.
Thus, it should receive the CONFIGURED_NETWORKS_CHANGED_ACTION
broadcast when a network is removed.
Bug: 159373687
Bug: 171022033
Test: atest CtsNetTestCases
Change-Id: I9d194424469d204c4f95e98b937d67ba728f2122
Merged-In: I4669a6ff79b3d2e99795015e42bfa611cffb9070
2020-10-28 17:06:54 +00:00
Remi NGUYEN VAN
bddac438e3
Move apache HTTP tests out of tests/net am: d4ce63c879
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12934976
Change-Id: Ie1c8bd4e94329b31f57e502e8b4d463f0ff663c0
2020-10-28 08:33:37 +00:00
Remi NGUYEN VAN
ad2fba6088
[automerger skipped] Drop .stubs from android.test.[base|runner|mock].stubs am: 430caa9121 -s ours
...
am skip reason: Change-Id I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7 with SHA-1 82bb526062 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12934975
Change-Id: If85ecc8819945bc1528f9a958b175d78742168ec
2020-10-28 08:33:31 +00:00
Remi NGUYEN VAN
d4ce63c879
Move apache HTTP tests out of tests/net
...
The apache HTTP library is part of the platform core APIs, which are
separate from the core networking APIs.
cts/tests/tests/net is planned to move to a separate git project to put
it closer to the associated connectivity module code.
Bug: 170371348
Test: m cts && cts-tradefed run cts -m CtsApacheHttpTestCases
Change-Id: I49972b21755235e280c75eec40db14f3db974ca1
2020-10-28 10:22:20 +09:00
Remi NGUYEN VAN
430caa9121
Drop .stubs from android.test.[base|runner|mock].stubs
...
The .stubs library refer to the stub library of a java_sdk_library.
Since the name of the stub library is the implementation detail of the
build system, direct use of the name should be prohibited. Actually,
clients don't need to use the stub name directly because the build
system automatically redirects <name> to <name>.stubs.
This is a partial cherry-pick for the networking tests.
Bug: 157007292
Test: m
Merged-In: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
(cherry picked from commit 4072d4d5d4 )
Change-Id: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
2020-10-28 10:19:26 +09:00
Treehugger Robot
859782bed9
Merge "Add all CTS tests to general-tests suite" am: 28b5564126 am: b6a955df5b am: fb7a1f49d2 am: 9cf83254fb
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1477639
Change-Id: If87c0a566ad4e622cb3b7b4ddfe4a08338a4111d
2020-10-28 00:03:46 +00:00
Treehugger Robot
9cf83254fb
Merge "Add all CTS tests to general-tests suite" am: 28b5564126 am: b6a955df5b am: fb7a1f49d2
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1477639
Change-Id: Ifd22f79bf52b43cf7f5921f45a11ac5f8c930cc8
2020-10-27 23:53:03 +00:00
Treehugger Robot
fb7a1f49d2
Merge "Add all CTS tests to general-tests suite" am: 28b5564126 am: b6a955df5b
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1477639
Change-Id: I05f63c992cd7bce4e891a44d593fd8330049857c
2020-10-27 23:21:56 +00:00
Dan Shi
98716c5cdc
Add all CTS tests to general-tests suite
...
Exempt-From-Owner-Approval: this change only adds the tests to
general-tests.zip, doesn't change any test behavior.
Bug: 171481522
Test: none
Change-Id: I1711237f00572d57f611dcd16ec9ad345a0b5b3b
2020-10-27 22:25:33 +00:00
Remi NGUYEN VAN
f60ff4d773
Merge "Move apache HTTP tests out of tests/net" am: 1cdfeec47d am: bc83be307e am: 9f65c013a3 am: aed3600f7d
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471587
Change-Id: Ib852b9f12a591ea4e073ff4e6555de796c000f54
2020-10-27 08:50:33 +00:00
Remi NGUYEN VAN
aed3600f7d
Merge "Move apache HTTP tests out of tests/net" am: 1cdfeec47d am: bc83be307e am: 9f65c013a3
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471587
Change-Id: I0feefa1e57ce121001e61ac14963bf5ecd985e15
2020-10-27 08:09:16 +00:00
Remi NGUYEN VAN
9f65c013a3
Merge "Move apache HTTP tests out of tests/net" am: 1cdfeec47d am: bc83be307e
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471587
Change-Id: I9cef4699702f109f7edab8c781e137db3d532069
2020-10-27 07:45:36 +00:00
Remi NGUYEN VAN
1cdfeec47d
Merge "Move apache HTTP tests out of tests/net"
2020-10-27 06:39:25 +00:00
Remi NGUYEN VAN
438200afb9
Move apache HTTP tests out of tests/net
...
The apache HTTP library is part of the platform core APIs, which are
separate from the core networking APIs.
cts/tests/tests/net is planned to move to a separate git project to put
it closer to the associated connectivity module code.
Bug: 170371348
Test: m cts && cts-tradefed run cts -m CtsApacheHttpTestCases
Change-Id: I49972b21755235e280c75eec40db14f3db974ca1
2020-10-27 11:07:04 +09:00
Treehugger Robot
9039774e2b
Merge "Add com.google.android.resolv.apex and com.google.android.tethering.apex for CtsNetTestCasesLatestSdk." am: 7851370b12 am: c408ae280f am: 7d70389950 am: a888654d70
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471584
Change-Id: Iaf7b022badad9b186f90c4232026c4d6a5cb8675
2020-10-26 10:39:05 +00:00
Treehugger Robot
a888654d70
Merge "Add com.google.android.resolv.apex and com.google.android.tethering.apex for CtsNetTestCasesLatestSdk." am: 7851370b12 am: c408ae280f am: 7d70389950
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471584
Change-Id: Ifb79bfaad1875d924b26332a0f72fc6cf9dcf93c
2020-10-26 10:12:14 +00:00
Treehugger Robot
7d70389950
Merge "Add com.google.android.resolv.apex and com.google.android.tethering.apex for CtsNetTestCasesLatestSdk." am: 7851370b12 am: c408ae280f
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471584
Change-Id: Idfc85a5641ebba65197152b7abf9cc915684deef
2020-10-26 09:58:50 +00:00
Treehugger Robot
7851370b12
Merge "Add com.google.android.resolv.apex and com.google.android.tethering.apex for CtsNetTestCasesLatestSdk."
2020-10-26 08:56:35 +00:00
Yan Yan
2be532e967
[automerger skipped] Merge "Migrate IPsec CTS out of tests/tests/net" into mainline-prod am: be9d43dfaf -s ours
...
am skip reason: Change-Id I08f069c2a11f3daa3f0332c631055a1e0be7ce7b with SHA-1 b4d5a4b66f is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12850983
Change-Id: I2e75951cde796466826ee978d23e4024e9735116
2020-10-23 19:23:09 +00:00
Yan Yan
be9d43dfaf
Merge "Migrate IPsec CTS out of tests/tests/net" into mainline-prod
2020-10-23 19:06:41 +00:00
easoncylee
48c4cf621d
Add com.google.android.resolv.apex and com.google.android.tethering.apex
...
for CtsNetTestCasesLatestSdk.
Reference: https://android-review.googlesource.com/c/platform/cts/+/1331100/3/tests/tests/net/AndroidTestTemplate.xml#23
Bug: 160877913
Test: forrest.
Change-Id: If39c594a0fdc39a8a7272464fc59e2a1483f6d54
2020-10-23 13:10:56 +08:00
Remi NGUYEN VAN
109bd7083b
[automerger skipped] Merge "Wait for connect before dropping permissions" into mainline-prod am: d3091327ae -s ours
...
am skip reason: Change-Id I0f47c455f2c1596a887abab7d35146d8557d736a with SHA-1 0c70933916 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12900596
Change-Id: I0a8f4f15f230c516ba0740d7159ccd015171a2e2
2020-10-23 03:44:39 +00:00
Remi NGUYEN VAN
51f8eb5d11
Merge "Wait for connect before dropping permissions" am: 6af04d2b3a am: 561ac85ed3 am: e429055678 am: 37a09d2a17
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1470543
Change-Id: Ibbb8c384a712b6a1e71d1457f175396839edec95
2020-10-22 10:49:31 +00:00
Remi NGUYEN VAN
37a09d2a17
Merge "Wait for connect before dropping permissions" am: 6af04d2b3a am: 561ac85ed3 am: e429055678
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1470543
Change-Id: Ifcce4a9f364fd53227871fa41869c6ffed70f24e
2020-10-22 10:35:25 +00:00
Remi NGUYEN VAN
4728ed460f
Wait for connect before dropping permissions
...
WifiManager#connect is implemented with a oneway binder call, so it may
return before the permission check. The previous code could drop shell
permissions before the check is performed.
Use WifiManager.ActionListener to wait for the operation to end before
dropping permissions.
Also refactor current usages of various "run as shell" utilities to use
TestPermissionUtil.runAsShell, which is the "standard" utility used in
connectivity tests (both in CTS and in other tests).
Bug: 170371191
Test: atest CtsNetTestCasesLatestSdk:CaptivePortalTest
Original-Change: https://android-review.googlesource.com/1470543
Merged-In: I0f47c455f2c1596a887abab7d35146d8557d736a
Change-Id: I0f47c455f2c1596a887abab7d35146d8557d736a
2020-10-22 10:34:32 +00:00
Remi NGUYEN VAN
e429055678
Merge "Wait for connect before dropping permissions" am: 6af04d2b3a am: 561ac85ed3
...
Original change: https://android-review.googlesource.com/c/platform/cts/+/1470543
Change-Id: Iaeec1eb060b01ce898591bcb7c9c280ca9b04839
2020-10-22 10:15:18 +00:00
Remi NGUYEN VAN
0c70933916
Wait for connect before dropping permissions
...
WifiManager#connect is implemented with a oneway binder call, so it may
return before the permission check. The previous code could drop shell
permissions before the check is performed.
Use WifiManager.ActionListener to wait for the operation to end before
dropping permissions.
Also refactor current usages of various "run as shell" utilities to use
TestPermissionUtil.runAsShell, which is the "standard" utility used in
connectivity tests (both in CTS and in other tests).
Bug: 170371191
Test: atest CtsNetTestCasesLatestSdk:CaptivePortalTest
Change-Id: I0f47c455f2c1596a887abab7d35146d8557d736a
2020-10-22 15:37:50 +09:00
TreeHugger Robot
0911c6062b
[automerger skipped] Merge "Don't check broadcast intent on connection status check" into mainline-prod am: 1980f8cf3d -s ours
...
am skip reason: Change-Id I88f434798ec83539df9cc6a81446ca37a0081e3b with SHA-1 8ff9c262ca is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12791696
Change-Id: I2e96f746c95c8fd9dcf7fdc8cbe0b745dc8d4739
2020-10-21 09:24:28 +00:00