Commit Graph

1369 Commits

Author SHA1 Message Date
Android Build Merger (Role)
f04219bb3a Merge "Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours am: bb6a9be084 am: 89195184af am: 0a0b1d2fe6 -s ours am: 8903a0aa04" into oc-dev-plus-aosp 2017-04-13 23:55:22 +00:00
Sudheer Shanka
457a418157 Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours am: bb6a9be084 am: 89195184af am: 0a0b1d2fe6 -s ours
am: 8903a0aa04

Change-Id: Idae3b46620e31aa51792ab2f4387a80a597ca56a
2017-04-13 23:54:53 +00:00
Sudheer Shanka
9830006d01 Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours am: bb6a9be084 am: 89195184af am: 0a0b1d2fe6
am: 5e93a23108  -s ours

Change-Id: I396de4a6a6b4605d2dadde5116953dcb8dc64a2f
2017-04-13 23:54:45 +00:00
Sudheer Shanka
5e93a23108 Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours am: bb6a9be084 am: 89195184af
am: 0a0b1d2fe6

Change-Id: I40645d179ab9fea74f179052ff27ce309ca5e5a7
2017-04-13 23:49:16 +00:00
Sudheer Shanka
8903a0aa04 Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours am: bb6a9be084 am: 89195184af
am: 0a0b1d2fe6  -s ours

Change-Id: I5d18b543effbf8f4af110bade420d6f67b3965d2
2017-04-13 23:49:15 +00:00
Sudheer Shanka
26d36057bb Merge "Merge "Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours" am: 608a3b8f82 -s ours am: 8884bfc2ac -s ours" into nyc-mr2-dev-plus-aosp
am: c95fb00d30  -s ours

Change-Id: Ifd4c31704739b669fee3ce3eaf5acbcf5b0730d4
2017-04-13 23:45:16 +00:00
Sudheer Shanka
ff4c3f975e Merge "Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours" am: 608a3b8f82 -s ours
am: 8884bfc2ac  -s ours

Change-Id: Ie8faacecf2d8dbe2bc6e1e863ea37395b4df1027
2017-04-13 23:38:17 +00:00
Sudheer Shanka
89195184af Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours
am: bb6a9be084

Change-Id: I19a9896b209bd724b57b7a98098d44c90725089e
2017-04-13 23:37:44 +00:00
Sudheer Shanka
bb6a9be084 Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev
am: 137a9169cf  -s ours

Change-Id: Idf00e79de9ee11e39e6942f7b9d17ebfbf80fa3f
2017-04-13 23:32:26 +00:00
Android Merger
608a3b8f82 Merge "Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev am: 137a9169cf -s ours" 2017-04-13 23:26:12 +00:00
Sudheer Shanka
b383c0373b Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev
am: 137a9169cf  -s ours

Change-Id: Ic97f5a0744e706d343eccf1dd242e4da45893ca8
2017-04-13 23:26:06 +00:00
Android Merger
137a9169cf Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev am: 43a0aa48b0 -s ours" into nougat-mr1-cts-dev 2017-04-13 23:20:39 +00:00
Sudheer Shanka
12160bc460 Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-cts-dev
am: 43a0aa48b0  -s ours

Change-Id: Ibc146b186e9f9de3e6057f6fef1f1e0bbb5e0347
2017-04-13 23:20:32 +00:00
Jocelyn Dang
9665fa7f99 Merge "Change test to use set-mode cmd." into oc-dev
am: f9a022629f

Change-Id: Id088abeb0c930df76e9450414588d2ddea380d60
2017-04-13 18:50:49 +00:00
Jocelyn Dang
f9a022629f Merge "Change test to use set-mode cmd." into oc-dev 2017-04-13 18:38:14 +00:00
Joel Scherpelz
c3f8e80b42 Merge changes Iac8979df,I3c0a6823 into oc-dev
am: 16e262b132

Change-Id: I602b468afdab41de50851bc833e5e35bfff1da31
2017-04-13 09:27:41 +00:00
Joel Scherpelz
c805581fc0 Add CTS test to verify router solicitation backoff
Add two new test cases to ConnectivityManagerTest:
testRouterSolicitations()
testRouterSolicitationMaxInterval()

Bug: 33620395
Test: ConnectivityManagerTest CTS test passes with WIFI on/off
Change-Id: Iac8979dfab29ae75343a355d02acfb0f39b491f9
2017-04-13 15:33:28 +09:00
Joel Scherpelz
eb290f96b3 Add CTS to verify RIO min/max prefix length
Add two new test cases to ConnectivityManagerTest:
testAcceptRaRtInfoMinPlen()
testAcceptRaRtInfoMaxPlen()

Bug: 33333670
Test: ConnectivityManagerTest CTS test passes with WIFI on/off
Change-Id: I3c0a6823b6fa75f55f9bb99b59557abeb5b9ac62
2017-04-13 14:42:26 +09:00
Joel Scherpelz
661b828da7 Merge "Refactor repeated WIFI bringup code in ConnectivityManagerTest" into oc-dev
am: 8ab85ba40b

Change-Id: I7f72460220dc493bbcac73f49fc0f2d1187b2c2b
2017-04-13 05:36:24 +00:00
Joel Scherpelz
61b18d0d8e Refactor repeated WIFI bringup code in ConnectivityManagerTest
This is a minor code health change motivated by upcoming additions to
ConnectivityManagerTest. Common code to drive WIFI to a connected state
is now shared along with automatic cleanup code to restore wifi to its
original state in tearDown().

Bug: 33333670
Test: CtsNetTestCases test passes
Change-Id: I62a2748f113650f7a235af3074e33cc0cefe4a3b
(cherry picked from commit 49eaabd72c1a5346750342ffc956c4b903ca532c)
2017-04-13 05:27:51 +00:00
Jocelyn Dang
e7d7cd1369 Change test to use set-mode cmd.
Change-Id: I23c0888ba105067f19ebe516ce3fbc6868ed2b17
2017-04-12 15:31:51 -07:00
nharold
3c2389ab37 Merge "Update IpSecAlgorithm CTS for API compliance changes" am: 92e6ed9ce4 am: 932944234b
am: a88faa2939

Change-Id: I6b3ee37c74098934e30970569c3bac2e26f6c759
2017-04-12 20:50:08 +00:00
nharold
a88faa2939 Merge "Update IpSecAlgorithm CTS for API compliance changes" am: 92e6ed9ce4
am: 932944234b

Change-Id: Ic32253601aad616472a6eceb26a51cc7cdd69dba
2017-04-12 18:36:14 +00:00
Nathan Harold
3c0a040072 Update IpSecAlgorithm CTS for API compliance changes
Bug: 36073210, b/34811227
Test: verified on Bullhead
Change-Id: I8f37016cc9aadafd3e58f6af535bd7bc1d0f4a96
2017-04-11 10:14:09 -07:00
Etan Cohen
4ee2dc4092 Merge "[AWARE] Add CTS tests for publish/subscribe TTL" into oc-dev
am: 697f449f89

Change-Id: Iaa31abcd6d823b19bc9c3ad65bc0a2ac45d4e577
2017-04-06 04:16:08 +00:00
Etan Cohen
697f449f89 Merge "[AWARE] Add CTS tests for publish/subscribe TTL" into oc-dev 2017-04-06 04:11:06 +00:00
Nathan Harold
e7c827e141 Merge "Initial CTS Tests for IpSec Classes" into oc-dev
am: 3f2eeb569a

Change-Id: I478c70f77260403c10ddb17ef11280d6ee1ae954
2017-04-06 01:56:54 +00:00
Nathan Harold
3f2eeb569a Merge "Initial CTS Tests for IpSec Classes" into oc-dev 2017-04-06 01:34:34 +00:00
Peter Qiu
9c7299bacb Merge "wifi: catch UnsupportedOperationException for devices with Passpoint disabled" into oc-dev
am: 3deeed9a45

Change-Id: I3a5963931d2359b51cec75e9a7bac8530c18b785
2017-04-04 02:26:20 +00:00
Peter Qiu
b45c3dc6f1 wifi: catch UnsupportedOperationException for devices with Passpoint disabled
For devices with build config |config_wifi_hotspot2_enabled| set to false
(Passpoint disabled), an UnsupportedOperationException will be thrown
when Passpoint related WifiManager APIs are invoked.  For these devices,
the testing of Passpoint APIs are not relevant. So just catch and ignore
this type of exceptions to avoid any test failures.

While there, set the UpdateIdentifier for Passpoint configurations, to avoid
the CA certificate verification when adding the config, since we're using
a fake CA certificate for testing.

Bug: 36863137
Test: cts-tradefed run cts-dev -m CtsNetTestCases -t android.net.wifi.cts.WifiManagerTest
Change-Id: I8ebdc58349c33f13b510c3d9e2a5fc8ce4ef09c4
2017-04-03 17:27:18 -07:00
Nathan Harold
ea6bd5400a Initial CTS Tests for IpSec Classes
-Test SPI creation, duplication and deletion
-Test IpSecTransform creation, apply to socket, and delete

Bug: 30984788, 34811227
Test: Verified on Bullhead with UDP on IPv6 (default)
Change-Id: I1ffc84e549c7666996472ed323eb44810c3b9843
(cherry picked from commit 4eddc41200c1912b40218d0ee7b0f0cc05c1a960)
2017-04-04 00:16:04 +00:00
nharold
a7eadf8ce6 Merge "Initial CTS Tests for IpSec Classes" am: 9723603f61 am: 04d2387961
am: d9a4cf713f

Change-Id: I4993cf7b19ba8a138b5cf8649203b4fc4bc2818c
2017-04-02 00:33:51 +00:00
nharold
d9a4cf713f Merge "Initial CTS Tests for IpSec Classes" am: 9723603f61
am: 04d2387961

Change-Id: I164ba7d9beadf40b5f22fa02cf7ead25578d86b9
2017-04-02 00:25:40 +00:00
nharold
04d2387961 Merge "Initial CTS Tests for IpSec Classes"
am: 9723603f61

Change-Id: I27b62baadd328a5234df55c1021b51e0b4db52e5
2017-04-02 00:17:35 +00:00
Nathan Harold
d44cfd7014 Initial CTS Tests for IpSec Classes
-Test SPI creation, duplication and deletion
-Test IpSecTransform creation, apply to socket, and delete

Bug: 34811227
Test: Verified on Bullhead with UDP on IPv6 (default)
Change-Id: I1ffc84e549c7666996472ed323eb44810c3b9843
2017-03-31 19:04:23 -07:00
Sudheer Shanka
d69455289f DO NOT MERGE: Skip data saver related tests if the device doesn't support it.
Bug: 36007771
Test: manual
Change-Id: I817d2cc23e5c8d460367ede749ff35e799f48ee0
2017-03-31 15:54:35 -07:00
Etan Cohen
c9819a49a5 [AWARE] Add CTS tests for publish/subscribe TTL
Add time-to-live (TTL) testing on publish/subscribe. Can
be verified with single device testing.

Bug: 30556108
Test: CTS tests pass
Change-Id: Ic0fc6b7bd2bc12a5e615b3334a5373da73ccfbf6
2017-03-28 13:31:54 -07:00
Lorenzo Colitti
d3e27e4bf0 Require that the VPN tests pass on TVs.
The tests were skipped for historical reasons that are no longer
valid, and creates a hole in testing because there are now
several VPN apps that work on TVs.

Test: HostsideVpnTests passes on fugu with UID routing kernel bug fixed
Bug: 36465489
Change-Id: Ib0d6a5cec085e1fc09cf0609b08ca897629afe0c
2017-03-24 17:44:59 +00:00
Peter Qiu
7a94754ea8 Merge "wifi: hotspot2: verify getter methods" am: b296f84ce8 am: c5d2212da7
am: c2207fd342

Change-Id: I54b6969ccc2f0b8d50825c0eb4bd2cddc3f04829
2017-03-22 00:13:35 +00:00
Peter Qiu
c2207fd342 Merge "wifi: hotspot2: verify getter methods" am: b296f84ce8
am: c5d2212da7

Change-Id: If85d6fa94bd1dff8d8f6d87354abd30c115eef04
2017-03-22 00:10:23 +00:00
Peter Qiu
c5d2212da7 Merge "wifi: hotspot2: verify getter methods"
am: b296f84ce8

Change-Id: I0a58f6e55de48518e9821ec352723fe2cd59d1f5
2017-03-22 00:07:49 +00:00
Treehugger Robot
b296f84ce8 Merge "wifi: hotspot2: verify getter methods" 2017-03-21 23:55:16 +00:00
Lorenzo Colitti
c39ca5d21b Merge "Dup fds to stop finalizers from invalidating them." am: d7a02820ac am: 3232d55bdf
am: 6607f6d59b

Change-Id: I5054509fcc60b1eaae11723f6aaf0d1bdc770335
2017-03-16 03:44:41 +00:00
Lorenzo Colitti
6607f6d59b Merge "Dup fds to stop finalizers from invalidating them." am: d7a02820ac
am: 3232d55bdf

Change-Id: I98e89a7d0e7f25dab92e278a319d502713489979
2017-03-16 03:38:05 +00:00
Lorenzo Colitti
3232d55bdf Merge "Dup fds to stop finalizers from invalidating them."
am: d7a02820ac

Change-Id: Ia0aedcf2cd8d56f8a8c31b3af95ae8a2ae0dedd0
2017-03-16 03:33:04 +00:00
Lorenzo Colitti
d7a02820ac Merge "Dup fds to stop finalizers from invalidating them." 2017-03-16 03:27:14 +00:00
Lorenzo Colitti
a7ec8300d9 Dup fds to stop finalizers from invalidating them.
The hostside VPN tests were failing because finalizers were
closing the ParcelFileDescriptors that we use to get socekt fds.
The close operations were causing the fds to be marked as invalid
(i.e., -1), causing the tests' system calls on them to fail with
EBADF.

Fix this by dup(2)ing the fds and closing the original objects.

Also, add some asserts to debug this sort of failure.

Fix: 35927643
Test: HostsideVpnTests passed 20/20 times on bullhead
Change-Id: If88530b5bd32622bd4726cd6f0907f731209bb43
2017-03-16 08:25:55 +09:00
Peter Qiu
cf27bd49cc Merge "wifi: update callsite for Passpoint configuration management APIs" am: c77019853f am: 4f8b0abd52
am: 13f9cdc313  -s ours

Change-Id: I5b9bd736319452a9259184bb3502e92275143828
2017-03-14 16:45:59 +00:00
Peter Qiu
13f9cdc313 Merge "wifi: update callsite for Passpoint configuration management APIs" am: c77019853f
am: 4f8b0abd52

Change-Id: I6e9a74fdd711a8c2bafe6730cb52e2a153155ede
2017-03-14 16:31:37 +00:00
Peter Qiu
4f8b0abd52 Merge "wifi: update callsite for Passpoint configuration management APIs"
am: c77019853f

Change-Id: If3aadefde81b4998f2c86a5bc3e074aa3a8582b2
2017-03-14 16:17:27 +00:00