blob: 46fae33b9b67aee0977dda8b6d573a33a97ba98a [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",
25 "android.test.base.stubs",
26 ],
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 ],
39
40 static_libs: [
41 "FrameworksNetCommonTests",
42 "core-tests-support",
43 "compatibility-device-util-axt",
paulhu3cdc25c2019-05-23 19:16:47 +080044 "cts-net-utils",
Luke Huang971b7952019-04-24 21:27:40 -070045 "ctstestrunner-axt",
46 "ctstestserver",
47 "mockwebserver",
48 "junit",
49 "junit-params",
Remi NGUYEN VANecb66102020-03-24 18:40:42 +090050 "libnanohttpd",
Luke Huang971b7952019-04-24 21:27:40 -070051 "truth-prebuilt",
52 ],
53
54 // uncomment when b/13249961 is fixed
55 // sdk_version: "current",
56 platform_apis: true,
Lorenzo Colittia32d4552020-02-06 22:37:07 +090057}
Luke Huang971b7952019-04-24 21:27:40 -070058
Lorenzo Colittia32d4552020-02-06 22:37:07 +090059// Networking CTS tests for development and release. These tests always target the platform SDK
60// version, and are subject to all the restrictions appropriate to that version. Before SDK
61// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
62// devices.
63android_test {
64 name: "CtsNetTestCases",
65 defaults: ["CtsNetTestCasesDefaults"],
Luke Huang971b7952019-04-24 21:27:40 -070066 test_suites: [
67 "cts",
Dan Shi210a4a72020-03-19 14:07:07 -070068 "vts10",
Luke Huang971b7952019-04-24 21:27:40 -070069 "general-tests",
Lorenzo Colittia32d4552020-02-06 22:37:07 +090070 ],
71 test_config_template: "AndroidTestTemplate.xml",
72}
73
74// Networking CTS tests that have a min_sdk_version of the latest released SDK. These tests can
75// be installed on release devices at any point in the release cycle and are useful for qualifying
76// mainline modules on release devices.
77android_test {
78 name: "CtsNetTestCasesLatestSdk",
79 defaults: ["CtsNetTestCasesDefaults"],
80 min_sdk_version: "29",
81 target_sdk_version: "29",
82 test_suites: [
Chen Zhuc3bd8342019-08-16 16:33:04 -070083 "mts",
Luke Huang971b7952019-04-24 21:27:40 -070084 ],
Lorenzo Colittia32d4552020-02-06 22:37:07 +090085 test_config_template: "AndroidTestTemplate.xml",
Luke Huang971b7952019-04-24 21:27:40 -070086}