summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/Ikev2VpnProfileTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Verify converting to Vpnprofile with IkeTunnelConnectionParams setchiachangwang2022-09-201-0/+36
| | | | | | | | | | | | | Add test to verify converting Ikev2VpnProfile to Vpnprofile with IkeTunnelConnectionParams set. Some fields like server should not be set since the information should contain in the assigned IkeTunnelConnectionParams. Bug: 243718982 Test: atest FrameworksNetTests Change-Id: Ie019ea98932a6d079f213e3bff45f21b44d3fa4e (cherry picked from commit 4e953f63dd419fa7793d07857bcb281a499654f6) Merged-In: Ie019ea98932a6d079f213e3bff45f21b44d3fa4e
* Add test to verify null ProxyInfo in Ikev2VpnProfilechiachangwang2022-09-061-0/+17
| | | | | | | | Bug: 244281603 Test: atest FrameworksNetTests Change-Id: Ice195b60a0f62ae541ede9277c6e36f9c72b2dbb (cherry picked from commit 715dc5b4475fb023afd2567c482107f8ab34f1b4) Merged-In: Ice195b60a0f62ae541ede9277c6e36f9c72b2dbb
* Test Ikev2VpnProfile provisioned with IkeTunnelConnectionParamschiachangwang2022-04-211-4/+4
| | | | | | Bug: 223841137 Test: atest CtsNetTestCases FrameworksNetTests Change-Id: I683f6242e4ed4a469893e3a17fe7b479a7a768e5
* Update test for new IkeTunnelConnectionParams fieldChiachang Wang2022-03-311-0/+31
| | | | | | Bug: 184750836 Test: atest FrameworksNetTests Change-Id: Iab55eba74b94f295a358c6e8474ebf9230c9b019
* Refer to SDK constant defined in DevSdkIgnoreRuleChiachang Wang2022-02-111-2/+4
| | | | | | | | | | Refer to the same constant definition as other tests instead of hard coding locally, so that it won't be missed as changing to Build.VERSION_CODES.SC_V2. Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I3c17c414d830af03e2719c5dab1a664c55f6df2a
* Change naming of excludeLocalRoutesChiachang Wang2022-02-091-2/+2
| | | | | | | | | Address API review feedback to change naming of setExcludedLocalRoutesVpn and getter. Bug: 217742354 Test: atest FrameworksNetTests Change-Id: I57bbf55c7aba1c86ec8687d2431a50b37e63c6d0
* Add missing DevSdkIgnoreRule rule variableChiachang Wang2022-01-181-0/+4
| | | | | | | | | | | DevSdkIgnoreRule.IgnoreUpTo() will not work as expected without the rule defined. Bug: 184750836 Test: atest android.net.Ikev2VpnProfileTest#\ testBuildExcludeLocalRoutesSet works as expected with ignore rule Change-Id: I03a5b28963cd6feebe4358d57c070d941cd114e5
* Add test for setting excludeLocalRoutesChiachang Wang2022-01-071-0/+22
| | | | | | Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I4e79467ce7afcf07f4b8d7f964a605703a6d2c5e
* Re-skip connectivity unit tests before SRemi NGUYEN VAN2021-06-301-2/+5
| | | | | | | | | | | | | | | | | | The tests are packaged together with other tests in a common coverage suite, so need to be individually annotated so that they are skipped before S. They do not need to pass on platforms older than S, because such platforms will not updated with the code that is tested. This applies a previous change, this time using DevSdkIgnoreRunner, as SdkSuppress does not work as expected in branches that have a codename 2 versions above the SDK version, as is the case in AOSP. Bug: 187935317 Test: atest ConnectivityCoverageTests on R atest FrameworksNetTests on S Change-Id: I5808d34459a4c19238baf8873afa7cf942828460
* Revert "Skip connectivity unit tests before S"Remi NGUYEN VAN2021-06-291-3/+0
| | | | | | | | | This reverts commit 05dd1ba54005b15d92daf6f26329acf91fb3debb. Reason for revert: Skips more tests than it should in AOSP Bug: 192302892 Change-Id: I7c5638d8c1cc626354d240a06af758e1cdd92e94
* Skip connectivity unit tests before SRemi NGUYEN VAN2021-06-251-0/+3
| | | | | | | | | | | | | The tests are packaged together with other tests in a common coverage suite, so need to be individually annotated so that they are skipped before S. They do not need to pass on platforms older than S, because such platforms will not updated with the code that is tested. Bug: 187935317 Test: atest ConnectivityCoverageTests on R Change-Id: I10da45ae023e7f1e8cd11ec857b84346892a3fa8
* Improve IKEv2/IPsec VPN by proposing more IPsec algorithmsYan Yan2021-05-211-3/+11
| | | | | | | | | | | | | | | | This commit allows IKEv2/IPsec VPN to propose more algorithms that newly added in IpSecAlgorithm. Those new algorithms have stronger security guarantees and better performances. This commit also removes algorithm name validation because all algorithms are URL encoded to ensure no special characters create problems due to their use by VpnProfile for list or field delimiting (e.g. rfc7539esp(chacha20,poly1305)) Bug: 185265778 Test: atest FrameworksNetTests, CtsNetTestCases Test: All new algorithms are manually verified Change-Id: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
* Move net unit tests to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+439
Move the tests together with packages/Connectivity code, so both can be moved to packages/modules/Connectivity together. Also reorganize unit tests in a unit/ directory, as other tests (integration/, common/ etc.) have been added in tests/net since they were created. This makes the directory structure consistent. Test: atest FrameworksNetTests Bug: 187814163 Merged-In: I254ffd1c08ec058d594b4ea55cbae5505f8497cc Change-Id: I254ffd1c08ec058d594b4ea55cbae5505f8497cc