From 03dfb41f8cd8bd0a5bde2a884d355fdb82d0be9f Mon Sep 17 00:00:00 2001 From: Yan Yan Date: Fri, 3 Apr 2020 23:08:47 +0000 Subject: [PATCH] Create build files for CtsIkeTestCases Bug: 148689509 Test: atest CtsIkeTestCases Change-Id: I2f49fc12314ac648e8df816058d599033c822dca Merged-In: I2f49fc12314ac648e8df816058d599033c822dca (cherry picked from commit aead83c98a09c70a20e034474c4b4a4995cc3bac) --- tests/cts/net/ipsec/Android.bp | 46 +++++++++++++++++++ tests/cts/net/ipsec/AndroidManifest.xml | 39 ++++++++++++++++ tests/cts/net/ipsec/AndroidTest.xml | 30 ++++++++++++ .../net/ipsec/ike/cts/SaProposalTest.java | 30 ++++++++++++ 4 files changed, 145 insertions(+) create mode 100644 tests/cts/net/ipsec/Android.bp create mode 100644 tests/cts/net/ipsec/AndroidManifest.xml create mode 100644 tests/cts/net/ipsec/AndroidTest.xml create mode 100644 tests/cts/net/ipsec/src/android/net/ipsec/ike/cts/SaProposalTest.java diff --git a/tests/cts/net/ipsec/Android.bp b/tests/cts/net/ipsec/Android.bp new file mode 100644 index 0000000000..86969c31ae --- /dev/null +++ b/tests/cts/net/ipsec/Android.bp @@ -0,0 +1,46 @@ +// Copyright (C) 2020 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +android_test { + name: "CtsIkeTestCases", + defaults: ["cts_defaults"], + + // Include both the 32 and 64 bit versions + compile_multilib: "both", + + libs: [ + "android.net.ipsec.ike.stubs.system", + "android.test.base.stubs", + ], + + srcs: [ + "src/**/*.java", + ], + + static_libs: [ + "androidx.test.ext.junit", + "compatibility-device-util-axt", + "ctstestrunner-axt", + ], + + platform_apis: true, + + // Tag this module as a cts test artifact + test_suites: [ + "cts", + "mts", + "vts", + "general-tests", + ], +} diff --git a/tests/cts/net/ipsec/AndroidManifest.xml b/tests/cts/net/ipsec/AndroidManifest.xml new file mode 100644 index 0000000000..de7d23cbd5 --- /dev/null +++ b/tests/cts/net/ipsec/AndroidManifest.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cts/net/ipsec/AndroidTest.xml b/tests/cts/net/ipsec/AndroidTest.xml new file mode 100644 index 0000000000..09e5c93cf8 --- /dev/null +++ b/tests/cts/net/ipsec/AndroidTest.xml @@ -0,0 +1,30 @@ + + + diff --git a/tests/cts/net/ipsec/src/android/net/ipsec/ike/cts/SaProposalTest.java b/tests/cts/net/ipsec/src/android/net/ipsec/ike/cts/SaProposalTest.java new file mode 100644 index 0000000000..47e8f0174d --- /dev/null +++ b/tests/cts/net/ipsec/src/android/net/ipsec/ike/cts/SaProposalTest.java @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2020 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.net.ipsec.ike.cts; + +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(AndroidJUnit4.class) +public class SaProposalTest { + @Test + public void testBuildIkeSaProposal() { + // TODO(b/148689509): Add real tests here + } +}