Commit Graph

1195 Commits

Author SHA1 Message Date
nharold
40fe746f16 Merge "Remove DatagramSocket calls from IpSecManagerTest" 2017-04-18 18:35:21 +00:00
Nathan Harold
f20fc80ba5 Remove DatagramSocket calls from IpSecManagerTest
Because the DatagramSocket version of the API is being
hidden, this test is being converted to use the
FileDescriptor version of applyTransportModeTransform()
and removeTransportModeTransform()

Bug: 37446006
Test: compilation
Change-Id: Ida4977a6e7496ce6b4de38bfd48bd6a162cab874
2017-04-17 22:01:26 -07:00
Android Merger
0a33006809 Merge "Merge "[CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case." into nougat-mr1-cts-dev am: 6ee31c8e8f" 2017-04-17 17:39:14 +00:00
Tina Zhou
e5e55017fc Merge "[CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case." into nougat-mr1-cts-dev
am: 6ee31c8e8f

Change-Id: Id8398453ea4b85d04da963ab48876407b0237e41
2017-04-17 17:39:06 +00:00
Tina Zhou
6ee31c8e8f Merge "[CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case." into nougat-mr1-cts-dev 2017-04-17 17:37:29 +00:00
Android Merger
67a8712d22 Merge "Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-mr1-cts-dev am: 4b656d1d00 -s ours" 2017-04-14 00:43:14 +00:00
Sudheer Shanka
fd60ad1fc6 Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-mr1-cts-dev
am: 4b656d1d00  -s ours

Change-Id: If60f4a8c6efadb3e805ffe9dd19fac39545b59f8
2017-04-14 00:43:07 +00:00
Treehugger Robot
4b656d1d00 Merge "DO NOT MERGE: Skip data saver related tests if the device doesn't support it." into nougat-mr1-cts-dev 2017-04-14 00:36:09 +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
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
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
Sudheer Shanka
41914d36f3 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:50:01 -07: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
peter_li
e5ad8b0bb1 [CTS]It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case.
Symptom: It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger for "CtsHostsideNetworkTests" test case.
Root Cause: It uses setBatterySaverMode API to enter power-save mode and uses plugging in charger to leave power save mode.It should be more reasonable to use setBatterySaverMode API to leave power-save mode instead of plugging in charger.
Solution: To use setBatterySaverMode API to leave power-save mode instead of plugging in charger.
Project: N70
Note: NA
Test done by RD:
Futher testing need Q team's support:

Change-Id: I491c5d0675f340e1c9911b84e41f034663b1454d
2017-03-21 20:03:18 +08: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
4f8b0abd52 Merge "wifi: update callsite for Passpoint configuration management APIs"
am: c77019853f

Change-Id: If3aadefde81b4998f2c86a5bc3e074aa3a8582b2
2017-03-14 16:17:27 +00:00
Peter Qiu
154dea6b60 wifi: update callsite for Passpoint configuration management APIs
The APIs are updated to not return a boolean status based on
the API Councils comment.  So update the callsite accordingly.

Bug: 35858311
Test: make -j32
Change-Id: Ie9106ecddb2b15178ad37ec6f014d5cc7ce77c43
Merged-In: Ie9106ecddb2b15178ad37ec6f014d5cc7ce77c43
2017-03-13 10:35:44 -07:00
Peter Qiu
d5fc89275d wifi: hotspot2: verify getter methods
Bug: 35756298
Test: run PpsMoParserTest
Change-Id: Ib70bf59f76815e89ba0fc5d67a26502788e19c86
2017-03-10 12:35:59 -08:00
Etan Cohen
fc1043e9ba Merge "[AWARE] Update network creation tests open/encrypted API"
am: 148f767737

Change-Id: Ib53b7a4c921c56c69402fc7be9440cefb064e92b
2017-03-10 17:12:07 +00:00
Etan Cohen
9602110a36 [AWARE] Update network creation tests open/encrypted API
Updated/add CTS tests to validate createNetworkSpecifierXxx
API for open and passphrase modules. As these are (still)
single-ended CTS tests - they validate failure.

Bug: 26564544
Test: CTS passing
Change-Id: I07b76bee5a9b73780d341ac8511a2738ded751ca
2017-03-08 09:08:00 -08:00
Etan Cohen
5191f48899 Merge "[AWARE] CTS for Aware data-path creation"
am: 8ee5d70b27

Change-Id: Ia9e4190416c8a93a62678e32d59daf9602da748f
2017-03-07 23:44:19 +00:00
Etan Cohen
3ceb23d6ca Merge "[AWARE] CTS for failure mode of send message API"
am: f138c95d1f

Change-Id: Ia317d9c3cadbe8d42ce7f26b0f1e96665611ffe4
2017-03-07 23:43:48 +00:00
Etan Cohen
0d96fc6fd5 Merge "[AWARE] CTS tests for publish/subscribe discovery"
am: 32e2012c2a

Change-Id: Ib7856de088d229ee6346bd94c279000ce041cb74
2017-03-07 23:43:18 +00:00
Etan Cohen
8ee5d70b27 Merge "[AWARE] CTS for Aware data-path creation" 2017-03-07 23:36:19 +00:00
Etan Cohen
f138c95d1f Merge "[AWARE] CTS for failure mode of send message API" 2017-03-07 23:35:47 +00:00
Etan Cohen
32e2012c2a Merge "[AWARE] CTS tests for publish/subscribe discovery" 2017-03-07 23:35:32 +00:00
Etan Cohen
12be803cce [AWARE] CTS for Aware data-path creation
Test Aware data-path creation API flow - failure.

Note: testing limited to failure since single device
testing doesn't have a peer

Bug: 30556108
Test: CTS tests pass
Change-Id: Ie15ad57d7331b21fbb6706091691bd5f87e1264e
2017-03-07 09:41:04 -08:00
Etan Cohen
ab5186e4f6 [AWARE] CTS for failure mode of send message API
Test that sending a message with invalid peer handle (null)
fails as expected.

Note: limited testing
- Single device testing doesn't have a peer
- Cannot create an invalid peer handle since opaque object

Bug: 30556108
Test: CTS tests pass
Change-Id: I72f4b67ea3c3dfc00aa48f6601d064b406dabde7
2017-03-07 09:33:00 -08:00
Etan Cohen
a9f33d578d [AWARE] CTS tests for publish/subscribe discovery
Validate the SUCCESS case of publish and subscribe
discovery sessions.

Bug: 30556108
Test: CTS tests pass
Change-Id: Ib88606cdf662560258890e2f274c85c3a8818206
2017-03-07 09:32:56 -08:00
Etan Cohen
766fa1f462 Merge "[CM] CTS tests for requestNetwork APIs"
am: b9af841386

Change-Id: I167c41950ed8a7d267965088a391b7f503decd0d
2017-03-07 16:48:44 +00:00
Etan Cohen
b9af841386 Merge "[CM] CTS tests for requestNetwork APIs" 2017-03-07 16:40:27 +00:00
Etan Cohen
87b18c3df1 [CM] CTS tests for requestNetwork APIs
Add CTS tests for:
- requestNetwork API: test onAvailable
- requestNetwork with timeout API: test onUnavailable (failure)

Bug: 31399536
Test: CTS tests passing
Change-Id: I3565ef375ec90f90b2c76aabee14bf993251eeef
2017-03-06 20:45:13 -08:00
Etan Cohen
a8824acb8c Merge changes I8c2d29be,Ibbc58c3e
am: 831196440e

Change-Id: I076e52cdf6e46f1df055de0bfe9583d72f3fd181
2017-03-07 04:40:34 +00:00
Etan Cohen
831196440e Merge changes I8c2d29be,Ibbc58c3e
* changes:
  [AWARE] CTS for attaching to session + MAC address
  [AWARE] Initial CTS: availability API + broadcast
2017-03-07 04:37:19 +00:00
Etan Cohen
08a2758524 [AWARE] CTS for attaching to session + MAC address
Add CTS to verify initial session attach:
- Basic attach
- Attach with identity callback: use to verify MAC
  address change on subsequent attach.

Bug: 30556108
Test: CTS tests pass/fail per expectations
Change-Id: I8c2d29be81bef600a2c9eac99868326473d72b6e
2017-03-06 13:45:49 -08:00
Etan Cohen
5dc4e9b091 [AWARE] Initial CTS: availability API + broadcast
Initial CTS tests for Wi-Fi Aware:
- Add CTS test class for Wi-Fi Aware
- Setup/initialize
- Test the availablity API + broadcast

Bug: 30556108
Test: builds, CTS runs (test fails as expected)
Change-Id: Ibbc58c3ed7a9ad7312864d038fd34c7202222e82
2017-03-06 13:44:50 -08:00
Peter Qiu
8376afc701 Merge "wifi: add CTS tests for Passpoint parsing APIs"
am: 66d2bf1fe9

Change-Id: I5425769dded37bf0f12e3f7622df17a2f69feb18
2017-03-06 00:11:49 +00:00
Peter Qiu
bf9f0f98b6 Merge "WifiManagerTest: add tests for verifying Passpoint configuration management APIs"
am: c0d0ca8fe0

Change-Id: I07dfbfdb705efbf8070a3282bbb31d909698512a
2017-03-03 17:26:06 +00:00
Peter Qiu
24a0a8e643 wifi: add CTS tests for Passpoint parsing APIs
Added a test for PPS MO (PerProviderSubscription Management Object)
tree parsing API and a test for Release 1 installation file
parsing API.

Bug: 35756298
Test: run the newly added PpsMoParserTest and ConfigParserTest

Change-Id: I6da40bef9609830afb80d8562e5bfb051920b541
2017-02-28 13:43:45 -08:00
Peter Qiu
485adf65b6 WifiManagerTest: add tests for verifying Passpoint configuration management APIs
Bug: 35756298
Test: run WifiManagerTest
Change-Id: I3d106ca9dd4ea74de91c6553eb285534a7856363
2017-02-27 13:57:55 -08:00
Bjoern Johansson
250da2bafd Merge "Merge "resolve merge conflicts of dfc0ec200f to nougat-mr1-cts-dev" into nougat-mr1-cts-dev am: 4acb742c40"
am: e8fc6640f0

Change-Id: Id93567f78ce4490b1c015d65246b88f4f82f7f9a
2017-02-21 19:19:36 +00:00
Android Merger
e8fc6640f0 Merge "Merge "resolve merge conflicts of dfc0ec200f to nougat-mr1-cts-dev" into nougat-mr1-cts-dev am: 4acb742c40" 2017-02-21 19:13:04 +00:00