1// Copyright (C) 2008 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19java_defaults { 20 name: "CtsNetTestCasesDefaults", 21 defaults: [ 22 "cts_defaults", 23 "framework-connectivity-test-defaults", 24 ], 25 26 // Include both the 32 and 64 bit versions 27 compile_multilib: "both", 28 29 libs: [ 30 "voip-common", 31 "android.test.base", 32 ], 33 34 jni_libs: [ 35 "libcts_jni", 36 "libnativedns_jni", 37 "libnativemultinetwork_jni", 38 "libnativehelper_compat_libc++", 39 ], 40 41 srcs: [ 42 "src/**/*.java", 43 "src/**/*.kt", 44 ":ike-aes-xcbc", 45 ], 46 jarjar_rules: "jarjar-rules-shared.txt", 47 static_libs: [ 48 "bouncycastle-unbundled", 49 "FrameworksNetCommonTests", 50 "core-tests-support", 51 "cts-net-utils", 52 "ctstestrunner-axt", 53 "junit", 54 "junit-params", 55 "modules-utils-build", 56 "net-utils-framework-common", 57 "truth-prebuilt", 58 ], 59 60 // uncomment when b/13249961 is fixed 61 // sdk_version: "current", 62 platform_apis: true, 63} 64 65// Networking CTS tests for development and release. These tests always target the platform SDK 66// version, and are subject to all the restrictions appropriate to that version. Before SDK 67// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release 68// devices. 69android_test { 70 name: "CtsNetTestCases", 71 defaults: ["CtsNetTestCasesDefaults"], 72 // TODO: CTS should not depend on the entirety of the networkstack code. 73 static_libs: [ 74 "NetworkStackApiCurrentLib", 75 ], 76 test_suites: [ 77 "cts", 78 "general-tests", 79 ], 80 test_config_template: "AndroidTestTemplate.xml", 81} 82 83// Networking CTS tests that target the latest released SDK. These tests can be installed on release 84// devices at any point in the Android release cycle and are useful for qualifying mainline modules 85// on release devices. 86android_test { 87 name: "CtsNetTestCasesLatestSdk", 88 defaults: ["CtsNetTestCasesDefaults"], 89 // TODO: CTS should not depend on the entirety of the networkstack code. 90 static_libs: [ 91 "NetworkStackApiStableLib", 92 ], 93 jni_uses_sdk_apis: true, 94 min_sdk_version: "29", 95 target_sdk_version: "30", 96 test_suites: [ 97 "general-tests", 98 "mts-dnsresolver", 99 "mts-networking", 100 "mts-tethering", 101 "mts-wifi", 102 ], 103 test_config_template: "AndroidTestTemplate.xml", 104} 105