blob: fdc54bddedf9990a18fb1fe3227edb50b64c7c1d [file] [log] [blame]
Luke Huang971b7952019-04-24 21:27:40 -07001// 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
Lorenzo Colittia32d4552020-02-06 22:37:07 +090015java_defaults {
16 name: "CtsNetTestCasesDefaults",
Luke Huang971b7952019-04-24 21:27:40 -070017 defaults: ["cts_defaults"],
18
19 // Include both the 32 and 64 bit versions
20 compile_multilib: "both",
21
22 libs: [
23 "voip-common",
24 "org.apache.http.legacy",
Jiyong Park82bb5262020-05-19 21:12:39 +090025 "android.test.base",
Luke Huang971b7952019-04-24 21:27:40 -070026 ],
27
28 jni_libs: [
29 "libcts_jni",
30 "libnativedns_jni",
31 "libnativemultinetwork_jni",
32 "libnativehelper_compat_libc++",
33 ],
34
Luke Huang971b7952019-04-24 21:27:40 -070035 srcs: [
36 "src/**/*.java",
37 "src/**/*.kt",
38 ],
Luke Huang6261d272020-06-20 11:49:40 +080039 jarjar_rules: "jarjar-rules-shared.txt",
Luke Huang971b7952019-04-24 21:27:40 -070040 static_libs: [
41 "FrameworksNetCommonTests",
Remi NGUYEN VAN450854f2020-05-12 18:07:17 +090042 "TestNetworkStackLib",
Luke Huang971b7952019-04-24 21:27:40 -070043 "compatibility-device-util-axt",
Luke Huang6261d272020-06-20 11:49:40 +080044 "core-tests-support",
paulhu3cdc25c2019-05-23 19:16:47 +080045 "cts-net-utils",
Luke Huang971b7952019-04-24 21:27:40 -070046 "ctstestrunner-axt",
47 "ctstestserver",
Luke Huang971b7952019-04-24 21:27:40 -070048 "junit",
49 "junit-params",
Remi NGUYEN VAN388f7242020-04-28 06:16:55 +000050 "libnanohttpd",
Luke Huang6261d272020-06-20 11:49:40 +080051 "mockwebserver",
52 "net-utils-framework-common",
Luke Huang971b7952019-04-24 21:27:40 -070053 "truth-prebuilt",
54 ],
55
56 // uncomment when b/13249961 is fixed
57 // sdk_version: "current",
58 platform_apis: true,
Lorenzo Colittia32d4552020-02-06 22:37:07 +090059}
Luke Huang971b7952019-04-24 21:27:40 -070060
Lorenzo Colittia32d4552020-02-06 22:37:07 +090061// Networking CTS tests for development and release. These tests always target the platform SDK
62// version, and are subject to all the restrictions appropriate to that version. Before SDK
63// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
64// devices.
65android_test {
66 name: "CtsNetTestCases",
67 defaults: ["CtsNetTestCasesDefaults"],
Luke Huang971b7952019-04-24 21:27:40 -070068 test_suites: [
69 "cts",
Dan Shi67de87e2020-03-19 12:07:49 -070070 "vts10",
Luke Huang971b7952019-04-24 21:27:40 -070071 "general-tests",
Lorenzo Colittia32d4552020-02-06 22:37:07 +090072 ],
73 test_config_template: "AndroidTestTemplate.xml",
74}
75
Lorenzo Colitti53430122020-06-13 00:47:44 +090076// Networking CTS tests that target the latest released SDK. These tests can be installed on release
77// devices at any point in the Android release cycle and are useful for qualifying mainline modules
78// on release devices.
Lorenzo Colittia32d4552020-02-06 22:37:07 +090079android_test {
80 name: "CtsNetTestCasesLatestSdk",
81 defaults: ["CtsNetTestCasesDefaults"],
Remi NGUYEN VANe196a612020-05-19 05:34:35 +000082 jni_uses_sdk_apis: true,
Lorenzo Colittia32d4552020-02-06 22:37:07 +090083 min_sdk_version: "29",
Lorenzo Colitti53430122020-06-13 00:47:44 +090084 target_sdk_version: "30",
Lorenzo Colittia32d4552020-02-06 22:37:07 +090085 test_suites: [
easoncyleea1b13d62020-06-12 14:14:14 +080086 "general-tests",
Chen Zhuc3bd8342019-08-16 16:33:04 -070087 "mts",
Luke Huang971b7952019-04-24 21:27:40 -070088 ],
Lorenzo Colittia32d4552020-02-06 22:37:07 +090089 test_config_template: "AndroidTestTemplate.xml",
Luke Huang971b7952019-04-24 21:27:40 -070090}